0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00
penpot/frontend/uxbox/core.cljs

21 lines
467 B
Text
Raw Normal View History

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!)
(let [dom (dom/getElement "app")]
(ui/mount! dom))
2015-12-14 16:57:47 -05:00
(defonce +setup+
2015-12-14 07:17:18 -05:00
(do
2015-12-14 16:57:47 -05:00
(rs/emit! (dl/load-data))
(rx/on-value s/stream #(dl/persist-state %))))