Commit graph

1930 commits

Author SHA1 Message Date
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
131af9ab12 fix attachment sync 2018-02-18 22:55:36 -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
08bc2afb49 now it's possible to add comment to the weight, closes #54 2018-02-17 11:47:22 -05:00
azivner
1d0220b03d add weight causes updating old chart instead of creating new chart, closes #53 2018-02-17 10:45:00 -05:00
azivner
3033f7cc08 attribute value is now non-null, fixes #52 2018-02-16 19:07:59 -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
abdad1c3ae log error messages with ERROR: prefix (there's wasn't anyt other distinction before) 2018-02-15 22:30:05 -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
5bce9a5f94 added hide_in_autocomplete attribute to weight script 2018-02-13 22:50:12 -05:00
azivner
dfd9927310 added createAttribute method to script API 2018-02-13 22:46:45 -05:00
azivner
9bf1735bde reddit notes will be created with "hide_in_autocomplete" attribute 2018-02-13 22:34:33 -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
89e89e04d8 alt+t is now shortcut for today script 2018-02-12 00:30:02 -05:00
azivner
9910aebf45 fix schema.sql 2018-02-11 22:06:12 -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
4b1d1aba74 add sender API to send text notes 2018-02-11 10:54:56 -05:00
azivner
6dea73cfe2 sender API now accepts local time header so we don't have problems with UTC 2018-02-11 09:14:21 -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
7b77e40514 added support for trilium-sender 2018-02-11 00:18:59 -05:00
azivner
660908c54b fix sorting notes 2018-02-10 13:55:06 -05:00
azivner
e970564036 create months and days with associated english names, closes #37 2018-02-10 13:53:35 -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
f380bb7f65 removal of extra console logs 2018-02-05 22:26:50 -05:00
azivner
0a9a032daa fix incorrect removal of attribute filter from string, fixes #35 2018-02-05 22:25:25 -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
d1329f60c3 fix electron build 2018-01-31 08:03:25 -05:00
azivner
3f7b54425d sync fixes 2018-01-30 23:23:19 -05:00
azivner
47dfca83eb added weight script 2018-01-30 23:06:11 -05:00
azivner
8249a81c77 various script fixes, including for electron 2018-01-30 22:44:46 -05:00
azivner
72bd2507fe script bugfixes 2018-01-30 21:25:47 -05:00
azivner
5217339209 update to entity creates sync event 2018-01-30 20:12:19 -05:00
azivner
35c7b54176 support for updating entities etc. 2018-01-29 23:35:36 -05:00
azivner
6fa6891496 created repository object to access entities 2018-01-29 23:17:44 -05:00
azivner
9a091408e3 script related changes 2018-01-29 20:57:55 -05:00
azivner
587f3d833e basic entity support with lazy loaded relations 2018-01-29 18:34:59 -05:00
azivner
b44412bc32 renaming of sql methods to fit getRows/getEntities model 2018-01-29 17:41:59 -05:00
azivner
9b53a17168 first experiments with note entity 2018-01-28 23:16:50 -05:00
azivner
52ad7f64b4 moved all sources to src directory 2018-01-28 22:18:15 -05:00
azivner
f49963dc67 remove old python backend files 2017-10-22 20:22:59 -04:00
azivner
0c823a2927 reorganization of source code 2017-10-15 19:47:05 -04:00
azivner
649dc0fbbb node authentication 2017-10-15 16:32:49 -04:00
azivner
c4ed01128b hover tooltip for internal links 2017-10-11 20:37:27 -04:00
azivner
4a4228cd03 making dialogs wider to accompany deeper hierarchies. Recent changes now display full path of the note 2017-10-11 19:41:45 -04:00
azivner
a363b43c2b added "jump to note" to header 2017-10-10 20:37:45 -04:00
azivner
af8b26cbd5 unified naming of IDs in all lower case 2017-10-10 20:19:16 -04:00
azivner
fb28111288 notecase webapp renamed to trilium 2017-10-10 19:47:46 -04:00
azivner
c9322465a5 refactored naming to conform to PEP 8 2017-10-09 19:48:10 -04:00
azivner
8a5ff3968b routes separated from the main app file 2017-10-09 19:38:35 -04:00
azivner
49460dfb8a we should probably try to work on a newer database (assuming changes are mostly additive and backwards compatible) 2017-10-09 16:55:58 -04:00
azivner
b02f5dac5b basic implementation of DB upgrades 2017-10-09 16:50:36 -04:00
azivner
29f50f47b8 added history button 2017-10-09 11:28:56 -04:00
azivner
5b3dafd395 added top header 2017-10-06 22:46:30 -04:00
azivner
b7a5dca803 cleanup of old backup files 2017-10-06 20:39:00 -04:00
azivner
ee4eca33d4 basic backup implementation (in progress) 2017-10-05 21:43:39 -04:00
azivner
d5320bff0f fixed tree scrolling 2017-10-05 19:28:56 -04:00
azivner
ade9da4a8a recent notes can now both jump and add link 2017-10-01 23:07:32 -04:00
azivner
2e8787ff91 moved search behind tree action button 2017-10-01 08:47:26 -04:00
azivner
566008baae cleaned up fuse.js which isn't used anymore 2017-09-30 22:37:25 -04:00
azivner
d0cc5f4a5f dates are now stored in UTC and displayed in local time 2017-09-30 22:35:13 -04:00
azivner
569f7a392d recording note content and title changes to audit_log 2017-09-30 21:18:23 -04:00
azivner
734b45dc67 returning 401 for unauthorized API calls while redirecting to /login for unauthorized page access 2017-09-30 18:38:22 -04:00
azivner
e28c06ef37 all APIs are not prefixed with /api 2017-09-30 10:05:12 -04:00
azivner
ff58456332 basic conflict detection based on the audit log 2017-09-29 00:17:28 -04:00
azivner
a9698d362f basic implementation of audit logging 2017-09-28 23:16:36 -04:00
azivner
50b61d30f0 cleanup of old code which used notecase formatting 2017-09-27 00:04:50 -04:00
azivner
b30bc19bd2 basic recent changes implementation 2017-09-26 23:23:03 -04:00
azivner
c6472a1c0c fixed alt-m (hiding everything but content) 2017-09-25 21:37:14 -04:00
azivner
c315975995 history content has fixed width to prevent jumping based on size 2017-09-25 21:33:26 -04:00
azivner
a3425a09ff history fix 2017-09-24 21:06:17 -04:00
azivner
c12161feba history snaphost time interval is now configurable in settings 2017-09-24 20:50:14 -04:00
azivner
08064b181d main layout improvements - whole thing is now limited to 1100px wide (again) 2017-09-24 20:22:07 -04:00
azivner
55667d052f better layout for history 2017-09-24 12:09:50 -04:00
azivner
da17bc6370 removed initial help message - outdated and help will be done differently 2017-09-24 11:52:16 -04:00
azivner
398a0bce5e moved message area next to note title 2017-09-24 11:34:16 -04:00
azivner
21f49ea7c5 layout conversion to cleaner CSS grid, work in progress 2017-09-23 23:54:38 -04:00
azivner
a14257a31c basic functionality of history now working 2017-09-23 10:18:08 -04:00
azivner
647bbcaee1 WIP on the dialog for history 2017-09-21 22:20:10 -04:00
azivner
8ec2c6c338 api for history 2017-09-20 22:30:11 -04:00
azivner
775a943c47 saving history snapshots into new table notes_history 2017-09-20 21:37:21 -04:00
azivner
b307907796 package fix 2017-09-17 21:28:04 -04:00
azivner
52034e0cdc added conversion of notes to html 2017-09-17 11:20:33 -04:00
azivner
0fc604e7b4 fixed changing password 2017-09-17 00:18:03 -04:00
azivner
1d395badfa password now encrypts random "data key" which is then used for encryption of the actual data 2017-09-16 23:21:46 -04:00
azivner
fdc668e28b scroll to current note in the tree 2017-09-16 11:37:50 -04:00
azivner
5b84487aac encryption timeout is now configurable in the db 2017-09-12 23:04:17 -04:00
azivner
3e97cdf085 changing password in settings dialog 2017-09-12 22:23:57 -04:00
azivner
b0957a0c8f change password modularized 2017-09-12 22:09:09 -04:00
azivner
8bc1bdd5f7 use generated salts instead of fixed ones 2017-09-12 21:43:24 -04:00
azivner
b4f9fc3a5e username, password and flask_secret_key are now persisted in database 2017-09-12 21:06:09 -04:00
azivner
9787ce432a settings button, dialog with tabs. Change password form, currently without implementation 2017-09-10 23:10:32 -04:00
azivner
7c0f89bc95 encrypt / decrypt is now using icons next to note title 2017-09-10 21:33:39 -04:00
azivner
19561191f6 fuzzy search 2017-09-10 11:50:17 -04:00
azivner
1f19c9cd0d password is loaded on the fly so it's not necessary to restart app for the changes to take place (if no re-encryption is done) 2017-09-09 14:25:35 -04:00
azivner
c06c837904 password is moved out of config file into separate generated file 2017-09-09 14:21:57 -04:00
azivner
22749f252b removed sync code as it's probably not going to happen ... 2017-09-09 14:01:08 -04:00
azivner
eff67cbf27 login uses my_scrypt to reuse the same scrypt code 2017-09-09 13:57:01 -04:00
azivner
b83f090486 password change (reencryption) 2017-09-09 13:53:58 -04:00
azivner
42c21afa62 more refactoring 2017-09-09 12:34:20 -04:00
azivner
aad90f016b refactoring - moving stuff to separate files 2017-09-09 12:06:15 -04:00
azivner
adf18132fb if parent note is encrypted, then child note will be created as encrypted as well 2017-09-08 22:43:02 -04:00
azivner
9ba958205d frontend now generates two scrypt hashes with different salts - one for verification and one for encryption. Lowered complexity to half to not affect frontend performance. 2017-09-08 20:55:24 -04:00
azivner
fe3d3c1995 note titles are now encrypted as well - plus auto-decryption of note tree and unloading 2017-09-06 23:13:39 -04:00
azivner
91245ab5b8 fixed deleting notes 2017-09-06 22:54:20 -04:00
azivner
a8c576298b encryption code separated into its own file 2017-09-06 22:06:43 -04:00
azivner
1bc8a744a6 some tweaking of password input box 2017-09-06 22:03:53 -04:00
azivner
2c3df13424 title for encrypt and decrypt notes 2017-09-06 21:43:50 -04:00
azivner
16485576c8 bootstrap needs to be included before jQuery UI, otherwise close icon in the dialog will be missing 2017-09-06 21:41:12 -04:00
azivner
a024978d7b jquery ui dialog for encryption password 2017-09-05 23:48:41 -04:00
azivner
a760fbbf1b note decryption 2017-09-05 22:01:22 -04:00
azivner
f1182c9415 moved logout button out of noteDetailWrapper and positioned absolutely (encrypt button as well) 2017-09-05 21:56:22 -04:00
azivner
87c1a95ccc verifying password with hash on the backend to make sure we don't decrypt garbage and also to make sure that everything is encrypted with same password/key 2017-09-05 21:22:16 -04:00
azivner
53d327e435 fixed update of encrypted note 2017-09-04 21:58:17 -04:00
azivner
49db61e5e0 initial support for encryption of individual notes. Shouldn't be used for now. 2017-09-04 21:28:07 -04:00
azivner
390568d743 added context menu on tree items - implemented cut, paste into, paste after 2017-09-04 13:22:24 -04:00
azivner
a54207dc07 added jump to note functionality 2017-09-03 21:34:30 -04:00
azivner
81c534104f recent notes and insert link now include whole note path 2017-09-03 15:08:17 -04:00
azivner
8a388842aa attempt to fix problem when inserting link 2017-08-30 23:17:03 -04:00
azivner
c16ed9546b got rid of flask_restful and using plain flask to handle REST API calls 2017-08-30 23:07:45 -04:00
azivner
361e69d236 node filtering now scans also note content (using backend) 2017-08-29 22:58:44 -04:00
azivner
e862ddae13 cleanup 2017-08-29 22:25:58 -04:00
azivner
0b5aeee0ce hide toggle is now on alt-h (previously ctrl-alt-h) and displays editor on full width 2017-08-29 21:07:02 -04:00
azivner
a7180e0e19 button for collapsing tree, button for new top level note 2017-08-29 20:58:53 -04:00
azivner
36dbcfcce0 search notes input box 2017-08-28 23:10:04 -04:00
azivner
169825abff initial implementation of link dialog (buggy and feature incomplete) 2017-08-27 23:45:01 -04:00
azivner
5e8edf4469 basic support for internal links 2017-08-27 14:39:26 -04:00
azivner
1b3a113639 correct tabindex so that tab from note title jumps to note content 2017-08-25 19:30:26 -04:00
azivner
4a5d29b83d fixed major rendering problem with mixed links and formattings 2017-08-25 00:00:08 -04:00
azivner
c23928d070 scrolling inside tree fixed 2017-08-23 23:36:16 -04:00
azivner
9d260e9f5c handling of cloned notes moved to backend which should fix some annoying behaviors 2017-08-23 21:43:02 -04:00
azivner
c1f9ca4796 added "show recent notes" widget 2017-08-22 22:40:54 -04:00
azivner
e58b8e6c40 last note viewed is displayed after loading the app. Doesn't work well with cloned notes yet, also scrolling to the item in the tree doesn't work yet. 2017-08-22 21:23:10 -04:00
azivner
aec8083d0c ctrl-alt-h now toggles visibility of everything except the main content (probably controversially also title) 2017-08-21 22:04:08 -04:00
azivner
0c602299b2 encryption POC 2017-08-21 20:34:17 -04:00
azivner
e6c759e476 https can be disabled 2017-08-16 20:48:40 -04:00
azivner
11742bba58 make note title input box wider 2017-08-15 23:07:40 -04:00
azivner
c5660986d6 path to document file is now configurable, flask secret is now also taken from configuration 2017-08-15 22:57:44 -04:00
azivner
bd19dd3e55 auto resizing (full height) of tree and editor to fill the window without creating global scrollbar (instead there are independent scrollbars for tree and editor) 2017-08-15 22:32:30 -04:00
azivner
b986e93356 support for cloned notes including updating clones. Creating clones is not supported. Renaming is handled a bit differently - all clones and original share the same name, while in Notecase desktop each clone has separate name. 2017-08-15 21:29:12 -04:00
azivner
3c924afbca configurable port plus support for SSL 2017-08-14 21:05:01 -04:00
azivner
6fe81cd93a various small usability improvements 2017-08-13 21:42:10 -04:00
azivner
191f70477c app broken up into individual files/modules 2017-08-13 19:43:33 -04:00