mirror of
https://github.com/penpot/penpot.git
synced 2026-05-07 17:18:35 +00:00
25 lines
607 B
Clojure
25 lines
607 B
Clojure
(ns uxbox.state
|
|
(:require [beicon.core :as rx]
|
|
[uxbox.rstore :as rs]))
|
|
|
|
(defonce state (atom {}))
|
|
|
|
(defonce stream
|
|
(rs/init {:user {:fullname "Cirilla Fiona"
|
|
:avatar "/images/favicon.png"}
|
|
:dashboard {:project-order :name
|
|
:project-filter ""}
|
|
:workspace {}
|
|
:shapes-by-id {}
|
|
:elements-by-id {}
|
|
:colors-by-id {}
|
|
:icons-by-id {}
|
|
:projects-by-id {}
|
|
:pages-by-id {}}))
|
|
|
|
|
|
(defn init
|
|
"Initialize the state materialization."
|
|
[]
|
|
(rx/to-atom stream state))
|