Files
logseq/src/main/frontend/handler/property/util.cljs
Gabriel Horner a6c3569ea3 fix: remove most file-graph references from frontend and electron
- Remove references to old files under logseq/ e.g.
  logseq/version-files
- Remove flashcard commands and translations that applied to file graph flashcards
- Remove unused electron and frontend events
- Remove timetracking config which was for file graphs
2026-01-22 13:19:58 -05:00

22 lines
684 B
Clojure

(ns frontend.handler.property.util
"Utility fns for properties"
(:require [frontend.db.conn :as conn]
[frontend.state :as state]
[logseq.db.frontend.property :as db-property]))
(def lookup
"Get the property value by a built-in property's db-ident from block."
db-property/lookup)
(defn get-block-property-value
"Get the value of a built-in block's property by its db-ident"
[block db-ident]
(let [db (conn/get-db (state/get-current-repo))]
(db-property/get-block-property-value db block db-ident)))
(defn shape-block?
[block]
(let [repo (state/get-current-repo)
db (conn/get-db repo)]
(db-property/shape-block? db block)))