0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/frontend/uxbox/core.cljs

21 lines
467 B
Text
Raw Normal View History

2015-06-18 19:35:50 +02:00
(ns uxbox.core
2015-12-14 23:57:47 +02:00
(:require [uxbox.ui :as ui]
2015-12-13 22:57:14 +02:00
[uxbox.router]
2015-12-14 23:57:47 +02:00
[uxbox.state :as s]
2015-12-14 14:17:18 +02:00
[uxbox.rstore :as rs]
[uxbox.data.projects :as dp]
2015-12-14 23:57:47 +02:00
[uxbox.data.load :as dl]
[goog.dom :as dom]
[beicon.core :as rx]))
2015-06-18 19:35:50 +02:00
(enable-console-print!)
(let [dom (dom/getElement "app")]
(ui/mount! dom))
2015-12-14 23:57:47 +02:00
(defonce +setup+
2015-12-14 14:17:18 +02:00
(do
2015-12-14 23:57:47 +02:00
(rs/emit! (dl/load-data))
(rx/on-value s/stream #(dl/persist-state %))))