Commit graph

1146 commits

Author SHA1 Message Date
azivner 2b64cbce2c added dark theme (to have same set of themes as before) 2019-01-13 23:25:30 +01:00
azivner 2797c942ab changes to options dialog to allow configuring font size, closes #326 2019-01-13 22:03:06 +01:00
azivner f1c3278874 store font size in options #326 2019-01-13 21:27:32 +01:00
azivner 424c22dcde split UI to 3 different font sizes #326 2019-01-13 21:16:51 +01:00
azivner 5c223dfd12 all fonts are relative so it's easier to scale them properly 2019-01-13 21:04:08 +01:00
azivner 6a3e7a5a8e generate css classes for each mime type, #328 2019-01-13 20:14:33 +01:00
azivner f88cdac000 fixes for black theme for relation map and code notes 2019-01-13 20:03:28 +01:00
azivner eeead90f32 improved theme support using CSS variables, #328 2019-01-13 18:57:46 +01:00
azivner b607857409 fix weight tracker demo to use relations instead of hardcoded noteId, fixes #329 2019-01-13 12:21:17 +01:00
azivner 9268f88bc3 frontend scripts now have startNote, currentNote and targetNote as NoteShort entities which e.g. provides easy access to relations/labels 2019-01-13 12:16:05 +01:00
azivner f7f0560a9f simplification of script bundles on backend 2019-01-13 11:56:50 +01:00
azivner 3d8905207e fixed export with non-ASCII characters in note title, fixes #285, #331 2019-01-13 10:22:17 +01:00
azivner dbc312010b update fancytree to 2.30.2 2019-01-13 09:24:00 +01:00
azivner b115a7cf19 delete note through its entity instead of manually with SQL, closes #303 2019-01-13 00:24:51 +01:00
azivner 581b1fdaa5 trigger runOnAttributeChange, runOnNoteChange on entity deletions as well 2019-01-11 23:43:22 +01:00
azivner 3c19a712c0 active protected state button has darker background and is disabled 2019-01-11 23:29:56 +01:00
azivner cc27f16088 store iv directly in the respective columns 2019-01-11 23:04:51 +01:00
azivner dffdb82288 after creating new note, it is focused and now also selected so renaming is super easy, #318 2019-01-10 22:46:08 +01:00
azivner 2b32addade release 0.27.4 2019-01-10 21:31:30 +01:00
azivner 0b251530fa open recent notes autocomplete by focus so it is then closed with blur, fixes #272 2019-01-10 21:04:06 +01:00
azivner f5b933149a Merge remote-tracking branch 'origin/master' 2019-01-10 19:53:47 +01:00
azivner 48bbfb8bdb fix activating note by noteId when hoisting, fixes #320 2019-01-10 19:53:42 +01:00
zadam 889971c4d6
Merge pull request #312 from perissology/evernote-import
Fixes evernote import errors
2019-01-09 23:41:17 +01:00
azivner 0722494d41 fix saving JSON note with invalid JSON (previously in such a case content was not updated), fixes #307 2019-01-09 23:36:17 +01:00
azivner 4b977a3306 setup keyboard shortcuts on the setup page as well, closes #267 2019-01-09 22:08:24 +01:00
azivner 3ff3021acd shortcuts for mac should use cmd instead of ctrl, closes #290 2019-01-09 21:42:16 +01:00
azivner 99e56a9c42 make sure to save the search note before refreshing the tree 2019-01-09 19:54:32 +01:00
azivner 77279dfe16 fix anonymization 2019-01-09 19:49:02 +01:00
perissology 93f8050454 use resizedImage if image optimization fails 2019-01-09 06:29:49 -08:00
perissology 31cfede7a7 enex import: attempt to get correct mime from Buffer 2019-01-09 06:29:13 -08:00
azivner c8ec86e537 allow refreshing saved note, closes #304 2019-01-08 23:32:03 +01:00
azivner 05aee884b6 fix saving search note content #304 2019-01-08 22:48:53 +01:00
azivner 012ba9e060 don't attempt to run protected notes outside of protected session, fixes #279 2019-01-08 21:21:49 +01:00
azivner 8e8fd88857 process only whitelisted mime types as an image, fixes #288 2019-01-08 20:45:34 +01:00
azivner 523ccdad6b reload note cache after import, closes #293 2019-01-08 20:19:41 +01:00
azivner ded3f605be fix almost invisible buttons on options page, closes #297 2019-01-08 19:47:35 +01:00
azivner 030d12a465 stretch sync login token validity to 5 minutes #277 2019-01-07 23:29:56 +01:00
azivner 81b849898c stretch body to full window width, fixes #276 2019-01-07 23:17:12 +01:00
azivner 3930a02123 tree now uses standard font size which effectively makes it a bit larger 2019-01-06 20:59:19 +01:00
azivner 3112de105e fancytree selection/hover colors are shades of gray, border is rounded 2019-01-06 18:58:12 +01:00
azivner 3b8d7b8fba release 0.27.3 2019-01-05 22:48:11 +01:00
azivner fd39d6b3a9 using btn-secondary instead of btn-default since that doesn't exist in BS4 2019-01-05 21:51:27 +01:00
azivner a103886ea5 responsive setup page 2019-01-05 21:49:40 +01:00
azivner 373408e401 fix Branch reference to parent note id after parent change 2019-01-05 19:25:22 +01:00
azivner db44c1d8e6 border color tweaks 2019-01-05 11:49:17 +01:00
azivner 95a34c9e2d small tweaks of icon alignment 2019-01-05 11:41:09 +01:00
azivner 6ce401f260 release 0.27.2-beta 2019-01-04 23:33:32 +01:00
azivner 927415838c using enhanceTitle event instead of renderNode per https://github.com/mar10/fancytree/issues/927 2019-01-04 20:18:07 +01:00
azivner d72fcefdc7 fix sync of deleted notes 2019-01-04 20:10:16 +01:00
azivner 0be173a8f7 lower lastSyncedPull if server max sync ID is lower 2019-01-04 18:58:46 +01:00
azivner c3913a8735 updating the note cache after sync 2019-01-03 23:27:10 +01:00
azivner e2dfe1b6de fixed setup page issues which caused wrong choice to be used in the wizard 2019-01-03 22:32:36 +01:00
azivner fec3e47eb8 serialize binary note content into base64, incremented sync version 2019-01-03 22:13:58 +01:00
azivner d72efd2450 removed unnecessary logging of data dir which is now logged as part of app info 2019-01-03 21:46:32 +01:00
azivner ef1c840aa7 tiny fixes 2019-01-02 22:36:06 +01:00
azivner 1581464d8c fix layout - promoted attributes should never grow beyond its content 2019-01-02 20:21:34 +01:00
azivner 9de29584a4 added data directory to options -> about 2019-01-02 20:08:41 +01:00
azivner 9e2e6fb50c fixed glitch where "unhoist" button disappears after renaming the hoisted note 2019-01-02 19:26:01 +01:00
azivner c85979b66b it should not be possible to add note after hoisted note 2019-01-02 18:59:08 +01:00
azivner ecdc5865a6 release 0.27.1-beta 2019-01-01 20:54:23 +01:00
azivner 1771ddb787 responsive promoted attributes view and attribute overview to make sure note content is always visible. Fixes #262 2019-01-01 20:53:18 +01:00
azivner 3ab657fe46 created concept of "detail loaded listeners" which allow scripts to execute some action after the note detail has been loaded 2019-01-01 19:32:34 +01:00
azivner 8785dae753 force reload fancytree node when child is not found 2019-01-01 18:27:36 +01:00
azivner 2f1c5b29d4 update eslint 2019-01-01 18:06:52 +01:00
azivner 7135349a10 allow deleting protected notes outside of protected session 2019-01-01 17:04:21 +01:00
azivner 66c639d5e3 frontend API addition to protect current note 2019-01-01 15:39:13 +01:00
azivner 6704b755d8 attribute overview shows only owned attributes 2019-01-01 15:29:58 +01:00
azivner cf96baad48 release 0.27.0-beta 2018-12-30 22:38:11 +01:00
azivner 32220476aa better behavior on default loading detail / switching between tree and detail 2018-12-30 22:36:39 +01:00
azivner 86bc84a2ad better detection of float parameter in label filters, fixes #265 2018-12-30 22:09:14 +01:00
azivner de9e0c7929 lazy loading icon for both mobile and desktop 2018-12-30 21:13:35 +01:00
azivner 6963e662ef fix layout on chrome 2018-12-30 19:15:44 +01:00
azivner 7127822e8f placeholder for empty note content 2018-12-30 19:02:42 +01:00
azivner 0a35abf68f refresh note detail view after attribute save (from full dialog, not promoted notes), closes #261 2018-12-30 15:21:53 +01:00
azivner 3f8e8f8561 fix saving branch prefix, fixes #260 2018-12-29 10:35:44 +01:00
azivner e02eca87b0 dont toggle panes note on the first load 2018-12-29 10:19:28 +01:00
azivner 2f680c4326 tweaks, fixes, refactorings, creating new note from detail, not tree 2018-12-29 10:04:59 +01:00
azivner 0b4a44a403 layout tweaks etc. 2018-12-29 09:13:52 +01:00
azivner 89299f865c api method to detect navigation away from current page 2018-12-29 08:40:35 +01:00
azivner f6db9a50ab "switch to desktop version" button 2018-12-29 00:09:16 +01:00
azivner 78d9fac1e6 global actions context menu, logout 2018-12-28 23:57:11 +01:00
azivner 458ed1faff mobile detection 2018-12-28 23:47:06 +01:00
azivner 0657815de5 Merge branch 'master' into mobile 2018-12-28 22:31:51 +01:00
azivner a608832681 change to relation map note type doesn't trigger content change, related issue #258 2018-12-28 22:31:06 +01:00
azivner d2f72529b3 context menu with delete 2018-12-28 22:05:04 +01:00
azivner 28185af158 fix layout/scrolling issues in the tree 2018-12-28 20:36:18 +01:00
azivner 7aacd01ad7 separate css layout file for mobile and desktop 2018-12-28 19:47:02 +01:00
azivner 74cc34696e unifying expander icons in both desktop and mobile 2018-12-27 22:38:19 +01:00
azivner d4baac0bb5 mobile fixes 2018-12-27 22:36:11 +01:00
azivner 35bc1421f1 cannot edit note title when not in protected session 2018-12-27 20:22:33 +01:00
azivner d4db265fd9 non-modal protected session password form is now done separately as a kind of detail component. Also reworked branch prefix dialog input 2018-12-27 20:04:59 +01:00
azivner 1dad919de9 working protected session in mobile 2018-12-25 10:58:40 +01:00
azivner 246dfbdcb4 fix attribute loading for mobile 2018-12-24 23:08:43 +01:00
azivner f8d32d64f5 content scrolling 2018-12-24 22:39:17 +01:00
azivner 5dea271d6f basic responsive layout 2018-12-24 20:38:38 +01:00
azivner eeb62a6cf2 fix keyboard shortcut setup on mobile 2018-12-24 18:39:31 +01:00
azivner 35cf8026b0 activating note opens dialog with its detail 2018-12-24 12:49:27 +01:00
azivner e0028ab6f1 mobile frontend WIP, removing extra dependencies 2018-12-24 10:10:36 +01:00
azivner a32645cdeb fix scrolling to the top of detail after switching note 2018-12-24 09:47:00 +01:00
azivner 812f9f6fca initial work on mobile frontend 2018-12-23 22:28:57 +01:00
azivner f7a670ec24 responsive login page 2018-12-23 11:06:11 +01:00
azivner d0d24f0f4a unify ejs indentation to 4 spaces 2018-12-23 10:57:40 +01:00
azivner 042f9b7f2d fix positioning of protected session password dialog 2018-12-22 23:54:06 +01:00
azivner 67019b3d6c added attributes to frontend entity model 2018-12-22 22:16:32 +01:00
azivner 1db6e59077 tooltip related changes for scripting support 2018-12-22 20:57:09 +01:00
azivner 5e4770875e upgrade to bootstrap 4.2.1 2018-12-22 10:33:50 +01:00
azivner e9a77f3f16 image sync fixes and 4.0.0 electron 2018-12-22 09:54:09 +01:00
azivner cbec85f295 release 0.26.1 2018-12-20 19:54:09 +01:00
azivner 14bd5d301d fix broken image sync 2018-12-20 19:51:03 +01:00
azivner 321d0e8d64 explicit error handler for connection errors 2018-12-19 21:29:35 +01:00
azivner 84e1512031 added robots.txt to public root 2018-12-19 20:56:10 +01:00
azivner b036852b2d release 0.26.0-beta 2018-12-18 22:49:48 +01:00
azivner af8f5b11b8 better error handling in request 2018-12-18 20:39:56 +01:00
azivner 8ca943f87b fix hoistedNoteId option init 2018-12-18 20:34:24 +01:00
azivner 35cc9da626 note about system proxy in the settings 2018-12-17 22:58:53 +01:00
azivner 44cc86a1a5 added support for explicit proxy 2018-12-17 22:54:54 +01:00
azivner 7c3bbfd45e using http service for sync setup as well, removed request(-promise) dependency 2018-12-17 22:12:26 +01:00
azivner a1f939e3a0 refactoring of network code into separate service 2018-12-17 21:34:02 +01:00
azivner 4ca7886090 uniform requests through electron's net and node http/https to support different proxy setups 2018-12-16 23:30:53 +01:00
azivner b942163748 sync with electron net API (for system proxy support) - working, but WIP 2018-12-16 21:19:12 +01:00
azivner 5b6d15acb3 note path might not always include root explicitly 2018-12-16 10:41:47 +01:00
azivner 841420360e quick unhoist link/button 2018-12-15 20:29:08 +01:00
azivner a680bb4612 unhoist note when activating note outside of the hoisted note subtree 2018-12-13 23:28:48 +01:00
azivner f763e13996 fix searching without hoisting 2018-12-13 21:43:13 +01:00
azivner e73e1262ae Merge branch 'stable' into hoist 2018-12-13 21:18:44 +01:00
azivner b774d56cf7 note titles in jump to note start from hoisted note instead of root 2018-12-13 21:18:35 +01:00
azivner bae55f2e8b release 0.25.2 2018-12-12 21:30:06 +01:00
azivner 6c16cdb011 recent notes and jump to note are filtered by hoisted note 2018-12-12 21:28:38 +01:00
azivner 86fcbb0354 keyboard shortcut for hoisting, hoisted note is always expanded and has arrow icon 2018-12-12 20:54:58 +01:00
azivner 17d030e800 continuing work on hoisting notes 2018-12-12 20:39:56 +01:00
azivner 6fbf28b30d hoisting notes WIP 2018-12-11 21:53:56 +01:00
azivner 8171b68b18 electron 4.0 beta 9, context menu padding 2018-12-11 19:50:31 +01:00
azivner d30e3a4052 bind standard shortcuts on both command and ctrl modifiers, #254 2018-12-10 20:44:50 +01:00
azivner 87aab7ac5b fix attributes leaking into imported notes, #241 2018-12-10 20:29:49 +01:00
azivner a0933c7f10 release 0.25.1-beta 2018-12-09 21:22:33 +01:00
azivner 492adc2909 fix broken drag & drop, closes 252 2018-12-09 21:18:53 +01:00
azivner 90a52f57b5 recent notes route accepts slash in the param (problem with nginx etc.) 2018-12-09 14:30:19 +01:00
azivner a1469854e8 Allow Trilium to work from non-root document paths, closes #253 2018-12-09 13:37:28 +01:00
azivner 270d63b265 deactivated cut to note functionality in ckeditor build 2018-12-08 10:54:10 +01:00
azivner 1d004be91d ckeditor upgrade to 11.2.0 2018-12-08 09:48:36 +01:00
azivner b8a74c727e copy paste, undo, redo, select all shortcuts supported on mac build 2018-12-02 14:04:53 +01:00
azivner cfa926602a release 0.25.0-beta 2018-12-02 00:30:07 +01:00
zadam 350cb52c07
Merge pull request #249 from nicoulaj/master
fix #248: crossorigin attribute is needed when including with type="module"
2018-12-02 00:27:59 +01:00
azivner af195beb7e initial mac support + some other build changes 2018-12-02 00:26:45 +01:00
Julien Nicoulaud cb00d42546
fix #248: crossorigin attribute is needed when including with type="module"
For more info, see:
 * https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attributes
 * https://jakearchibald.com/2017/es-modules-in-browsers
