]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Move form modules in the form shared module
authorChocobozzz <me@florianbigard.com>
Tue, 11 Aug 2020 07:54:42 +0000 (09:54 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 11 Aug 2020 07:54:42 +0000 (09:54 +0200)
client/src/app/shared/shared-forms/shared-form.module.ts
client/src/app/shared/shared-main/shared-main.module.ts

index 19d812948661b609895084130bae4c1f1906f527..ea62700830c6a4e42d9631fadeea2cb9706d879f 100644 (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,
index a4d18d562a14aa985582923c211a5ab6ed4e0a2a..c6192f6f852fe30c285b522249730db62854cf0c 100644 (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: [