Tienson Qin
755cf64a4c
fix: acquireAccessHandles if released
2023-12-15 12:03:09 +08:00
Tienson Qin
dbc6af22cc
fix: javascript can't close tab
2023-12-15 11:38:10 +08:00
Tienson Qin
ea70f39102
enhance: show modal instead of notification if multi-tabs access
2023-12-15 11:35:25 +08:00
Tienson Qin
52f04c2d24
enhance: redirect to bug report if multi-tabs access to a graph
2023-12-15 11:17:30 +08:00
Tienson Qin
739822f155
fix: release access handles after graph has been downloaded
2023-12-15 11:02:31 +08:00
Gabriel Horner
ffa6aaae29
fix: remove unused db.sqlite related fns
...
- remove sqlite-db/close! as its not used and didn't make sense to be
used in other electron ns
- remove sqlite-db/connections atom as its not needed
- remove read-graph as its not necessary
- rename cli.persist-graph as its primary purpose has changed
- update effected scripts
2023-12-13 12:06:24 -05: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
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
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
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
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
Gabriel Horner
0f4cdbbadf
bump outdated nbb-logseq and fix lint
2023-12-11 15:55:38 -05: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
Tienson Qin
ca6b2db92e
fix: don't transact initial data when importing sqlite
2023-12-11 22:44:13 +08:00
Tienson Qin
34c632a81c
fix: initial data overwritten when importing from sqlite db
2023-12-11 22:25:24 +08:00
Tienson Qin
3f2c4b6621
Merge branch 'feat/db' into feat/datascript-storage
2023-12-11 21:46:49 +08:00
Tienson Qin
2810630ca2
fix: lint warning
2023-12-11 21:46:18 +08:00