import { HttpClientModule } from '@angular/common/http'
import { NgModule } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
-import { RouterModule } from '@angular/router'
+import { ActivatedRouteSnapshot, RouterModule } from '@angular/router'
import {
+ NgbButtonsModule,
NgbCollapseModule,
NgbDropdownModule,
NgbModalModule,
NgbNavModule,
NgbPopoverModule,
- NgbTooltipModule,
- NgbButtonsModule
+ 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, VideoAvatarChannelComponent } from './account'
+import { AccountService } from './account'
import {
+ AutofocusDirective,
BytesPipe,
DurationFormatterPipe,
FromNowPipe,
} 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, SimpleSearchInputComponent } 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'
import { VideoChannelService } from './video-channel'
+import { ActorRedirectGuard } from './router'
@NgModule({
imports: [
],
declarations: [
- VideoAvatarChannelComponent,
- ActorAvatarInfoComponent,
-
FromNowPipe,
NumberFormatterPipe,
BytesPipe,
DurationFormatterPipe,
+ AutofocusDirective,
InfiniteScrollerDirective,
PeerTubeTemplateDirective,
SimpleSearchInputComponent,
UserQuotaComponent,
- UserNotificationsComponent
+ UserNotificationsComponent,
+
+ PluginPlaceholderComponent
],
exports: [
PrimeSharedModule,
- VideoAvatarChannelComponent,
- ActorAvatarInfoComponent,
-
FromNowPipe,
BytesPipe,
NumberFormatterPipe,
DurationFormatterPipe,
+ AutofocusDirective,
InfiniteScrollerDirective,
PeerTubeTemplateDirective,
SimpleSearchInputComponent,
UserQuotaComponent,
- UserNotificationsComponent
+ UserNotificationsComponent,
+
+ PluginPlaceholderComponent
],
providers: [
VideoCaptionService,
- VideoChannelService
+ VideoChannelService,
+
+ CustomPageService,
+
+ ActorRedirectGuard
]
})
export class SharedMainModule { }