WIP: project creation now work.

This commit is contained in:
Andrey Antukh 2015-12-14 14:17:18 +02:00
parent 62b9267d4f
commit 56f7613453
11 changed files with 201 additions and 103 deletions

View file

@ -1,9 +1,9 @@
(ns uxbox.core
(:require [uxbox.state]
[uxbox.ui :as ui]
[uxbox.ui.navigation]
[uxbox.router]
[uxbox.rstore]
[uxbox.rstore :as rs]
[uxbox.data.projects :as dp]
[goog.dom :as dom]))
(enable-console-print!)
@ -11,3 +11,19 @@
(let [dom (dom/getElement "app")]
(ui/mount! dom))
(defonce +setup-stuff+
(do
(rs/emit! (dp/create-project {:name "foo"
:width 600
:height 600
:layout :mobile}))
(rs/emit! (dp/create-project {:name "bar"
:width 600
:height 600
:layout :mobile}))
(rs/emit! (dp/create-project {:name "baz"
:width 600
:height 600
:layout :mobile}))
nil))