diff --git a/TODO b/TODO deleted file mode 100644 index 23364815e..000000000 --- a/TODO +++ /dev/null @@ -1,39 +0,0 @@ -- pick new name for the project - -New features: -- what links here - - link between encrypted notes could be done by encrypting note_ids of both sides of relations. Encryption must be - deterministic to allow lookup by cipher text -- db upgrade / migration -- db backup into directory - - basic impl done - - configurable backup time interval - - delete old backups - - configurable backup deletion -- might do the same thing with alt-j and alt-l -- ctrl-b nad linkem by mohlo byt goto do notu -- potencialne nova navigace back - forward -- javascript editor -- persisted recent notes (is wiped out after reload) -- sync of current page? -- create new subnote from inside the editor - possibly with selection of text - -Refactorings: -- modularize frontend - - unify handling of global variables -- unify handling of dialogs and their forms - they all follow the same pattern - e.g. have one main dialog window/el - -UI: -- need to represent global actions somehow - e.g. recent changes, settings -- better way how to represent per-note actions - what links here, encryption - -Encryption: -- we don't have IV or encryption specific counter - -Bugs: -- deleting cloned nodes ends with 500 (probably only on folders) -- Uncaught Error: cannot call methods on fancytree prior to initialization; attempted to call method 'getTree' - -Others: -- dates should be stored in UTC to work correctly with time zones - - we should also record timezone info so that we display the date correctly with respect to the local date at the time of recording it \ No newline at end of file diff --git a/src/templates/app.html b/src/templates/app.html index d2a7022b1..d24757ddb 100644 --- a/src/templates/app.html +++ b/src/templates/app.html @@ -6,6 +6,30 @@
+
+
+
+ Trilium +
+ +
+ + +
+ +
+ + + + + +
+ +
+
+
+
+
Create new top level note @@ -57,19 +81,6 @@   - -
- - - - - -   - -
- -
-
diff --git a/static/js/recent_changes.js b/static/js/recent_changes.js index 37c42e8a7..def31beaf 100644 --- a/static/js/recent_changes.js +++ b/static/js/recent_changes.js @@ -1,4 +1,4 @@ -$(document).bind('keydown', 'alt+r', function() { +function showRecentChanges() { $("#recentChangesDialog").dialog({ modal: true, width: 400, @@ -74,7 +74,9 @@ $(document).bind('keydown', 'alt+r', function() { }, error: () => alert("Error getting recent changes.") }); -}); +} + +$(document).bind('keydown', 'alt+r', showRecentChanges); $(document).on('click', '#recentChangesDialog a', function(e) { goToInternalNote(e, () => { diff --git a/static/js/recent_notes.js b/static/js/recent_notes.js index 01063ab9e..225a948bd 100644 --- a/static/js/recent_notes.js +++ b/static/js/recent_notes.js @@ -14,7 +14,7 @@ function addRecentNote(noteTreeId, noteContentId) { }, 1500); } -$(document).bind('keydown', 'alt+q', function() { +function showRecentNotes() { $('#noteDetail').summernote('editor.saveRange'); $("#recentNotesDialog").dialog({ @@ -47,7 +47,9 @@ $(document).bind('keydown', 'alt+q', function() { recentNotesSelectBox.append(option); }); -}); +} + +$(document).bind('keydown', 'alt+q', showRecentNotes); function getSelectedNoteIdFromRecentNotes() { return $("#recentNotesSelectBox option:selected").val(); diff --git a/static/style.css b/static/style.css index 52b00bf7c..7b20c9619 100644 --- a/static/style.css +++ b/static/style.css @@ -4,10 +4,12 @@ height: 100vh; display: grid; - grid-template-areas: "tree-actions title" + grid-template-areas: "header header" + "tree-actions title" "tree note-content"; grid-template-columns: 2fr 5fr; grid-template-rows: auto + auto 1fr; justify-content: center; grid-gap: 10px; @@ -25,19 +27,12 @@ #top-message { display: none; /* initial state is hidden */ - background-color: #e0e0e0; color: #333; - padding: 5px; - border-radius: 10px; } #error-message { - margin-top: 2px; display: none; /* initial state is hidden */ - background-color: red; - color: white; - padding: 5px; - border-radius: 10px; + color: red; } .note-editable p { @@ -89,4 +84,10 @@ span.fancytree-node.encrypted.fancytree-folder > span.fancytree-icon { .ui-widget-content a { color: #337ab7 !important; +} + +#header-title { + padding: 5px 50px 5px 10px; + font-size: large; + font-weight: bold; } \ No newline at end of file