mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
Split out text ns to graph-parser
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
[clojure.set :as set]
|
||||
[clojure.string :as string]
|
||||
[clojure.walk :as walk]
|
||||
[frontend.state :as state]
|
||||
[frontend.date :as date]
|
||||
[frontend.db.model :as model]
|
||||
[frontend.db.query-react :as query-react]
|
||||
[frontend.db.utils :as db-utils]
|
||||
[frontend.db.rules :as rules]
|
||||
[frontend.template :as template]
|
||||
[frontend.text :as text]
|
||||
[logseq.graph-parser.text :as text]
|
||||
[frontend.util :as util]
|
||||
[logseq.graph-parser.util :as gp-util]))
|
||||
|
||||
@@ -238,7 +239,7 @@
|
||||
(let [k (string/replace (name (nth e 1)) "_" "-")
|
||||
v (nth e 2)
|
||||
v (if-not (nil? v)
|
||||
(text/parse-property k v)
|
||||
(text/parse-property k v (state/get-config))
|
||||
v)
|
||||
v (if (coll? v) (first v) v)]
|
||||
{:query (list 'property '?b (keyword k) v)
|
||||
@@ -283,7 +284,7 @@
|
||||
(let [[k v] (rest e)
|
||||
k (string/replace (name k) "_" "-")]
|
||||
(if (some? v)
|
||||
(let [v' (text/parse-property k v)
|
||||
(let [v' (text/parse-property k v (state/get-config))
|
||||
val (if (coll? v') (first v') v')]
|
||||
{:query (list 'page-property '?p (keyword k) val)
|
||||
:rules [:page-property]})
|
||||
|
||||
Reference in New Issue
Block a user