Move form modules in the form shared module

pull/3066/head
Chocobozzz 2020-08-11 09:54:42 +02:00
parent c9ea405f10
commit 3d25d5de33
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 16 additions and 15 deletions

View File

@ -1,6 +1,10 @@
import { NgModule } from '@angular/core' import { NgModule } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { InputMaskModule } from 'primeng/inputmask'
import { InputSwitchModule } from 'primeng/inputswitch'
import { MultiSelectModule } from 'primeng/multiselect'
import { NgSelectModule } from '@ng-select/ng-select'
import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service' import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service'
import { SharedGlobalIconModule } from '../shared-icons' import { SharedGlobalIconModule } from '../shared-icons'
import { SharedMainModule } from '../shared-main/shared-main.module' import { SharedMainModule } from '../shared-main/shared-main.module'
@ -37,6 +41,11 @@ import { SelectTagsComponent } from './select-tags.component'
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
InputMaskModule,
InputSwitchModule,
MultiSelectModule,
NgSelectModule,
SharedMainModule, SharedMainModule,
SharedGlobalIconModule SharedGlobalIconModule
], ],
@ -58,6 +67,11 @@ import { SelectTagsComponent } from './select-tags.component'
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
InputMaskModule,
InputSwitchModule,
MultiSelectModule,
NgSelectModule,
InputReadonlyCopyComponent, InputReadonlyCopyComponent,
MarkdownTextareaComponent, MarkdownTextareaComponent,
PeertubeCheckboxComponent, PeertubeCheckboxComponent,

View File

@ -1,8 +1,5 @@
import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
import { SharedModule as PrimeSharedModule } from 'primeng/api' import { SharedModule as PrimeSharedModule } from 'primeng/api'
import { InputMaskModule } from 'primeng/inputmask'
import { InputSwitchModule } from 'primeng/inputswitch'
import { MultiSelectModule } from 'primeng/multiselect'
import { ClipboardModule } from '@angular/cdk/clipboard' import { ClipboardModule } from '@angular/cdk/clipboard'
import { CommonModule, DatePipe } from '@angular/common' import { CommonModule, DatePipe } from '@angular/common'
import { HttpClientModule } from '@angular/common/http' import { HttpClientModule } from '@angular/common/http'
@ -17,11 +14,11 @@ import {
NgbPopoverModule, NgbPopoverModule,
NgbTooltipModule NgbTooltipModule
} from '@ng-bootstrap/ng-bootstrap' } from '@ng-bootstrap/ng-bootstrap'
import { NgSelectModule } from '@ng-select/ng-select'
import { I18n } from '@ngx-translate/i18n-polyfill' import { I18n } from '@ngx-translate/i18n-polyfill'
import { SharedGlobalIconModule } from '../shared-icons' import { SharedGlobalIconModule } from '../shared-icons'
import { AccountService, ActorAvatarInfoComponent, AvatarComponent } from './account' import { AccountService, ActorAvatarInfoComponent, AvatarComponent } from './account'
import { FromNowPipe, InfiniteScrollerDirective, NumberFormatterPipe, PeerTubeTemplateDirective } from './angular' import { FromNowPipe, InfiniteScrollerDirective, NumberFormatterPipe, PeerTubeTemplateDirective } from './angular'
import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons' import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons'
import { DateToggleComponent } from './date' import { DateToggleComponent } from './date'
import { FeedComponent } from './feeds' import { FeedComponent } from './feeds'
@ -31,7 +28,6 @@ import { UserHistoryService, UserNotificationsComponent, UserNotificationService
import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video'
import { VideoCaptionService } from './video-caption' import { VideoCaptionService } from './video-caption'
import { VideoChannelService } from './video-channel' import { VideoChannelService } from './video-channel'
import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
@NgModule({ @NgModule({
imports: [ imports: [
@ -51,12 +47,7 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
ClipboardModule, ClipboardModule,
PrimeSharedModule, PrimeSharedModule,
InputMaskModule,
NgPipesModule, NgPipesModule,
MultiSelectModule,
InputSwitchModule,
NgSelectModule,
SharedGlobalIconModule SharedGlobalIconModule
], ],
@ -107,10 +98,8 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
ClipboardModule, ClipboardModule,
PrimeSharedModule, PrimeSharedModule,
InputMaskModule,
BytesPipe, BytesPipe,
KeysPipe, KeysPipe,
MultiSelectModule,
AvatarComponent, AvatarComponent,
ActorAvatarInfoComponent, ActorAvatarInfoComponent,
@ -137,9 +126,7 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
TopMenuDropdownComponent, TopMenuDropdownComponent,
UserQuotaComponent, UserQuotaComponent,
UserNotificationsComponent, UserNotificationsComponent
NgSelectModule
], ],
providers: [ providers: [