Commit Graph

405 Commits

Author SHA1 Message Date
rcmerci
410381c820 enhance(sync): partition files for <delete-remote-files-control 2022-11-25 21:25:16 +08:00
Tienson Qin
91d70535ee fix: set default file format to nil 2022-11-25 21:25:16 +08:00
Tienson Qin
95a8783a0b chore: code clean 2022-11-25 21:20:59 +08:00
rcmerci
ccb9058f3c fix(sync): use loop instead of mapv to avoid <! not in go block err 2022-11-25 21:20:59 +08:00
rcmerci
34524bebbc fix(sync): s3 404 download caused by path-normalize
when server side has a file with unnormalized-path, and client side
doesn't have this file. we need to use unnormalized-path to download.

this commit also ensure path & encrypted-path consistent
(result of <get-local-files-meta & <get-local-all-files-meta)
2022-11-25 21:20:59 +08:00
rcmerci
d5fb4b1ed0 enhance(sync): remove sync-stop-chan and simplify the stop process 2022-11-25 14:33:28 +08:00
rcmerci
f72fb7bcf2 fix(sync): add fake size for the fake event 2022-11-25 14:25:59 +08:00
Tienson Qin
e900a205e7 fix: use sentry to capture errors instead of posthog 2022-11-25 13:08:54 +08:00
rcmerci
a0f072b974 enhance(sync): add IRemoteControlAPI 2022-11-24 22:08:54 +08:00
Tienson Qin
af748630aa chore: no need to instrument state 2022-11-24 01:26:29 +08:00
Tienson Qin
bbd14cf5b2 fix: instrument payload 2022-11-24 01:12:54 +08:00
Junyi
4898ef8ee1 feat: notify users to update filename format 2022-11-23 20:13:46 +08:00
Charlie
dda1f9bd9f Enhance / Plugin APIs (#6945)
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR

Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
Tienson Qin
0d64d1ab3d fix: CI 2022-11-21 21:03:32 +08:00
Tienson Qin
f87100dd10 fix: use capacitor's api to get app's active state 2022-11-21 21:03:32 +08:00
rcmerci
81f90cd34d fix(sync): unify path-normalize and filter out un-normalized files 2022-11-21 21:03:32 +08:00
Tienson Qin
6c8f6741f7 fix(iOS): don't pause if it's already resumed from background mode 2022-11-21 21:03:32 +08:00
Tienson Qin
7911efec1c fix: restore back to the previous impl on pause and add instruments 2022-11-21 21:03:32 +08:00
Tienson Qin
7ffa3e9aa4 fix: lint warning 2022-11-21 21:03:32 +08:00
Tienson Qin
936a53437f fix: sync shouldn't stop when its state is idle 2022-11-21 21:03:32 +08:00
rcmerci
1093fe272e fix(sync): fix normalize path in <get-remote-all-files-meta 2022-11-21 21:03:32 +08:00
Tienson Qin
3312bfc3b6 fix: sync icon is missing 2022-11-21 21:03:32 +08:00
Tienson Qin
268a7830bb Instrument all the sync unknown errors 2022-11-21 21:03:32 +08:00
Tienson Qin
a28fed8b25 Pause sync if there's 404 not found 2022-11-21 21:03:32 +08:00
Tienson Qin
628377de87 Don't normalize paths when downloading files 2022-11-21 21:03:32 +08:00
Tienson Qin
56d6be278b fix: make sure paths are normalized before uploading to server 2022-11-21 21:03:32 +08:00
Tienson Qin
17a1ac35eb fix: normalize the paths returned from file watcher 2022-11-21 21:03:32 +08:00
rcmerci
671ca3bc13 fix(sync): add missed sync-event 2022-11-21 21:03:32 +08:00
rcmerci
65338a9811 fix(sync): apply path-normalize on read/write filepath 2022-11-21 21:03:32 +08:00
Andelf
1caba0359f fix: error while backup global config under windows 2022-11-17 17:10:49 -05:00
rcmerci
a4ee4c48f8 enhance(sync): set state to pause/resume when app out/in 2022-11-11 13:59:57 +08:00
rcmerci
8083b9b6e0 fix(sync): drain finished-local->remote-chan before <sync-local->remote-now 2022-11-11 13:59:57 +08:00
Tienson Qin
04d74c0a10 fix: don't force private for iOS virtual machines 2022-11-11 13:59:57 +08:00
Tienson Qin
6796b1657b Revert back 2022-11-11 13:59:57 +08:00
Tienson Qin
3b399d3bfe cap sync 2022-11-11 13:59:57 +08:00
Tienson Qin
085d9b33ec fn rename 2022-11-11 13:59:57 +08:00
Tienson Qin
c228bba355 feat: upload files when the app switching to background
Notice: Android is not supported yet.
2022-11-11 13:59:57 +08:00
Tienson Qin
49c7d8e51c fix: don't filter delete txn when downloading 2022-11-10 00:07:04 +08:00
Tienson Qin
bb829f227b fix: check ios? before forcing private part 2022-11-09 23:11:04 +08:00
Tienson Qin
c2603b7374 fix: don't filter unlinked paths for reserved chars 2022-11-09 22:25:43 +08:00
Tienson Qin
089c503c1f enhance: instrument if path doesn't include /// 2022-11-09 20:55:08 +08:00
Tienson Qin
d801c96a52 fix: force /private part on iOS 2022-11-09 20:55:08 +08:00
rcmerci
decd47c8a9 enhance(sync): check token not expired before api-calls (#7267)
* enhance(sync): check token not expired before api-calls

* fix(sync): ensure id-token exists when calling user/user-uuid

* enhance(sync): add <wrap-ensure-id&access-token, remove refresh-token-loop

* fix: check exception before using the result of <user-uuid

* fix: notify users ex message instead of ex info

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-11-09 11:06:45 +08:00
Tienson Qin
f90e8ee7d5 Merge pull request #7184 from logseq/enhance/ios-folder-picker
enhance: graph select and create on iOS
2022-11-08 23:10:25 +08:00
Tienson Qin
56fe265b4f enhance(sync): wait for 10s instead of 20s on desktop 2022-11-08 21:09:37 +08:00
Tienson Qin
20e1e77362 fix: remote graphs state when create/delete a remote graph 2022-11-08 16:58:39 +08:00
Tienson Qin
081e04ff2e fix: typo 2022-11-07 21:03:58 +08:00
Tienson Qin
02dfb9ede5 fix(ios): remove private part from file watcher events 2022-11-07 20:44:58 +08:00
Tienson Qin
2473ce92bf enhance: select iCloud folder first when select existing graph 2022-11-07 17:02:55 +08:00
Tienson Qin
e56fb0fa53 fix: remove redundancy paths on db
This commit also removes the fragile files including page-metadata.edn
and metadata.edn.
2022-11-07 13:29:15 +08:00