mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 22:54:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user