X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fshared-main.module.ts;h=be06303958aa5d0b4703682133a8d6efe8e798fd;hb=dc5bb5cea5bf7e906caa6d9c5468e6de36e605de;hp=a4d18d562a14aa985582923c211a5ab6ed4e0a2a;hpb=02c01341f4dae30ec6b81fcb644952393d73c4a8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/shared-main.module.ts b/client/src/app/shared/shared-main/shared-main.module.ts index a4d18d562..be0630395 100644 --- a/client/src/app/shared/shared-main/shared-main.module.ts +++ b/client/src/app/shared/shared-main/shared-main.module.ts @@ -1,8 +1,4 @@ -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 +13,17 @@ 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 { + BytesPipe, + DurationFormatterPipe, + 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 +33,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 +52,6 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' ClipboardModule, PrimeSharedModule, - InputMaskModule, - NgPipesModule, - MultiSelectModule, - InputSwitchModule, - - NgSelectModule, SharedGlobalIconModule ], @@ -66,8 +61,11 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' ActorAvatarInfoComponent, FromNowPipe, - InfiniteScrollerDirective, NumberFormatterPipe, + BytesPipe, + DurationFormatterPipe, + + InfiniteScrollerDirective, PeerTubeTemplateDirective, ActionDropdownComponent, @@ -107,17 +105,16 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' ClipboardModule, PrimeSharedModule, - InputMaskModule, - BytesPipe, - KeysPipe, - MultiSelectModule, AvatarComponent, ActorAvatarInfoComponent, FromNowPipe, - InfiniteScrollerDirective, + BytesPipe, NumberFormatterPipe, + DurationFormatterPipe, + + InfiniteScrollerDirective, PeerTubeTemplateDirective, ActionDropdownComponent, @@ -137,14 +134,10 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' TopMenuDropdownComponent, UserQuotaComponent, - UserNotificationsComponent, - - NgSelectModule + UserNotificationsComponent ], providers: [ - I18n, - DatePipe, FromNowPipe,