1 import { Validators } from '@angular/forms'
3 export const INSTANCE_NAME = {
4 VALIDATORS: [ Validators.required ],
6 'required': 'Instance name is required.'
10 export const INSTANCE_SHORT_DESCRIPTION = {
11 VALIDATORS: [ Validators.max(250) ],
13 'max': 'Short description should not be longer than 250 characters.'
17 export const SERVICES_TWITTER_USERNAME = {
18 VALIDATORS: [ Validators.required ],
20 'required': 'Twitter username is required.'
24 export const CACHE_PREVIEWS_SIZE = {
25 VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ],
27 'required': 'Preview cache size is required.',
28 'min': 'Preview cache size must be greater than 1.',
29 'pattern': 'Preview cache size must be a number.'
33 export const SIGNUP_LIMIT = {
34 VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ],
36 'required': 'Signup limit is required.',
37 'min': 'Signup limit must be greater than 1.',
38 'pattern': 'Preview cache size must be a number.'
42 export const ADMIN_EMAIL = {
43 VALIDATORS: [ Validators.required, Validators.email ],
45 'required': 'Admin email is required.',
46 'email': 'Admin email must be valid.'
50 export const TRANSCODING_THREADS = {
51 VALIDATORS: [ Validators.required, Validators.min(1) ],
53 'required': 'Transcoding threads is required.',
54 'min': 'Transcoding threads must be greater than 1.'