mirror of https://github.com/status-im/reagent.git
Update example deps
This commit is contained in:
parent
05c579c377
commit
72c95257c1
|
@ -1,11 +1,11 @@
|
|||
(defproject geometry-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
||||
[org.clojure/clojurescript "1.7.107"]
|
||||
[reagent "0.6.0"]
|
||||
[figwheel "0.3.7"]]
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.0.6"]
|
||||
[lein-figwheel "0.3.7"]]
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
|
||||
:hooks [leiningen.cljsbuild]
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
(ns geometry.core
|
||||
(:require
|
||||
[reagent.core :as r]
|
||||
[geometry.components :as c]
|
||||
[geometry.geometry :as g]))
|
||||
(:require [reagent.core :as r]
|
||||
[geometry.components :as c]
|
||||
[geometry.geometry :as g]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
(defonce points
|
||||
(defonce points
|
||||
(r/atom
|
||||
{:p1 (g/point 100 100)
|
||||
:p2 (g/point 200 200)
|
||||
|
@ -49,9 +48,11 @@
|
|||
(max 100))
|
||||
position (/ (- new-x 100)
|
||||
(- 500 100))
|
||||
history (:history @slider)]
|
||||
history (:history @slider)
|
||||
history-points (nth history (int (* (dec (count history)) position)) nil)]
|
||||
(swap! slider assoc p (g/point new-x 50))
|
||||
(reset! points (nth history (int (* (dec (count history)) position)))))))
|
||||
(if history-points
|
||||
(reset! points history-points)))))
|
||||
|
||||
(defn root [svg-root]
|
||||
(let [{:keys [p1 p2 p3 p c]} @points]
|
||||
|
@ -70,7 +71,7 @@
|
|||
[c/point {:on-drag (move-point svg-root :p3)} p3]]))
|
||||
|
||||
(defn main [{:keys [width height]}]
|
||||
[:svg
|
||||
[:svg
|
||||
{:width (or width 800)
|
||||
:height (or height 600)
|
||||
:style {:border "1px solid black"}}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
(defproject material-ui-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||
[org.clojure/clojurescript "1.10.439"]
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.17"]
|
||||
[cljsjs/material-ui "3.2.0-0"]
|
||||
[figwheel "0.5.18"]
|
||||
[cljsjs/material-ui "3.9.1-0"]
|
||||
[cljsjs/material-ui-icons "3.0.1-0"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.17"]]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
|
||||
:figwheel {:repl false
|
||||
:http-server-root "public"}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
(defproject reagent/react-sortable-hoc-example "0.1.0"
|
||||
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||
[org.clojure/clojurescript "1.10.339"]
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.16"]
|
||||
[figwheel "0.5.18"]
|
||||
[cljsjs/react-sortable-hoc "0.8.2-0"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.16"]]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
|
||||
:figwheel {:repl false
|
||||
:http-server-root "public"}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
(defproject simple-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
||||
[org.clojure/clojurescript "1.7.107"]
|
||||
[reagent "0.6.0"]
|
||||
[figwheel "0.3.7"]]
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.0.6"]
|
||||
[lein-figwheel "0.3.7"]]
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
|
||||
:hooks [leiningen.cljsbuild]
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
(defproject todomvc-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
||||
[org.clojure/clojurescript "1.7.107"]
|
||||
[reagent "0.6.0"]
|
||||
[figwheel "0.3.7"]]
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.0.6"]
|
||||
[lein-figwheel "0.3.7"]]
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
|
||||
:hooks [leiningen.cljsbuild]
|
||||
|
||||
|
|
Loading…
Reference in New Issue