Commit Graph

726 Commits (967654aeb4162bdc1b28c8a3b3af750187c9e3c4)

Author SHA1 Message Date
Tienson Qin 59fdc5c68b chore: remove unused fn 2020-12-29 14:13:18 +08:00
Tienson Qin 80e4619774 Merge branch 'master' into feat/google-login 2020-12-29 14:08:57 +08:00
Tienson Qin 7dcc79ddf9 Merge branch 'master' into feat/google-login 2020-12-29 12:00:45 +08:00
Tienson Qin 88a894ad93 fix: rename back to all graphs 2020-12-29 11:55:34 +08:00
Tienson Qin 0559f03840 feat(native-fs): mark native fs as stable 2020-12-29 11:55:34 +08:00
Tienson Qin 536f1582dc fix: backward pos for embeds 2020-12-28 22:20:49 +08:00
Tienson Qin 0c7b60c485 fix(query-dsl): journals pages not works 2020-12-28 22:20:49 +08:00
Tienson Qin 45f600ecbc fix(query-dsl): journal page parse in the between filter 2020-12-28 22:20:49 +08:00
Tienson Qin d80b8fc801 feat(query-dsl): fix tests caused by different timezones 2020-12-28 22:20:49 +08:00
Tienson Qin d43acfbada feat(query-dsl): fix unit tests 2020-12-28 22:20:49 +08:00
Tienson Qin 1ce76bbcb6 feat(query-dsl): add unit tests 2020-12-28 22:20:49 +08:00
Tienson Qin 3a4a4eeba9 feat(query-dsl): use test fixtures 2020-12-28 22:20:49 +08:00
Tienson Qin e4eb9ae842 feat(query-dsl): add timestamps support for the between filter 2020-12-28 22:20:49 +08:00
Tienson Qin a16d360611 feat(query-dsl): add more filters
There're some graph improvements too:
1. the fly dots are smaller now
2. page tags have a different color
2020-12-28 22:20:49 +08:00
Tienson Qin 378d692eaa feat(query dsl): add custom component 2020-12-28 22:20:49 +08:00
Tienson Qin 2135fe78fe feat(query-dsl): add query command 2020-12-28 22:20:49 +08:00
Tienson Qin 54430738cc wip(query-dsl): initial support for query dsl 2020-12-28 22:20:49 +08:00
Tienson Qin 33bb750251 feat(query-dsl): fix not query 2020-12-28 22:20:49 +08:00
Tienson Qin 2081e805be wip(query-dsl): initial support for query dsl 2020-12-28 22:20:49 +08:00
Tienson Qin 1b304b15ac fix(style): youtube iframe width on mobile 2020-12-28 20:12:01 +08:00
charlie 456614b186 style: use overflow-wrap instead of global word break 2020-12-28 20:06:03 +08:00
charlie 2951772b40 style: fix block content css var in sidebar 2020-12-28 20:06:03 +08:00
charlie ee6709065a style: set global break-word #983 2020-12-28 20:06:03 +08:00
defclass 0bafbde7fe fix(repo): fix add repo logic 2020-12-28 16:18:34 +08:00
defclass 338e66cea1 fix(init-repo): init repo when login first time 2020-12-28 16:07:45 +08:00
defclass 7d74e024bb fix(Login): fix login style 2020-12-28 14:35:44 +08:00
defclass ebfda9db8b feat(OAuth): add google login 2020-12-28 09:58:39 +08:00
shady2k 3d47f5ac93 Add repo defenition 2020-12-27 11:17:05 +08:00
shady2k 7c44209bb5 Trying to fix empy queries in journal 2020-12-27 11:17:05 +08:00
Tienson Qin 441f67ba99 fix: don't create timestamps for page's properties area 2020-12-25 22:58:06 +08:00
Tienson Qin 510fa4a35a fix: the layout on mobile is broken when the title is too long
Resolved #983 and #596
2020-12-25 22:56:44 +08:00
Michael Wong f265a25cbe
Merge pull request #999 from logseq/fix/issues-ux
Fix/issues of ux
2020-12-25 16:52:44 +08:00
charlie 698bca9321 fix: prevent edit mode when has selection in block #992 2020-12-25 15:13:02 +08:00
charlie fa4cf5cb7c style: fix right click the dot doesn't popup in the right sidebar #995 2020-12-25 14:21:33 +08:00
Tienson Qin 2d925d7fac feat: add block timestamps
Why adding block timestamps?

Block is the atomic unit for logseq instead of a page, with the
timestamps we can do a lot of things, for example:
1. show a blocks timeline related to a topic/project/habit.
2. get latest modified blocks from the page or the whole graph.
3. query dsl can have a (sort-by :last_modified_at) clause

It'll add both created_at and last_modified_at properties to
each block, not all users need this, so, it's an experiment feature,
we'll disable it by default.

Also, this PR simplify the block properties a lot, it might fix some
old issues related to properties.
2020-12-25 14:20:57 +08:00
charlie a700f3aef9 enhance: copy block ref with (()) #833 2020-12-25 13:59:00 +08:00
Yukun Guo 536ce5dd87 fix: fix highlight for fuzzy search 2020-12-24 19:16:32 +08:00
charlie f90a7aa279 style: fix block border 2020-12-24 15:59:33 +08:00
Tienson Qin 0d2e62e41d style: fix gap 2020-12-24 14:09:50 +08:00
Tienson Qin ae02d41fa3 ui: style tweaks 2020-12-24 00:08:49 +08:00
Yukun Guo de3590b421 feat: ask user for confirmation when signing out 2020-12-23 19:24:58 +08:00
Yukun Guo b8f0a50173 fix: await git-set-username-email! 2020-12-23 19:24:58 +08:00
Yukun Guo 5ea4a7af1e fix: make db persistence atomic 2020-12-23 19:24:58 +08:00
Yukun Guo 5a03d963d5 fix: improve page i18n 2020-12-23 18:35:32 +08:00
Tienson Qin a346102a3f chore: bump minor version 2020-12-23 18:30:47 +08:00
Tienson Qin f1ffc6d022 fix: linked references should contain the blocks from alias pages 2020-12-23 18:29:02 +08:00
Tienson Qin 05057ec3cf fix: adjust query orders 2020-12-23 18:29:02 +08:00
Tienson Qin 9069c4373e feat: add alias redirects
Discussion thread: https://discuss.logseq.com/t/improve-implementation-of-aliases/81/4
2020-12-23 18:29:02 +08:00
charlie 8de2d6be51 fix: some ui details 2020-12-23 11:10:42 +08:00
Michael Wong ccf85e2e37
Merge pull request #985 from logseq/fix/preserve-edn-order
fix: preserve config.file order when updating
2020-12-23 11:08:37 +08:00
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