Commit d9ac82b 1 parent fd6c820 commit d9ac82b Copy full SHA for d9ac82b
File tree 11 files changed +363
-326
lines changed
11 files changed +363
-326
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 28
28
"devDependencies" : {
29
29
"feather-icons" : " ^4.26.0" ,
30
30
"http-server" : " ^0.12.1" ,
31
- "shadow-cljs" : " ^2.8.92 " ,
31
+ "shadow-cljs" : " ^2.8.93 " ,
32
32
"source-map-support" : " ^0.5.16" ,
33
33
"url-parse" : " ^1.4.7"
34
34
}
Original file line number Diff line number Diff line change 6
6
[mvc-works/shell-page " 0.1.10" ]
7
7
[mvc-works/ws-edn " 0.1.3" ]
8
8
[cumulo/recollect " 0.5.0" ]
9
- [cumulo/reel " 0.1.1 " ]
9
+ [cumulo/reel " 0.2.0-a1 " ]
10
10
[cumulo/util " 0.1.10" ]
11
- [respo " 0.11.5 " ]
11
+ [respo " 0.12.1-a2 " ]
12
12
[respo/ui " 0.3.14" ]
13
- [respo/alerts " 0.4.3 " ]
13
+ [respo/alerts " 0.5.0-a2 " ]
14
14
[respo/message " 0.3.6" ]
15
15
[respo/feather " 0.1.1" ]
16
16
[cirru/bisection-key " 0.1.5" ]
17
- [cirru/favored-edn " 0.1.2 " ]
17
+ [cirru/favored-edn " 0.1.3 " ]
18
18
[medley " 1.3.0" ]
19
- [appliedscience/js-interop " 0.2.4 " ]
19
+ [appliedscience/js-interop " 0.2.5 " ]
20
20
[org.clojure/core.incubator " 0.1.4" ]
21
21
]
22
22
:open-file-command [
Original file line number Diff line number Diff line change 1
1
2
2
(ns app.client
3
3
(:require [respo.core :refer [render! clear-cache! realize-ssr!]]
4
- [respo.cursor :refer [mutate ]]
4
+ [respo.cursor :refer [update-states ]]
5
5
[app.comp.container :refer [comp-container]]
6
6
[cljs.reader :refer [read-string]]
7
7
[app.schema :as schema]
32
32
(defn dispatch! [op op-data]
33
33
(when (and config/dev? (not= op :states )) (println " Dispatch" op op-data))
34
34
(case op
35
- :states (reset! *states (( mutate op-data) @*states))
35
+ :states (reset! *states (update-states @*states op-data ))
36
36
:effect/connect (connect! )
37
37
(ws-send! {:kind :op , :op op, :data op-data})))
38
38
Original file line number Diff line number Diff line change 2
2
(ns app.comp.container
3
3
(:require [hsl.core :refer [hsl]]
4
4
[respo-ui.core :as ui]
5
- [respo.core :refer [defcomp <> div span action-> cursor-> button]]
5
+ [respo.core :refer [defcomp <> >> div span button]]
6
6
[respo.comp.inspect :refer [comp-inspect]]
7
7
[respo.comp.space :refer [=<]]
8
8
[app.comp.navigation :refer [comp-navigation]]
31
31
:background-size :contain }})
32
32
(div
33
33
{:style {:cursor :pointer , :line-height " 32px" },
34
- :on-click (action-> :effect/connect nil )}
34
+ :on-click (fn [e d!] ( d! :effect/connect nil ) )}
35
35
(<> " No connection..." {:font-family ui/font-fancy, :font-size 24 }))))
36
36
37
37
(defcomp
66
66
:home (<> " Home" )
67
67
:profile (comp-profile (:user store) (:data router))
68
68
(<> router))
69
- (comp-login states))
69
+ (comp-login ( >> states :login ) ))
70
70
(comp-status-color (:color store))
71
71
(when dev? (comp-inspect " Store" store {:bottom 0 , :left 0 , :max-width " 100%" }))
72
72
(comp-messages
73
73
(get-in store [:session :messages ])
74
74
{}
75
- (fn [info d! m! ] (d! :session/remove-message info)))
75
+ (fn [info d!] (d! :session/remove-message info)))
76
76
(when dev? (comp-reel (:reel-length store) {}))))))
Original file line number Diff line number Diff line change 9
9
10
10
(def initial-state {:username " " , :password " " })
11
11
12
- (defn on-input [state k] (fn [e dispatch! mutate!] (mutate! (assoc state k (:value e)))))
13
-
14
12
(defn on-submit [username password signup?]
15
13
(fn [e dispatch!]
16
14
(dispatch! (if signup? :user/sign-up :user/log-in ) [username password])
19
17
(defcomp
20
18
comp-login
21
19
(states )
22
- (let [state (or (:data states) initial-state)]
20
+ (let [cursor ( :cursor states), state (or (:data states) initial-state)]
23
21
(div
24
22
{:style (merge ui/flex ui/center)}
25
23
(div
32
30
{:placeholder " Username" ,
33
31
:value (:username state),
34
32
:style ui/input,
35
- :on-input (on-input state :username )}))
33
+ :on-input (fn [e d!] ( d! cursor ( assoc state :username ( :value e))) )}))
36
34
(=< nil 8 )
37
35
(div
38
36
{}
39
37
(input
40
38
{:placeholder " Password" ,
41
39
:value (:password state),
42
40
:style ui/input,
43
- :on-input (on-input state :password )})))
41
+ :on-input (fn [e d!] ( d! cursor ( assoc state :password ( :value e))) )})))
44
42
(=< nil 8 )
45
43
(div
46
44
{:style {:text-align :right }}
Original file line number Diff line number Diff line change 3
3
(:require [hsl.core :refer [hsl]]
4
4
[respo-ui.core :as ui]
5
5
[respo.comp.space :refer [=<]]
6
- [respo.core :refer [defcomp <> action-> span div]]
6
+ [respo.core :refer [defcomp <> span div]]
7
7
[app.config :as config]))
8
8
9
9
(defcomp
19
19
:border-bottom (str " 1px solid " (hsl 0 0 0 0.1 )),
20
20
:font-family ui/font-fancy})}
21
21
(div
22
- {:on-click (action-> :router/change {:name :home }), :style {:cursor :pointer }}
22
+ {:on-click (fn [e d!] ( d! :router/change {:name :home }) ), :style {:cursor :pointer }}
23
23
(<> (:title config/site) nil ))
24
24
(div
25
- {:style {:cursor " pointer" }, :on-click (action-> :router/change {:name :profile })}
25
+ {:style {:cursor " pointer" }, :on-click (fn [e d!] ( d! :router/change {:name :profile }) )}
26
26
(<> (if logged-in? " Me" " Guest" ))
27
27
(=< 8 nil )
28
28
(<> count-members))))
Original file line number Diff line number Diff line change 37
37
{}
38
38
(button
39
39
{:style (merge ui/button),
40
- :on-click (fn [e d! m! ]
40
+ :on-click (fn [e d!]
41
41
(js/location.replace (str js/location.origin " ?time=" (.now js/Date))))}
42
42
(<> " Refresh" ))
43
43
(=< 8 nil )
44
44
(button
45
45
{:style (merge ui/button {:color :red , :border-color :red }),
46
- :on-click (fn [e dispatch! mutate! ]
46
+ :on-click (fn [e dispatch!]
47
47
(dispatch! :user/log-out nil )
48
48
(.removeItem js/localStorage (:storage-key config/site)))}
49
49
(<> " Log out" )))))
Original file line number Diff line number Diff line change
1
+
2
+ {} ( :host |cumulo.org )
3
+ :uploads $ []
4
+ {} ( :from |dist/* ) ( :to |/web-assets/cdn/cumulo-workflow/ )
5
+ {} ( :from |dist/{index.html,manifest.json} ) ( :to |/web-assets/repo/Cumulo/workflow/ )
6
+ {} ( :from |dist/{server.js,package.json} ) ( :to |/servers/workflow/ )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments