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