mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add user notification base code
This commit is contained in:
parent
1de1d05f4c
commit
cef534ed53
52 changed files with 2479 additions and 141 deletions
|
@ -9,6 +9,10 @@ function isArray (value: any) {
|
|||
return Array.isArray(value)
|
||||
}
|
||||
|
||||
function isIntArray (value: any) {
|
||||
return Array.isArray(value) && value.every(v => validator.isInt('' + v))
|
||||
}
|
||||
|
||||
function isDateValid (value: string) {
|
||||
return exists(value) && validator.isISO8601(value)
|
||||
}
|
||||
|
@ -78,6 +82,7 @@ function isFileValid (
|
|||
|
||||
export {
|
||||
exists,
|
||||
isIntArray,
|
||||
isArray,
|
||||
isIdValid,
|
||||
isUUIDValid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue