diff --git a/frontend/uxbox/data/dashboard.cljs b/frontend/uxbox/data/dashboard.cljs index ad00f97f6..48999b266 100644 --- a/frontend/uxbox/data/dashboard.cljs +++ b/frontend/uxbox/data/dashboard.cljs @@ -6,6 +6,19 @@ [uxbox.time :as time] [bouncer.validators :as v])) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Schemas +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(def ^:static +color-replace-schema+ + {:id [v/required sc/uuid] + :from [sc/color] + :to [v/required sc/color]}) + +(def ^:static +remove-color-schema+ + {:id [v/required sc/uuid] + :color [v/required sc/color]}) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;