0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-27 15:11:26 -05:00
penpot/frontend/src/uxbox/main/state.cljs
2019-02-19 18:22:22 +01:00

31 lines
890 B
Clojure

;; This Source Code Form is subject to the terms of the Mozilla Public
;; 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) 2015-2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.main.state
(:require [uxbox.builtins.colors :as colors]
[uxbox.library.icons :as icons]
[uxbox.util.storage :refer [storage]]))
(defn initial-state
[]
{:dashboard {:project-order :name
:project-filter ""
:images-order :name
:images-filter ""}
:route nil
:auth (:auth storage nil)
:clipboard #queue []
:undo {}
:profile nil
:workspace nil
:images-collections nil
:images nil
:icons-collections icons/collections
:icons nil
:colors-collections colors/collections
:shapes nil
:projects nil
:pages nil})