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

@@ -209,7 +209,7 @@
(defn render!
[state]
(let [[config id attr _code theme] (:rum/args state)
(let [[config id attr _code theme user-options] (:rum/args state)
default-open? (and (:editor/code-mode? @state/state)
(= (:block/uuid (state/get-edit-block))
(get-in config [:block :block/uuid])))
@@ -238,7 +238,8 @@
(editor-handler/edit-block! block :max block-id))))}}
(when config/publishing?
{:readOnly true
:cursorBlinkRate -1}))
:cursorBlinkRate -1})
user-options)
editor (when textarea
(from-textarea textarea (clj->js cm-options)))]
(when editor