X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fshared-main.module.ts;h=3e21d491a21acd2843f7cad5264f69138466a5c4;hb=a3664dfdc95897075e7b8abd670706e53f5a1ec3;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..3e21d491a 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' @@ -15,23 +11,32 @@ import { NgbModalModule, NgbNavModule, NgbPopoverModule, - NgbTooltipModule + NgbTooltipModule, + NgbButtonsModule } from '@ng-bootstrap/ng-bootstrap' -import { NgSelectModule } from '@ng-select/ng-select' -import { I18n } from '@ngx-translate/i18n-polyfill' +import { LoadingBarModule } from '@ngx-loading-bar/core' +import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' import { SharedGlobalIconModule } from '../shared-icons' -import { AccountService, ActorAvatarInfoComponent, AvatarComponent } from './account' -import { FromNowPipe, InfiniteScrollerDirective, NumberFormatterPipe, PeerTubeTemplateDirective } from './angular' +import { AccountService, ActorAvatarInfoComponent, VideoAvatarChannelComponent } from './account' +import { + AutofocusDirective, + 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' import { LoaderComponent, SmallLoaderComponent } from './loaders' -import { HelpComponent, ListOverflowComponent, TopMenuDropdownComponent } from './misc' +import { HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, SimpleSearchInputComponent } from './misc' import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users' 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: [ @@ -41,33 +46,35 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' RouterModule, HttpClientModule, + LoadingBarHttpClientModule, + LoadingBarModule, + NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbNavModule, NgbTooltipModule, NgbCollapseModule, + NgbButtonsModule, ClipboardModule, PrimeSharedModule, - InputMaskModule, - NgPipesModule, - MultiSelectModule, - InputSwitchModule, - - NgSelectModule, SharedGlobalIconModule ], declarations: [ - AvatarComponent, + VideoAvatarChannelComponent, ActorAvatarInfoComponent, FromNowPipe, - InfiniteScrollerDirective, NumberFormatterPipe, + BytesPipe, + DurationFormatterPipe, + AutofocusDirective, + + InfiniteScrollerDirective, PeerTubeTemplateDirective, ActionDropdownComponent, @@ -85,6 +92,7 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, + SimpleSearchInputComponent, UserQuotaComponent, UserNotificationsComponent @@ -97,27 +105,31 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' RouterModule, HttpClientModule, + LoadingBarHttpClientModule, + LoadingBarModule, + NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbNavModule, NgbTooltipModule, NgbCollapseModule, + NgbButtonsModule, ClipboardModule, PrimeSharedModule, - InputMaskModule, - BytesPipe, - KeysPipe, - MultiSelectModule, - AvatarComponent, + VideoAvatarChannelComponent, ActorAvatarInfoComponent, FromNowPipe, - InfiniteScrollerDirective, + BytesPipe, NumberFormatterPipe, + DurationFormatterPipe, + AutofocusDirective, + + InfiniteScrollerDirective, PeerTubeTemplateDirective, ActionDropdownComponent, @@ -135,16 +147,13 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth' HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, + SimpleSearchInputComponent, UserQuotaComponent, - UserNotificationsComponent, - - NgSelectModule + UserNotificationsComponent ], providers: [ - I18n, - DatePipe, FromNowPipe,