Commit Graph

405 Commits

Author SHA1 Message Date
charlie
2697ffd82c enhance(mobile): polish interaction for the onboarding graph picker 2022-11-07 10:46:51 +08:00
charlie
a43686d624 enhance(mobile): normalize url protocol path for capacitor fs all operations 2022-11-07 10:46:51 +08:00
Tienson Qin
7ddfa66004 fix: prompt to create a Logseq sync graph or normal graph on iOS
Previously, users can create a graph everywhere including the iCloud
folder, which is both confusing and can cause unexpected data
conflicts.

Another enhancement:
After the user confirms the "Use Logseq Sync for this new graph?"
prompt, a remote graph will be created and start to sync automatically.

https://www.loom.com/share/69059969747c4b798a4c712c45e442d7
2022-11-07 10:46:51 +08:00
Tienson Qin
2dfac3d774 deprecate: on-disk encryption
Why?
1. there're still a lot issues on it and there's no resource to
maintain and develop it considering we need to support it on all the
platforms.
2. it creates more bugs with Logseq Sync.
2022-11-07 10:46:17 +08:00
Tienson Qin
bf72cd6793 Merge branch 'master' into fix/sync-crash 2022-11-07 09:27:19 +08:00
Tienson Qin
22fe631415 chore: move reserved chars logic outside of <update-remote-files 2022-11-07 09:22:27 +08:00
Tienson Qin
9d29a51314 Add instructions when downloading files that have reserved chars 2022-11-07 09:22:27 +08:00
Tienson Qin
ed5e70c7e7 Skip downloading file names with reserved chars 2022-11-07 09:22:27 +08:00
Tienson Qin
dd0169b068 fix: notify users to switch to the new filename format
Notify users to switch to the new filename format if there're reserved
chars when syncing.

Also, this commit replace all `js/decodeURIComponent` with
`safe-decode-uri-component` to avoid UI crashes.
2022-11-07 09:22:27 +08:00
Tienson Qin
865ba9c69c fix: <sync-start returns a channel 2022-11-06 23:37:46 +08:00
Tienson Qin
530f683ac0 enhance: no need to notify matched password 2022-11-06 23:37:46 +08:00
Tienson Qin
4065ed353e reset *sync-entered when sync stopped 2022-11-06 23:37:46 +08:00
Tienson Qin
564926418f fix: sync crashes
1. make sure there's no sync reentrancy
2. there's no need to restore pwd after user input the password
2022-11-06 23:37:46 +08:00
Tienson Qin
46401c0598 enhance: remove pages-metadata.edn from sync 2022-11-05 16:12:19 +08:00
rcmerci
fcb5d206b2 fix: calculate s3-key length 2022-11-04 23:04:22 +08:00
rcmerci
e780272d12 enhance(sync): filter pages whose page-name is too long 2022-11-04 23:04:22 +08:00
Gabriel Horner
b3464c8c11 Remove unused var 2022-10-28 09:49:45 -04:00
Tienson Qin
7f7e21cdce fix: progressing number when downloading files 2022-10-28 21:11:58 +08:00
charlie
65e77e6523 fix(mobile): format of recorder audio file 2022-10-28 15:50:34 +08:00
charlie
84924c66d5 fix(ios): encode file path for capacitor fs 2022-10-28 15:50:34 +08:00
Tienson Qin
023d5a749c enhance: fast sync on mobile 2022-10-28 11:44:24 +08:00
Tienson Qin
3486692ed1 fix: sync status 2022-10-28 11:37:29 +08:00
Tienson Qin
257dda1b35 fix: cancel rsapi requests when paused 2022-10-24 12:54:35 +08:00
charlie
db70ec13c1 fix: remove debug 2022-10-21 16:13:50 +08:00
charlie
0f17276977 fix: stop whole app re-render when assets file changes 2022-10-21 16:13:50 +08:00
rcmerci
59add5203f enhance(sync): check remoteapi exceptions 2022-10-18 10:43:34 +08:00
Tienson Qin
91ceae48e4 fix: readdir with path-only? option 2022-10-13 16:52:12 +08:00
Tienson Qin
127a4d1613 fix: create local versions on mobile if there's any conflict 2022-10-13 16:52:12 +08:00
rcmerci
b8707cd719 chore: fix lint 2022-10-13 16:49:47 +08:00
rcmerci
fdb11e6ed7 fix(sync): allow to sync-start when txid=nil(in graphs-txid.edn)
avoid to write txid=nil to graphs-txid.edn
2022-10-13 16:49:47 +08:00
Charlie
d53ac94bfc Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +08:00
Tienson Qin
b6c0198f87 fix: lint warning 2022-09-30 17:33:32 +08:00
Tienson Qin
5f8d8e832c chore: remove unused *sync-starting? 2022-09-30 17:33:32 +08:00
rcmerci
fd91db1449 fix(sync): remove sync-stop in sync-start 2022-09-30 17:33:32 +08:00
rcmerci
0f496910cd Revert "step 5 :graphs-txid"
This reverts commit 2f81b17a49.
2022-09-30 17:33:32 +08:00
Tienson Qin
02b610eb07 step 5 :graphs-txid 2022-09-30 17:33:32 +08:00
Tienson Qin
cd26853499 fix: sync status not refreshed 2022-09-30 17:33:32 +08:00
Tienson Qin
4877f24ef2 fix: lint warning 2022-09-30 17:33:32 +08:00
Tienson Qin
09e7715e2f step 3 :file-sync/progress 2022-09-30 17:33:32 +08:00
Tienson Qin
7eff58625f fix: arguments 2022-09-30 17:33:32 +08:00
Tienson Qin
8e4fcb4f8c step 2: :file-sync/sync-state 2022-09-30 17:33:32 +08:00
Tienson Qin
308a4aeb47 refactor: step 1 file-sync/sync-manager 2022-09-30 17:33:32 +08:00
rcmerci
31cdc21bfb enhance(sync): cancel all rsapi requests when sync-stop 2022-09-29 21:58:27 +08:00
Tienson Qin
681c3e421e fix: cancel previous requests when sync needs to download/upload
This can avoid running multiple downloads/uploads at the same time.
2022-09-29 21:58:27 +08:00
Andelf
6a6974671f chore(deps): update file-sync libs 2022-09-29 19:36:42 +08:00
Andelf
b73829da05 feat(sync): allow cancel all request 2022-09-29 19:36:42 +08:00
Tienson Qin
c10b04b715 fix: clear sync-state when stopping the current graph's sync 2022-09-27 23:24:42 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Andelf
d1c7328a93 fix(android): use graph-uuid in call, update capacitor-file-sync 2022-09-24 00:39:29 +08:00
Gabriel Horner
2ce6dfad41 Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00