Tienson Qin
eb6e5942f8
fix: lint warnings
2024-01-10 01:34:15 +08:00
Tienson Qin
22d3a82412
fix lint
2024-01-10 01:01:50 +08:00
Tienson Qin
7f0747ca9f
start fix lint warnings and tests
2024-01-10 01:00:17 +08:00
Tienson Qin
9663d1bad1
enhance: way better cursor restore for undo/redo
...
This commits records both the start pos (user starts to type) and end
pos (before transaction), because the user always wants undo to move
the cursor back to the start position and redo to the end position.
2024-01-10 00:27:21 +08:00
Tienson Qin
324ed9a9cd
fix: history undo/redo
2024-01-09 23:44:45 +08:00
Tienson Qin
5e1a6b8952
perf: async store for datascript
2024-01-09 21:39:00 +08:00
Tienson Qin
c53231a5bb
fix: d/pull args
2024-01-09 20:44:22 +08:00
Tienson Qin
c8c8aa08c6
fix: can't load a file-based graph
2024-01-09 20:41:16 +08:00
Tienson Qin
1eb774f88d
fix: ui not affected by changes from disk
2024-01-09 20:29:18 +08:00
Tienson Qin
acf8c07da5
fix: whiteboard title shows UUID
2024-01-09 20:09:44 +08:00
Tienson Qin
9570e466c9
fix: file contents write twice
2024-01-09 19:48:48 +08:00
Tienson Qin
d1c113d2da
fix: writes not saved on electron
2024-01-09 19:15:45 +08:00
Tienson Qin
767827e415
fix: writes don't saved to md files
2024-01-09 19:08:12 +08:00
Tienson Qin
8e7d374e79
Add comment to remove transact! in pipeline
2024-01-09 18:55:03 +08:00
Tienson Qin
d1ca61d3c5
fix: avoid re-render deleting block
...
tricky one
2024-01-09 18:37:28 +08:00
Tienson Qin
db8d84c9ee
chore: clean unused code
2024-01-09 17:28:09 +08:00
Tienson Qin
d37d91198f
chore: remove main thread db listener since it's moved to worker
2024-01-09 17:13:02 +08:00
Tienson Qin
7e6835c02f
clean code
2024-01-09 16:56:15 +08:00
Tienson Qin
501c06c44f
fix: whiteboard redundancy
2024-01-09 16:53:49 +08:00
Tienson Qin
48125c3edc
fix: transact today's journal tx-data iff it doesn't exists yet
2024-01-09 16:32:43 +08:00
Tienson Qin
4da564cd0b
fix: open first block after creating a new page
2024-01-09 16:09:43 +08:00
Tienson Qin
9f66e6d7e7
fix: don't fix pages for whiteboards and hidden pages
2024-01-09 16:04:03 +08:00
Tienson Qin
879ae09fa2
fix: wrong argument
2024-01-09 14:09:12 +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
dbba75157d
Sync db worker changes back to the main ui thread
2024-01-08 19:09:54 +08:00
Tienson Qin
8ba3280c5a
fix: reactive rtc-state in debug ui
2024-01-08 18:10:59 +08:00
Tienson Qin
b1532f0e58
fix: rtc graph download
2024-01-08 15:54:25 +08:00
Tienson Qin
3d26b1fef9
fix: rtc ops
2024-01-08 15:39:30 +08:00
Tienson Qin
38ba0dfa7c
Move entity plus to db dep
2024-01-08 15:35:09 +08:00
Tienson Qin
d593456c1c
fix: get graphs
2024-01-08 14:27:36 +08:00
Tienson Qin
92d4fb1983
fix: rtc issues
2024-01-08 13:12:42 +08:00
Tienson Qin
52a1f597be
debug ui refactor
2024-01-08 13:06:24 +08:00
Tienson Qin
77726bda4c
fix: worker dependencies
2024-01-08 12:59:08 +08:00
Tienson Qin
ab612a0a1b
refactor debug UI state
2024-01-08 12:26:05 +08:00
Tienson Qin
a759c8c58c
replace rtc calls with worker apis
2024-01-08 11:50:23 +08:00
Tienson Qin
d5ea7b56c0
wip: rtc debug ui refactor
2024-01-08 10:50:14 +08:00
Tienson Qin
eeffd7e496
fix: add missing arg
2024-01-08 06:33:17 +08:00
Tienson Qin
81757c4e37
remove dependencies on full_upload_download_graph
2024-01-08 06:31:32 +08:00
Tienson Qin
06da20f3b5
ws-addr doesn't need to be an atom
2024-01-08 06:12:43 +08:00
Tienson Qin
09e2ffc0a2
fix: access indexedDB from web worker
2024-01-08 06:03:46 +08:00
Tienson Qin
ecd59381a5
Sync state to worker
2024-01-08 06:00:27 +08:00
Tienson Qin
f14f7b0c95
wip: move rtc to worker
2024-01-08 04:43:28 +08:00
Tienson Qin
ab51cce627
remove conn dependency from full_upload_download_graph
2024-01-07 17:51:28 +08:00
Tienson Qin
f24aae521e
remove page handler dep on rtc core
2024-01-07 17:38:53 +08:00
Tienson Qin
9597330d9f
Remove db/state dep on page handler
2024-01-07 17:24:54 +08:00
Tienson Qin
20ef7dffaa
fix: page rename
2024-01-07 16:52:23 +08:00
Tienson Qin
2a262d4766
fix: page delete
2024-01-07 16:40:51 +08:00
Tienson Qin
8f8acf1d77
wip page rename
2024-01-07 16:27:11 +08:00
Tienson Qin
fa2892cef6
use ldb/transact! instead of d/transact!
2024-01-05 06:42:10 +08:00