Commit Graph

13816 Commits (7c4baf97db3da3ac0a319584606ef33432215550)

Author SHA1 Message Date
Tienson Qin c13565b90a fix: current page search 2023-12-13 23:00:08 +08:00
Gabriel Horner 79a9c59dd5 fix: lint and minor cleanup from datascript-storage PR
- remove unused electron state
- remove comment with nonexistent fns
- rename fn which didn't read well
2023-12-13 09:53:16 -05:00
Tienson Qin 23e31b53fa fix: use block uuid instead of id when building search indice 2023-12-13 22:38:44 +08:00
Tienson Qin a7de12d59f chore: remove better-sqlite3 2023-12-13 21:35:25 +08:00
Tienson Qin ba00e5aa68 Merge branch 'feat/db' into refactor/worker-search 2023-12-13 20:55:09 +08:00
Andelf de13df4722 chore(deps): upgrade electron v27 2023-12-13 20:53:13 +08:00
Tienson Qin 16d0baf662 fix: lint warnings 2023-12-13 20:44:14 +08:00
Tienson Qin 4b520a9806
Merge pull request #10639 from logseq/feat/datascript-storage
Use forked Datascript
2023-12-13 20:39:38 +08:00
Tienson Qin 0a393eb822 Merge branch 'feat/db' into feat/datascript-storage 2023-12-13 20:38:55 +08:00
Tienson Qin 8c3794f5aa fix: can't backspace in some situations 2023-12-13 20:33:59 +08:00
Andelf e929a191ec enhance: use query params in fragments for graph switching 2023-12-13 20:24:33 +08:00
Charlie d1362dd771
fix(UI): incorrect graph node edge color from the theme accent color (#10693)
* fix(ui): response layout for the check-updates els from the settings row

* fix(ui): incorrect graph node edge color from the theme accent color
2023-12-13 20:16:00 +08:00
rcmerci 083618a427 fix(rtc): sync blocks in whiteboards 2023-12-13 19:29:20 +08:00
rcmerci 1b94ec61d1 fix(rtc): ensure properties when upsert whiteboard blocks 2023-12-13 18:36:30 +08:00
Tienson Qin b9b33d4088 enhance: get-next can skip collapsed block 2023-12-13 18:22:14 +08:00
Tienson Qin 83906dbc9b fix: allow to `DEL` if the next element is not its right sibling 2023-12-13 18:09:21 +08:00
Tienson Qin 660ac318cf fix: ensure :block/uuid never changes for any block
Previously, this happens when `DEL` in a block which followed by a
refed block.
2023-12-13 17:28:04 +08:00
Charlie 036df25a17
Enhance: plugin APIs (#10399)
* enhance(plugin): call apis with the sdk ns

* enhance(plugin): types

* enhance(api): get value from the computed style

* enhance(api): types

* enhance(plugin): types

* enhance(plugin): types

* fix: lint

* fix(apis): incorrect shortcut command registion for block editing mode #10392

* fix(api): types

* enhance(apis): support register shortcuts with multi binding vals

* fix(plugins): normalize command key to make the internal keyword legal

* chore(plugin): build libs core

* chore(plugin): bump version

* enhance(apis): normalize apis cljs data

* chore(plugin): update libs user sdk

* chore(plugin): CHANGELOG.md

* fix: typo

* fix(ux): support querying plugins with right space chars
2023-12-13 15:42:21 +08:00
rcmerci 87a98b76d0 fix(rtc): fix :block/link when download-graph 2023-12-13 13:39:31 +08:00
rcmerci 7bca037e71 fix: update <transact-data caller, remove unused build-upsert-blocks 2023-12-13 11:18:00 +08:00
Gabriel Horner e228bd1fb6 fix: tweak schema to be valid for new db graphs
Also reuse initialization data
2023-12-12 16:05:06 -05:00
Gabriel Horner ea65a659d6 chore: remove bb task for validating previous sqlite data 2023-12-12 15:44:06 -05:00
Gabriel Horner 36a553e4a1 chore merge sqlite-restore into sqlite-db
Also use it on the frontend. Also remove another unnecessary sqlite.db fn
2023-12-12 15:41:02 -05:00
Gabriel Horner a207296a42 chore: reuse some sqlite db fns
Also removed datascript db atom fetching, unused fns and dep in sqlite.db
2023-12-12 15:09:44 -05:00
Tienson Qin ac780a1aa4 enhance: save db to disk periodically
The interval is set to 10 minutes now.
New backup will be written if its size is not equal to the latest
backup one's.
2023-12-13 02:03:49 +08:00
Tienson Qin 436ff54039 fix: save db to disk when remove a graph 2023-12-13 01:35:07 +08:00
Gabriel Horner 9b388f52f0 Bump to latest datascript with passing tests and updated persistent-sorted-set 2023-12-12 11:20:32 -05:00
Tienson Qin 32711678ff fix: persist on disk when importing sqlite or switching graphs 2023-12-12 23:39:31 +08:00
Tienson Qin 215d3739b9 fix: hard delete opfs db 2023-12-12 22:56:43 +08:00
Tienson Qin 8601858460 fix: add graph to list when importing sqlite 2023-12-12 22:11:10 +08:00
Tienson Qin 9395ce4f5a bump sqlite-wasm 2023-12-12 22:08:42 +08:00
Tienson Qin f550dc8325 Merge branch 'feat/datascript-storage' into refactor/worker-search 2023-12-12 19:27:39 +08:00
Tienson Qin 1a1ce02131 Merge branch 'feat/db' into feat/datascript-storage 2023-12-12 19:14:35 +08:00
Tienson Qin 8c3ec50c07 fix: no available handles to import to 2023-12-12 19:11:42 +08:00
Tienson Qin f6dced699d fix: don't export db when switching from a file-based graph 2023-12-12 17:38:27 +08:00
Tienson Qin deb90ecfea fix: tests 2023-12-12 16:53:27 +08:00
Tienson Qin 4296df237d fix: block uuid changed when embedding a page or a block 2023-12-12 16:32:29 +08:00
Tienson Qin ba13e4ddd9 fix: return value 2023-12-12 14:33:34 +08:00
Tienson Qin 4ce80d6957 chore: remove unnesessary code 2023-12-12 14:32:31 +08:00
Tienson Qin f2db192bb7 fix: prompt is not supported on Electron 2023-12-12 13:51:09 +08:00
Andelf eb22435280 fix(editor): pasting of html list 2023-12-12 13:29:10 +08:00
Gabriel Horner 0f4cdbbadf bump outdated nbb-logseq and fix lint 2023-12-11 15:55:38 -05:00
Tienson Qin 9b6d3f243b refactor: use OPFS sqlite for search 2023-12-12 03:03:34 +08:00
Gabriel Horner fb3e8e8d8a fix: update ds sqlite persistance to match latest frontend
also removed unused util fns
2023-12-11 13:52:26 -05:00
Gabriel Horner e0901b9d04 bump nbb-logseq to first version
that works for forked datascript. Deps tests pass locally
without needing to rely on local builds
2023-12-11 13:52:15 -05:00
Gabriel Horner b5eabc80ee fix: db and graph-parser nbb tests to pass locally
Updated sqlite fns to use updated approach. Deleted some unused
fns from old approach
2023-12-11 13:51:47 -05:00
Tienson Qin 8f2553153b fix: can't clean up opfs dbs 2023-12-11 23:25:34 +08:00
Tienson Qin 7ad4f4566f chore: remove unnesessary state settings 2023-12-11 23:10:10 +08:00
Tienson Qin 61b2681c2a fix: set current repo after importing db 2023-12-11 23:08:07 +08:00
Tienson Qin 4860d23aa4 fix: restore sqlite 2023-12-11 22:57:28 +08:00