-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'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { RouterModule } from '@angular/router'
import {
+ NgbButtonsModule,
NgbCollapseModule,
NgbDropdownModule,
NgbModalModule,
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,
+ 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 } from './misc'
-import { UserHistoryService, UserNotificationsComponent, UserNotificationService } from './users'
+import {
+ ChannelsSetupMessageComponent,
+ HelpComponent,
+ ListOverflowComponent,
+ SimpleSearchInputComponent,
+ TopMenuDropdownComponent
+} from './misc'
+import { PluginPlaceholderComponent } from './plugins'
+import { ActorRedirectGuard } from './router'
+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: [
RouterModule,
HttpClientModule,
+ LoadingBarHttpClientModule,
+ LoadingBarModule,
+
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
NgbNavModule,
NgbTooltipModule,
NgbCollapseModule,
+ NgbButtonsModule,
ClipboardModule,
PrimeSharedModule,
- InputMaskModule,
- NgPipesModule,
- MultiSelectModule,
- InputSwitchModule,
SharedGlobalIconModule
],
declarations: [
- AvatarComponent,
- ActorAvatarInfoComponent,
-
FromNowPipe,
- InfiniteScrollerDirective,
NumberFormatterPipe,
+ BytesPipe,
+ DurationFormatterPipe,
+ AutofocusDirective,
+
+ InfiniteScrollerDirective,
PeerTubeTemplateDirective,
+ LinkComponent,
ActionDropdownComponent,
ButtonComponent,
LoaderComponent,
SmallLoaderComponent,
+ ChannelsSetupMessageComponent,
HelpComponent,
ListOverflowComponent,
+ TopMenuDropdownComponent,
+ SimpleSearchInputComponent,
+ UserQuotaComponent,
UserNotificationsComponent,
- FeedComponent
+ PluginPlaceholderComponent
],
exports: [
RouterModule,
HttpClientModule,
+ LoadingBarHttpClientModule,
+ LoadingBarModule,
+
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
NgbNavModule,
NgbTooltipModule,
NgbCollapseModule,
+ NgbButtonsModule,
ClipboardModule,
PrimeSharedModule,
- InputMaskModule,
- BytesPipe,
- KeysPipe,
- MultiSelectModule,
-
- AvatarComponent,
- ActorAvatarInfoComponent,
FromNowPipe,
- InfiniteScrollerDirective,
+ BytesPipe,
NumberFormatterPipe,
+ DurationFormatterPipe,
+ AutofocusDirective,
+
+ InfiniteScrollerDirective,
PeerTubeTemplateDirective,
+ LinkComponent,
ActionDropdownComponent,
ButtonComponent,
LoaderComponent,
SmallLoaderComponent,
+ ChannelsSetupMessageComponent,
HelpComponent,
ListOverflowComponent,
+ TopMenuDropdownComponent,
+ SimpleSearchInputComponent,
+ UserQuotaComponent,
UserNotificationsComponent,
- FeedComponent
+ PluginPlaceholderComponent
],
providers: [
- I18n,
-
DatePipe,
FromNowPipe,
VideoCaptionService,
- VideoChannelService
+ VideoChannelService,
+
+ CustomPageService,
+
+ ActorRedirectGuard
]
})
export class SharedMainModule { }