Move first batch of util fns to graph-parser.util

Still need to fix external.roam
This commit is contained in:
Gabriel Horner
2022-05-03 16:59:41 -04:00
parent af4b55c870
commit 85bd1fecb2
43 changed files with 211 additions and 166 deletions

View File

@@ -8,6 +8,7 @@
[frontend.state :as state]
[frontend.text :as text]
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]
[medley.core :as medley]
[reitit.frontend.easy :as rfe]))
@@ -77,7 +78,7 @@
"Create a new page"
:page
(let [name (:name path-params)
block? (util/uuid-string? name)]
block? (gp-util/uuid-string? name)]
(if block?
(if-let [block (db/entity [:block/uuid (medley/uuid name)])]
(let [content (text/remove-level-spaces (:block/content block)