mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
feat(plguin): integration
This commit is contained in:
@@ -112,6 +112,16 @@
|
||||
:electron/updater-pending? false
|
||||
:electron/updater {}
|
||||
|
||||
;; plugin
|
||||
:plugin/indicator-text nil
|
||||
:plugin/installed-plugins {}
|
||||
:plugin/installed-themes []
|
||||
:plugin/installed-commands {}
|
||||
:plugin/simple-commands {}
|
||||
:plugin/selected-theme nil
|
||||
:plugin/selected-unpacked-pkg nil
|
||||
:plugin/active-readme nil
|
||||
|
||||
;; all notification contents as k-v pairs
|
||||
:notification/contents {}
|
||||
:graph/syncing? false
|
||||
@@ -1031,6 +1041,15 @@
|
||||
[]
|
||||
(:commands (get-config)))
|
||||
|
||||
(defn get-plugins-commands
|
||||
[]
|
||||
(mapcat seq (flatten (vals (:plugin/installed-commands @state)))))
|
||||
|
||||
(defn get-plugins-commands-with-type
|
||||
[type]
|
||||
(filterv #(= (keyword (first %)) (keyword type))
|
||||
(apply concat (vals (:plugin/simple-commands @state)))))
|
||||
|
||||
(defn get-scheduled-future-days
|
||||
[]
|
||||
(let [days (:scheduled/future-days (get-config))]
|
||||
|
||||
Reference in New Issue
Block a user