mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 04:34:14 +00:00
fix: lint
This commit is contained in:
@@ -2105,7 +2105,7 @@
|
||||
(rum/defcs ^:large-vars/cleanup-todo block-control < rum/reactive
|
||||
(rum/local false ::dragging?)
|
||||
[state config block {:keys [uuid block-id collapsed? *control-show? edit? selected? top? bottom?]}]
|
||||
(let [*dragging? (::dragging? state)
|
||||
(let [*bullet-dragging? (::dragging? state)
|
||||
doc-mode? (state/sub :document/mode?)
|
||||
control-show? (util/react *control-show?)
|
||||
ref? (:ref? config)
|
||||
@@ -2156,11 +2156,11 @@
|
||||
{:id (str "dot-" uuid)
|
||||
:draggable true
|
||||
:on-drag-start (fn [event]
|
||||
(reset! *dragging? true)
|
||||
(reset! *bullet-dragging? true)
|
||||
(util/stop-propagation event)
|
||||
(bullet-drag-start event block uuid block-id))
|
||||
:on-drag-end (fn [_]
|
||||
(reset! *dragging? false))
|
||||
(reset! *bullet-dragging? false))
|
||||
:blockid (str uuid)
|
||||
:class (str (when collapsed? "bullet-closed")
|
||||
(when (and (:document/mode? config)
|
||||
@@ -2200,7 +2200,7 @@
|
||||
|
||||
:else
|
||||
bullet)]
|
||||
(if (and (config/db-based-graph?) (not @*dragging?))
|
||||
(if (and (config/db-based-graph?) (not @*bullet-dragging?))
|
||||
(ui/tooltip
|
||||
bullet'
|
||||
[:div.flex.flex-col.gap-1.p-2
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
{:did-mount (fn [state]
|
||||
(open-root-block! state)
|
||||
state)}
|
||||
[page-e blocks config sidebar? whiteboard? _block-uuid]
|
||||
[page-e blocks config sidebar? _preview? _block-uuid]
|
||||
(when page-e
|
||||
(let [hiccup (component-block/->hiccup blocks config {})]
|
||||
[:div.page-blocks-inner {:style {:min-height 29}}
|
||||
|
||||
@@ -326,7 +326,7 @@
|
||||
|
||||
(defn- remote-all-blocks=>client-blocks
|
||||
[all-blocks ignore-attr-set ignore-entity-set]
|
||||
(let [{:keys [_ t blocks]} all-blocks
|
||||
(let [{:keys [_ _t blocks]} all-blocks
|
||||
card-one-attrs (blocks->card-one-attrs blocks)
|
||||
blocks1 (worker-util/profile :convert-card-one-value-from-value-coll
|
||||
(map (partial convert-card-one-value-from-value-coll card-one-attrs) blocks))
|
||||
|
||||
Reference in New Issue
Block a user