mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
Fix more bugs, move plugins.edn and add enabled
- Move plugins.edn to config/ as it is user configuration - Add plugin-config enabled flag and moved plugin enabled - Fixed bugs with manual install - Refactored plugin-config component to have its own listener - Split out shared plugin fns to a common ns - plugin-config shouldn't need to depend on a component like plugin-handler - Bump rewrite-edn to include upstream fix and avoid tons of cljs warnings with earlier versions - Fix react warning introduced outside this PR in ui/icon
This commit is contained in:
@@ -14,12 +14,13 @@
|
||||
[frontend.handler.plugin :as plugin-handler]
|
||||
[frontend.handler.export :as export-handler]
|
||||
[frontend.handler.whiteboard :as whiteboard-handler]
|
||||
[frontend.handler.plugin-config :as plugin-config]
|
||||
[frontend.handler.plugin-config :as plugin-config-handler]
|
||||
[frontend.modules.shortcut.dicts :as dicts]
|
||||
[frontend.modules.shortcut.before :as m]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :refer [mac?] :as util]
|
||||
[frontend.commands :as commands]
|
||||
[frontend.config :as config]
|
||||
[electron.ipc :as ipc]
|
||||
[promesa.core :as p]
|
||||
[clojure.data :as data]
|
||||
@@ -406,13 +407,13 @@
|
||||
:fn plugin-handler/show-themes-modal!}
|
||||
|
||||
:ui/goto-plugins {:binding "t p"
|
||||
:inactive (not plugin-handler/lsp-enabled?)
|
||||
:inactive (not config/lsp-enabled?)
|
||||
:fn plugin-handler/goto-plugins-dashboard!}
|
||||
|
||||
:ui/install-plugins-from-file {:binding false
|
||||
:inactive (not plugin-handler/lsp-enabled?)
|
||||
:inactive (not (config/plugin-config-enabled?))
|
||||
;; TODO: Remove dev convenience
|
||||
:fn (fn [] (plugin-config/open-sync-modal))}
|
||||
:fn (fn [] (plugin-config-handler/open-sync-modal))}
|
||||
|
||||
:editor/toggle-open-blocks {:binding "t o"
|
||||
:fn editor-handler/toggle-open!}
|
||||
|
||||
Reference in New Issue
Block a user