Commit graph

2988 commits

Author SHA1 Message Date
zadam 0bd9b849b2 fix problems with updating note in note cache when entities are coming out of order (e.g. sync) 2020-09-03 21:37:06 +02:00
zadam 918e827d91 fix potential null in mime or type in note cache 2020-09-03 17:51:37 +02:00
zadam 42ecc0e15b use just note title in note autocomplete input field 2020-09-03 17:38:11 +02:00
zadam a37fa0cb3f don't use   for attributes since it (duh) prevents line breaking in case of inherited attributes 2020-09-02 23:16:56 +02:00
zadam 647863b489 escape will close the attribute dialog and cancel changes 2020-09-02 16:40:19 +02:00
zadam e8114fcc4f fixes in attr detail positioning 2020-09-02 16:06:35 +02:00
zadam 0745d9ec0b fix attr help tooltip appearing only the second time 2020-09-01 23:47:56 +02:00
zadam 5e75d2380a fix error after confirming mention relation name 2020-09-01 23:43:09 +02:00
zadam 32c88c7481 keyboard shortcuts for focusing the attributes, adding a new label and relation 2020-09-01 23:18:28 +02:00
zadam 0aef99b98e attr detail automatically focuses the name input and allows saving with ctrl+enter. 2020-09-01 22:47:36 +02:00
zadam bf548f9d38 fix Jump To search input restoration 2020-09-01 00:05:19 +02:00
zadam a15f8d7e11 small fixes 2020-08-31 23:13:39 +02:00
zadam 574b71de63 remember last search in Jump To dialog when searching soon after the previous search 2020-08-31 21:00:23 +02:00
zadam 408ed8dbf0 fix "search in fulltext" button on "jump to note" dialog. 2020-08-31 20:46:55 +02:00
zadam 98f1bc51a5 Merge remote-tracking branch 'origin/stable' 2020-08-30 23:53:24 +02:00
zadam 5fd58def11 small refactorings 2020-08-30 23:19:55 +02:00
zadam b793f8cb88 search will also look for type and mime by default 2020-08-30 23:12:49 +02:00
zadam 058edcfe15 fixed promoted attribute display 2020-08-30 22:39:15 +02:00
zadam 5d500de527 performance monitoring on frontend in dev environment 2020-08-30 22:29:38 +02:00
zadam 81207f3d27 updated demo document with scripts adjusted to syncified DB access 2020-08-29 23:33:15 +02:00
zadam 21575d862b attempt to fix consistency issue bug which caused synced note_contents to have NULL content when original is empty string 2020-08-29 23:08:53 +02:00
zadam 9359f05335 fix "edited notes on a day" for deleted notes 2020-08-29 22:22:24 +02:00
zadam 7fb22d41a0 allow disabling authentication for server version, closes #1132 2020-08-29 00:11:50 +02:00
zadam 2823bf3488 disable toggling navigation buttons because of rare performance issues 2020-08-28 23:49:24 +02:00
zadam 172f3689fa optimization of search 2020-08-28 23:20:22 +02:00
zadam 5a8c3f6a2b removed forgotten console.logs 2020-08-28 22:52:57 +02:00
zadam 416b7088c5 fix update/delete queries in SQL console 2020-08-28 22:04:35 +02:00
zadam 3f69a3c572 fix parsing attributes with non-breakable space 2020-08-28 16:00:30 +02:00
zadam 268910ed3b fix positioning of attr detail popup for smaller windows 2020-08-28 15:38:04 +02:00
zadam 8259b4a32c close down dropdown menus on click + smaller tweaks 2020-08-28 14:52:38 +02:00
zadam 9873dd1242 fix creating new note 2020-08-28 14:29:20 +02:00
zadam f4266754d8 release 0.43.4 2020-08-27 23:58:58 +02:00
zadam 30e84321f9 fixes to build 2020-08-27 23:54:02 +02:00
zadam 020a8766c8 Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	src/public/app/widgets/note_tree.js
2020-08-27 23:25:10 +02:00
zadam dc288fb18c Merge remote-tracking branch 'origin/stable' into stable 2020-08-27 23:22:58 +02:00
zadam 26dfa1ffdb activate PDF preview also in server build, fixes #1208 2020-08-27 23:22:36 +02:00
zadam 4cd1a0ee7d fix note cache for out of order synced entities 2020-08-27 22:37:57 +02:00
zadam 355780c595 sync fixes 2020-08-27 22:11:17 +02:00
zadam ef996f3919 bug fixes 2020-08-27 22:03:56 +02:00
zadam 31d85ed8cc fixes and tweaks - readonly bar is smaller and on the right 2020-08-27 14:54:56 +02:00
zadam fbe3995398 fixed tree hotkeys 2020-08-26 22:12:01 +02:00
zadam 6aa61ca306 initializing note tree synchronously 2020-08-26 16:50:16 +02:00
zadam 87161cfe0d fix issues with note tree 2020-08-25 23:25:15 +02:00
zadam 6a3e27eb62 smaller refactorings in note_tree 2020-08-24 23:33:27 +02:00
zadam 1d813c82e4 display attribute help on the attr detail during editing 2020-08-23 23:38:05 +02:00
zadam 46e373e822 "smart" date values can now freely contain whitespaces 2020-08-23 21:53:50 +02:00
zadam a6c79c934c fix global menu button and extra window 2020-08-22 23:07:52 +02:00
zadam ed6181a85e added in-editor help for editing attributes 2020-08-21 23:08:53 +02:00
zadam 60e213433b Merge remote-tracking branch 'origin/stable' 2020-08-20 15:45:57 +02:00
zadam 153de63f4d update note title in link map when note is renamed 2020-08-20 15:45:33 +02:00
zadam 4d4d9f2000 small fixes to saved search 2020-08-20 15:28:28 +02:00
zadam 0b38e24185 fixes to saved search 2020-08-20 15:23:24 +02:00
zadam d037420acb note. prefix also separates fulltext tokens from expression tokens 2020-08-20 13:53:15 +02:00
zadam 20b4b059e3 fix jsdoc 2020-08-20 12:00:57 +02:00
zadam 28ebca1268 Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	package-lock.json
#	package.json
#	src/services/image.js
2020-08-20 11:56:03 +02:00
zadam a89629b3de add fallback when resizing image fails, closes #1190 2020-08-20 11:34:14 +02:00
zadam eec850c11f fix toggle sidebar issues, closes #1196 2020-08-20 11:14:27 +02:00
zadam 52e0f838a9 fulltext now ignores archived notes like it used to in the old implementation 2020-08-20 00:15:08 +02:00
zadam d1f70efdb4 Merge remote-tracking branch 'origin/master' 2020-08-19 23:01:00 +02:00
zadam 5b1e229d7d added note.text + tests 2020-08-19 23:00:51 +02:00
zadam 5c55278c59 attr detail small visual tweaks 2020-08-19 18:05:07 +02:00
zadam 3c224e80ee fix opening links in attr detail 2020-08-19 17:59:55 +02:00
zadam 5741b380f0 fixed script support 2020-08-18 23:32:50 +02:00
zadam 7335844ae3 updated DB schmea 2020-08-18 22:37:23 +02:00
zadam 53c361945b fix setting mime after import + cleanup of old search code 2020-08-18 22:20:47 +02:00
zadam 03d7ee9abb compatibility with existing scripts 2020-08-18 21:32:45 +02:00
zadam 3670fbff49 frontend validation of attribute name + other changes and fixes 2020-08-17 23:54:18 +02:00
zadam f24e27dadd autocollapse notes after period of inactivity + some other changes, #1192 2020-08-17 20:58:34 +02:00
zadam 53b39e2e82 many changes related to #1192:
- use CSS contain wherever possible to reduce subtrees of forced reflows
- reduced dependency between note and note_contents updates which will reduce number of updates to components
- optimization of "many rows" querying
2020-08-16 22:57:48 +02:00
zadam c20577909c simplified and more consistent link handling, also fixes #1191 2020-08-15 22:30:40 +02:00
zadam a87b710626 attribute fixes 2020-08-15 21:24:17 +02:00
zadam 625483a8f2 fixes 2020-08-15 00:06:26 +02:00
zadam 121c819b79 fix sizing of toast since bootstrap 4.5.1 2020-08-14 23:53:37 +02:00
zadam 77a3bdce1f related notes get updated as user types in the attr detail dialog 2020-08-14 23:00:15 +02:00
zadam 827f8b42a0 Merge remote-tracking branch 'origin/stable' 2020-08-14 22:34:17 +02:00
zadam e8d63b5647 add "search in note" to "note actions" menu, #1184 2020-08-14 20:58:19 +02:00
zadam d9c246f8a7 fixes for promoted attribute multiplicity 2020-08-14 00:11:26 +02:00
zadam f6f9f0d2c0 ability to remove attribute with mouse + other tweaks 2020-08-13 23:23:57 +02:00
zadam 47a9516ada Merge remote-tracking branch 'origin/stable' 2020-08-13 00:00:05 +02:00
zadam bd8b83898f Merge remote-tracking branch 'origin/stable' into stable 2020-08-12 23:59:42 +02:00
zadam 97109efb6c fix attribute cache invalidation 2020-08-12 23:59:33 +02:00
zadam b4d9fdaeda fix attribute cache invalidation 2020-08-12 23:58:32 +02:00
zadam 1810116a34 attribute fixes 2020-08-12 23:39:05 +02:00
Jody 3e89855aa3
Add web app manifest (#1174)
* Add web app manifest, link to new manifest on mobile template.

* Remove duplicate manifest entry.
2020-08-12 21:39:12 +02:00
zadam eaac65142f tweaks in attr list sizing 2020-08-12 21:36:43 +02:00
zadam ae909d1079 fix saving & refreshing attributes across compoments 2020-08-12 00:02:19 +02:00
zadam 935e5de493 small fixes related to inherited attributes 2020-08-11 22:52:17 +02:00
zadam 8d0df6ddb9 Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	db/demo.zip
#	src/services/notes.js
#	src/services/request.js
2020-08-10 23:45:17 +02:00
zadam 4e8d1dac67 fixes for rendering PDF previews e.g. in include note 2020-08-10 23:39:17 +02:00
zadam 7779fd1dfe synchronize the removal of the selection in cuttonote to make it more predictable 2020-08-10 22:42:57 +02:00
zadam 960d7dede3 add scrolling margins, #1181 2020-08-09 23:20:57 +02:00
zadam e663d7da1b updated schema for entity_changes table 2020-08-09 22:44:53 +02:00
zadam 02cc52af66 small improvements and fixes 2020-08-06 23:55:17 +02:00
zadam f60af1f05e small improvements and fixes 2020-08-06 00:06:42 +02:00
zadam 224fbdc8cd small improvements to text preview in file notes 2020-08-04 22:06:25 +02:00
zadam 8561201abc invalidate note complement cache quickly after load 2020-08-04 21:57:08 +02:00
zadam 3c1a809276 external links should open only in new window, not in the original window, closes #1171 2020-08-04 20:42:32 +02:00
zadam 782127dd91 fix noproxy handling for image downloading 2020-08-03 23:33:44 +02:00
zadam 7900622f38 refactored "sync" table to "entity_changes" - more changes 2020-08-02 23:43:39 +02:00
zadam 864271d5ef refactored "sync" table to "entity_changes" 2020-08-02 23:27:48 +02:00
zadam 5a5ea4f474 fix filling sync table after demo document import 2020-08-02 22:53:57 +02:00
zadam 749791f6d1 fixed CSP after upgrade to helmet 4 2020-08-02 22:26:02 +02:00
zadam f4a4e746bf Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	libraries/ckeditor/ckeditor.js.map
#	package.json
#	src/routes/api/login.js
#	src/routes/api/sync.js
#	src/routes/index.js
#	src/services/app_info.js
#	src/services/sync.js
2020-08-02 20:41:22 +02:00
zadam 47a22f6e8d release 0.43.3 2020-07-31 23:34:05 +02:00
zadam 17d7ff3ff1 small improvements to sync table handling 2020-07-31 00:08:01 +02:00
zadam 3582013a33 import of initial demo document sets sync.isSynced incorrectly to always 0, #1163 2020-07-31 00:07:38 +02:00
zadam 95bbdb3b6b CKEditor 21 2020-07-29 23:34:49 +02:00
zadam e1dd933ec0 Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	src/services/options_init.js
2020-07-28 23:50:54 +02:00
zadam 8a57960c6e tweaks in sync timeout handling 2020-07-28 23:29:12 +02:00
zadam a7b62b30cb fix image resizing after save/update/import 2020-07-28 00:26:47 +02:00
zadam c9cbc2db02 import fixes 2020-07-27 23:40:14 +02:00
zadam c92526372c Merge remote-tracking branch 'origin/stable' 2020-07-26 23:47:31 +02:00
zadam 5f4a84d967 fix extracting base64 inline images from HTML, fixes #1159 2020-07-26 23:47:06 +02:00
zadam ef59810f89 Merge remote-tracking branch 'origin/stable' 2020-07-26 22:58:54 +02:00
zadam 099e90ed64 fix extracting base64 inline images from HTML, fixes #1159 2020-07-26 22:58:22 +02:00
zadam 9b15437ff6 attr detail sizing 2020-07-26 00:09:53 +02:00
zadam a3a2f1a2b4 autocompletes for attribute detail 2020-07-26 00:04:34 +02:00
zadam 3261fea67f added promotedAttributesExpanded option 2020-07-25 23:32:46 +02:00
zadam b19589033d individual panes of attribute list are now opened correctly 2020-07-25 23:24:48 +02:00
zadam 2217c5a3e0 promoted attributes are now part of attr list and also responsive 2020-07-25 00:06:49 +02:00
zadam b60efbbf5a Merge remote-tracking branch 'origin/master' 2020-07-24 23:14:38 +02:00
zadam e9bfe4521e bug fixes 2020-07-24 23:14:31 +02:00
MeIchthys 79d9d79055
Minor gramatical changes (#1162)
* Minor gramatical change

change "delete also" to "also delete"

* Minor gramatical change

change "once more" to "confirmation"

* Minor gramatical changes

add "a" before some nouns.

* Minor gramatical/spelling fixes

* Minor gramatical changes

* Convert to singular action descriptions

change "changes" to "change" 
change "switches" to "switch"
change "copies" to "copy" 
etc.

* Minor gramatical changes
2020-07-24 22:03:39 +02:00
zadam a36022d8c1 fixes 2020-07-24 00:02:15 +02:00
zadam 0eb77e43e2 full text search uses in-memory search even for unprotected notes and preprocesses content with tag stripping 2020-07-23 23:38:38 +02:00
zadam e1d4be814f toggle to expand/collapse attr list is saved and propagated across tabs 2020-07-23 22:31:06 +02:00
zadam aa4a645670 adding a button to the detail to explicitly save changes. 2020-07-23 00:19:50 +02:00
zadam 2c9565b4b3 fixes to update from detail to editor 2020-07-22 23:58:01 +02:00
zadam c5cc6b91c1 label and relation definition are now displayed without prefixes in the attr detail view 2020-07-22 23:42:58 +02:00
zadam 3109233d4f better reporting for search parsing errors 2020-07-22 22:52:15 +02:00
zadam 60e8bd98b9 improvements to lexer and its tests 2020-07-21 23:42:59 +02:00
zadam 32ecb43b5c search refactoring 2020-07-21 00:01:07 +02:00
zadam f03e4bc7d7 detect attempts to compare between labels (only with constants is possible) 2020-07-20 23:27:30 +02:00
zadam 4e5ddaf7d1 fix inQuotes + tests 2020-07-19 23:23:48 +02:00
zadam 35469f6f2d lexer now marks "in quotes" tokens 2020-07-19 23:19:45 +02:00
zadam 4c7b1d6543 shortcut negation syntax 2020-07-19 15:25:24 +02:00
zadam df69b1d8dd attr detail handles label/relation definition updates 2020-07-18 23:45:28 +02:00
zadam 9d46c7253b fixes in saving 2020-07-18 00:20:24 +02:00
zadam a94ae81c30 split out attribute_editor widget, WIP 2020-07-17 23:55:59 +02:00
zadam 9f527f0330 split out attribute_editor widget, WIP 2020-07-17 00:08:28 +02:00
zadam 68d8b1c8a9 rename note_attributes widget to attribute_list 2020-07-16 23:12:10 +02:00
zadam 3d324b954d fix checking affected notes when modified attribute's owning note is not loaded into cache, #803 2020-07-15 22:36:27 +02:00
zadam f028b88cce Merge remote-tracking branch 'origin/stable'
# Conflicts:
#	package.json
#	src/routes/api/clipper.js
2020-07-15 00:11:26 +02:00
zadam 64dc522b27 infrastructure for editing attribute definitions 2020-07-15 00:09:37 +02:00
zadam 3d02f82c77 add label/relation from menu 2020-07-14 23:29:37 +02:00
zadam 528418aecb parsing and setting isInheritable flag 2020-07-13 23:27:23 +02:00
zadam 5dd73562da add new attr wip 2020-07-13 00:27:21 +02:00
zadam 62cacf85ed setting the relation target note 2020-07-13 00:15:00 +02:00
zadam 443f389d73 release 0.43.2 2020-07-11 23:58:59 +02:00
zadam 08edc521e4 fix visibility of hyper-link in repeatedly opened dialog 2020-07-11 23:50:38 +02:00
zadam f54f6d09b0 fix declaring global variables on the setup page, closes #1071 2020-07-11 23:19:24 +02:00
zadam 3219441fdf fallback for missing parsed title, closes trilium-web-clipper/issues/16 2020-07-11 23:05:28 +02:00
zadam 1c97310e92 correctly parsing the click position 2020-07-10 22:39:16 +02:00
zadam 0ecb2f3662 WIP 2020-07-09 23:59:27 +02:00
zadam 055db32510 removed tar import 2020-07-09 21:46:33 +02:00
zadam 054420225f added experimental "save" button 2020-07-09 00:07:14 +02:00
zadam 448a3254a3 small tweaks 2020-07-08 23:51:47 +02:00
zadam 50b976990c click on inherited attr will also bring up the attribute detail widget 2020-07-05 23:53:55 +02:00
zadam 9f2545395d better value matching regex 2020-07-04 11:14:11 +02:00
zadam 67bffbf30b consistency checks will now fix incorrectly named attributes 2020-07-04 11:02:05 +02:00
zadam 51dae378a3 more cleanup 2020-07-04 10:29:17 +02:00
zadam a0b3bc858d removed attributes dialog 2020-07-04 10:18:01 +02:00
zadam 2e24111c2b wip 2020-07-04 00:40:41 +02:00
zadam 69d529ada1 wip 2020-07-04 00:20:23 +02:00
zadam bfa69a3dc3 closing of attr detail 2020-07-03 22:27:45 +02:00
zadam dee4083bf3 improve request logging 2020-07-02 23:15:37 +02:00
zadam 18749092ff sql_init/migration fixes 2020-07-02 22:57:17 +02:00
zadam c4cc48dfc9 fixed initial demo import 2020-07-02 21:08:18 +02:00
zadam ef847b9904 fix search results 2020-07-02 20:19:09 +02:00
zadam 3e189d5c10 fixes 2020-07-01 23:50:33 +02:00
zadam 46d3160da4 removed detail.css, added to individual type widgets 2020-07-01 23:35:00 +02:00
zadam 78a2c1753e consistency checks fixes 2020-07-01 22:42:59 +02:00
zadam f0b608ddec non-intrusive logging of sync errors 2020-07-01 21:33:52 +02:00
zadam bf073690e0 fixing promoted attributes 2020-07-01 00:02:13 +02:00
zadam 5e18e7dc67 html sanitize imported notes, #1137 2020-06-30 23:37:06 +02:00
zadam 51f094f87f image handling consistency fixes 2020-06-28 23:10:45 +02:00
zadam 262a4fa3c7 removed image minification using imagemin because of constant platform related issues 2020-06-28 22:36:42 +02:00
zadam c778e87683 wip 2020-06-27 00:40:35 +02:00
zadam dd62b306fd refactored attr detail into separate widget 2020-06-26 22:17:39 +02:00
zadam 1f05638609 attribute progress 2020-06-25 23:56:06 +02:00
zadam 92e49214c7 more attribute mockups (inherited attributes) 2020-06-24 23:56:39 +02:00
zadam 9615e25a67 fix merge problems 2020-06-24 22:29:53 +02:00
zadam a574fce13f Merge remote-tracking branch 'origin/stable' into syncification
# Conflicts:
#	package-lock.json
#	package.json
#	src/routes/custom.js
#	src/services/import/single.js
2020-06-24 22:08:31 +02:00
zadam 238df0fb40 fix SVG single file import as image and not as file, closes #1114 2020-06-24 21:47:50 +02:00
zadam 89356918f1 fix unescaped HTML in the tree node title, closes #1127 2020-06-24 21:07:55 +02:00
zadam 99d66ea89f mockup of hidable attributes 2020-06-24 00:02:54 +02:00
zadam c78ca4c9db fixed triggers to sort children of notes with "sorted" label, closes #1126 2020-06-23 22:03:01 +02:00
zadam b245b249d3 got rid of simple-node-logger in favor of simple custom logger 2020-06-23 13:38:27 +02:00
zadam a0395e9866 release 0.43.1 2020-06-23 10:11:17 +02:00
zadam 89aa4fbc73 electron 9.0.5 2020-06-23 10:10:59 +02:00
zadam 74a7802088 fix custom resource handler, closes #1125 2020-06-22 23:13:53 +02:00
zadam a89b6711d1 refactored code to not depend on external elements, #1120 2020-06-22 22:28:45 +02:00
zadam b2549b2834 Merge remote-tracking branch 'origin/stable' into stable 2020-06-22 22:00:22 +02:00
zadam 959c4cbe64 removed icon tooltip again 2020-06-22 22:00:08 +02:00
Shon Ramamurthy d03d3603d2
Add optional support for note title tooltips under note tree widget (#1120)
* Add support for note title tooltips under note tree widget

This change adds an option to set the 'tooltip' configuration of the
Fancytree component. This allows tooltips containing the note title to
be displayed when a hover is performed over a note title in the tree
widget.

* Revert DB Upgrade

The db upgrade is reverted as this is not required for options.

* Simplify boolean option comparison

With this change, the existing 'is(key)' method is used to perform
tooltip enable option boolean comparison.

* Display tooltip only on center-pane overlap - Experimental

With this change, a straight-forward method to detect HTML element
overlap has been identified (source:
https://gist.github.com/jtsternberg/c272d7de5b967cec2d3d). It is now
possible to detect whether the center-pane element overlaps with the
Fancytree node title-bar. Using this approach we now have a rough
implementation which only displays a note-title tooltip when there is a
center-pane overlap.

At this stage, this change is experimental and the following needs to be
further addressed,
 - Register the 'mouseenter' event handler in an appropriate place. The
   current placement of this event handler is only for testing.
 - This change is now enabled by default. It needs to be seen whether it
   would still make sense to disable it via an option.

* Remove option to set tooltip

With this change, the tooltip options menu item has been removed as it
becomes relevant to have this feature enabled by default.

* Revert further changes related to the options menu

Further changes are rolled back which was earlier related to the tooltip
options setting. Some of these were missed in the previous commit.

* Remove debug logging

Remove debug logging and unnecessary line breaks.

* Move note-title tooltip handler under note_tree.js

With this change, we move the definition for the note-title tooltip
handler inside 'note_tree.js'. Registration is done inside
'side_pane_toggles.js' as we would need the handler to detect the
'center-pane' element first before detecting collisions.
2020-06-22 21:58:58 +02:00
zadam 22302e8200 attrs WIP 2020-06-21 23:41:51 +02:00
zadam f117ae4915 fix sending sync rows via WebSocket after transaction is committed 2020-06-21 13:44:47 +02:00
zadam c34a9b96e4 further simplification - now using better-sqlite3 native transaction API 2020-06-21 13:33:56 +02:00
zadam f0acfaf147 simplification of transaction handling 2020-06-21 13:15:36 +02:00
zadam e1c2573778 add tooltip to fancytree node icon, #1120 2020-06-21 12:47:24 +02:00