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 | 84 |
1 files changed, 84 insertions, 0 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 new file mode 100644 index 000000000..e82fa97d4 --- /dev/null +++ b/client/src/app/shared/shared-forms/shared-form.module.ts | |||
@@ -0,0 +1,84 @@ | |||
1 | |||
2 | import { NgModule } from '@angular/core' | ||
3 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | ||
4 | import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service' | ||
5 | import { SharedGlobalIconModule } from '../shared-icons' | ||
6 | import { SharedMainModule } from '../shared-main/shared-main.module' | ||
7 | import { | ||
8 | CustomConfigValidatorsService, | ||
9 | FormValidatorService, | ||
10 | InstanceValidatorsService, | ||
11 | LoginValidatorsService, | ||
12 | ResetPasswordValidatorsService, | ||
13 | UserValidatorsService, | ||
14 | VideoAbuseValidatorsService, | ||
15 | VideoAcceptOwnershipValidatorsService, | ||
16 | VideoBlockValidatorsService, | ||
17 | VideoCaptionsValidatorsService, | ||
18 | VideoChangeOwnershipValidatorsService, | ||
19 | VideoChannelValidatorsService, | ||
20 | VideoCommentValidatorsService, | ||
21 | VideoPlaylistValidatorsService, | ||
22 | VideoValidatorsService | ||
23 | } from './form-validators' | ||
24 | import { InputReadonlyCopyComponent } from './input-readonly-copy.component' | ||
25 | import { MarkdownTextareaComponent } from './markdown-textarea.component' | ||
26 | import { PeertubeCheckboxComponent } from './peertube-checkbox.component' | ||
27 | import { PreviewUploadComponent } from './preview-upload.component' | ||
28 | import { ReactiveFileComponent } from './reactive-file.component' | ||
29 | import { TextareaAutoResizeDirective } from './textarea-autoresize.directive' | ||
30 | import { TimestampInputComponent } from './timestamp-input.component' | ||
31 | |||
32 | @NgModule({ | ||
33 | imports: [ | ||
34 | FormsModule, | ||
35 | ReactiveFormsModule, | ||
36 | |||
37 | SharedMainModule, | ||
38 | SharedGlobalIconModule | ||
39 | ], | ||
40 | |||
41 | declarations: [ | ||
42 | InputReadonlyCopyComponent, | ||
43 | MarkdownTextareaComponent, | ||
44 | PeertubeCheckboxComponent, | ||
45 | PreviewUploadComponent, | ||
46 | ReactiveFileComponent, | ||
47 | TextareaAutoResizeDirective, | ||
48 | TimestampInputComponent | ||
49 | ], | ||
50 | |||
51 | exports: [ | ||
52 | FormsModule, | ||
53 | ReactiveFormsModule, | ||
54 | |||
55 | InputReadonlyCopyComponent, | ||
56 | MarkdownTextareaComponent, | ||
57 | PeertubeCheckboxComponent, | ||
58 | PreviewUploadComponent, | ||
59 | ReactiveFileComponent, | ||
60 | TextareaAutoResizeDirective, | ||
61 | TimestampInputComponent | ||
62 | ], | ||
63 | |||
64 | providers: [ | ||
65 | CustomConfigValidatorsService, | ||
66 | FormValidatorService, | ||
67 | LoginValidatorsService, | ||
68 | InstanceValidatorsService, | ||
69 | LoginValidatorsService, | ||
70 | ResetPasswordValidatorsService, | ||
71 | UserValidatorsService, | ||
72 | VideoAbuseValidatorsService, | ||
73 | VideoAcceptOwnershipValidatorsService, | ||
74 | VideoBlockValidatorsService, | ||
75 | VideoCaptionsValidatorsService, | ||
76 | VideoChangeOwnershipValidatorsService, | ||
77 | VideoChannelValidatorsService, | ||
78 | VideoCommentValidatorsService, | ||
79 | VideoPlaylistValidatorsService, | ||
80 | VideoValidatorsService, | ||
81 | BatchDomainsValidatorsService | ||
82 | ] | ||
83 | }) | ||
84 | export class SharedFormModule { } | ||