Commit Graph

405 Commits

Author SHA1 Message Date
charlie
b6caba48d8 fix: WIP file bak when external file changed 2022-08-19 18:18:04 +08:00
Andelf
4cc89a2de2 refactor: address comment, better async code 2022-08-11 09:34:29 +08:00
Andelf
3e78139da2 fix(android): handle exteral storage 2022-08-11 09:34:29 +08:00
Tienson Qin
f1ee980e47 fix: do not overwrite .md file if it already exist
close #1332
2022-08-04 21:01:25 +08:00
Gabriel Horner
4ec5827902 Move block-ref fns and vars to their own ns
Similar to page-ref to keep namespaces explicit
2022-08-04 17:25:29 +08:00
Gabriel Horner
001e0d302d Finish block-ref helpers
There were a couple scattered in 2 text namespaces and there were
a couple uses of block-ref that involved escaping.
Removed block-ref-un-brackets! once it was seen as the equivalent
of an or statement
2022-08-04 17:25:29 +08:00
Andelf
06b7b7e4f3 fix(android): unlink file crashes app 2022-07-26 22:29:20 +08:00
Tienson Qin
cc643f8487 fix: wrong parameter for delete-file 2022-07-05 00:45:56 +08:00
Tienson Qin
e7c64d3dfd fix: don't unlink file when receiving the unlink event from watcher 2022-07-04 20:19:22 +08:00
Tienson Qin
8e1ae84baa fix: don't delete page temporally
related to #5904
2022-07-04 19:54:31 +08:00
llcc
f394f83a68 remove string-some-changed? function 2022-06-30 17:24:10 +08:00
llcc
1497d121f2 remove delete-file! from fs protocol 2022-06-30 17:24:10 +08:00
llcc
c2d288f77c remove delete-file!, address comment 2022-06-30 17:24:10 +08:00
llcc
314c3dde7e remove unnecessary delete! codes 2022-06-30 17:24:10 +08:00
llcc
df84e16b97 impl file backup on mobile 2022-06-30 17:24:10 +08:00
llcc
bcda3a5c7c impl mobile file unlink! 2022-06-30 17:24:10 +08:00
llcc
1af776a845 remove iCloud sync swift codes (#5698) 2022-06-14 18:51:32 +08:00
llcc
7c8ae98911 fix save issues after iOS app re-installation (#5697)
* fix save issues after iOS app re-installation
* fix: ios installation id updates when switching graphs
* fix duplicated file-paths in db

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-06-14 18:22:40 +08:00
Tienson Qin
fa7611bbae fix: unwatch the current listened dir first when refreshing 2022-06-13 19:16:34 +08:00
Tienson Qin
658d1d315a fix: lint warnings 2022-06-13 19:16:34 +08:00
Tienson Qin
b7ae3684be fix: notify graph dir is gone when starting or running the apps
Also, disabled both re-index and refresh when logseq detects that
a graph's dir doesn't exists anymore.
2022-06-13 19:16:34 +08:00
Tienson Qin
8cc4b357a4 enhance: re-enable file watcher when the folder is back
By following the great suggestions from https://github.com/hakon-j-d-johnsen.
2022-06-08 15:12:47 +08:00
Tienson Qin
307f7bd755 fix: re-create the page when the file appears again
related to #5549
2022-06-07 12:17:36 +08:00
Tienson Qin
b025ce71d2 enhance: backup db file when not matched 2022-06-06 18:33:37 +08:00
Tienson Qin
781062a4ce fix: disable editing when the graph's directory is renamed or deleted
related to #5549
2022-06-06 18:05:48 +08:00
Gabriel Horner
15b8e5e9df Setup CI jobs that are only for graph-parser
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
rcmerci
047f8bc142 enhance(sync): add progress-bar when init-download remote graph 2022-05-18 19:33:15 +08:00
Andelf
33907e4738 fix(sync): check current-user-uuid against nil 2022-05-18 02:17:17 +08:00
rcmerci
7808612444 enhance(sync): create version files when sync conflict 2022-05-17 21:48:48 +08:00
Gabriel Horner
c541b096f4 Merge branch 'master' into enhance/graph-parser-part-trois 2022-05-13 16:36:32 -04:00
Gabriel Horner
b9bbd0c605 Finish migrating extract to nbb 2022-05-13 15:47:54 -04:00
rcmerci
9dd63cf711 enhance(sync): auto start sync when switching graphs
- auto start sync when switching graphs
- add state ::starting
2022-05-13 15:12:24 +08:00
rcmerci
f29aea9e55 enhance(sync): update prod config, add :pre for update-graphs-txid 2022-05-12 07:36:29 +08:00
rcmerci
c480e1808b enhance(sync): add ::queued-local->remote-files file-sync state 2022-05-11 21:09:12 +08:00
rcmerci
77a4facbc7 enhance(sync): ws ping, update sync init process
- go-loop websocket ping to keep ws alive
- remove ::remote->local=>local->remote state
- remove ::remote->local=>local->remote-full-sync state
- remote ::remote->local-full-sync=>local->remote-full-sync state
- when starting sync, first trigger remote->local, then local->remote-full-sync
2022-05-10 18:35:20 +08:00
Tienson Qin
83569141fc feat: add encryption back 2022-05-09 22:15:30 +08:00
Tienson Qin
3f4ca7c4ba Merge branch 'master' into enhance/graph-parser-part-one 2022-05-08 09:53:54 +08:00
Andelf
ece4f0ba8c feat(ios): add FileSync plugin 2022-05-05 16:31:25 +08:00
Gabriel Horner
85bd1fecb2 Move first batch of util fns to graph-parser.util
Still need to fix external.roam
2022-05-04 12:02:36 -04:00
rcmerci
bebf224f42 fix(sync): trigger remote->local-full-sync when no diff txn founded 2022-04-26 09:25:43 +08:00
rcmerci
1ef5a2f59a fix(sync): clear graphs-txid.edn after deleting related graph
update graphs-txid.edn structure
now:
graphs-txid = [user-uuid graph-uuid local-txid]
before:
graphs-txid = [graph-uuid local-txid]
2022-04-26 09:25:43 +08:00
Tienson Qin
198efb164c fix: lint warnings 2022-04-24 11:52:32 +08:00
Tienson Qin
46b71b0398 Remove encrypt 2022-04-24 11:50:14 +08:00
llcc
ed7defbe97 enhance(iOS): add a modal to instruct users to select valid directory (#4947)
* enhance(ios): add a modal to instruct users to select valid directory

* tweak height for loom video on iPhone
2022-04-24 11:20:44 +08:00
Tienson Qin
b3f67c69b1 misc: delete both web github integration and encryption 2022-04-24 11:17:47 +08:00
Tienson Qin
71e9bdee49 enhance: parsing progress bar 2022-04-21 08:42:52 +08:00
rcmerci
888ed21e7e fix(sync): check current graph belongs to current logged-in user
when toggle sync on, first check current graph belongs to current
login user.
2022-04-20 09:43:19 -04:00
rcmerci
f23c7cfd09 fix(sync): fix unfinishable sync loop 2022-04-15 12:13:34 +08:00
rcmerci
dd57f6c695 enhance(sync): add logout 2022-04-14 09:29:01 -04:00
Gabriel Horner
f4a012dfd6 Fix two incorrect calls caught by tests 2022-04-13 19:12:24 +08:00