Move gp-util and gp-config to the common dep

This commit is contained in:
Tienson Qin
2024-01-03 16:38:05 +08:00
parent 46eacf6740
commit b7d9098e80
88 changed files with 498 additions and 505 deletions

View File

@@ -36,7 +36,7 @@
[goog.string :as gstring]
[lambdaisland.glogi :as log]
[logseq.common.path :as path]
[logseq.graph-parser.util :as gp-util]
[logseq.common.util :as common-util]
[medley.core :refer [dedupe-by]]
[promesa.core :as p]
[rum.core :as rum]))
@@ -729,7 +729,7 @@
;;; ### path-normalize
(def path-normalize
gp-util/path-normalize)
common-util/path-normalize)
;;; ### APIs
@@ -1600,7 +1600,7 @@
(map (fn [rpath]
(p/let [base-file (path/path-join "logseq/version-files/base" rpath)
current-change-file rpath
format (gp-util/get-format current-change-file)
format (common-util/get-format current-change-file)
repo (state/get-current-repo)
repo-dir (config/get-repo-dir repo)
base-exists? (fs/file-exists? repo-dir base-file)]
@@ -1635,7 +1635,7 @@
(p/let [incoming-file (path/path-join "logseq/version-files/incoming" rpath)
base-file (path/path-join "logseq/version-files/base" rpath)
current-change-file rpath
format (gp-util/get-format current-change-file)
format (common-util/get-format current-change-file)
repo (state/get-current-repo)
repo-dir (config/get-repo-dir repo)
base-exists? (fs/file-exists? repo-dir base-file)]