Fix lints again to try to keep branch as green as possible

This commit is contained in:
Gabriel Horner
2023-07-27 10:15:27 -04:00
parent 1671f540fb
commit 7bca841afe
4 changed files with 9 additions and 11 deletions

View File

@@ -74,7 +74,7 @@ frontend.util/trace!
;; Repl fn
frontend.util.pool/terminate-pool!
;; Repl fn
frontend.util.property/add-page-properties
frontend.handler.file-based.property.util/add-page-properties
;; Test runners used by shadow
frontend.test.node-test-runner/main
frontend.test.frontend-node-test-runner/main
@@ -88,4 +88,4 @@ frontend.state/get-current-edit-block-and-position
;; For debugging
frontend.db.model/get-all-classes
;; Repl fn
frontend.db.sync/export-as-blocks
frontend.db.sync/export-as-blocks

View File

@@ -77,6 +77,8 @@
frontend.handler.ui ui-handler
frontend.handler.notification notification
frontend.handler.page page-handler
frontend.handler.file-based.property file-property
frontend.handler.file-based.property.util property
frontend.handler.plugin plugin-handler
frontend.handler.plugin-config plugin-config-handler
frontend.handler.query.builder query-builder

View File

@@ -246,15 +246,6 @@
{:outliner-op :delete-property-value})))
(state/clear-edit!))))))
(defn set-editing-new-property!
[value]
(state/set-state! :ui/new-property-input-id value))
(defn editing-new-property!
[]
(set-editing-new-property! (state/get-edit-input-id))
(state/clear-edit!))
(defn class-add-property!
[repo class k-name]
(when (= "class" (:block/type class))

View File

@@ -9,24 +9,29 @@
(defn add-property!
[repo block k-name v & opts]
;; TODO: Remove ignores when finished
#_:clj-kondo/ignore
(if (config/db-based-graph? repo)
(db-property/add-property! repo block k-name v opts)))
(defn remove-property!
[repo block property-uuid]
{:pre (uuid? property-uuid)}
#_:clj-kondo/ignore
(if (config/db-based-graph? repo)
(db-property/remove-property! repo block property-uuid)))
(defn update-property!
[repo property-uuid opts]
{:pre [(uuid? property-uuid)]}
#_:clj-kondo/ignore
(if (config/db-based-graph? repo)
(db-property/update-property! repo property-uuid opts)))
(defn delete-property-value!
"Delete value if a property has multiple values"
[repo block property-id property-value]
#_:clj-kondo/ignore
(if (config/db-based-graph? repo)
(db-property/delete-property-value! repo block property-id property-value)))