code cleanup

This commit is contained in:
Tienson Qin
2025-12-28 21:57:52 +08:00
parent 4b2884abe9
commit 55bf428872
2 changed files with 3 additions and 12 deletions

View File

@@ -8,8 +8,8 @@
[logseq.db.frontend.property :as db-property]
[logseq.db.frontend.property.type :as db-property-type]
[logseq.graph-parser.mldoc :as gp-mldoc]
[shadow.resource :as resource]
[shadow.cljs.modern :refer (defclass)])
[shadow.cljs.modern :refer (defclass)]
[shadow.resource :as resource])
(:require-macros [logseq.publish.async :refer [js-await]]))
(def text-decoder (js/TextDecoder.))
@@ -991,7 +991,7 @@
(when blocks blocks)
(when tagged-section tagged-section)
(when linked-refs linked-refs)]
[:script {:type "module" :src "/static/publish.js"}]]]
[:script {:type "module" :src "/static/publish.js"}]]]]
(str "<!doctype html>" (render-hiccup doc))))
(defn render-graph-html

View File

@@ -1,9 +0,0 @@
(ns frontend.components.lazy-editor
"SSR stub for code editor."
(:require [rum.core :as rum]))
(rum/defc editor
[_config _id _attr code _options]
[:pre.code-editor
{:style {:white-space "pre-wrap"}}
(or code "")])