Commit graph

594 commits

Author SHA1 Message Date
azivner aee60c444f added "show results in full text" 2018-06-05 23:28:10 -04:00
azivner e7a504c66b fixes and optimizations for search 2018-06-05 22:47:47 -04:00
azivner bd913a63a8 search note fixes 2018-06-04 23:21:45 -04:00
azivner 5a1938c078 better sizing of search pane 2018-06-04 20:22:41 -04:00
azivner 015cd68756 renaming/refactoring of search services 2018-06-04 19:48:02 -04:00
azivner 76c0e5b2b8 new UI for search, closes #108 (still needs cleanup) 2018-06-03 20:42:25 -04:00
azivner 0f8f707acd persisting zoom setting in electron, fixes #112 2018-06-02 13:02:20 -04:00
azivner 083cccea28 better protected/unprotected note indicator, fixes #110 2018-06-02 11:47:16 -04:00
azivner 80d2457b23 moved parent list next to note title 2018-05-31 23:21:47 -04:00
azivner 5dde2752d2 add switch to manually enter/leave protected session, fixes #107 2018-05-31 20:00:39 -04:00
azivner be51e533fc OPML import support (issue #78) 2018-05-29 20:32:13 -04:00
azivner f47ae12019 OPML export support (issue #78), import missing for now 2018-05-27 12:26:34 -04:00
azivner cab54a458f unifying surrogate keys for event log and options, fixes #103 2018-05-26 23:25:09 -04:00
azivner a30734f1bc Add history backwards/forwards buttons, fixes #94 2018-05-26 22:54:06 -04:00
azivner 7ad9f7b129 fixed layouting issues 2018-05-26 19:58:08 -04:00
azivner 40a32e6826 render notes can be edited and can contain HTML markup 2018-05-26 19:27:47 -04:00
azivner ab0486aaf1 expose root node, fixes #101 2018-05-26 16:16:34 -04:00
azivner 874593a167 fix code editor growing 2018-05-26 15:28:36 -04:00
azivner 03bf33630e unify audit fields, fixes #102 2018-05-26 12:38:25 -04:00
azivner 1a737f7d19 expose add link on UI, fixes #95 2018-05-26 10:04:40 -04:00
azivner 9fa6c0918c add index for note's type + some fixes 2018-05-21 20:12:46 -04:00
azivner e8d089e37e ckeditor 10.0.0 2018-05-21 19:35:49 -04:00
azivner a931ce25fa attempt to fix the hoek security warning with package upgrade 2018-05-21 16:08:34 -04:00
azivner 85eb50ed0f autocomplete with prefixes 2018-04-19 20:59:44 -04:00
azivner 7b9b4fbb0c backend autocomplete WIP 2018-04-18 00:26:42 -04:00
azivner 5af0ba1fcb layout fixes 2018-04-17 20:04:27 -04:00
azivner 85a9748291 fix for clones & optimizations 2018-04-16 23:34:56 -04:00
azivner b4005a7ffe optimizations to the lazy loading - expanding tree now takes only one request 2018-04-16 23:13:33 -04:00
azivner 82de1c88d4 basic lazy loading of tree now works, still WIP 2018-04-16 20:40:18 -04:00
azivner 1687ed7e0b load only expanded tree with the rest being lazy loaded, WIP 2018-04-16 16:26:47 -04:00
azivner 66cee8daa4 restructuring CSS grid/flex which fixes jumpy scrolling in tree 2018-04-13 19:58:33 -04:00
azivner afd7df0942 fix collapse tree button 2018-04-13 19:22:12 -04:00
azivner bd6ae33d32 fancytree upgrade to 2.28.1 2018-04-12 20:42:12 -04:00
azivner cdad18551a upgrade CKEditor to 1.0 beta.2, fixes #93 2018-04-12 20:03:23 -04:00
azivner 7a94e21c54 tabindex 2 for text and code editor so that tabbing from title leads to editor focus 2018-04-11 22:44:33 -04:00
azivner a4eafb934f non null note title and content in the DB schema, allow saving non-valid JSON notes, children overview style changes 2018-04-11 00:10:11 -04:00
azivner 7b59a665dd hideChildrenOverview label which can disable children overview for specific notes 2018-04-10 23:15:41 -04:00
azivner 3d15450ffc children overview styling 2018-04-10 21:08:00 -04:00
azivner f4079604c9 basic implementation of children overview, closes #80 2018-04-08 22:38:52 -04:00
azivner b277a250e5 protected notes are not in autocomplete when not in protected session, fixes #46 2018-04-08 12:27:10 -04:00
azivner 5b0e1a644d codemirror now doesn't hijack alt-left/right, fixes #86 2018-04-08 12:17:42 -04:00
azivner 6bb3cfa9a3 note revisions for code is now properly formatted, fixes #97 2018-04-08 12:13:52 -04:00
azivner 542e82ee5d upgraded uncompressed jquery 2018-04-08 09:40:28 -04:00
azivner 0104b19502 naming standards 2018-04-08 09:25:35 -04:00
azivner d2e2caed62 refactoring of note saving code & API 2018-04-08 08:21:49 -04:00
azivner 6128bb4ff3 fix showMessage, showError 2018-04-08 07:48:47 -04:00
azivner 08af4a0465 fix code mirror loading 2018-04-07 15:56:46 -04:00
azivner d19f044961 fix bug 2018-04-07 13:14:01 -04:00
azivner 39dc0f71b4 fix execute note 2018-04-06 19:41:48 -04:00
azivner 0cef5c6b8c added showMessage/showError to script api as they are being used 2018-04-06 19:08:42 -04:00
azivner 9b5a44cef4 fix bugs 2018-04-06 18:49:37 -04:00
azivner 29769ed91d fix force note sync 2018-04-06 18:46:29 -04:00
azivner 5aeb5cd214 jquery upgrade to 3.3.1 2018-04-05 23:18:15 -04:00
azivner e827ddffb9 electron fixes 2018-04-05 23:17:19 -04:00
azivner 6ed6e27602 startup script running fix 2018-04-04 23:51:47 -04:00
azivner 2cdcb3af12 camel casing and fixes 2018-04-04 23:04:31 -04:00
azivner abfc64af95 script to generate large documents, closes #55 2018-04-03 22:15:28 -04:00
azivner a4e64350e9 fixed schema, initial setup 2018-04-02 22:33:54 -04:00
azivner c6c76ba360 option names now follow camelCase 2018-04-02 21:47:46 -04:00
azivner 429d3f518e moved instanceName to index.ejs 2018-04-02 21:34:28 -04:00
azivner c765dbc5cf continuing in API review 2018-04-01 20:50:58 -04:00
azivner a066c6fe2b changes in API format 2018-04-01 20:33:10 -04:00
azivner 311952d4dd renamed settings to options for consistency 2018-04-01 17:41:28 -04:00
azivner 8ba830c04b smaller refactorings continued 2018-04-01 12:03:21 -04:00
azivner acc82f39c4 smaller refactorings continued 2018-04-01 11:42:12 -04:00
azivner c9d73c6115 renamed outstanding attribute references to labels 2018-04-01 09:59:44 -04:00
azivner 12439d8761 refactoring of note deletion 2018-03-31 23:08:22 -04:00
azivner 4f200c73dc refactoring of note creation 2018-03-31 22:23:40 -04:00
azivner e36a81e189 converted export/import notes 2018-03-30 15:34:07 -04:00
azivner 9edee9340b converted settings, note revisions, password change and recent changes routes 2018-03-30 13:56:46 -04:00
azivner 8550ed72f2 converted cloning and label routes 2018-03-30 13:20:36 -04:00
azivner 0ec909fd7a added basic CLS support with re-entrant transactions 2018-03-28 23:41:22 -04:00
azivner b10b0048f3 split out library loader 2018-03-27 22:42:46 -04:00
azivner 9bb188b519 fix unnecessary popups about leaving the page 2018-03-27 22:27:46 -04:00
azivner 7464835058 renamed "attachment" to "file" for consistency 2018-03-27 22:11:06 -04:00
azivner 913b6bb6f6 abstracted note detail components 2018-03-27 21:46:38 -04:00
azivner 000cf99546 split out render and search from note detail service 2018-03-27 21:36:01 -04:00
azivner c918267750 separated attachments out of note detail 2018-03-27 00:27:38 -04:00
azivner 68921ee59b separated text and code handling out of note detail service 2018-03-27 00:22:02 -04:00
azivner 7e856283ee some refactorings of note detail service 2018-03-26 23:48:45 -04:00
azivner 9c1b8da573 split out keybindings out of tree service 2018-03-26 23:25:54 -04:00
azivner cb39b9cca8 split out tree_builder 2018-03-26 23:18:50 -04:00
azivner 788ac43ad1 further refactorings, got rid of init.js 2018-03-26 22:29:14 -04:00
azivner 57d19f3302 refactored moving note in the tree 2018-03-26 22:11:45 -04:00
azivner 68bba623b6 split up autocomplete related functionality 2018-03-26 21:50:47 -04:00
azivner 35998058ce introduced NoteFull entity, fixes 2018-03-25 23:25:17 -04:00
azivner cdf94181d2 got rid of instanceName in tree service 2018-03-25 22:56:23 -04:00
azivner 91ee90d827 cleanup in tree service 2018-03-25 22:37:02 -04:00
azivner d3316cd09c reduced dependencies of utils 2018-03-25 21:29:35 -04:00
azivner ac1b06967f decoupled protected session holder from presentation stuff and similar things 2018-03-25 21:16:57 -04:00
azivner 47eb1e3e02 refactored all mentions of "history" to "revision" 2018-03-25 20:52:38 -04:00
azivner a69d8737ce fixed image upload and eslint 2018-03-25 20:18:08 -04:00
azivner 341f47f0f2 moved dialog entrypoints into bootstrap, fixes 2018-03-25 19:49:33 -04:00
azivner 19c605a9a8 labels have now alt-l shortcut to correspond with the renaming 2018-03-25 15:47:31 -04:00
azivner 54e4f54678 all access to notes and branches is now async so we can lazy load it in the future 2018-03-25 14:49:20 -04:00
azivner 297a2cd9da renamed service variables to conform to new naming scheme 2018-03-25 13:41:29 -04:00
azivner d746d707b5 unblocking infinite cycle 2018-03-25 13:13:26 -04:00
azivner 299252b650 making WS connection asynchronous to not block module registration 2018-03-25 13:08:58 -04:00
azivner fddd1c278f moved services into the service directory 2018-03-25 13:02:39 -04:00
azivner f52d7e3c28 split tree_cache and entities from note_tree 2018-03-25 12:29:00 -04:00
azivner a699210a29 using ES6 modules for whole frontend SPA app 2018-03-25 11:09:17 -04:00
azivner b3c32a39e9 fix for moving the notes 2018-03-25 10:06:14 -04:00
azivner df27533b66 fixes after refactorings 2018-03-25 00:20:55 -04:00
azivner b96a1274c5 all JS functions are now inside old-school JS modules, preparation for ES6 modularization 2018-03-24 23:58:58 -04:00
azivner 001a5107dd ScriptApi separated from ScriptContext, preparation for modularisation 2018-03-24 23:45:36 -04:00
azivner c8e456cdb1 refactoring utils into module 2018-03-24 23:37:55 -04:00
azivner 0f6b00e1c8 fixes after refactoring, base functionality works again 2018-03-24 23:00:12 -04:00
azivner 95bb2cf0bb renaming attributes to labels, fixes #79 2018-03-24 22:02:26 -04:00
azivner 4c472ce78b renaming note_tree to branch 2018-03-24 21:39:15 -04:00
azivner 511fb89af0 WIP refactoring of data structures in note tree 2018-03-24 20:41:27 -04:00
azivner 7e524c0cd1 removed some warnings in idea 2018-03-24 12:52:58 -04:00
azivner e3e2dc9fff first POC of ES6 module 2018-03-24 11:18:46 -04:00
azivner 1612e9093d removed all onclick handlers from index template 2018-03-24 00:54:50 -04:00
azivner f8649feea4 saved search can now be created from the search dialog 2018-03-23 23:08:29 -04:00
azivner efcc804149 redesign search buttons 2018-03-13 20:02:00 -04:00
azivner db514e8f41 display note type only for non-search notes 2018-03-13 19:47:34 -04:00
azivner 9c32f66329 context menu disables actions not applicable to search note 2018-03-13 19:31:07 -04:00
azivner f1b0b3bcdb basic implementation of saved searches finished, closes #83 2018-03-12 23:27:21 -04:00
azivner e5c0acbb43 note tree refactorings 2018-03-12 23:14:09 -04:00
azivner 5204ab5a7e refactoring of note tree 2018-03-12 20:00:19 -04:00
azivner b8ae791191 icon for saved seach 2018-03-11 10:53:10 -04:00
azivner ce754cbd91 saving saved search, #73 2018-03-11 10:49:22 -04:00
azivner f6c7f6a0f2 added require() method for commonJS compliancy 2018-03-10 11:53:51 -05:00
azivner e86f1e0d05 changes to the HTML template to allow more complete styling 2018-03-07 23:58:34 -05:00
azivner c831221cc4 add "play" icon for "render" note types 2018-03-07 20:52:34 -05:00
azivner 577a168714 stop propagation of ctrl+enter from SQL console, fixes #73 2018-03-07 20:46:01 -05:00
azivner b0bd27321a escape will close SQL console, closes #72 2018-03-07 20:33:41 -05:00
azivner 90c5348ca7 fix saving only image in a note, fixes #77 2018-03-07 20:19:53 -05:00
azivner 8e95b080da fixed render notes 2018-03-07 00:17:18 -05:00
azivner 766a567a32 changes in access to startNote and currentNote 2018-03-06 23:04:35 -05:00
azivner 6d0218cb36 execute note (ctrl+enter) now works for both frontend and backend scripts 2018-03-05 23:19:46 -05:00
azivner b3209a9bbf split javascript mime type into frontend and backend 2018-03-05 22:08:45 -05:00
azivner 61c2456cf6 startNote/currentNote is now accessible on frontend as well 2018-03-04 23:28:26 -05:00
azivner 5c91e38dfe server.exec() refactored into api 2018-03-04 21:43:14 -05:00
azivner 07bf075894 cleaned up unused jobs implementation 2018-03-04 21:33:06 -05:00
azivner ddce5c959e fix render 2018-03-04 21:05:14 -05:00
azivner 3b9d1df05c fixed frontend script execution 2018-03-04 14:21:11 -05:00
azivner 7a865a9081 common JS module system prototype 2018-03-04 10:32:53 -05:00
azivner 72d91d1571 don't use eslint on JSON notes, closes #70 2018-03-01 22:42:51 -05:00
azivner ee0833390a fix export in electron (auth problem) 2018-02-27 09:47:05 -05:00
azivner bea1d24f07 tweaks to eslint 2018-02-26 22:55:58 -05:00
azivner 1501fa8dbf import notes from tar archive, closes #63 2018-02-26 00:07:43 -05:00
azivner 60bba46d80 export subtree to tar file 2018-02-25 10:55:21 -05:00
azivner 12c06ae97e manual transaction handling for jobs 2018-02-24 22:44:45 -05:00
azivner f0bea9cf71 API changes necessary to port reddit plugin, closes #58 2018-02-24 21:23:04 -05:00
azivner a555b6319c support for backend jobs and other script API changes 2018-02-24 14:42:52 -05:00
azivner 5dd93e4cdc eslint for javascript inside HTML (htmlmixed mode), closes #62 2018-02-24 00:58:11 -05:00
azivner 3b4509d833 support encryption for files, closes #60 2018-02-23 22:58:24 -05:00
azivner 19308bbfbd small changes to linting and protected session 2018-02-23 20:10:29 -05:00
azivner 4acc5432c3 autocomplete returns items which have at least one of the tokens in the leaf note title, closes #59 2018-02-22 19:52:08 -05:00
azivner 08b8141fdf upgrade to codemirror 5.35 2018-02-21 23:09:52 -05:00
azivner e1200aa308 lazy loading of eslint only for JS code 2018-02-21 20:30:15 -05:00
azivner 89666eb078 paperclip icon for attachment, closes #61 2018-02-21 19:53:46 -05:00
azivner d5605aa64d initial support for eslint backed JS linting 2018-02-20 23:24:55 -05:00
azivner 2582b016f9 increased "connection lost" timeout from 5 seconds to 30, it was way to common and mostly false positive 2018-02-20 07:52:39 -05:00
azivner a149c6a105 lazy / dynamic loading of CKEditor and Code mirror 2018-02-19 22:02:03 -05:00
azivner aa2bbc6575 attachment download now works also in electron, added option to open the attachment 2018-02-18 22:19:07 -05:00
azivner 78e8c15786 attachment upload and download now works for browser 2018-02-18 21:28:24 -05:00
azivner fda4146150 correct handling of inclusion of dependencies 2018-02-18 10:47:02 -05:00
azivner ddc885066e support passing functions to the backend as parameters 2018-02-18 09:53:36 -05:00
azivner 6b9ff47c88 Merge branch 'stable' 2018-02-15 23:24:02 -05:00
azivner d86f655658 attempt to mitigate problem with creating day subnotes 2018-02-15 23:04:50 -05:00
azivner cdde6a4d8e file/attachment upload, wiP 2018-02-14 23:31:20 -05:00
azivner ebe66eaed9 after creating new note, unselect previous active, fixes #45 2018-02-13 23:25:28 -05:00
azivner 2e8eeda5ab new attribute "hide_in_autocomplete", fixes #16 2018-02-13 22:30:33 -05:00
azivner 1cef0ce5f9 removed CTRL-ALT-C global shortcut with pasting from clipboard, keeping only CTRL-ALT-P without clipboard 2018-02-13 19:55:04 -05:00
azivner 1efac99828 limit number of autocomplete results to 100, closes #44 2018-02-13 19:37:07 -05:00
azivner 0e9473119e global keyboard shortcuts for quick creating sub-notes under day note 2018-02-12 23:53:00 -05:00
azivner 7bbfef7af3 better positioning of the recent notes dialog 2018-02-12 21:20:30 -05:00
azivner 5cb93509c1 stop trying to wrap autocomplete with underlying dialog - seems to be impossible to get it right on all platforms 2018-02-12 21:09:50 -05:00
azivner f9f8ecb2b1 recent notes doesn't fail totally when we can't find title for some note 2018-02-11 15:33:10 -05:00
azivner 438f7c5b0b escape should close the recent notes dialog 2018-02-11 11:53:43 -05:00
azivner 58f5d0cf6e recent notes are not closed when I click on e.g. dialog title bar 2018-02-11 08:57:12 -05:00
azivner b3038487f8 fix image support broken in recent refactorings 2018-02-10 10:00:40 -05:00
azivner cac98392a6 code mirror in SQL console, closes #24 2018-02-10 09:14:18 -05:00
azivner dbd28377e3 change in naming conventions for element variables from *El to $name 2018-02-10 08:44:34 -05:00
azivner c76e4faf5d added attributes sorting 2018-02-10 08:37:14 -05:00
azivner e011b9ae63 deleting attributes, closes #34 2018-02-06 23:09:19 -05:00
azivner 7c74c77a2c allow duplicated attribute per note (in effect attributes can be multi-valued). Closes #33 2018-02-06 21:18:09 -05:00
azivner 4e70cebf70 recent notes now use autocomplete instead of select box, closes #36 2018-02-05 23:50:25 -05:00
azivner 214d2e7659 correct quoting rules for attribute/status bar 2018-02-05 22:28:12 -05:00
azivner 23a2b58b24 fix #32, could not open attribute dialog if it didn't have any attributes yet 2018-02-05 21:07:18 -05:00
azivner aee64b2522 fix visual glitch in search - showing search now doesn't move note content 2018-02-05 20:53:04 -05:00
azivner 3d2dc8e699 fixes for change propagation (conflict between knockout and jquery UI autocomplete) 2018-02-04 23:16:45 -05:00
azivner c84e15c9be implemented query language for attributes, closes #26 2018-02-04 22:44:15 -05:00
azivner e18d0b9fd4 tag list in "status bar", closes #28 2018-02-04 20:23:30 -05:00
azivner 52817504d1 autocomplete for attribute values, closes #31 2018-02-04 19:43:11 -05:00
azivner a3b31fab54 autocomplete for attribute names, issue #31 2018-02-04 19:27:27 -05:00
azivner bc4aa3e40a removed ctrl+shift+left, ctrl+shift+right because of conflict with standard keyboard mapping, close #25 2018-02-04 18:12:17 -05:00
azivner 873ea67e9c nice UI for attributes with validation 2018-02-04 17:22:21 -05:00
azivner e8ed913374 small changes in the toolbar 2018-02-03 12:44:22 -05:00
azivner 5bffba4e2f add API to add plugin buttons, fixes 2018-02-03 10:37:57 -05:00
azivner 8249a81c77 various script fixes, including for electron 2018-01-30 22:44:46 -05:00
azivner 52ad7f64b4 moved all sources to src directory 2018-01-28 22:18:15 -05:00