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

@@ -9,13 +9,13 @@
[frontend.handler.page :as page-handler]
[frontend.handler.repo :as repo-handler]
[frontend.handler.ui :as ui-handler]
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]
[lambdaisland.glogi :as log]
[electron.ipc :as ipc]
[promesa.core :as p]
[frontend.state :as state]))
;; all IPC paths must be normalized! (via util/path-normalize)
;; all IPC paths must be normalized! (via gp-util/path-normalize)
(defn- set-missing-block-ids!
[content]
@@ -42,7 +42,7 @@
(defn handle-changed!
[type {:keys [dir path content stat] :as payload}]
(when dir
(let [path (util/path-normalize path)
(let [path (gp-util/path-normalize path)
repo (config/get-local-repo dir)
pages-metadata-path (config/get-pages-metadata-path)
{:keys [mtime]} stat