mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
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.
This commit is contained in:
@@ -410,24 +410,6 @@
|
||||
;; (let [value (not enable-block-timestamps?)]
|
||||
;; (config-handler/set-config! :feature/enable-block-timestamps? value)))))
|
||||
|
||||
(defn encryption-row [enable-encryption?]
|
||||
(toggle "enable_encryption"
|
||||
(t :settings-page/enable-encryption)
|
||||
enable-encryption?
|
||||
#(let [value (not enable-encryption?)]
|
||||
(config-handler/set-config! :feature/enable-encryption? value)
|
||||
(when value
|
||||
(state/close-modal!)
|
||||
;; FIXME: Don't send the `(atom false)` ! Should check multi-window! or internal status error happens
|
||||
(js/setTimeout (fn [] (state/pub-event! [:graph/ask-for-re-index (atom false) nil]))
|
||||
100)))
|
||||
[:p.text-sm.opacity-50 "⚠️ This feature is experimental! "
|
||||
[:span "You can use "]
|
||||
[:a {:href "https://github.com/kanru/logseq-encrypt-ui"
|
||||
:target "_blank"}
|
||||
"logseq-encrypt-ui"]
|
||||
[:span " to decrypt your graph."]]))
|
||||
|
||||
(rum/defc keyboard-shortcuts-row [t]
|
||||
(row-with-button-action
|
||||
{:left-label (t :settings-page/customize-shortcuts)
|
||||
@@ -660,7 +642,6 @@
|
||||
[]
|
||||
(let [current-repo (state/get-current-repo)
|
||||
enable-journals? (state/enable-journals? current-repo)
|
||||
enable-encryption? (state/enable-encryption? current-repo)
|
||||
enable-flashcards? (state/enable-flashcards? current-repo)
|
||||
enable-sync? (state/enable-sync?)
|
||||
enable-whiteboards? (state/enable-whiteboards? current-repo)
|
||||
@@ -683,8 +664,6 @@
|
||||
(when (and (util/electron?) config/enable-plugins?) (plugin-system-switcher-row))
|
||||
(flashcards-switcher-row enable-flashcards?)
|
||||
(zotero-settings-row)
|
||||
(encryption-row enable-encryption?)
|
||||
|
||||
(when-not web-platform?
|
||||
[:div.mt-1.sm:mt-0.sm:col-span-2
|
||||
[:hr]
|
||||
|
||||
Reference in New Issue
Block a user