Skip to content

Commit

Permalink
deps: bump deps for frontend example
Browse files Browse the repository at this point in the history
Also fix frontend example to work with current reagent version
  • Loading branch information
Martín Varela committed Apr 19, 2024
1 parent 1b7fc0f commit 81b9464
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 51 deletions.
14 changes: 8 additions & 6 deletions examples/frontend-auth/project.clj
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
(defproject frontend "0.1.0-SNAPSHOT"
(defproject frontend-auth "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}

:dependencies [[org.clojure/clojure "1.11.2"]
[ring-server "0.5.0"]
[reagent "0.8.1"]
[ring "1.7.1"]
[reagent "1.2.0"]
[ring "1.12.1"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.439"]
[org.clojure/clojurescript "1.11.132"]
[metosin/reitit "0.7.0-alpha7"]
[metosin/reitit-schema "0.7.0-alpha7"]
[metosin/reitit-frontend "0.7.0-alpha7"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]
;; Just for pretty printting the match
[fipp "0.6.14"]]

:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-figwheel "0.5.20"]]

:source-paths []
:resource-paths ["resources" "target/cljsbuild"]
Expand Down
3 changes: 2 additions & 1 deletion examples/frontend-auth/src/frontend/core.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns frontend.core
(:require [reagent.core :as r]
[reagent.dom :as rd]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]
[reitit.frontend.controllers :as rfc]
Expand Down Expand Up @@ -147,6 +148,6 @@
(assoc state :match (assoc new-match :controllers (rfc/apply-controllers (:controllers (:match state)) new-match)))
(assoc state :match new-match))))))
{:use-fragment true})
(r/render [main-view] (.getElementById js/document "app")))
(rd/render [main-view] (.getElementById js/document "app")))

(init!)
16 changes: 9 additions & 7 deletions examples/frontend-controllers/project.clj
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
(defproject frontend "0.1.0-SNAPSHOT"
(defproject frontend-controllers "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}

:dependencies [[org.clojure/clojure "1.10.0"]
:dependencies [[org.clojure/clojure "1.11.2"]
[ring-server "0.5.0"]
[reagent "0.8.1"]
[ring "1.7.1"]
[reagent "1.2.0"]
[ring "1.12.1"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.439"]
[org.clojure/clojurescript "1.11.132"]
[metosin/reitit "0.7.0-alpha7"]
[metosin/reitit-schema "0.7.0-alpha7"]
[metosin/reitit-frontend "0.7.0-alpha7"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]
;; Just for pretty printting the match
[fipp "0.6.14"]]

:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-figwheel "0.5.20"]]

:source-paths []
:resource-paths ["resources" "target/cljsbuild"]
Expand Down
3 changes: 2 additions & 1 deletion examples/frontend-controllers/src/frontend/core.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns frontend.core
(:require [reagent.core :as r]
[reagent.dom :as rd]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]
[reitit.frontend.controllers :as rfc]
Expand Down Expand Up @@ -88,6 +89,6 @@
(if new-match
(assoc new-match :controllers (rfc/apply-controllers (:controllers old-match) new-match))))))
{:use-fragment true})
(r/render [current-page] (.getElementById js/document "app")))
(rd/render [current-page] (.getElementById js/document "app")))

(init!)
16 changes: 9 additions & 7 deletions examples/frontend-links/project.clj
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
(defproject frontend "0.1.0-SNAPSHOT"
(defproject frontend-links "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}

:dependencies [[org.clojure/clojure "1.10.0"]
:dependencies [[org.clojure/clojure "1.11.2"]
[ring-server "0.5.0"]
[reagent "0.8.1"]
[ring "1.7.1"]
[reagent "1.2.0"]
[ring "1.12.1"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.520"]
[metosin/reitit "0.7.0-alpha7"]
[metosin/reitit-spec "0.7.0-alpha7"]
[metosin/reitit-frontend "0.7.0-alpha7"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]
;; Just for pretty printting the match
[fipp "0.6.14"]]

:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]
[cider/cider-nrepl "0.21.1"]]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-figwheel "0.5.20"]
[cider/cider-nrepl "0.47.1"]]

:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}

Expand Down
3 changes: 2 additions & 1 deletion examples/frontend-links/src/frontend/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require [clojure.string :as string]
[fipp.edn :as fedn]
[reagent.core :as r]
[reagent.dom :as rd]
[reitit.coercion.spec :as rss]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]
Expand Down Expand Up @@ -137,7 +138,7 @@
(fn [m] (reset! current-match m))
;; set to false to enable HistoryAPI
{:use-fragment true})
(r/render [current-page] (.getElementById js/document "app")))
(rd/render [current-page] (.getElementById js/document "app")))

(init!)

