Move block-ref fns and vars to their own ns

Similar to page-ref to keep namespaces explicit
This commit is contained in:
Gabriel Horner
2022-07-27 15:49:33 -04:00
committed by Tienson Qin
parent e0b1f6b2de
commit 4ec5827902
18 changed files with 107 additions and 98 deletions

View File

@@ -9,7 +9,7 @@
[frontend.handler.repo :as repo-handler]
[frontend.handler.ui :as ui-handler]
[logseq.graph-parser.util :as gp-util]
[logseq.graph-parser.block :as gp-block]
[logseq.graph-parser.util.block-ref :as block-ref]
[lambdaisland.glogi :as log]
[electron.ipc :as ipc]
[promesa.core :as p]
@@ -22,7 +22,7 @@
(defn- set-missing-block-ids!
[content]
(when (string? content)
(doseq [block-id (gp-block/get-all-block-ref-ids content)]
(doseq [block-id (block-ref/get-all-block-ref-ids content)]
(when-let [block (try
(model/get-block-by-uuid block-id)
(catch js/Error _e