mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
refactor(fs): mv fs2 logic to logseq.common pkg
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
[frontend.state :as state]
|
||||
[goog.object :as gobj]
|
||||
[logseq.graph-parser.utf8 :as utf8]
|
||||
[frontend.fs2.path :as fs2-path]
|
||||
[frontend.components.content :as content]))
|
||||
[logseq.common.path :as path]))
|
||||
|
||||
(defn save-code-editor!
|
||||
[]
|
||||
@@ -42,7 +41,7 @@
|
||||
(let [path (:file-path config)
|
||||
repo (state/get-current-repo)
|
||||
repo-dir (config/get-repo-dir repo)
|
||||
rpath (fs2-path/trim-dir-prefix repo-dir path)
|
||||
rpath (path/trim-dir-prefix repo-dir path)
|
||||
;; old-content (db/get-file rpath)
|
||||
_ (prn ::calc rpath)]
|
||||
(if rpath
|
||||
|
||||
Reference in New Issue
Block a user