feat!: File Sync (#5355)

- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
Charlie
2022-09-01 00:31:49 +08:00
committed by GitHub
parent 252fec4dd6
commit 01d879c18e
111 changed files with 6507 additions and 1950 deletions

View File

@@ -20,3 +20,14 @@
(is (= 2 (util/safe-inc-current-pos-from-start "abcde" 1)))
(is (= 1 (util/safe-inc-current-pos-from-start "中文" 0)))))
(deftest test-safe-path-join
(testing "safe path join with custom schema"
(is (= (util/node-path.join "a/b" "c/d.md") "a/b/c/d.md"))
(is (= (util/node-path.join "a/b/c" "../../d.md") "a/d.md"))
(is (= (util/node-path.join "file:///a/b" "c/d.md") "file:///a/b/c/d.md"))
(is (= (util/node-path.join "file:///a/b" "../d.md") "file:///a/d.md"))
(is (= (util/node-path.join "file:///a a2/b" "c/d.md") "file:///a a2/b/c/d.md"))
(is (= (util/node-path.join "C:/a2/b" "c/d.md") "C:/a2/b/c/d.md"))
(is (= (util/node-path.join "content://a/b" "../d.md") "content://a/d.md"))
(is (= (util/node-path.join "https://logseq.com/a/b" "c/d.md") "https://logseq.com/a/b/c/d.md"))))