rcmerci 1 год назад
Родитель
Сommit
701220dd28

+ 0 - 22
src/main/frontend/worker/rtc/const.cljs

@@ -4,28 +4,6 @@
             [malli.core :as m]
             [malli.transform :as mt]))
 
-(def general-attrs-schema-coll
-  [[:updated-at {:optional true} :int]
-   [:created-at {:optional true} :int]
-   [:created-by {:optional true} :string]
-   [:alias {:optional true} [:maybe [:sequential :uuid]]]
-   [:type {:optional true} [:maybe [:sequential :string]]]
-   [:schema {:optional true} [:maybe :string]]
-   [:tags {:optional true} [:maybe [:sequential :uuid]]]
-   [:properties {:optional true} [:maybe :string ; transit-json-string
-                                  ]]
-   [:link {:optional true} [:maybe :uuid]]
-   [:journal-day {:optional true} [:maybe :int]]
-   [:ident {:optional true} [:maybe :string]]])
-
-(def general-attr-set
-  (into #{} (map first) general-attrs-schema-coll))
-
-;; (def block-type-schema [:enum "property" "class" "whiteboard" "hidden" "closed value" "macro"])
-
-;; (def block-pos-type-schema
-;;   [:enum :sibling :child :no-order])
-
 (def block-pos-schema
   ":sibling:  sibling of target-block(:target-uuid)
   :child: child of target-block(:target-uuid)

+ 0 - 3
src/main/frontend/worker/rtc/full_upload_download_graph.cljs

@@ -2,16 +2,13 @@
   "- upload local graph to remote
   - download remote graph"
   (:require [cljs-http.client :as http]
-            [clojure.string :as string]
             [datascript.core :as d]
             [frontend.common.missionary-util :as c.m]
             [frontend.worker.rtc.client :as r.client]
             [frontend.worker.rtc.op-mem-layer :as op-mem-layer]
             [frontend.worker.state :as worker-state]
             [frontend.worker.util :as worker-util]
-            [logseq.common.util.page-ref :as page-ref]
             [logseq.db :as ldb]
-            [logseq.db.frontend.content :as db-content]
             [logseq.db.frontend.order :as db-order]
             [logseq.db.frontend.schema :as db-schema]
             [logseq.db.sqlite.util :as sqlite-util]

+ 1 - 1
src/test/frontend/worker/pipeline_test.cljs

@@ -32,7 +32,7 @@
                                          :block/path-refs [{:db/id new-tag-id}])
                                   %)
                                blocks)
-          refs-tx (worker-pipeline/compute-block-path-refs-tx {:tx-meta {:outliner-op :save-block} :db-after @conn} modified-blocks)
+          refs-tx (#'worker-pipeline/compute-block-path-refs-tx {:tx-meta {:outliner-op :save-block} :db-after @conn} modified-blocks)
           _ (d/transact! conn refs-tx)
           updated-blocks (->> (get-blocks @conn)
                               (map #(hash-map :block/content (:block/content %)