Преглед изворни кода

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

Gabriel Horner пре 2 година
родитељ
комит
7bca841afe

+ 2 - 2
.carve/ignore

@@ -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

+ 2 - 0
.clj-kondo/config.edn

@@ -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

+ 0 - 9
src/main/frontend/handler/db_based/property.cljs

@@ -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))

+ 5 - 0
src/main/frontend/handler/property.cljs

@@ -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)))