2015-06-18 12:35:50 -05:00
|
|
|
(ns uxbox.core
|
2015-12-14 16:57:47 -05:00
|
|
|
(:require [uxbox.ui :as ui]
|
2015-12-13 15:57:14 -05:00
|
|
|
[uxbox.router]
|
2015-12-14 16:57:47 -05:00
|
|
|
[uxbox.state :as s]
|
2015-12-14 07:17:18 -05:00
|
|
|
[uxbox.rstore :as rs]
|
|
|
|
[uxbox.data.projects :as dp]
|
2015-12-14 16:57:47 -05:00
|
|
|
[uxbox.data.load :as dl]
|
|
|
|
[goog.dom :as dom]
|
|
|
|
[beicon.core :as rx]))
|
|
|
|
|
2015-06-18 12:35:50 -05:00
|
|
|
|
|
|
|
(enable-console-print!)
|
|
|
|
|
2015-12-14 16:57:47 -05:00
|
|
|
(defonce +setup+
|
2015-12-14 07:17:18 -05:00
|
|
|
(do
|
2015-12-17 05:51:36 -05:00
|
|
|
(println "BOOTSTRAP")
|
|
|
|
(ui/init)
|
2015-12-14 16:57:47 -05:00
|
|
|
(rs/emit! (dl/load-data))
|
|
|
|
(rx/on-value s/stream #(dl/persist-state %))))
|