- resolutions = [ '240p', '360p', '480p', '720p', '1080p' ]
-
- videoQuotaOptions = [
- { value: -1, label: 'Unlimited' },
- { value: 0, label: '0' },
- { value: 100 * 1024 * 1024, label: '100MB' },
- { value: 500 * 1024 * 1024, label: '500MB' },
- { value: 1024 * 1024 * 1024, label: '1GB' },
- { value: 5 * 1024 * 1024 * 1024, label: '5GB' },
- { value: 20 * 1024 * 1024 * 1024, label: '20GB' },
- { value: 50 * 1024 * 1024 * 1024, label: '50GB' }
- ]
- transcodingThreadOptions = [
- { value: 1, label: '1' },
- { value: 2, label: '2' },
- { value: 4, label: '4' },
- { value: 8, label: '8' }
- ]
-
- form: FormGroup
- formErrors = {
- instanceName: '',
- instanceShortDescription: '',
- instanceDescription: '',
- instanceTerms: '',
- instanceDefaultClientRoute: '',
- instanceDefaultNSFWPolicy: '',
- servicesTwitterUsername: '',
- cachePreviewsSize: '',
- signupLimit: '',
- adminEmail: '',
- userVideoQuota: '',
- transcodingThreads: '',
- customizationJavascript: '',
- customizationCSS: ''
- }
- validationMessages = {
- instanceShortDescription: INSTANCE_SHORT_DESCRIPTION.MESSAGES,
- instanceName: INSTANCE_NAME.MESSAGES,
- servicesTwitterUsername: SERVICES_TWITTER_USERNAME,
- cachePreviewsSize: CACHE_PREVIEWS_SIZE.MESSAGES,
- signupLimit: SIGNUP_LIMIT.MESSAGES,
- adminEmail: ADMIN_EMAIL.MESSAGES,
- userVideoQuota: USER_VIDEO_QUOTA.MESSAGES
- }