0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00
penpot/frontend/uxbox/state.cljs

18 lines
421 B
Text
Raw Normal View History

2015-06-18 19:35:50 +02:00
(ns uxbox.state
2015-12-17 16:43:58 +02:00
(:require [beicon.core :as rx]
[uxbox.rstore :as rs]))
2015-06-18 19:35:50 +02:00
2015-12-13 22:57:14 +02:00
(enable-console-print!)
(defonce state (atom {}))
2015-12-14 14:17:18 +02:00
(defonce stream
2015-12-13 22:57:14 +02:00
(rs/init {:user {:fullname "Cirilla"
:avatar "http://lorempixel.com/50/50/"}
2015-12-16 13:57:42 +02:00
:dashboard {:section :dashboard/projects}
2015-12-16 18:08:28 +02:00
:workspace {}
2015-12-13 13:04:34 +02:00
:projects-by-id {}
:pages-by-id {}}))
2015-06-18 19:35:50 +02:00
2015-12-14 23:57:47 +02:00
(rx/to-atom stream state)