Commit Graph

726 Commits (967654aeb4162bdc1b28c8a3b3af750187c9e3c4)

Author SHA1 Message Date
defclass 0eff6751cd refacotr(helper): remove frontend.helper 2020-12-23 00:04:05 +08:00
defclass f837d391a0 refactor(frontend): remove utils 2020-12-23 00:04:05 +08:00
defclass 4410ae7147 refactor(db): get-config reset-config! 2020-12-23 00:04:05 +08:00
Tienson Qin bc8463265d fix: preserve config.file order when updating 2020-12-22 23:55:48 +08:00
Tienson Qin f93d643d08 fix(editor): use markdown images and links
Resolved #949
2020-12-22 21:33:49 +08:00
Tienson Qin 88b37d2d70 fix: custom query transform should support pages too 2020-12-22 21:32:30 +08:00
Tienson Qin c985bc6031 fix: cursor move in the editor box while in datatime picker 2020-12-22 18:17:27 +08:00
Tienson Qin 970280b96e fix: tab not working 2020-12-22 18:17:27 +08:00
Tienson Qin 2934b8f38e fix: tab not working anymore after using datepicker 2020-12-22 18:17:27 +08:00
Tienson Qin 1e29b8f488 chore: remove unused ns 2020-12-22 18:17:27 +08:00
Tienson Qin b8c5fbec32 fix(editor): events conflicts 2020-12-22 18:17:27 +08:00
Tienson Qin bce559e249 fix: mldoc anchorLink 2020-12-22 18:07:46 +08:00
Tienson Qin 00e0ced252 fix: clicking on some links not working anymore
Resolved #975.

Also, I made some css tweaks.
2020-12-22 16:13:08 +08:00
Tienson Qin 2df3af03aa fix: display brackets by default 2020-12-22 14:31:58 +08:00
Tienson Qin 313078750d enhance: update show-brackets text 2020-12-22 13:49:30 +08:00
Tienson Qin 8bf6ad1654 enhance(editor): don't show (()) for block refs 2020-12-22 13:49:30 +08:00
Tienson Qin 157365d9b5 feat(show-brackets): add shortcut hint 2020-12-22 13:49:30 +08:00
Tienson Qin 360548f0a8 fix: nested links not working when toggle displaying brackets 2020-12-22 13:49:30 +08:00
Tienson Qin 5b74e78fae feat: add a way to toggle displaying brackets
It also add a shortcut "ctrl+c ctrl+b".

