Merge branch 'feat/db' into refactor/db-remove-block-name-unique

This commit is contained in:
Tienson Qin
2024-04-08 23:56:46 +08:00
30 changed files with 521 additions and 322 deletions

View File

@@ -377,19 +377,19 @@
(reset! *search-key nil)
(.focus target))}
(ui/icon "x")])
[:input.form-input.is-small
{:placeholder (t :plugin/search-plugin)
:ref *search-ref
:auto-focus true
:on-key-down (fn [^js e]
(when (= 27 (.-keyCode e))
(util/stop e)
(if (string/blank? search-key)
(some-> (js/document.querySelector ".cp__plugins-page") (.focus))
(reset! *search-key nil))))
:on-change #(let [^js target (.-target %)]
(reset! *search-key (some-> (.-value target) (string/triml))))
:value (or search-key "")}]])
(shui/input
{:placeholder (t :plugin/search-plugin)
:ref *search-ref
:auto-focus true
:on-key-down (fn [^js e]
(when (= 27 (.-keyCode e))
(util/stop e)
(if (string/blank? search-key)
(some-> (js/document.querySelector ".cp__plugins-page") (.focus))
(reset! *search-key nil))))
:on-change #(let [^js target (.-target %)]
(reset! *search-key (some-> (.-value target) (string/triml))))
:value (or search-key "")})])
(rum/defc panel-tab-developer
[]
@@ -1407,7 +1407,7 @@
(shui/dialog-open!
(plugins-page)
{:label :plugins-dashboard
:side :center}))
:align :start}))
(defn open-waiting-updates-modal!
[]
@@ -1431,6 +1431,7 @@
[:div.settings-modal.of-plugins
(focused-settings-content title)])
{:label "plugin-settings-modal"
:align :start
:id "ls-focused-settings-modal"}))
(defn hook-custom-routes