mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-22 06:48:08 +00:00
newlines and eof newline
This commit is contained in:
parent
71d0bf21b8
commit
be6c53131d
@ -4,3 +4,4 @@
|
|||||||
|
|
||||||
(fw/start {:on-jsload example/run
|
(fw/start {:on-jsload example/run
|
||||||
:websocket-url "ws://localhost:3449/figwheel-ws"})
|
:websocket-url "ws://localhost:3449/figwheel-ws"})
|
||||||
|
|
||||||
|
@ -112,3 +112,4 @@
|
|||||||
(dispatch-sync [:initialize])
|
(dispatch-sync [:initialize])
|
||||||
(reagent/render [simple-example]
|
(reagent/render [simple-example]
|
||||||
(js/document.getElementById "app")))
|
(js/document.getElementById "app")))
|
||||||
|
|
||||||
|
@ -32,3 +32,4 @@
|
|||||||
(dispatch-sync [:initialise-db])
|
(dispatch-sync [:initialise-db])
|
||||||
(reagent/render [todomvc.views/todo-app]
|
(reagent/render [todomvc.views/todo-app]
|
||||||
(.getElementById js/document "app")))
|
(.getElementById js/document "app")))
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
)})
|
)})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; -- Default app-db Value ---------------------------------------------------
|
;; -- Default app-db Value ---------------------------------------------------
|
||||||
;;
|
;;
|
||||||
;; When the application first starts, this will be the value put in app-db
|
;; When the application first starts, this will be the value put in app-db
|
||||||
@ -44,7 +43,6 @@
|
|||||||
:showing :all}) ;; show all todos
|
:showing :all}) ;; show all todos
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; -- Local Storage ----------------------------------------------------------
|
;; -- Local Storage ----------------------------------------------------------
|
||||||
;;
|
;;
|
||||||
;; Part of the todomvc challenge is to store todos in LocalStorage, and
|
;; Part of the todomvc challenge is to store todos in LocalStorage, and
|
||||||
@ -66,3 +64,4 @@
|
|||||||
"Puts todos into localStorage"
|
"Puts todos into localStorage"
|
||||||
[todos]
|
[todos]
|
||||||
(.setItem js/localStorage lsk (str todos))) ;; sorted-map writen as an EDN map
|
(.setItem js/localStorage lsk (str todos))) ;; sorted-map writen as an EDN map
|
||||||
|
|
||||||
|
@ -48,3 +48,4 @@
|
|||||||
active-count (- (count todos) completed-count)
|
active-count (- (count todos) completed-count)
|
||||||
showing (:showing @db)]
|
showing (:showing @db)]
|
||||||
[active-count completed-count showing])))) ;; tuple
|
[active-count completed-count showing])))) ;; tuple
|
||||||
|
|
||||||
|
@ -93,3 +93,4 @@
|
|||||||
[stats-footer]])]
|
[stats-footer]])]
|
||||||
[:footer.info
|
[:footer.info
|
||||||
[:p "Double-click to edit a todo"]]])))
|
[:p "Double-click to edit a todo"]]])))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user