Commit Graph

64 Commits

Author SHA1 Message Date
megayu
d6403b7746 dependencies upgrade (#12460) 2026-03-23 21:32:28 +08:00
Tienson Qin
a092470392 enhance: copy as/export add open blocks only 2026-03-05 18:23:42 +08:00
Tienson Qin
729ca7fcbf Merge branch 'master' into feat/worker-sync 2026-01-26 18:52:12 +08:00
Gabriel Horner
173898240e fix: remove most file graph uses in deps
except for graph-parser and publish deps

- Removed most mentions of 'repo' in deps, which cleaned up a lot related
  to export cli and worker
- Removed db-based-graph? checks in deps except for unknown use
  in entity-plus?
- Removing db-based-graph? checks resulted in deleting unused file graph
  code paths e.g. get-pid
- Removed file graph handling in cli list command
- Remove file-based-graph? checks from deps
2026-01-22 13:19:58 -05:00
Gabriel Horner
37af8f690e fix: remove remaining uses of file graph specific attributes
Removed all file graph uses of :block/namespace, :block/file, :block/type and
:block/properties except for graph-parser which still uses them for db
importer.
Removed all uses of :block/format except for graph-parser and
src/main/frontend
2026-01-22 13:19:58 -05:00
Tienson Qin
bcc478b5f7 refactor: separate og and db version (#12276)
separate og and new version apps

remove file sync, tldraw, excalidraw and zotero
2025-12-29 15:39:32 +08:00
Gabriel Horner
0722097df1 enhance: export cmd reuses existing namespaces 2025-08-26 11:27:34 -04:00
Tienson Qin
2d50ca5ce2 Merge branch 'master' into feat/hnswlib+transformer-js 2025-07-11 18:15:33 +08:00
Gabriel Horner
954ec0c721 fix: graph md exports have no indent
Affected both graph types
2025-04-22 21:00:48 +08:00
Gabriel Horner
aa45b3fa6c fix(regression): paths of file graph exports
markdown + opml exports had zipped files several
directories deep because they used the full path of the graph
2025-04-18 14:36:51 -04:00
Gabriel Horner
03bf2524c0 fix: export page as markdown from menus 2025-04-09 17:54:23 -04:00
Tienson Qin
24e94e4026 fix: export duplicated blocks 2025-04-04 11:10:16 +08:00
Tienson Qin
d3c0ecc257 fix: copy unloaded blocks
This commit also fixs:
1. load block when clicking at bullet
2. copy linked block as markdown
2025-04-04 10:03:15 +08:00
rcmerci
5a87b609a5 refactor: use <invoke-db-worker to replace @*db-worker 2025-03-26 19:04:22 +08:00
rcmerci
cae3084f9c refactor: use the namespace "thread-api" for all thread-api keywords 2025-03-26 16:47:28 +08:00
rcmerci
a99149d6c6 fix lint 2025-03-26 16:47:28 +08:00
rcmerci
7ca1fe7569 refactor: unify the transit-read/write for the return values of the thread-api 2025-03-26 16:47:28 +08:00
rcmerci
1151b33df4 refactor: remove defclass DBWorker 2025-03-26 16:47:28 +08:00
Tienson Qin
38e4b0d9b2 Merge branch 'feat/db' into feat/hnswlib+transformer-js 2025-03-16 11:52:32 +08:00
Tienson Qin
68e4f641d8 fix: batch copy page titles 2025-03-12 16:23:43 +08:00
Tienson Qin
8a0a05183e refactor: remove :block/format for db graphs (#11667) 2025-01-05 12:10:47 +08:00
Tienson Qin
665207dc0d feat: import && export graph datoms transit 2024-12-29 15:05:23 +08:00
Gabriel Horner
70383cd813 fix: stop shadowing vars for rest of frontend
Follow up to 5ff364ba1e
2024-09-07 00:13:09 -04:00
Tienson Qin
818e0046cb fix: lint 2024-08-23 01:50:15 +08:00
Tienson Qin
a779245205 feat: export debug json which exclude sensitive data 2024-08-23 01:01:54 +08:00
Gabriel Horner
261118d4dc refactor: finish frontend independence from worker and add lint
Remaining fixes worker all file related. Fixes LOG-3717
2024-08-09 12:16:20 -04:00
rcmerci
8faef71727 chore: clean code 2024-08-07 21:48:36 +08:00
rcmerci
ccba2ef34c fix(export): replace page-ref-id with its block/title 2024-08-07 18:47:24 +08:00
Tienson Qin
a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
Tienson Qin
1ec4796eff refactor: replace :block/left with :block/order
Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.

Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.

I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
2024-05-02 01:12:22 +08:00
Tienson Qin
5a3bbcddac fix: lint warnings 2024-04-04 15:57:49 +08:00
Tienson Qin
c018f1517d perfer to use get-page instead of get-first-page-by-name 2024-04-04 15:57:48 +08:00
Tienson Qin
9df8918f94 Remove more :block/name lookup ref usage 2024-04-04 15:57:48 +08:00
Tienson Qin
60d4fca0ba wip: remove :block/name uniqueness for db based graphs
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]

Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.

Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
Tienson Qin
21d550de12 Remove :block/macros 2024-04-01 14:22:15 +08:00
charlie
97a017df9b Merge branch 'master' into feat/db 2024-03-01 17:52:21 +08:00
falldio
9c2cea030b fix: missing newline after multiline block when exporting a page 2024-03-01 02:09:46 +08:00
Gabriel Horner
0768809a86 fix: lints and disable intermittent failing test
- Reverted config/db-based-graph? check in a db only namespace
- Removed unused ns as it appears we just used another fn instead.
- /cc @RCmerci on failing test
2024-01-23 10:48:14 -05:00
Tienson Qin
b06b01b88b Merge branch 'master' into feat/db 2024-01-22 12:08:37 +08:00
Tienson Qin
fce15fb2d6 chore: remove bak file 2024-01-22 10:02:27 +08:00
Tienson Qin
4698d8cfea fix: don't export id property for db graphs 2024-01-22 10:00:26 +08:00
Tienson Qin
6725c83f5c fix: export issues 2024-01-22 10:00:26 +08:00
Tienson Qin
6ed39e7871 fix: export zip file 2024-01-22 10:00:26 +08:00
Tienson Qin
e571c571ec wip: export refactor
1. Move fns to worker
2. Don't rely on :block/file, use db blocks to build page content
2024-01-22 10:00:26 +08:00
rcmerci
14df4e80ac fix(export): remove leading spaces for block-src when no-indent 2024-01-17 20:14:05 +08:00
rcmerci
facc75f635 fix(export): remove prefix spaces when no-indent (#10807)
* fix(export): remove prefix spaces when no-indent
* fix(export): fix remove-prefix-spaces-in-Plain

use full_content for Src ast when no-indent
2024-01-12 14:26:17 +08:00
Tienson Qin
b7d9098e80 Move gp-util and gp-config to the common dep 2024-01-03 16:38:05 +08:00
Gabriel Horner
3f773ed876 fix: update all db graph uses of mldoc to use db config
Left a few uses of gp-mldoc/default-config but only in file graph
specific locations or functionality that wasn't related to db graphs
e.g. handler. plugin. Also removed format/get-default-config as it was unused

Part of LOG-2741
2023-10-27 14:08:55 -04:00
Gabriel Horner
241384c9be chore: clean up repeated uses of fetching page+property uuids 2023-10-24 09:29:30 -04:00
Tienson Qin
8746a373ae Replace special [[id]] with [[page name]] when reading block content 2023-06-15 22:59:55 +08:00