Enhance(UX): marketplace (#9609)

* fix(ui): hidden proxy label for the default system proxy network mode

* improve(plugin): support option to enable/disable the auto-check the installed plugins

* fix(revert): codes

* improve(ux): add the auto-check updates switcher to the toolbar plugins manager

* improve(i18n): plugin-related i18n

* enhance(plugin): add Github proxy server for the plugin updates

* enhance(plugin): add Github proxy server for the plugin updates

* fix(ui): warning

* fix: typo

* fix(ui): hidden proxy label for the default system proxy network mode

* improve(plugin): support option to enable/disable the auto-check the installed plugins

* fix(revert): codes

* improve(ux): add the auto-check updates switcher to the toolbar plugins manager

* improve(i18n): plugin-related i18n

* enhance(plugin): add Github proxy server for the plugin updates

* enhance(plugin): add Github proxy server for the plugin updates

* fix(ui): warning

* fix: typo
This commit is contained in:
Charlie
2023-06-19 12:51:40 +08:00
committed by GitHub
parent 6a22870d49
commit 741edecc57
8 changed files with 111 additions and 29 deletions

View File

@@ -7,6 +7,7 @@
[logseq.graph-parser.mldoc :as gp-mldoc]
[frontend.handler.notification :as notification]
[frontend.handler.common.plugin :as plugin-common-handler]
[frontend.storage :as storage]
[camel-snake-kebab.core :as csk]
[frontend.state :as state]
[medley.core :as medley]
@@ -186,8 +187,6 @@
[]
(let [channel (name :lsp-updates)
listener (fn [_ ^js e]
(js/console.debug (str :lsp-updates) e)
(when-let [{:keys [status payload only-check]} (bean/->clj e)]
(case (keyword status)
@@ -631,6 +630,14 @@
(state/pub-event! [:plugin/consume-updates])
(set-auto-checking! true))))
(defn get-enabled-auto-check-for-updates?
[]
(not (false? (storage/get :lsp-last-auto-updates))))
(defn set-enabled-auto-check-for-updates
[v?]
(storage/set :lsp-last-auto-updates (boolean v?)))
(defn call-plugin
[^js pl type payload]
(when pl