mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
Move first batch of util fns to graph-parser.util
Still need to fix external.roam
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user