mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Disable share code, fix css and fisrt public version to nextcloud
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<description>Quick notes with text, check lists and pictures</description>
|
<description>Quick notes with text, check lists and pictures</description>
|
||||||
<licence>AGPL</licence>
|
<licence>AGPL</licence>
|
||||||
<author>Matias De lellis</author>
|
<author>Matias De lellis</author>
|
||||||
<version>0.1.1</version>
|
<version>0.1.2</version>
|
||||||
<namespace>QuickNotes</namespace>
|
<namespace>QuickNotes</namespace>
|
||||||
<category>tool</category>
|
<category>tool</category>
|
||||||
<website>https://github.com/matiasdelellis</website>
|
<website>https://github.com/matiasdelellis</website>
|
||||||
@@ -14,6 +14,6 @@
|
|||||||
<ocsid>174716</ocsid>
|
<ocsid>174716</ocsid>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<owncloud min-version="8.0" max-version="9.1"/>
|
<owncloud min-version="8.0" max-version="9.1"/>
|
||||||
<nextcloud min-version="9" max-version="12" />
|
<nextcloud min-version="9" max-version="13" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</info>
|
</info>
|
||||||
|
|||||||
@@ -51,10 +51,6 @@
|
|||||||
/*width: 100%;*/
|
/*width: 100%;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-active #content-editable {
|
|
||||||
/* margin-bottom: 60px;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
.save-button #unshare-button {
|
.save-button #unshare-button {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -74,6 +70,10 @@
|
|||||||
|
|
||||||
/* Grid Note */
|
/* Grid Note */
|
||||||
|
|
||||||
|
#div-content {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#div-content .note-title {
|
#div-content .note-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -82,6 +82,11 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.note-content {
|
||||||
|
margin: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
#div-content .shared-title,
|
#div-content .shared-title,
|
||||||
#div-content .shared-title-owner,
|
#div-content .shared-title-owner,
|
||||||
#div-content .icon-delete-note {
|
#div-content .icon-delete-note {
|
||||||
@@ -110,6 +115,8 @@
|
|||||||
width:20px;
|
width:20px;
|
||||||
height:20px;
|
height:20px;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
|
min-height: 16px;
|
||||||
|
padding: unset;
|
||||||
border-radius:10px;
|
border-radius:10px;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
@@ -157,8 +164,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#content-editable {
|
#content-editable {
|
||||||
|
width: 100%;
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title-editable {
|
||||||
|
width: 100%;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-options {
|
.note-options {
|
||||||
|
|||||||
20
js/script.js
20
js/script.js
@@ -1,11 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
* ownCloud - quicknotes
|
* NextCloud/ownCloud - quicknotes
|
||||||
*
|
*
|
||||||
* This file is licensed under the Affero General Public License version 3 or
|
* This file is licensed under the Affero General Public License version 3 or
|
||||||
* later. See the COPYING file.
|
* later. See the COPYING file.
|
||||||
*
|
*
|
||||||
* @author Matias De lellis <mati86dl@gmail.com>
|
* @author Matias De lellis <mati86dl@gmail.com>
|
||||||
* @copyright Matias De lellis 2016-2017
|
* @copyright Matias De lellis 2016-2018
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (OC, window, $, undefined) {
|
(function (OC, window, $, undefined) {
|
||||||
@@ -248,19 +248,11 @@ View.prototype = {
|
|||||||
buttons: [
|
buttons: [
|
||||||
'bold',
|
'bold',
|
||||||
'italic',
|
'italic',
|
||||||
{
|
'underline',
|
||||||
name: 'h1',
|
'strikethrough',
|
||||||
action: 'append-h2',
|
|
||||||
aria: 'header type 1',
|
|
||||||
tagNames: ['h2'],
|
|
||||||
contentDefault: '<h2>H</h2>',
|
|
||||||
attrs: {
|
|
||||||
'data-custom-attr': 'attr-value-h1'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'justifyLeft', 'justifyCenter', 'justifyRight',
|
|
||||||
'unorderedlist','orderedlist',
|
'unorderedlist','orderedlist',
|
||||||
'quote'
|
'quote',
|
||||||
|
'removeFormat'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
autoLink: true,
|
autoLink: true,
|
||||||
|
|||||||
@@ -6,8 +6,10 @@
|
|||||||
<div><button type="button" id="new-note" class="icon-add"><?php p($l->t('New note'));?></button></div>
|
<div><button type="button" id="new-note" class="icon-add"><?php p($l->t('New note'));?></button></div>
|
||||||
</div>
|
</div>
|
||||||
<li id="all-notes"><a href="#" class="icon-home svg"><?php p($l->t('All notes')); ?></a></li>
|
<li id="all-notes"><a href="#" class="icon-home svg"><?php p($l->t('All notes')); ?></a></li>
|
||||||
|
<!--
|
||||||
<li id="shared-with-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with you')); ?></a></li>
|
<li id="shared-with-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with you')); ?></a></li>
|
||||||
<li id="shared-by-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with others')); ?></a></li>
|
<li id="shared-by-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with others')); ?></a></li>
|
||||||
|
-->
|
||||||
<li id="colors-folder" class="collapsible open">
|
<li id="colors-folder" class="collapsible open">
|
||||||
<button class="collapse"></button>
|
<button class="collapse"></button>
|
||||||
<a href="#" class="icon-search svg"><?php p($l->t('Colors')); ?></a>
|
<a href="#" class="icon-search svg"><?php p($l->t('Colors')); ?></a>
|
||||||
@@ -27,6 +29,7 @@
|
|||||||
{{#each notes}}
|
{{#each notes}}
|
||||||
<li class="note with-menu {{#if active}}active{{/if}}" data-id="{{ id }}">
|
<li class="note with-menu {{#if active}}active{{/if}}" data-id="{{ id }}">
|
||||||
<a href="#">{{{ title }}}</a>
|
<a href="#">{{{ title }}}</a>
|
||||||
|
<!--
|
||||||
<div class="app-navigation-entry-utils">
|
<div class="app-navigation-entry-utils">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="app-navigation-entry-utils-menu-button svg"><button></button></li>
|
<li class="app-navigation-entry-utils-menu-button svg"><button></button></li>
|
||||||
@@ -37,6 +40,7 @@
|
|||||||
<li><button class="delete icon-delete svg" title="delete"></button></li>
|
<li><button class="delete icon-delete svg" title="delete"></button></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -5,11 +5,14 @@
|
|||||||
<div contenteditable="true" id='content-editable' class='note-content' data-placeholder="No content"></div>
|
<div contenteditable="true" id='content-editable' class='note-content' data-placeholder="No content"></div>
|
||||||
<div class="note-options">
|
<div class="note-options">
|
||||||
<div class="save-button">
|
<div class="save-button">
|
||||||
|
<!--
|
||||||
<button id='share-button'><?php p($l->t('Share'));?></button>
|
<button id='share-button'><?php p($l->t('Share'));?></button>
|
||||||
|
-->
|
||||||
<button id='cancel-button'><?php p($l->t('Cancel')); ?></button>
|
<button id='cancel-button'><?php p($l->t('Cancel')); ?></button>
|
||||||
<button id='save-button'><?php p($l->t('Save')); ?></button>
|
<button id='save-button'><?php p($l->t('Save')); ?></button>
|
||||||
</div>
|
</div>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
|
<!--
|
||||||
<div id="note-share-options">
|
<div id="note-share-options">
|
||||||
<ul id="share-pos">
|
<ul id="share-pos">
|
||||||
</ul>
|
</ul>
|
||||||
@@ -17,6 +20,7 @@
|
|||||||
<ul id="share-neg">
|
<ul id="share-neg">
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
<div class="note-toolbar">
|
<div class="note-toolbar">
|
||||||
<a href="#" class="circle-toolbar" style="background-color: #F7EB96"></a>
|
<a href="#" class="circle-toolbar" style="background-color: #F7EB96"></a>
|
||||||
<a href="#" class="circle-toolbar" style="background-color: #88B7E3"></a>
|
<a href="#" class="circle-toolbar" style="background-color: #88B7E3"></a>
|
||||||
|
|||||||
Reference in New Issue
Block a user