-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'
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,
+ 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 { UserHistoryService, UserNotificationsComponent, UserNotificationService } from './users'
-import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video'
+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 {
+ EmbedComponent,
+ RedundancyService,
+ VideoFileTokenService,
+ VideoImportService,
+ VideoOwnershipService,
+ VideoResolver,
+ VideoService
+} from './video'
import { VideoCaptionService } from './video-caption'
import { VideoChannelService } from './video-channel'
-import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
@NgModule({
imports: [
RouterModule,
HttpClientModule,
+ LoadingBarHttpClientModule,
+ LoadingBarModule,
+
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
ClipboardModule,
PrimeSharedModule,
- InputMaskModule,
- NgPipesModule,
- MultiSelectModule,
- InputSwitchModule,
SharedGlobalIconModule
],
declarations: [
- AvatarComponent,
- ActorAvatarInfoComponent,
-
FromNowPipe,
- InfiniteScrollerDirective,
NumberFormatterPipe,
+ BytesPipe,
+ DurationFormatterPipe,
+ AutofocusDirective,
+ DeferLoadingDirective,
+
+ InfiniteScrollerDirective,
PeerTubeTemplateDirective,
+ LinkComponent,
ActionDropdownComponent,
ButtonComponent,
FeedComponent,
LoaderComponent,
- SmallLoaderComponent,
+ ChannelsSetupMessageComponent,
HelpComponent,
ListOverflowComponent,
TopMenuDropdownComponent,
+ SimpleSearchInputComponent,
+
+ UserQuotaComponent,
+ UserNotificationsComponent,
+
+ EmbedComponent,
- UserNotificationsComponent
+ PluginPlaceholderComponent,
+ PluginSelectorDirective
],
exports: [
RouterModule,
HttpClientModule,
+ LoadingBarHttpClientModule,
+ LoadingBarModule,
+
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
ClipboardModule,
PrimeSharedModule,
- InputMaskModule,
- BytesPipe,
- KeysPipe,
- MultiSelectModule,
-
- AvatarComponent,
- ActorAvatarInfoComponent,
FromNowPipe,
- InfiniteScrollerDirective,
+ BytesPipe,
NumberFormatterPipe,
+ DurationFormatterPipe,
+ AutofocusDirective,
+ DeferLoadingDirective,
+
+ InfiniteScrollerDirective,
PeerTubeTemplateDirective,
+ LinkComponent,
ActionDropdownComponent,
ButtonComponent,
FeedComponent,
LoaderComponent,
- SmallLoaderComponent,
+ ChannelsSetupMessageComponent,
HelpComponent,
ListOverflowComponent,
TopMenuDropdownComponent,
+ SimpleSearchInputComponent,
+
+ UserQuotaComponent,
+ UserNotificationsComponent,
+
+ EmbedComponent,
- UserNotificationsComponent
+ PluginPlaceholderComponent,
+ PluginSelectorDirective
],
providers: [
- I18n,
-
DatePipe,
FromNowPipe,
VideoImportService,
VideoOwnershipService,
VideoService,
+ VideoFileTokenService,
+ VideoResolver,
VideoCaptionService,
- VideoChannelService
+ VideoChannelService,
+
+ CustomPageService,
+
+ ActorRedirectGuard
]
})
export class SharedMainModule { }