2015-12-20 20:19:07 +02:00
|
|
|
(ns uxbox.ui.dashboard.builtins)
|
|
|
|
|
2015-12-21 19:16:39 +02:00
|
|
|
(def ^:static +color-collections+
|
2015-12-20 20:19:07 +02:00
|
|
|
[{:name "Generic 1"
|
|
|
|
:id 1
|
2015-12-21 19:16:39 +02:00
|
|
|
:colors #{:00f9ff
|
|
|
|
:009fff
|
|
|
|
:0078ff
|
|
|
|
:005eff
|
|
|
|
:0900ff
|
|
|
|
:7502f1
|
|
|
|
:ffe705
|
|
|
|
:00ffab
|
|
|
|
:f52105
|
|
|
|
}}
|
2015-12-20 20:19:07 +02:00
|
|
|
{:name "Generic 2"
|
|
|
|
:id 2
|
2015-12-21 19:16:39 +02:00
|
|
|
:colors #{:00f9ff
|
|
|
|
:009fff
|
|
|
|
:0078ff
|
|
|
|
:005eff
|
|
|
|
:0900ff
|
|
|
|
:7502f1
|
|
|
|
:ffe705
|
|
|
|
:00ffab
|
|
|
|
:f52105
|
|
|
|
}}])
|
2015-12-20 20:19:07 +02:00
|
|
|
|
2015-12-21 19:16:39 +02:00
|
|
|
(def ^:static +color-collections-by-id+
|
|
|
|
(let [data (transient {})]
|
|
|
|
(run! #(assoc! data (:id %) %) +color-collections+)
|
|
|
|
(persistent! data)))
|