mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Reorganize client shared modules
This commit is contained in:
parent
0c4bacbff5
commit
67ed6552b8
510 changed files with 2321 additions and 2251 deletions
84
client/src/app/shared/shared-forms/shared-form.module.ts
Normal file
84
client/src/app/shared/shared-forms/shared-form.module.ts
Normal file
|
@ -0,0 +1,84 @@
|
|||
|
||||
import { NgModule } from '@angular/core'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service'
|
||||
import { SharedGlobalIconModule } from '../shared-icons'
|
||||
import { SharedMainModule } from '../shared-main/shared-main.module'
|
||||
import {
|
||||
CustomConfigValidatorsService,
|
||||
FormValidatorService,
|
||||
InstanceValidatorsService,
|
||||
LoginValidatorsService,
|
||||
ResetPasswordValidatorsService,
|
||||
UserValidatorsService,
|
||||
VideoAbuseValidatorsService,
|
||||
VideoAcceptOwnershipValidatorsService,
|
||||
VideoBlockValidatorsService,
|
||||
VideoCaptionsValidatorsService,
|
||||
VideoChangeOwnershipValidatorsService,
|
||||
VideoChannelValidatorsService,
|
||||
VideoCommentValidatorsService,
|
||||
VideoPlaylistValidatorsService,
|
||||
VideoValidatorsService
|
||||
} from './form-validators'
|
||||
import { InputReadonlyCopyComponent } from './input-readonly-copy.component'
|
||||
import { MarkdownTextareaComponent } from './markdown-textarea.component'
|
||||
import { PeertubeCheckboxComponent } from './peertube-checkbox.component'
|
||||
import { PreviewUploadComponent } from './preview-upload.component'
|
||||
import { ReactiveFileComponent } from './reactive-file.component'
|
||||
import { TextareaAutoResizeDirective } from './textarea-autoresize.directive'
|
||||
import { TimestampInputComponent } from './timestamp-input.component'
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
|
||||
SharedMainModule,
|
||||
SharedGlobalIconModule
|
||||
],
|
||||
|
||||
declarations: [
|
||||
InputReadonlyCopyComponent,
|
||||
MarkdownTextareaComponent,
|
||||
PeertubeCheckboxComponent,
|
||||
PreviewUploadComponent,
|
||||
ReactiveFileComponent,
|
||||
TextareaAutoResizeDirective,
|
||||
TimestampInputComponent
|
||||
],
|
||||
|
||||
exports: [
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
|
||||
InputReadonlyCopyComponent,
|
||||
MarkdownTextareaComponent,
|
||||
PeertubeCheckboxComponent,
|
||||
PreviewUploadComponent,
|
||||
ReactiveFileComponent,
|
||||
TextareaAutoResizeDirective,
|
||||
TimestampInputComponent
|
||||
],
|
||||
|
||||
providers: [
|
||||
CustomConfigValidatorsService,
|
||||
FormValidatorService,
|
||||
LoginValidatorsService,
|
||||
InstanceValidatorsService,
|
||||
LoginValidatorsService,
|
||||
ResetPasswordValidatorsService,
|
||||
UserValidatorsService,
|
||||
VideoAbuseValidatorsService,
|
||||
VideoAcceptOwnershipValidatorsService,
|
||||
VideoBlockValidatorsService,
|
||||
VideoCaptionsValidatorsService,
|
||||
VideoChangeOwnershipValidatorsService,
|
||||
VideoChannelValidatorsService,
|
||||
VideoCommentValidatorsService,
|
||||
VideoPlaylistValidatorsService,
|
||||
VideoValidatorsService,
|
||||
BatchDomainsValidatorsService
|
||||
]
|
||||
})
|
||||
export class SharedFormModule { }
|
Loading…
Add table
Add a link
Reference in a new issue