From 89e562574a1ec6a2697278cd8e7afbaf0ce3da2a Mon Sep 17 00:00:00 2001
From: Bruce Hauman <bhauman@gmail.com>
Date: Wed, 27 May 2020 07:48:18 -0600
Subject: [PATCH] remove om examples

---
 example_src/devdemos/extentions.cljs | 14 ++---
 example_src/devdemos/om.cljs         | 83 ----------------------------
 example_src/devdemos/start_ui.cljs   |  1 -
 src/deps.cljs                        |  6 +-
 4 files changed, 10 insertions(+), 94 deletions(-)
 delete mode 100644 example_src/devdemos/om.cljs

diff --git a/example_src/devdemos/extentions.cljs b/example_src/devdemos/extentions.cljs
index e50581f..c4be8a3 100644
--- a/example_src/devdemos/extentions.cljs
+++ b/example_src/devdemos/extentions.cljs
@@ -3,7 +3,7 @@
      [devcards.core]
      [sablono.core :as sab :include-macros true]
      [cljs.test :as t :include-macros true]
-     [om.core :as om]
+     #_[om.core :as om]
      [reagent.core :as rg])
     (:require-macros
      [devcards.core :as dc :refer [defcard defcard-doc deftest dom-node]]))
@@ -46,12 +46,12 @@
   {}
   {:heading 5})
 
-(defcard om-root
-  (dc/om-root
-   (fn [data owner]
-     (reify om/IRender
-       (render [_]
-         (sab/html [:h1 "This is om now!!!"]))))))
+#_(defcard om-root
+    (dc/om-root
+     (fn [data owner]
+       (reify om/IRender
+         (render [_]
+           (sab/html [:h1 "This is om now!!!"]))))))
 
 (defn simple-component []
   [:div
diff --git a/example_src/devdemos/om.cljs b/example_src/devdemos/om.cljs
deleted file mode 100644
index 4a0f518..0000000
--- a/example_src/devdemos/om.cljs
+++ /dev/null
@@ -1,83 +0,0 @@
-(ns devdemos.om
-    (:require
-     [devcards.core]
-     [om.core :as om :include-macros true]
-     [om.dom :as dom :include-macros true]
-     [reagent.core :as reagent]
-     [clojure.string :as string]
-     [sablono.core :as sab :include-macros true]
-     [cljs.test :as t :include-macros true :refer-macros [testing is]])
-    (:require-macros
-     ;; Notice that I am not including the 'devcards.core namespace
-     ;; but only the macros. This helps ensure that devcards will only
-     ;; be created when the :devcards is set to true in the build config.
-     [devcards.core :as dc :refer [defcard defcard-doc defcard-om noframe-doc deftest dom-node]]))
-
-(defcard-doc
-   "## Rendering Om components with `om-root` and `defcard-om`
-
-    The `om-root` will render Om components, much the way `om.core/root` does.
-
-    Please refer to code of this file to see how these Om examples are
-    built.
-")
-
-(defn widget [data owner]
-  (om/component
-   (sab/html [:h2 "This is an om card, " (:text data)])))
-
-(defonce test-om-data test-om-data)
-
-(defcard omcard-ex
-  (dc/om-root widget)
-  {:text "yep"})
-
-(defcard om-share-atoms
-  (dc/doc
-   "#### You can share an Atom between `om-root-card`s.
-
-    Interact with the counters below."))
-
-(defonce om-test-atom (atom {:count 20}))
-
-(defn counter [owner data f s]
-  (om/component
-   (sab/html
-    [:div
-     [:h1 (om/get-shared owner :title) (:count data)]
-     [:div [:a {:onClick #(om/transact! data :count f)} s]]
-     (dc/edn data)])))
-
-(defn om-counter-inc [data owner] (counter owner data inc "inc"))
-
-(dc/defcard-om omcard-shared-ex-1
-  om-counter-inc 
-  om-test-atom
-  {:shared {:title "First counter "}})
-
-(defn om-counter-dec [data owner] (counter owner data dec "dec"))
-
-(dc/defcard-om omcard-shared-ex-2
-  om-counter-dec
-  om-test-atom
-  {:shared {:title "Second counter "}})
-
-(dc/defcard om-test-atom-data
-  "### You can share an Atom with an `edn-card` too:"
-  om-test-atom)
-
-(defn unmount-sample [_ _]
-  (reify
-    om/IDidMount
-    (did-mount [_]
-      (println "mounting"))
-    om/IWillUnmount
-    (will-unmount [_]
-      (println "unmounting this"))
-    om/IRender
-    (render [_]
-      (dom/div nil "unmount"))))
-
-(defcard-om sample-cardd
-  unmount-sample
-  {})
diff --git a/example_src/devdemos/start_ui.cljs b/example_src/devdemos/start_ui.cljs
index 2c2e01d..3ebe47f 100644
--- a/example_src/devdemos/start_ui.cljs
+++ b/example_src/devdemos/start_ui.cljs
@@ -2,7 +2,6 @@
   (:require
    [devcards.core]
    [devdemos.defcard-api]
-   [devdemos.om]
    [devdemos.om-next]
    [devdemos.reagent]
    [devdemos.source-code-display]
diff --git a/src/deps.cljs b/src/deps.cljs
index 64cea3d..7fcc6e9 100644
--- a/src/deps.cljs
+++ b/src/deps.cljs
@@ -7,6 +7,6 @@
    :global-exports {devcards-marked DevcardsMarked}}]
  :externs ["devcards/js_libs/highlight.ext.js"
            "devcards/js_libs/marked.ext.js"]
- :npm-deps {"create-react-class": "15.6.3",
-            "react": "16.13.1",
-            "react-dom": "16.13.1"}}
+ :npm-deps {"create-react-class" "15.6.3"
+            "react" "16.13.1"
+            "react-dom" "16.13.1"}}