Feature request: https://discuss.logseq.com/t/dont-show-and-when-not-editing-a-bulletpoint/90/2
2020-12-22 13:49:30 +08:00
Tienson Qin e5964633d2 chore: bump minor version 2020-12-21 19:40:04 +08:00
Yukun Guo a1ff34f4b1 fix: git add unstaged files before committing 2020-12-21 19:34:15 +08:00
Tienson Qin 84dd5eb233 fix: draw links 2020-12-21 19:27:44 +08:00
Tienson Qin 2baa71baf8 fix(test): bump version of react and react-dom
also, fixed keyboards on datepicker
2020-12-21 19:27:44 +08:00
Tienson Qin bdfdf4d6d8 chore: fix tests 2020-12-21 19:27:44 +08:00
Tienson Qin b1d5d378a0 test(alias): add more tests 2020-12-21 19:27:44 +08:00
Tienson Qin 0d96ce6a15 fix(ci): closure define NODETEST 2020-12-21 19:27:44 +08:00
Tienson Qin 2a4451ebf2 fix: aliases not working 2020-12-21 19:27:44 +08:00
charlie b40b5925f7 refactor: build styles 2020-12-21 14:02:02 +08:00
Quang-Linh LE a0677d917b feat: Compatibility with default datetree format 2020-12-21 13:10:22 +08:00
Tienson Qin bca7ca49ed enhance(editor): add a warning to notice users to not remove page's title 2020-12-21 12:45:04 +08:00
Tienson Qin 82a2f049e1 fix(editor): hide page properties if there's only a title attribute
We need to design a better UX for both page and block's properties.
2020-12-21 12:45:04 +08:00
Tienson Qin d4f27fc798 chore: remove debugging prn 2020-12-20 22:18:39 +08:00
Tienson Qin c2b0576eb0 enhance(search): only show new file when ext matched 2020-12-20 20:40:49 +08:00
Tienson Qin 4cd2627892 fix(editor): page alias should at least contains itself 2020-12-20 20:24:01 +08:00
Tienson Qin e925304d57 fix(editor): embeds 2020-12-20 20:20:38 +08:00
Tienson Qin 013e933ad7 fix(editor): linked references 2020-12-20 19:45:28 +08:00
Tienson Qin 4b5a177781 fix(editor): remove page refs with empty string 2020-12-20 19:39:29 +08:00
Tienson Qin e57d862bee enhance(editor): scroll to the top of right sidebar when shift+click 2020-12-20 18:20:36 +08:00
Tienson Qin 04b63ad52a enhance(editor): make it easier to edit page's properties (tags, alias) 2020-12-20 17:51:50 +08:00
Tienson Qin 4799bd6403 fix(db): support recursive alias relationship 2020-12-20 15:52:38 +08:00
Tienson Qin 511f903c9e fix(css): remove break-all 2020-12-20 14:54:50 +08:00
Tienson Qin 8208b92d60 fix: move the theme button to settings
There're several other things
1. remove help button because there's one in the right bottom corner.
2. remove config/mobile? check for right sidebar
3. add open collective link
4. adjust left bar width
2020-12-18 19:52:31 +08:00
Tienson Qin a7c7fa51cd fix(editor): rename page will promotes file has been modified
Resolved #947
2020-12-18 18:47:55 +08:00
Yukun Guo 21fc2fcf2e chore: log error in commit-and-force-push! 2020-12-18 16:16:11 +08:00
Yukun Guo 768261abed fix: git add today's journal even if it exists 2020-12-18 16:16:11 +08:00
Tienson Qin 65b19438a8 chore: bump minor version 2020-12-18 15:40:05 +08:00
Tienson Qin 48d40c02d0
Merge pull request #934 from logseq/refactor/common.css
Refactor/common.css
2020-12-18 15:38:17 +08:00
charlie 9a3484265b style: more flexible scrollbar 2020-12-18 15:30:25 +08:00
charlie 67e268ef8f fix: scroll overflow of absolute modal 2020-12-18 14:54:32 +08:00
charlie f3d26d2da7 fix: alignment of help table head 2020-12-18 14:15:34 +08:00
Tienson Qin efe4867e08 fix(editor): add to contents page
Also, editing should be faster now.
2020-12-17 22:47:56 +08:00
charlie 544f5f52bb style: fix css override 2020-12-17 22:08:33 +08:00
charlie 4036e3190a style: alignment of highlight block 2020-12-17 21:36:25 +08:00
Tienson Qin 41c9bf0fd0 fix(editor): exit editing mode and clear highlights when blocks are selected 2020-12-17 21:15:34 +08:00
charlie d3ed2dee1a Merge remote-tracking branch 'origin/master' into refactor/common.css 2020-12-17 21:11:00 +08:00
Tienson Qin b5c454648d fix(editor): clear highlighted selection when blocks are selected 2020-12-17 20:50:44 +08:00
charlie dafbce3b60 Merge remote-tracking branch 'origin/master' into refactor/common.css 2020-12-17 19:40:25 +08:00
Tienson Qin 42967ea782 fix(editor): allow up/down arrows for repeater time selection 2020-12-17 19:37:06 +08:00
Tienson Qin c3538b2268 Merge branch 'master' of github.com:logseq/logseq into master 2020-12-17 18:10:23 +08:00
Tienson Qin 6c200cb9aa fix(editor): can't navigate inside the `time input box` using arrows
Resolved #938
2020-12-17 18:03:47 +08:00
Michael Wong 1d4d2ee53e
Refactor/db (#945)
* fix(db): rebuild-page-blocks-children

* refactor(db): template-exists?

* refactor(db): sub-key-value

* refactor(db): get-pages-with-modified-at

* style(page): fix style
2020-12-17 17:28:00 +08:00
defclass 3e7f7e1f52 fix(db): fix string replace refactoring problem 2020-12-17 16:25:47 +08:00
defclass ba9eaf2dc6 refactor(db): move fns from base to utils 2020-12-17 16:25:47 +08:00
defclass 6ad34f5b3f refactor(db): move some fn into react 2020-12-17 16:25:47 +08:00
charlie 6a59d58085 Merge remote-tracking branch 'origin/master' into refactor/common.css 2020-12-17 15:39:01 +08:00
Tienson Qin 31a8498e3c fix: broken avatar 2020-12-17 15:32:12 +08:00
charlie 4356c497bb fix: slide theme 2020-12-17 15:17:35 +08:00
charlie d118c9d201 Merge remote-tracking branch 'origin/master' into refactor/common.css
# Conflicts:
#	resources/css/common.css
2020-12-17 15:07:39 +08:00
charlie 5c2b22d188 fix: try to fix the case of auto complete panel overflow 2020-12-17 15:06:39 +08:00
Tienson Qin f768744380 fix: Slide content not visible (readable) when using the light color scheme
Resolved #936
2020-12-17 14:40:50 +08:00
Tienson Qin 8d1a1a5c25 fix(editor): don't autosave if there's page or block searching 2020-12-17 13:13:50 +08:00
Tienson Qin 8fa9b9e58b fix(editor): re-use CodeMirror editor 2020-12-17 12:57:49 +08:00
Tienson Qin cc59296c93
Merge pull request #939 from logseq/refactor/db
Refactor/db
2020-12-17 11:59:02 +08:00
defclass bf44d9e593 refactor(db): with-dummy-block 2020-12-17 11:13:36 +08:00
defclass 15e1eeb81a refacotr(db): remove with-latest-txs 2020-12-17 11:08:58 +08:00
Tienson Qin 0a7c8ed8ac chore: show version when hovering the refresh button 2020-12-17 09:57:26 +08:00
Tienson Qin 3d4eea435e chore: remove debugging code 2020-12-16 23:48:47 +08:00
Tienson Qin 1bf9f6dd97 feat: add more CodeMirror modes
Closed #929.
Also, fixed an issue that a following click will close the editing block.
2020-12-16 23:38:29 +08:00
Tienson Qin aced8ca761 chore: bump minor version 2020-12-16 22:33:49 +08:00
Tienson Qin 02bb5bc7cf
Merge pull request #932 from logseq/refactor/nfs-file-writes
refactor(native-fs): remove file-in-writing? check
2020-12-16 22:32:29 +08:00
Tienson Qin 6d89a130fb fix(editor): ESC doesn't work after auto-save
fix #898
2020-12-16 17:51:43 +08:00
charlie 8c8b51c144 fix: publishing page theme style 2020-12-16 17:22:16 +08:00
charlie d938946a70 refactor: move publish actions to modal 2020-12-16 17:21:41 +08:00
defclass 774bba0138 fix(requrie): fix requirement bugs 2020-12-16 17:14:05 +08:00
Tienson Qin eeb6b40eae fix: move reset-contents-and-blocks to handler.repo 2020-12-16 16:39:40 +08:00
Tienson Qin b7aaeeca2c chore: disable println 2020-12-16 14:08:41 +08:00
Tienson Qin 22c9cd734c refactor(native-fs): remove file-in-writing? check 2020-12-16 14:07:27 +08:00
Tienson Qin 45cb50a730 Merge branch 'master' into tienson/refactor/db 2020-12-16 13:28:38 +08:00
charlie 75e496856f Merge remote-tracking branch 'origin/master' into refactor/common.css 2020-12-16 12:00:03 +08:00
Yukun Guo 2d8fd7072b fix: allow no blank line after front matter 2020-12-15 23:19:21 +08:00
Tienson Qin 9d083bc1f7 chore: fix format 2020-12-15 23:02:45 +08:00
Tienson Qin fe70356d57 refactor(db): separate frontend.db into multiple parts 2020-12-15 22:18:29 +08:00
charlie 4e1e3b3df5 refactor: improve development experience of styles 2020-12-15 16:08:13 +08:00
Tienson Qin 4376af78df fix: ctrl+c not working 2020-12-15 15:20:08 +08:00
Yukun Guo 9141712988 chore: don't handle key down if ctrl/meta pressed 2020-12-15 13:30:14 +08:00
charlie b84c0e5b82 Merge remote-tracking branch 'origin/master' into refactor/common.css
# Conflicts:
#	resources/css/common.css
2020-12-15 12:03:50 +08:00
Tienson Qin 21886841ff fix: loading animation 2020-12-15 11:57:15 +08:00
charlie 1b4db15b94 Merge remote-tracking branch 'origin/master' into refactor/common.css 2020-12-15 11:56:45 +08:00
Tienson Qin 97239cde65 fix: cursor moved to the beginning of the editing block when indent
Resolved #924
2020-12-15 11:03:04 +08:00
charlie 556f15eb4d Merge remote-tracking branch 'origin/master' into refactor/common.css 2020-12-15 10:00:56 +08:00
Tienson Qin 9de1f01db8 fix: safe check repo before modifying any file 2020-12-15 09:41:23 +08:00
Tienson Qin d34a405d39
Merge pull request #921 from logseq/fix/find-position
Fix find-position
2020-12-15 08:38:44 +08:00
Tienson Qin fcb4a8752e fix: code block highlights not working
Resolved #920
2020-12-14 21:48:08 +08:00
charlie 8a440e910a refactor: separated css modules from common style 2020-12-14 21:13:12 +08:00
Tienson Qin f390d3b8cc fix: display `show journals` 2020-12-14 19:25:00 +08:00
Tienson Qin 1d5b7e024f Merge branch 'master' of github.com:logseq/logseq into master 2020-12-14 19:19:17 +08:00
Tienson Qin cfed1530d3 fix(native fs): Directory handle not exists
Resolved #918
2020-12-14 19:18:17 +08:00
Yukun Guo 5f8915b304 chore: get rid of dec & inc 2020-12-14 18:38:28 +08:00
Yukun Guo f1add88799 fix: handle links in find-position 2020-12-14 18:35:56 +08:00
Tienson Qin b8fe3bbad7
Merge pull request #912 from logseq/perf/search
perf(search): use fuzzysort for both pages and blocks searching
2020-12-14 15:19:12 +08:00
charlie 2e30872f61 fix: #916 2020-12-14 14:41:09 +08:00
Tienson Qin 4b5eb4eb5a fix: don't check file-in-writing for github users 2020-12-14 13:15:16 +08:00
Tienson Qin c79c1ef6a1 fix: keyboard shortcuts 2020-12-14 11:50:41 +08:00
shady2k 744469ef6f Add requirements 2020-12-14 09:22:48 +08:00
shady2k c17d8f14c9 Add support for change start of week in calendar 2020-12-14 09:22:48 +08:00
Tienson Qin 10314b1117 fix: both pages and blocks indices default to an empty array 2020-12-13 23:39:27 +08:00
Tienson Qin 4662281c9a chore: remove profile 2020-12-13 23:32:51 +08:00
Tienson Qin 45e9390b6c fix: both ->clj and ->js are too expensive 2020-12-13 23:31:54 +08:00
Tienson Qin 57b9e7f937 Merge branch 'master' into perf/search 2020-12-13 23:08:56 +08:00
Tienson Qin 9c18b2c479 perf: idb batch writes for importing files from local directories 2020-12-13 23:03:30 +08:00
Tienson Qin 0bdf2c65e5 perf(search): use fuzzysort for both pages and blocks searching 2020-12-13 22:40:06 +08:00
Charlie 883e3a2ab3
Merge branch 'master' into fix/priority-style-issues 2020-12-13 15:42:23 +08:00
charlie ecf638c580 fix: tests 2020-12-13 13:03:19 +08:00
charlie 9ce6b441f3 fix: scroll to element 2020-12-13 12:57:52 +08:00
charlie 2db70bdfc4 style: fix notification text theme issue & ui details 2020-12-13 12:43:36 +08:00
Tienson Qin e8e319749c fix: don't create today's journal page if local directory is not loaded 2020-12-13 11:24:42 +08:00
charlie 6ec72bc4ad style: correct z-index 2020-12-12 21:06:32 +08:00
charlie 553b3fe529 style: fix sync indicator container 2020-12-12 20:06:55 +08:00
Tienson Qin bf5e067fdd
Merge pull request #895 from logseq/fix/reload-dir-error-handling
fix: move p/catch & p/finally to outermost block
2020-12-11 23:28:44 +08:00
Yukun Guo 04703b8056 fix: prevent parent block duplicate 2020-12-11 22:58:45 +08:00
Yukun Guo 0fa0823eaa fix: move p/catch & p/finally to outermost block 2020-12-11 22:52:43 +08:00
Tienson Qin 449c9d9e65 fix: roam import 2020-12-11 18:24:09 +08:00
charlie 6af12a4faf feat: merge a new light theme 2020-12-11 17:58:19 +08:00
charlie 0492b28235 Merge remote-tracking branch 'origin/master' into fix/priority-style-issues
# Conflicts:
#	resources/css/common.css
#	src/main/frontend/components/block.cljs
#	src/main/frontend/components/block.css
#	src/main/frontend/components/right_sidebar.cljs
2020-12-11 15:32:01 +08:00
Tienson Qin ee0576b543 fix: css class .embed not working 2020-12-11 14:15:28 +08:00
Tienson Qin a74e21a155 chore: bump minor version 2020-12-11 13:10:38 +08:00
Tienson Qin 97c4b1345c
Merge pull request #843 from logseq/feat/light-theme
Feat/light theme
2020-12-11 13:08:30 +08:00
anoffvu 69d6ce9dd2 chore: fix guideline + sidebar button color 2020-12-10 20:57:46 -08:00
anoffvu 2bc6d75d3e chore: embed padding 2020-12-10 20:29:58 -08:00
anoffvu 6c2e053ad1 chore: color level fix 2020-12-10 20:27:07 -08:00
anoffvu be300061dd chore: remove green theme 2020-12-10 20:15:45 -08:00
Yukun Guo fbc69d5608 fix: p/catch should handle outer error 2020-12-11 12:10:05 +08:00
Yukun Guo 92e791ecad fix: only proceed if permission verified 2020-12-11 12:10:05 +08:00
Tienson Qin 0b0598cee2 fix(native-fs): fast deletes resulting in conflicts 2020-12-11 02:58:22 +08:00
Yukun Guo 395cdd66bc
fix: fix concurrency bug in create-if-not-exists (#884)
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2020-12-11 02:37:12 +08:00
Tienson Qin 6828078f38 chore: disable fs alert temporarily 2020-12-11 02:11:33 +08:00
Tienson Qin 06d688579d Merge branch 'master' of github.com:logseq/logseq into master 2020-12-11 02:04:18 +08:00
Tienson Qin aa93390279 chore: bump minor version 2020-12-11 02:04:05 +08:00
Tienson Qin 690a090c87 fix(native-fs): today journal not created automaticaly
Idb file handles should be cleared when unlinking a local directory.
2020-12-11 02:03:36 +08:00
Tienson Qin 914031649e fix(editor): cursor jump to the start when idle
Resolved #864
2020-12-10 23:04:00 +08:00
Tienson Qin 43c76e6c16 fix: disable editor autosave temporarily 2020-12-10 18:26:52 +08:00
charlie 4a951618f1 Merge remote-tracking branch 'origin/master' into fix/priority-style-issues 2020-12-10 17:14:58 +08:00
Tienson Qin 06c13070ba Merge branch 'master' of github.com:logseq/logseq into master 2020-12-10 17:11:20 +08:00
Tienson Qin d54d54024f fix(editor): heading background can't be cleared
Related to #850
2020-12-10 17:04:33 +08:00
Yukun Guo 4927802f21 chore: simplify save-excalidraw! 2020-12-10 16:50:55 +08:00
Yukun Guo c300ed7be9 chore: do not print error when resolving git ref failed 2020-12-10 16:50:55 +08:00
Yukun Guo 06de25993c fix: git-add immediately after creating file 2020-12-10 16:50:55 +08:00
Yukun Guo 8963e23766 chore: remove redundant doall 2020-12-10 16:50:55 +08:00
defclass 06d32ef2b0 fix(publishing): fix get page 404 error 2020-12-10 14:39:55 +08:00
defclass 5bbc43b30d fix(publishing): fix delete project problem 2020-12-10 14:39:55 +08:00
defclass 8e3887ddfa fix(publishing): add auto-focus on input 2020-12-10 14:39:55 +08:00
defclass f88e5aaaf3 fix(publishing): replace span with a 2020-12-10 14:39:55 +08:00
defclass ca29a2bc2c refactor(publish): fetch page list from logseq server 2020-12-10 14:39:55 +08:00
defclass c8b3dd516c fix(header): remove duplicated items 2020-12-10 14:39:55 +08:00
defclass ba57929c46 fix(css): fix css problem with @charlie 's help 2020-12-10 14:39:55 +08:00
defclass b3e15c90e7 style(publish): move fn into handler 2020-12-10 14:39:55 +08:00
defclass 95ece00e78 refactor(publishing): move fn in their own place 2020-12-10 14:39:55 +08:00
defclass 770255aaa1 fix(project): update add project data struct 2020-12-10 14:39:55 +08:00
defclass 4e4e74cbca fix(css): update css 2020-12-10 14:39:55 +08:00
defclass ddf55f9a77 fix(rebase): fix bugs caused by rebase 2020-12-10 14:39:55 +08:00
defclass 460faf5510 fix(project): remove debug info 2020-12-10 14:39:55 +08:00
defclass 14f4397d92 fix(project): i18n 2020-12-10 14:39:55 +08:00
defclass c9d25bcb95 fix(project): hide the menu when there is not any project 2020-12-10 14:39:55 +08:00
defclass 62258e29b5 fix(publishing): add css style 2020-12-10 14:39:55 +08:00
defclass 3ae746fbb3 fix(state): remove prn 2020-12-10 14:39:55 +08:00
defclass 8f9e320bb1 feat(project): add delete project 2020-12-10 14:39:55 +08:00
defclass 4a7b558d61 feat(project): update project 2020-12-10 14:39:55 +08:00
defclass 7cdb03689b feat(publish): add notify 2020-12-10 14:39:55 +08:00
defclass 6e4561fe77 fix(publishing): fix css 2020-12-10 14:39:55 +08:00
defclass 437b31b3fc feat(publishing): add publishing list and delete operation 2020-12-10 14:39:55 +08:00
Charlie 90093e4d12
try to fix scroll position when switch editing mode (#867) 2020-12-10 13:30:04 +08:00
Tienson Qin b8a7448d99 feat: add query api 2020-12-10 00:27:54 +08:00
Tienson Qin 4201e7cbd7 chore: bump minor version 2020-12-09 23:08:30 +08:00
Tienson Qin a487fa8ab9 fix: add nfs-saved-handler to new files too 2020-12-09 23:07:41 +08:00
Tienson Qin 40c369bebe chore: remove unused code 2020-12-09 23:07:41 +08:00
Tienson Qin 1b958910f0 fix: serialize file writes 2020-12-09 23:07:41 +08:00
anoffvu 211918d76c Merge branch 'master' into feat/light-theme 2020-12-08 19:21:53 -08:00
Tienson Qin 9f106ba1fd chore: bump minor version 2020-12-08 21:34:11 +08:00
Tienson Qin 250d41efef chore: remove unused code 2020-12-08 21:33:58 +08:00
Tienson Qin 2287c8b72b fix: native fs writing concurrency
Resolved #845
2020-12-08 21:28:08 +08:00
charlie 9e421c2dd2 fix: auto complete scrollbar 2020-12-08 18:02:58 +08:00
charlie c79148dc2d fix: input border & loading animation 2020-12-08 17:48:26 +08:00
Tienson Qin 092126bbd5 chore: bump minor version 2020-12-08 15:38:35 +08:00
Tienson Qin 9210442d8c fix: config.edn not loading well 2020-12-08 15:38:07 +08:00
charlie 9f6839645b fix: sidebar vertical scrollbar 2020-12-08 15:37:43 +08:00
charlie e599aa977e Merge remote-tracking branch 'origin2/master' into fix/priority-style-issues
# Conflicts:
#	resources/css/common.css
2020-12-08 15:28:10 +08:00
charlie 5282fe5c9d refactor: update sidebar motion 2020-12-08 15:24:59 +08:00
charlie 32de8f2e2b refactor: add theme container & lift the dark/light class scope to root & restore scrollbar style. 2020-12-08 14:56:21 +08:00
Tienson Qin 15652c87ac fix: indexeddb key can't be empty 2020-12-08 14:49:53 +08:00
Tienson Qin 08c64ec165 fix: safe check dom id before rendering code blocks 2020-12-08 14:23:17 +08:00