From 8c030ac73e1f8dc9014afb7c9fbf8f6fce8d905f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 24 Dec 2015 19:32:26 +0200 Subject: [PATCH] Add color replace and remove events schemas. --- frontend/uxbox/data/dashboard.cljs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/uxbox/data/dashboard.cljs b/frontend/uxbox/data/dashboard.cljs index ad00f97f6e..48999b266a 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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;