]>
Commit | Line | Data |
---|---|---|
fd206f0b C |
1 | import { Validators } from '@angular/forms' |
2 | ||
3 | export const CACHE_PREVIEWS_SIZE = { | |
4 | VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], | |
5 | MESSAGES: { | |
6 | 'required': 'Preview cache size is required.', | |
7 | 'min': 'Preview cache size must be greater than 1.', | |
8 | 'pattern': 'Preview cache size must be a number.' | |
9 | } | |
10 | } | |
11 | ||
12 | export const SIGNUP_LIMIT = { | |
13 | VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], | |
14 | MESSAGES: { | |
15 | 'required': 'Signup limit is required.', | |
16 | 'min': 'Signup limit must be greater than 1.', | |
17 | 'pattern': 'Preview cache size must be a number.' | |
18 | } | |
19 | } | |
20 | ||
21 | export const ADMIN_EMAIL = { | |
22 | VALIDATORS: [ Validators.required, Validators.email ], | |
23 | MESSAGES: { | |
24 | 'required': 'Admin email is required.', | |
25 | 'email': 'Admin email must be valid.' | |
26 | } | |
27 | } | |
28 | ||
29 | export const TRANSCODING_THREADS = { | |
30 | VALIDATORS: [ Validators.required, Validators.min(1) ], | |
31 | MESSAGES: { | |
32 | 'required': 'Transcoding threads is required.', | |
33 | 'min': 'Transcoding threads must be greater than 1.' | |
34 | } | |
35 | } |