1 import { Validators } from '@angular/forms'
3 export const VIDEO_NAME = {
4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(120) ],
6 'required': 'Video name is required.',
7 'minlength': 'Video name must be at least 3 characters long.',
8 'maxlength': 'Video name cannot be more than 120 characters long.'
12 export const VIDEO_PRIVACY = {
13 VALIDATORS: [ Validators.required ],
15 'required': 'Video privacy is required.'
19 export const VIDEO_CATEGORY = {
24 export const VIDEO_LICENCE = {
29 export const VIDEO_LANGUAGE = {
34 export const VIDEO_IMAGE = {
39 export const VIDEO_CHANNEL = {
40 VALIDATORS: [ Validators.required ],
42 'required': 'Video channel is required.'
46 export const VIDEO_DESCRIPTION = {
47 VALIDATORS: [ Validators.minLength(3), Validators.maxLength(10000) ],
49 'minlength': 'Video description must be at least 3 characters long.',
50 'maxlength': 'Video description cannot be more than 10000 characters long.'
54 export const VIDEO_TAGS = {
55 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(30) ],
57 'minlength': 'A tag should be more than 2 characters long.',
58 'maxlength': 'A tag should be less than 30 characters long.'
62 export const VIDEO_SUPPORT = {
63 VALIDATORS: [ Validators.minLength(3), Validators.maxLength(300) ],
65 'minlength': 'Video support must be at least 3 characters long.',
66 'maxlength': 'Video support cannot be more than 300 characters long.'