X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fshared-main.module.ts;h=772198cb26e9d43ddac863095658187cb825202b;hb=2e46eb97154da909b82d5efe1d336a3412594ff0;hp=c6192f6f852fe30c285b522249730db62854cf0c;hpb=3d25d5de33d8aa0ba00d7514522b25d22bf0e0a1;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 c6192f6f8..772198cb2 100644 --- a/client/src/app/shared/shared-main/shared-main.module.ts +++ b/client/src/app/shared/shared-main/shared-main.module.ts @@ -1,4 +1,3 @@ -import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' import { SharedModule as PrimeSharedModule } from 'primeng/api' import { ClipboardModule } from '@angular/cdk/clipboard' import { CommonModule, DatePipe } from '@angular/common' @@ -7,6 +6,7 @@ import { NgModule } from '@angular/core' import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { RouterModule } from '@angular/router' import { + NgbButtonsModule, NgbCollapseModule, NgbDropdownModule, NgbModalModule, @@ -14,16 +14,26 @@ import { NgbPopoverModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' -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 } 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, SimpleSearchInputComponent, TopMenuDropdownComponent } from './misc' +import { PluginPlaceholderComponent } from './plugins' import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users' import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' import { VideoCaptionService } from './video-caption' @@ -37,28 +47,32 @@ import { VideoChannelService } from './video-channel' RouterModule, HttpClientModule, + LoadingBarHttpClientModule, + LoadingBarModule, + NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbNavModule, NgbTooltipModule, NgbCollapseModule, + NgbButtonsModule, ClipboardModule, PrimeSharedModule, - NgPipesModule, SharedGlobalIconModule ], declarations: [ - AvatarComponent, - ActorAvatarInfoComponent, - FromNowPipe, - InfiniteScrollerDirective, NumberFormatterPipe, + BytesPipe, + DurationFormatterPipe, + AutofocusDirective, + + InfiniteScrollerDirective, PeerTubeTemplateDirective, ActionDropdownComponent, @@ -76,9 +90,12 @@ import { VideoChannelService } from './video-channel' HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, + SimpleSearchInputComponent, UserQuotaComponent, - UserNotificationsComponent + UserNotificationsComponent, + + PluginPlaceholderComponent ], exports: [ @@ -88,25 +105,28 @@ import { VideoChannelService } from './video-channel' RouterModule, HttpClientModule, + LoadingBarHttpClientModule, + LoadingBarModule, + NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbNavModule, NgbTooltipModule, NgbCollapseModule, + NgbButtonsModule, ClipboardModule, PrimeSharedModule, - BytesPipe, - KeysPipe, - - AvatarComponent, - ActorAvatarInfoComponent, FromNowPipe, - InfiniteScrollerDirective, + BytesPipe, NumberFormatterPipe, + DurationFormatterPipe, + AutofocusDirective, + + InfiniteScrollerDirective, PeerTubeTemplateDirective, ActionDropdownComponent, @@ -124,14 +144,15 @@ import { VideoChannelService } from './video-channel' HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, + SimpleSearchInputComponent, UserQuotaComponent, - UserNotificationsComponent + UserNotificationsComponent, + + PluginPlaceholderComponent ], providers: [ - I18n, - DatePipe, FromNowPipe,