Expand Down
10 changes: 6 additions & 4 deletions examples/frontend-malli/project.clj
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
(defproject frontend "0.1.0-SNAPSHOT"
(defproject frontend-malli "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}

:dependencies [[org.clojure/clojure "1.10.1"]
[ring-server "0.5.0"]
[reagent "0.10.0"]
[ring "1.8.1"]
[reagent "1.2.0"]
[ring "1.12.1"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.773"]
[org.clojure/clojurescript "1.11.132"]
[metosin/reitit "0.7.0-alpha7"]
[metosin/reitit-malli "0.7.0-alpha7"]
[metosin/reitit-frontend "0.7.0-alpha7"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]
;; Just for pretty printting the match
[fipp "0.6.23"]]

Expand Down
3 changes: 2 additions & 1 deletion examples/frontend-malli/src/frontend/core.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns frontend.core
(:require [reagent.core :as r]
[reagent.dom :as rd]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]
[reitit.coercion.malli :as rsm]
Expand Down Expand Up @@ -78,6 +79,6 @@
(fn [m] (reset! match m))
;; set to false to enable HistoryAPI
{:use-fragment true})
(r/render [current-page] (.getElementById js/document "app")))
(rd/render [current-page] (.getElementById js/document "app")))

(init!)
21 changes: 12 additions & 9 deletions examples/frontend-prompt/project.clj
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
(defproject frontend "0.1.0-SNAPSHOT"
(defproject frontend-prompt "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}

:dependencies [[org.clojure/clojure "1.10.0"]
:dependencies [[org.clojure/clojure "1.11.2"]
[ring-server "0.5.0"]
[reagent "0.8.1"]
[ring "1.7.1"]
[reagent "1.2.0"]
[ring "1.12.1"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.520"]
[org.clojure/clojurescript "1.11.132"]
[metosin/reitit "0.7.0-alpha7"]
[metosin/reitit-spec "0.7.0-alpha7"]
[metosin/reitit-frontend "0.7.0-alpha7"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]
;; Just for pretty printting the match
[fipp "0.6.14"]]
[fipp "0.6.23"]]

:plugins [[lein-cljsbuild "1.1.8"]
[lein-figwheel "0.5.20"]
[cider/cider-nrepl "0.47.1"]]

:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]
[cider/cider-nrepl "0.21.1"]]

:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}

Expand Down
3 changes: 2 additions & 1 deletion examples/frontend-prompt/src/frontend/core.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns frontend.core
(:require [fipp.edn :as fedn]
[reagent.core :as r]
[reagent.dom :as rd]
[reitit.coercion.spec :as rss]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]))
Expand Down Expand Up @@ -63,6 +64,6 @@
on-navigate
;; set to false to enable HistoryAPI
{:use-fragment true})
(r/render [current-page] (.getElementById js/document "app")))
(rd/render [current-page] (.getElementById js/document "app")))

(init!)
18 changes: 10 additions & 8 deletions examples/frontend-re-frame/project.clj
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
(defproject frontend-re-frame "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.520"]
:dependencies [[org.clojure/clojure "1.11.2"]
[org.clojure/clojurescript "1.11.132"]
[metosin/reitit "0.7.0-alpha7"]
[reagent "0.8.1"]
[re-frame "0.10.6"]]

:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]
[cider/cider-nrepl "0.21.1"]]
[reagent "1.2.0"]
[re-frame "0.10.6"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]]

:plugins [[lein-cljsbuild "1.1.8"]
[lein-figwheel "0.5.20"]
[cider/cider-nrepl "0.47.1"]]

:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
:min-lein-version "2.5.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns frontend-re-frame.core
(:require [re-frame.core :as re-frame]
[reagent.core :as reagent]
[reagent.dom :as rd]
[reitit.core :as r]
[reitit.coercion.spec :as rss]
[reitit.frontend :as rf]
Expand Down Expand Up @@ -143,7 +144,7 @@
(re-frame/dispatch-sync [::initialize-db])
(dev-setup)
(init-routes!) ;; Reset routes on figwheel reload
(reagent/render [router-component {:router router}]
(rd/render [router-component {:router router}]
(.getElementById js/document "app")))

(init)
8 changes: 5 additions & 3 deletions examples/frontend/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

:dependencies [[org.clojure/clojure "1.11.2"]
[ring-server "0.5.0"]
[reagent "0.10.0"]
[ring "1.8.1"]
[reagent "1.2.0"]
[ring "1.12.1"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.773"]
[org.clojure/clojurescript "1.11.132"]
[metosin/reitit "0.7.0-alpha7"]
[metosin/reitit-spec "0.7.0-alpha7"]
[metosin/reitit-frontend "0.7.0-alpha7"]
[cljsjs/react "17.0.2-0"]
[cljsjs/react-dom "17.0.2-0"]
;; Just for pretty printting the match
[fipp "0.6.23"]]

Expand Down
3 changes: 2 additions & 1 deletion examples/frontend/src/frontend/core.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns frontend.core
(:require [reagent.core :as r]
[reagent.dom :as rd]
[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]
[reitit.coercion.spec :as rss]
Expand Down Expand Up @@ -77,6 +78,6 @@
(fn [m] (reset! match m))
;; set to false to enable HistoryAPI
{:use-fragment true})
(r/render [current-page] (.getElementById js/document "app")))
(rd/render [current-page] (.getElementById js/document "app")))

(init!)

0 comments on commit 81b9464

Please sign in to comment.