X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fshared-main.module.ts;h=c1523bc5021af307a2c5c6bea32943e5d7190df1;hb=b1dbb9fefc870a90b25f5c0153589f45c9e75e3e;hp=7f4676dd14807225a830a571c0fdd24ef01df095;hpb=66357162f8e1227495f09bd4f68446aad7071c6d;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 7f4676dd1..c1523bc50 100644 --- a/client/src/app/shared/shared-main/shared-main.module.ts +++ b/client/src/app/shared/shared-main/shared-main.module.ts @@ -13,17 +13,46 @@ import { NgbPopoverModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' +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, BytesPipe } from './angular' +import { AccountService } from './account' +import { + AutofocusDirective, + BytesPipe, + DeferLoadingDirective, + DurationFormatterPipe, + FromNowPipe, + InfiniteScrollerDirective, + LinkComponent, + NumberFormatterPipe, + PeerTubeTemplateDirective +} from './angular' import { AUTH_INTERCEPTOR_PROVIDER } from './auth' import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons' +import { CustomPageService } from './custom-page' import { DateToggleComponent } from './date' import { FeedComponent } from './feeds' -import { LoaderComponent, SmallLoaderComponent } from './loaders' -import { HelpComponent, ListOverflowComponent, TopMenuDropdownComponent } from './misc' +import { LoaderComponent } from './loaders' +import { + ChannelsSetupMessageComponent, + HelpComponent, + ListOverflowComponent, + SimpleSearchInputComponent, + TopMenuDropdownComponent +} from './misc' +import { PluginPlaceholderComponent, PluginSelectorDirective } from './plugins' +import { ActorRedirectGuard } from './router' import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users' -import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' +import { + EmbedComponent, + RedundancyService, + VideoFileTokenService, + VideoImportService, + VideoOwnershipService, + VideoResolver, + VideoService +} from './video' import { VideoCaptionService } from './video-caption' import { VideoChannelService } from './video-channel' @@ -35,6 +64,9 @@ import { VideoChannelService } from './video-channel' RouterModule, HttpClientModule, + LoadingBarHttpClientModule, + LoadingBarModule, + NgbDropdownModule, NgbModalModule, NgbPopoverModule, @@ -50,14 +82,16 @@ import { VideoChannelService } from './video-channel' ], declarations: [ - AvatarComponent, - ActorAvatarInfoComponent, - FromNowPipe, NumberFormatterPipe, BytesPipe, + DurationFormatterPipe, + AutofocusDirective, + DeferLoadingDirective, + InfiniteScrollerDirective, PeerTubeTemplateDirective, + LinkComponent, ActionDropdownComponent, ButtonComponent, @@ -69,14 +103,20 @@ import { VideoChannelService } from './video-channel' FeedComponent, LoaderComponent, - SmallLoaderComponent, + ChannelsSetupMessageComponent, HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, + SimpleSearchInputComponent, UserQuotaComponent, - UserNotificationsComponent + UserNotificationsComponent, + + EmbedComponent, + + PluginPlaceholderComponent, + PluginSelectorDirective ], exports: [ @@ -86,6 +126,9 @@ import { VideoChannelService } from './video-channel' RouterModule, HttpClientModule, + LoadingBarHttpClientModule, + LoadingBarModule, + NgbDropdownModule, NgbModalModule, NgbPopoverModule, @@ -97,15 +140,16 @@ import { VideoChannelService } from './video-channel' PrimeSharedModule, - AvatarComponent, - ActorAvatarInfoComponent, - FromNowPipe, BytesPipe, NumberFormatterPipe, + DurationFormatterPipe, + AutofocusDirective, + DeferLoadingDirective, InfiniteScrollerDirective, PeerTubeTemplateDirective, + LinkComponent, ActionDropdownComponent, ButtonComponent, @@ -117,14 +161,20 @@ import { VideoChannelService } from './video-channel' FeedComponent, LoaderComponent, - SmallLoaderComponent, + ChannelsSetupMessageComponent, HelpComponent, ListOverflowComponent, TopMenuDropdownComponent, + SimpleSearchInputComponent, UserQuotaComponent, - UserNotificationsComponent + UserNotificationsComponent, + + EmbedComponent, + + PluginPlaceholderComponent, + PluginSelectorDirective ], providers: [ @@ -143,10 +193,16 @@ import { VideoChannelService } from './video-channel' VideoImportService, VideoOwnershipService, VideoService, + VideoFileTokenService, + VideoResolver, VideoCaptionService, - VideoChannelService + VideoChannelService, + + CustomPageService, + + ActorRedirectGuard ] }) export class SharedMainModule { }