2018-12-01 23:33:23 +01:00
azivner ee0b0c3dfe minor export fixes 2018-11-30 22:43:03 +01:00
azivner ddcb4a0e10 added another mime type for JS 2018-11-30 22:28:30 +01:00
azivner 8cbb29ee25 default location for data dir is now .local for linux and Roaming for windows 2018-11-30 19:56:20 +01:00
azivner ba7c8e77e5 add support for number precision in promoted attributes, closes #245 2018-11-30 17:36:41 +01:00
azivner 4577b03fc9 promoted attributes now use saved indicator (little check) instead of notification 2018-11-30 17:18:19 +01:00
azivner 72d83aa85e fix note cache - note entity after initialization doesn't contain ciphertext so decryption is not necessary 2018-11-30 15:51:55 +01:00
azivner 8ee80cb5f1 using dashes instead of underscores in header names to avoid the fact that nginx by default drops all headers with underscore in the header name 2018-11-30 15:49:35 +01:00
azivner 7775376b33 disable "cut to note" feature because of issues with CKEditor 2018-11-30 11:37:33 +01:00
azivner 9f64e994dc fix minor UI issue causing children overview not being decrypted right after entering protected session 2018-11-30 10:33:40 +01:00
azivner ee1e4fc710 added "update pojo" stage in entity saving to avoid encrypting data on protected note directly on the entity 2018-11-30 10:20:03 +01:00
azivner 6c51696d1a also don't show "No results" for attr autocomplete 2018-11-27 19:43:34 +01:00
azivner 27787c8f37 attribute name and value autocompletes should not have autoselect since it's OK to enter value not in the autocomplete 2018-11-27 19:40:19 +01:00
azivner a616739805 release 0.24.5 2018-11-27 15:34:15 +01:00
azivner bea28de6a0 tab on autocomplete doesn't select first item, closes #243 2018-11-27 13:13:06 +01:00
azivner 4e198ca2f0 storing trilium version into export metadata 2018-11-27 10:31:55 +01:00
azivner 76fc49f037 allow import of single HTML file too 2018-11-26 23:47:02 +01:00
azivner 139c99440f export stores note position and some other fixes 2018-11-26 23:39:43 +01:00
azivner 137b9dfa0b fix storing attributes and relinking noteIds 2018-11-26 23:19:19 +01:00
azivner 5f0fdd15eb fix adding sync entities during import 2018-11-26 22:37:59 +01:00
azivner 61e1427b83 fix matching of "b" in the note autcomplete highlighter 2018-11-26 22:35:19 +01:00
azivner b3aa0ba47c entity events are not triggered on imported entities 2018-11-26 22:27:57 +01:00
azivner 56e2b44c25 fix import 2018-11-26 22:22:16 +01:00
azivner 4d5a17583f happy path tar import now works 2018-11-26 20:30:43 +01:00
azivner 71eda5aa3d import tar archive WIP 2018-11-26 14:47:46 +01:00
azivner 0711ea8dc8 filter out links and relations which are outside of the export 2018-11-25 22:38:09 +01:00
azivner be206872d1 changed export model to single metadata file per exported .tar 2018-11-25 22:09:52 +01:00
azivner fcf3fe8dcd tar export can now solve naming conflict 2018-11-25 15:17:28 +01:00
azivner 62dbd4062a on/off button for entering/leaving protected session has been changed to literal buttons 2018-11-25 14:12:33 +01:00
azivner 196e8b4380 extra icons 2018-11-25 14:05:54 +01:00
azivner 551e1255ff export WIP + some unrelated changes 2018-11-25 10:26:45 +01:00
azivner e09b61d1ac single file export working, tar WIP 2018-11-24 20:58:38 +01:00
azivner ee23bcc783 unified export dialog, WIP 2018-11-24 14:44:56 +01:00
azivner 3e351bd8d3 better positioning of nonmodal protected session dialog 2018-11-22 21:24:47 +01:00
azivner 0d3bc22d73 fix z-index of notification 2018-11-22 21:19:12 +01:00
azivner d82898421e less obtrusive saved indicator, fixes #122 2018-11-22 20:25:49 +01:00
azivner 1db2f0c2c5 improved notifications, now with animations, in center and show up properly in the dialogs 2018-11-22 16:08:02 +01:00
azivner 6cd8a2203e create app icon only for electron build 2018-11-22 00:24:33 +01:00
azivner 08e062ab34 release 0.24.4-beta 2018-11-21 23:47:09 +01:00
azivner 3a06493459 partial workaround for the broken in page search (next & previous don't work, but at least highlighting works) 2018-11-21 23:39:19 +01:00
azivner 8159564885 fix .desktop + allow to turn this feature off 2018-11-21 11:19:33 +01:00
azivner 8ce3c1a480 generate local .desktop file so it shows among apps in linux desktop environments 2018-11-21 11:01:03 +01:00
azivner dbc93f4a79 mitigations for tooltip flickering 2018-11-20 23:50:19 +01:00
azivner 92ffe321aa smaller context menu 2018-11-20 22:55:07 +01:00
azivner 6cb7d0098e changed layout a little bit to fix broken children overview in the electron/chrome 2018-11-20 22:49:10 +01:00
azivner bdcb4361b2 simplification of note autocomplete result ordering by depth #240 2018-11-20 22:22:26 +01:00
azivner 15366d37d7 ordering results in autocomplete based on depth, closes #240 2018-11-20 21:22:20 +01:00
azivner acd001501b release 0.24.3-beta 2018-11-20 13:01:41 +01:00
azivner 0019865807 disabling broken in page search 2018-11-20 12:54:03 +01:00
azivner 137ffcc4e3 enable line wrap for code editor 2018-11-20 10:49:03 +01:00
azivner 585398ad5c fix bug when saving non-text notes 2018-11-19 23:11:36 +01:00
azivner 50401954d1 disable cache for attribute name autocomplete 2018-11-19 22:17:08 +01:00
azivner 32a9df8489 fixes (and refactoring) for "empty attribute name" check 2018-11-19 22:06:51 +01:00
azivner 5bf5d1cac4 attribute dialog doesn't allow to (attempt to) save relation without target note 2018-11-19 21:58:52 +01:00
azivner 9c834229b9 release 0.24.2-beta 2018-11-19 17:17:08 +01:00
azivner f20ab45576 fix absolute image paths to relative paths as part of parsing links 2018-11-19 15:00:49 +01:00