Commit Graph

85 Commits

Author SHA1 Message Date
Tienson Qin
7600a53929 Clean setTimeout 2024-01-10 23:52:47 +08:00
Tienson Qin
b50145be4e Simply editor save logic
Triggers save-current-block! on-blur instead of relying on react
lifecycle.
2024-01-10 23:05:48 +08:00
Tienson Qin
dd3a4b122c fix: async page rendering 2024-01-09 14:05:25 +08:00
Tienson Qin
5fd91035df wip: transact to worker directly
Previously, the transactions will go though main thread db -> worker
db, this commit changes it to worker db first and then send the
updates to the main thread db.

This change does introduce some bugs because all the db transactions
are async now.
2024-01-08 20:53:23 +08:00
Tienson Qin
018e1ae8ee Merge branch 'master' into feat/db 2023-12-23 14:18:25 +08:00
charlie
ea196dfe67 fix(editor): incorrect auto save when paste batch blocks 2023-12-11 14:20:15 +08:00
Tienson Qin
c1ebd14cef fix: page search e2e test 2023-10-16 23:02:27 +08:00
Tienson Qin
d9ab81e00d enhance: use block dom node for editing instead of container 2023-10-11 00:46:47 +08:00
Tienson Qin
1dbcc2bc3f fix: blockref e2e tests 2023-10-09 00:08:12 +08:00
Tienson Qin
307258343e fix: lint warnings 2023-10-08 19:14:25 +08:00
Tienson Qin
c6565a51b3 enhance(ux): page configure as popover 2023-09-26 21:20:26 +08:00
Tienson Qin
201b3b7f09 fix: double click to close dropdown 2023-09-26 01:25:14 +08:00
Tienson Qin
da5d8ef25b enhance: auto-convert text to block 2023-09-12 16:18:19 +08:00
Tienson Qin
7f079a8b53 UP/DOWN support for multiple values 2023-08-09 23:33:07 +08:00
Tienson Qin
3ec4c6bedd remove handler.editor.property 2023-08-01 13:59:06 +08:00
Tienson Qin
1671f540fb Move property-edit to file-based.property
Also, util.property -> file-based.property.util
2023-07-27 11:47:08 +08:00
Gabriel Horner
4920b3a98e Fix lints and fix graph-parser cljs tests
not running due to missing db dep
2023-07-24 14:06:57 -04:00
Tienson Qin
eb35d45d73 Remove :block/properties-text-values for db based graphs 2023-07-19 12:25:11 +08:00
Tienson Qin
e336db74eb fix: add-property should replace existing property if it exists 2023-07-04 10:07:26 +08:00
Tienson Qin
58162cc09d fix: editing block should be property instead of its parent block 2023-07-03 14:55:42 +08:00
Tienson Qin
7e44ff09a8 refactor: move editor impl to db-based and file-based 2023-06-26 19:07:25 +08:00
Tienson Qin
92c8a2eb19 fix: add schema validation 2023-06-26 17:37:04 +08:00
Tienson Qin
1bb93d3560 fix: can't read and write custom files 2023-06-26 17:31:49 +08:00
Tienson Qin
d73c51c41c fix: task doesn't complete
https://linear.app/logseq/issue/LOG-2606/task-doesnt-complete
2023-06-26 15:44:53 +08:00
Tienson Qin
59c3ca7438 fix: remove properties from block content when importing 2023-06-21 16:25:27 +08:00
Tienson Qin
fd6b587235 Merge branch 'master' into feat/db 2023-06-21 14:09:16 +08:00
rcmerci
3dc67e550d replace all property/Fns with property-edit/Fns
property-edit/Fns do nothing if current repo is db-based version
2023-06-17 01:37:39 +08:00
Tienson Qin
8746a373ae Replace special [[id]] with [[page name]] when reading block content 2023-06-15 22:59:55 +08:00
Tienson Qin
06e8bae3c5 Save id instead of page name for page refs 2023-06-15 18:40:20 +08:00
Tienson Qin
32173ff95e fix: new page doesn't have block/uuid 2023-06-14 17:29:55 +08:00
Tienson Qin
0f1cbb3bc7 fix: autopair failed 2023-06-14 16:52:31 +08:00
Tienson Qin
ca34564c61 fix: db wrap-parse-block 2023-06-14 16:20:56 +08:00
Tienson Qin
3a20a147e6 fix: parse block 2023-06-14 15:40:13 +08:00
Tienson Qin
55ff7584b7 wrap-parse-block impl for db && file 2023-06-14 15:13:22 +08:00
rcmerci
628a8b3826 use atom to replace some high frequency used state vars 2023-06-01 00:14:52 +08:00
Konstantinos Kaloutas
7b70937397 fix: did-remount deprecation 2023-05-30 11:53:22 -04:00
Tienson Qin
e01846188a refactor: add frontend.db.listener 2023-05-29 17:56:35 +08:00
Tienson Qin
9f3337111d fix: remove ugly timeout 2023-05-23 15:57:34 +08:00
Tienson Qin
905a28cb09 fix: handle the case when both blocks are referenced 2023-05-23 15:57:33 +08:00
Tienson Qin
12f3871694 fix: remove ugly timeout 2023-05-22 22:15:11 +08:00
Tienson Qin
f48235e9f5 fix: handle the case when both blocks are referenced 2023-05-22 22:15:11 +08:00
Gabriel Horner
9628fc52b9 Split out property related fns
in order to make editor ns more maintainable
2023-05-04 13:50:09 +08:00
Charlie
401c416484 feat:pdf highlight drag & drop (#8103)
* refactor(pdf): names
* improve(pdf): support highlight region draggable
* improve(pdf): unused class of pdf container
* improve(pdf): unused class of pdf container
* fix(pdf): ensure highlight block ref exists when draging to editor & whiteboard region

Co-authored-by: Bad3r <bad3r@protonmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
2023-01-12 01:25:10 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Gabriel Horner
2ce6dfad41 Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
Charlie
01d879c18e feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
Tienson Qin
d91dd505ad fix: lint warnings 2022-08-15 21:26:37 +08:00
Tienson Qin
d5adf85f58 fix: lint warnings 2022-08-15 18:48:25 +08:00
Tienson Qin
3581fe6abf Remove unused code 2022-08-15 17:49:34 +08:00
Phoenix Eliot
7cb1fc9c3c Add action whitelist and special handling for link/image input dialog 2022-08-15 17:45:39 +08:00