mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 02:11:38 +02:00
🐛 Fix inconsistences on messages specs.
This commit is contained in:
parent
b4341cba18
commit
a976a826a5
2 changed files with 17 additions and 14 deletions
|
@ -2,25 +2,28 @@
|
||||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
;; 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/.
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
|
;; This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||||
|
;; defined by the Mozilla Public License, v. 2.0.
|
||||||
|
;;
|
||||||
|
;; Copyright (c) 2020 UXBOX Labs SL
|
||||||
|
|
||||||
(ns app.main.data.media
|
(ns app.main.data.media
|
||||||
(:require
|
(:require
|
||||||
[cljs.spec.alpha :as s]
|
|
||||||
[cuerdas.core :as str]
|
|
||||||
[beicon.core :as rx]
|
|
||||||
[potok.core :as ptk]
|
|
||||||
[app.common.spec :as us]
|
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.media :as cm]
|
[app.common.media :as cm]
|
||||||
[app.main.data.messages :as dm]
|
[app.common.spec :as us]
|
||||||
[app.main.store :as st]
|
|
||||||
[app.main.repo :as rp]
|
|
||||||
[app.util.i18n :refer [tr]]
|
|
||||||
[app.util.router :as rt]
|
|
||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
|
[app.main.data.messages :as dm]
|
||||||
|
[app.main.repo :as rp]
|
||||||
|
[app.main.store :as st]
|
||||||
|
[app.util.i18n :refer [tr]]
|
||||||
|
[app.util.router :as r]
|
||||||
|
[app.util.router :as rt]
|
||||||
[app.util.time :as ts]
|
[app.util.time :as ts]
|
||||||
[app.util.router :as r]))
|
[beicon.core :as rx]
|
||||||
|
[cljs.spec.alpha :as s]
|
||||||
|
[cuerdas.core :as str]
|
||||||
|
[potok.core :as ptk]))
|
||||||
|
|
||||||
;; --- Specs
|
;; --- Specs
|
||||||
|
|
||||||
|
|
|
@ -28,12 +28,12 @@
|
||||||
(s/def ::status #{:visible :hide})
|
(s/def ::status #{:visible :hide})
|
||||||
(s/def ::controls #{:none :close :inline-actions :bottom-actions})
|
(s/def ::controls #{:none :close :inline-actions :bottom-actions})
|
||||||
|
|
||||||
(s/def ::tag ::us/string)
|
(s/def ::tag (s/or :str ::us/string :kw ::us/keyword))
|
||||||
(s/def ::label ::us/string)
|
(s/def ::label ::us/string)
|
||||||
(s/def ::callback fn?)
|
(s/def ::callback fn?)
|
||||||
(s/def ::action (s/keys :req-un [::label ::callback]))
|
(s/def ::action (s/keys :req-un [::label ::callback]))
|
||||||
(s/def ::actions (s/every ::message-action :kind vector?))
|
(s/def ::actions (s/every ::message-action :kind vector?))
|
||||||
(s/def ::timeout ::us/integer)
|
(s/def ::timeout (s/nilable ::us/integer))
|
||||||
(s/def ::content ::us/string)
|
(s/def ::content ::us/string)
|
||||||
|
|
||||||
(s/def ::message
|
(s/def ::message
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue