diff options
Diffstat (limited to 'client/src/app/shared/shared-forms/shared-form.module.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/shared-form.module.ts | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/client/src/app/shared/shared-forms/shared-form.module.ts b/client/src/app/shared/shared-forms/shared-form.module.ts index 0e0ed5bab..1946ac21f 100644 --- a/client/src/app/shared/shared-forms/shared-form.module.ts +++ b/client/src/app/shared/shared-forms/shared-form.module.ts | |||
@@ -1,37 +1,20 @@ | |||
1 | 1 | ||
2 | import { NgModule } from '@angular/core' | ||
3 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | ||
4 | import { InputMaskModule } from 'primeng/inputmask' | 2 | import { InputMaskModule } from 'primeng/inputmask' |
5 | import { InputSwitchModule } from 'primeng/inputswitch' | 3 | import { InputSwitchModule } from 'primeng/inputswitch' |
4 | import { NgModule } from '@angular/core' | ||
5 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | ||
6 | import { NgSelectModule } from '@ng-select/ng-select' | 6 | import { NgSelectModule } from '@ng-select/ng-select' |
7 | import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service' | ||
8 | import { SharedGlobalIconModule } from '../shared-icons' | 7 | import { SharedGlobalIconModule } from '../shared-icons' |
9 | import { SharedMainModule } from '../shared-main/shared-main.module' | 8 | import { SharedMainModule } from '../shared-main/shared-main.module' |
10 | import { | 9 | import { FormValidatorService } from './form-validator.service' |
11 | CustomConfigValidatorsService, | ||
12 | FormValidatorService, | ||
13 | InstanceValidatorsService, | ||
14 | LoginValidatorsService, | ||
15 | ResetPasswordValidatorsService, | ||
16 | UserValidatorsService, | ||
17 | AbuseValidatorsService, | ||
18 | VideoAcceptOwnershipValidatorsService, | ||
19 | VideoBlockValidatorsService, | ||
20 | VideoCaptionsValidatorsService, | ||
21 | VideoChangeOwnershipValidatorsService, | ||
22 | VideoChannelValidatorsService, | ||
23 | VideoCommentValidatorsService, | ||
24 | VideoPlaylistValidatorsService, | ||
25 | VideoValidatorsService | ||
26 | } from './form-validators' | ||
27 | import { InputReadonlyCopyComponent } from './input-readonly-copy.component' | 10 | import { InputReadonlyCopyComponent } from './input-readonly-copy.component' |
28 | import { MarkdownTextareaComponent } from './markdown-textarea.component' | 11 | import { MarkdownTextareaComponent } from './markdown-textarea.component' |
29 | import { PeertubeCheckboxComponent } from './peertube-checkbox.component' | 12 | import { PeertubeCheckboxComponent } from './peertube-checkbox.component' |
30 | import { PreviewUploadComponent } from './preview-upload.component' | 13 | import { PreviewUploadComponent } from './preview-upload.component' |
31 | import { ReactiveFileComponent } from './reactive-file.component' | 14 | import { ReactiveFileComponent } from './reactive-file.component' |
15 | import { SelectChannelComponent, SelectCheckboxComponent, SelectOptionsComponent, SelectTagsComponent } from './select' | ||
32 | import { TextareaAutoResizeDirective } from './textarea-autoresize.directive' | 16 | import { TextareaAutoResizeDirective } from './textarea-autoresize.directive' |
33 | import { TimestampInputComponent } from './timestamp-input.component' | 17 | import { TimestampInputComponent } from './timestamp-input.component' |
34 | import { SelectChannelComponent, SelectCheckboxComponent, SelectOptionsComponent, SelectTagsComponent } from './select' | ||
35 | 18 | ||
36 | @NgModule({ | 19 | @NgModule({ |
37 | imports: [ | 20 | imports: [ |
@@ -84,23 +67,7 @@ import { SelectChannelComponent, SelectCheckboxComponent, SelectOptionsComponent | |||
84 | ], | 67 | ], |
85 | 68 | ||
86 | providers: [ | 69 | providers: [ |
87 | CustomConfigValidatorsService, | 70 | FormValidatorService |
88 | FormValidatorService, | ||
89 | LoginValidatorsService, | ||
90 | InstanceValidatorsService, | ||
91 | LoginValidatorsService, | ||
92 | ResetPasswordValidatorsService, | ||
93 | UserValidatorsService, | ||
94 | AbuseValidatorsService, | ||
95 | VideoAcceptOwnershipValidatorsService, | ||
96 | VideoBlockValidatorsService, | ||
97 | VideoCaptionsValidatorsService, | ||
98 | VideoChangeOwnershipValidatorsService, | ||
99 | VideoChannelValidatorsService, | ||
100 | VideoCommentValidatorsService, | ||
101 | VideoPlaylistValidatorsService, | ||
102 | VideoValidatorsService, | ||
103 | BatchDomainsValidatorsService | ||
104 | ] | 71 | ] |
105 | }) | 72 | }) |
106 | export class SharedFormModule { } | 73 | export class SharedFormModule { } |