refactor: mv common worker/frontend ns to frontend/common

Move common core.async, date and search utils to frontend/common.
Part of LOG-3171
This commit is contained in:
Gabriel Horner
2024-08-09 11:18:32 -04:00
parent dff466801d
commit 20eac03cea
18 changed files with 138 additions and 140 deletions

View File

@@ -9,7 +9,7 @@
[logseq.graph-parser.text :as text]
[logseq.common.util :as common-util]
[logseq.common.config :as common-config]
[frontend.worker.date :as date]
[frontend.common.date :as common-date]
[logseq.db.frontend.order :as db-order]))
(defn- file-based-properties-block
@@ -74,7 +74,7 @@
:as options}]
(let [date-formatter (common-config/get-date-formatter config)
split-namespace? (not (or (string/starts-with? title "hls__")
(date/valid-journal-title? date-formatter title)))
(common-date/valid-journal-title? date-formatter title)))
[title page-name] (get-title-and-pagename title)]
(when-not (ldb/get-page @conn page-name)
(let [pages (if split-namespace?