mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
deps: bump deps for frontend example
Also fix frontend example to work with current reagent version
This commit is contained in:
parent
1b7fc0fc58
commit
81b9464f68
14 changed files with 72 additions and 50 deletions
|
|
@ -1,4 +1,4 @@
|
|||
(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"
|
||||
|
|
@ -6,18 +6,20 @@
|
|||
|
||||
: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"]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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!)
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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!)
|
||||
|
|
|
|||
|
|
@ -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]}
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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!)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(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"
|
||||
|
|
@ -6,13 +6,15 @@
|
|||
|
||||
: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"]]
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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!)
|
||||
|
|
|
|||
|
|
@ -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]}
|
||||
|
||||
|
|
|
|||
|
|
@ -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]))
|
||||
|
|
@ -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!)
|
||||
|
|
|
|||
|
|
@ -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"]]
|
||||
[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.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]}
|
||||
:min-lein-version "2.5.3"
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"]]
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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!)
|
||||
|
|
|
|||
Loading…
Reference in a new issue