Minor structure refactor.

Make forms and messages modules independent of
store location (making them plugables).
This commit is contained in:
Andrey Antukh 2017-01-13 22:01:13 +01:00
parent 8c28a8c0a7
commit 08b0a096eb
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
87 changed files with 573 additions and 505 deletions

View file

@ -2,24 +2,15 @@
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
;; Copyright (c) 2016-2017 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.view
(:require [uxbox.config]
[uxbox.store :as st]
[uxbox.view.store :as st]
[uxbox.view.ui :as ui]))
(defn- initial-state
[]
{:route nil
:project nil
:pages nil
:page nil
:flags #{:sitemap}
:shapes {}})
(defn ^:export init
[]
(st/init initial-state)
(st/init)
(ui/init-routes)
(ui/init))