mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
enhance: encrypt the default files before writing to the disk
This commit is contained in:
@@ -73,6 +73,9 @@
|
||||
(t :no)]]]]))
|
||||
|
||||
(defn encryption-setup-dialog
|
||||
[repo-url]
|
||||
(fn [close-fn]
|
||||
(encryption-setup-dialog-inner repo-url close-fn)))
|
||||
[repo-url close-fn]
|
||||
(fn [close-modal-fn]
|
||||
(let [close-fn (fn []
|
||||
(close-fn)
|
||||
(close-modal-fn))]
|
||||
(encryption-setup-dialog-inner repo-url close-fn))))
|
||||
|
||||
@@ -198,8 +198,10 @@
|
||||
(:file/content %)) files)]
|
||||
(file-handler/restore-config! repo-url content true))))
|
||||
(when first-clone?
|
||||
(create-default-files! repo-url)
|
||||
(state/set-modal! (encryption/encryption-setup-dialog repo-url)))
|
||||
(state/set-modal!
|
||||
(encryption/encryption-setup-dialog
|
||||
repo-url
|
||||
#(create-default-files! repo-url))))
|
||||
(when re-render?
|
||||
(ui-handler/re-render-root! re-render-opts))
|
||||
(state/set-importing-to-db! false)))
|
||||
|
||||
Reference in New Issue
Block a user