mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add notifications in the client
This commit is contained in:
parent
f7cc67b455
commit
2f1548fda3
56 changed files with 1073 additions and 112 deletions
|
@ -9,8 +9,8 @@ function isArray (value: any) {
|
|||
return Array.isArray(value)
|
||||
}
|
||||
|
||||
function isIntArray (value: any) {
|
||||
return Array.isArray(value) && value.every(v => validator.isInt('' + v))
|
||||
function isNotEmptyIntArray (value: any) {
|
||||
return Array.isArray(value) && value.every(v => validator.isInt('' + v)) && value.length !== 0
|
||||
}
|
||||
|
||||
function isDateValid (value: string) {
|
||||
|
@ -82,7 +82,7 @@ function isFileValid (
|
|||
|
||||
export {
|
||||
exists,
|
||||
isIntArray,
|
||||
isNotEmptyIntArray,
|
||||
isArray,
|
||||
isIdValid,
|
||||
isUUIDValid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue