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 { 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 { SharedGlobalIconModule } from '../shared-icons'
import { SharedMainModule } from '../shared-main/shared-main.module'
@ -37,6 +41,11 @@ import { SelectTagsComponent } from './select-tags.component'
FormsModule,
ReactiveFormsModule,
InputMaskModule,
InputSwitchModule,
MultiSelectModule,
NgSelectModule,
SharedMainModule,
SharedGlobalIconModule
],
@ -58,6 +67,11 @@ import { SelectTagsComponent } from './select-tags.component'
FormsModule,
ReactiveFormsModule,
InputMaskModule,
InputSwitchModule,
MultiSelectModule,
NgSelectModule,
InputReadonlyCopyComponent,
MarkdownTextareaComponent,
PeertubeCheckboxComponent,

View File

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