Browse Source

remove demo alert

Tienson Qin 3 years ago
parent
commit
d872335191

+ 6 - 5
src/main/frontend/components/widgets.cljs

@@ -104,8 +104,9 @@
 
 (rum/defc demo-graph-alert
   []
-  (when (and (config/demo-graph?)
-             (not config/publishing?))
-    (ui/admonition
-     :warning
-     [:p (t :on-boarding/demo-graph)])))
+  ;; (when (and (config/demo-graph?)
+  ;;            (not config/publishing?))
+  ;;   (ui/admonition
+  ;;    :warning
+  ;;    [:p (t :on-boarding/demo-graph)]))
+  )

+ 0 - 4
src/main/frontend/modules/crdt/yjs.cljs

@@ -63,8 +63,6 @@
                        (when-let [v ^js (.get ymap uuid-str)]
                          (when-not (string? v) ; yjs subdoc
                            (.load v)
-                           (.on v "update"
-                                (y-ws/subDocUpdateHandler @*server-conn v))
                            (let [ymap' (.getMap v)]
                              (.observe ymap'
                                        (handle-local-updates! graph ymap'))))
@@ -76,7 +74,6 @@
                               :block-id (uuid uuid-str)}))))
                      changed-keys)]
         (when (seq changes)
-          (prn {:changes changes})
           (state/pub-event! [:graph/merge-remote-changes graph changes event]))))))
 
 (defn- get-page-blocks-uuids [db page-id]
@@ -135,7 +132,6 @@
                                    (.observe blocks-ymap
                                              (handle-local-updates! graph blocks-ymap))
                                    blocks-ymap))]
-               (prn "Create new subdoc: " k')
                (if (:db/deleted? block')
                  ;; delete non-page block
                  (.delete blocks-ymap k)