mirror of https://github.com/logseq/logseq
fix: frontend lints
parent
790d0460a1
commit
8cfaddc25a
|
@ -2362,17 +2362,15 @@
|
||||||
"Large block will not be editable or searchable to not slow down the app, please use another editor to edit this block."])
|
"Large block will not be editable or searchable to not slow down the app, please use another editor to edit this block."])
|
||||||
[:div.flex.flex-row.justify-between.block-content-inner
|
[:div.flex.flex-row.justify-between.block-content-inner
|
||||||
(when-not plugin-slotted?
|
(when-not plugin-slotted?
|
||||||
(let [db-based? (config/db-based-graph? (state/get-current-repo))]
|
[:div.block-head-wrap
|
||||||
|
(cond
|
||||||
|
(:block/name block)
|
||||||
|
[:div.flex.flex-row.items-center.gap-1
|
||||||
|
(icon/get-page-icon block {})
|
||||||
|
(page-cp config block)]
|
||||||
|
|
||||||
[:div.block-head-wrap
|
:else
|
||||||
(cond
|
(build-block-title config block))])
|
||||||
(:block/name block)
|
|
||||||
[:div.flex.flex-row.items-center.gap-1
|
|
||||||
(icon/get-page-icon block {})
|
|
||||||
(page-cp config block)]
|
|
||||||
|
|
||||||
:else
|
|
||||||
(build-block-title config block))]))
|
|
||||||
|
|
||||||
(file-block/clock-summary-cp block body)]
|
(file-block/clock-summary-cp block body)]
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
[frontend.handler.notification :as notification]
|
[frontend.handler.notification :as notification]
|
||||||
[frontend.state :as state]
|
[frontend.state :as state]
|
||||||
[promesa.core :as p]
|
[promesa.core :as p]
|
||||||
[logseq.db :as ldb]
|
[logseq.db :as ldb]))
|
||||||
[frontend.db.react :as react]))
|
|
||||||
|
|
||||||
(defmulti handle identity)
|
(defmulti handle identity)
|
||||||
|
|
||||||
|
|
|
@ -2347,12 +2347,6 @@ Similar to re-frame subscriptions"
|
||||||
(r/cached-derived-atom (:db/async-query-loading @state) [(get-current-repo) ::async-query (str k)]
|
(r/cached-derived-atom (:db/async-query-loading @state) [(get-current-repo) ::async-query (str k)]
|
||||||
(fn [s] (contains? s (str k))))))
|
(fn [s] (contains? s (str k))))))
|
||||||
|
|
||||||
(defn get-async-query-loading
|
|
||||||
[k]
|
|
||||||
(assert (some? k))
|
|
||||||
(let [s @(:db/async-query-loading @state)]
|
|
||||||
(contains? s (str k))))
|
|
||||||
|
|
||||||
(defn set-color-accent! [color]
|
(defn set-color-accent! [color]
|
||||||
(swap! state assoc :ui/radix-color color)
|
(swap! state assoc :ui/radix-color color)
|
||||||
(storage/set :ui/radix-color color)
|
(storage/set :ui/radix-color color)
|
||||||
|
|
Loading…
Reference in New Issue