PeerTube/client/src/app/shared/shared-main/shared-main.module.ts

219 lines
4.7 KiB
TypeScript
Raw Normal View History

2020-06-23 14:10:17 +02:00
import { SharedModule as PrimeSharedModule } from 'primeng/api'
import { ClipboardModule } from '@angular/cdk/clipboard'
import { CommonModule, DatePipe } from '@angular/common'
import { HttpClientModule } from '@angular/common/http'
import { NgModule } from '@angular/core'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
2021-06-17 16:02:38 +02:00
import { RouterModule } from '@angular/router'
2020-06-23 14:10:17 +02:00
import {
NgbCollapseModule,
NgbDropdownModule,
NgbModalModule,
NgbNavModule,
NgbPopoverModule,
2021-04-07 17:01:29 +02:00
NgbTooltipModule
2020-06-23 14:10:17 +02:00
} from '@ng-bootstrap/ng-bootstrap'
2021-01-13 11:29:55 +01:00
import { LoadingBarModule } from '@ngx-loading-bar/core'
import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
2020-06-23 14:10:17 +02:00
import { SharedGlobalIconModule } from '../shared-icons'
2023-01-19 09:29:47 +01:00
import { AccountService, SignupLabelComponent } from './account'
2020-10-26 16:44:23 +01:00
import {
2023-05-26 10:27:02 +02:00
AutoColspanDirective,
2021-03-24 13:32:55 +01:00
AutofocusDirective,
2020-10-26 16:44:23 +01:00
BytesPipe,
DeferLoadingDirective,
2020-10-26 16:44:23 +01:00
DurationFormatterPipe,
FromNowPipe,
InfiniteScrollerDirective,
2021-06-17 16:02:38 +02:00
LinkComponent,
LoginLinkComponent,
2020-10-26 16:44:23 +01:00
NumberFormatterPipe,
PeerTubeTemplateDirective
} from './angular'
import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
2020-06-23 14:10:17 +02:00
import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons'
import { CustomPageService } from './custom-page'
2020-06-23 14:10:17 +02:00
import { DateToggleComponent } from './date'
import { FeedComponent } from './feeds'
2022-06-10 14:46:18 +02:00
import { LoaderComponent } from './loaders'
import {
ChannelsSetupMessageComponent,
HelpComponent,
ListOverflowComponent,
SimpleSearchInputComponent,
TopMenuDropdownComponent
} from './misc'
2021-11-26 17:36:44 +01:00
import { PluginPlaceholderComponent, PluginSelectorDirective } from './plugins'
2021-06-17 16:02:38 +02:00
import { ActorRedirectGuard } from './router'
2021-10-27 11:42:05 +02:00
import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users'
import {
EmbedComponent,
RedundancyService,
VideoFileTokenService,
VideoImportService,
VideoOwnershipService,
VideoResolver,
VideoService
} from './video'
2020-06-23 14:10:17 +02:00
import { VideoCaptionService } from './video-caption'
import { VideoChannelService } from './video-channel'
@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
RouterModule,
HttpClientModule,
2021-01-13 11:29:55 +01:00
LoadingBarHttpClientModule,
LoadingBarModule,
2020-06-23 14:10:17 +02:00
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
NgbNavModule,
NgbTooltipModule,
NgbCollapseModule,
ClipboardModule,
PrimeSharedModule,
2020-06-23 14:10:17 +02:00
SharedGlobalIconModule
],
declarations: [
FromNowPipe,
NumberFormatterPipe,
2020-08-11 16:50:00 +02:00
BytesPipe,
2020-10-26 16:44:23 +01:00
DurationFormatterPipe,
2021-03-24 13:32:55 +01:00
AutofocusDirective,
DeferLoadingDirective,
2023-05-26 10:27:02 +02:00
AutoColspanDirective,
2020-10-26 16:44:23 +01:00
2020-08-11 16:50:00 +02:00
InfiniteScrollerDirective,
2020-06-23 14:10:17 +02:00
PeerTubeTemplateDirective,
2021-06-17 16:02:38 +02:00
LinkComponent,
LoginLinkComponent,
2020-06-23 14:10:17 +02:00
ActionDropdownComponent,
ButtonComponent,
DeleteButtonComponent,
EditButtonComponent,
DateToggleComponent,
FeedComponent,
LoaderComponent,
ChannelsSetupMessageComponent,
2020-06-23 14:10:17 +02:00
HelpComponent,
ListOverflowComponent,
TopMenuDropdownComponent,
SimpleSearchInputComponent,
2020-06-23 14:10:17 +02:00
UserQuotaComponent,
UserNotificationsComponent,
2023-01-19 09:29:47 +01:00
SignupLabelComponent,
2021-10-27 11:42:05 +02:00
EmbedComponent,
2021-11-26 17:36:44 +01:00
PluginPlaceholderComponent,
PluginSelectorDirective
2020-06-23 14:10:17 +02:00
],
exports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
RouterModule,
HttpClientModule,
2021-01-13 11:29:55 +01:00
LoadingBarHttpClientModule,
LoadingBarModule,
2020-06-23 14:10:17 +02:00
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
NgbNavModule,
NgbTooltipModule,
NgbCollapseModule,
ClipboardModule,
PrimeSharedModule,
FromNowPipe,
2020-08-11 16:50:00 +02:00
BytesPipe,
2020-06-23 14:10:17 +02:00
NumberFormatterPipe,
2020-10-26 16:44:23 +01:00
DurationFormatterPipe,
2021-03-24 13:32:55 +01:00
AutofocusDirective,
DeferLoadingDirective,
2023-05-26 10:27:02 +02:00
AutoColspanDirective,
2020-08-11 16:50:00 +02:00
InfiniteScrollerDirective,
2020-06-23 14:10:17 +02:00
PeerTubeTemplateDirective,
2021-06-17 16:02:38 +02:00
LinkComponent,
LoginLinkComponent,
2020-06-23 14:10:17 +02:00
ActionDropdownComponent,
ButtonComponent,
DeleteButtonComponent,
EditButtonComponent,
DateToggleComponent,
FeedComponent,
LoaderComponent,
ChannelsSetupMessageComponent,
2020-06-23 14:10:17 +02:00
HelpComponent,
ListOverflowComponent,
TopMenuDropdownComponent,
SimpleSearchInputComponent,
2020-06-23 14:10:17 +02:00
UserQuotaComponent,
UserNotificationsComponent,
2023-01-19 09:29:47 +01:00
SignupLabelComponent,
2021-10-27 11:42:05 +02:00
EmbedComponent,
2021-11-26 17:36:44 +01:00
PluginPlaceholderComponent,
PluginSelectorDirective
2020-06-23 14:10:17 +02:00
],
providers: [
DatePipe,
FromNowPipe,
AUTH_INTERCEPTOR_PROVIDER,
AccountService,
UserHistoryService,
UserNotificationService,
RedundancyService,
VideoImportService,
VideoOwnershipService,
VideoService,
VideoFileTokenService,
2022-04-05 14:03:52 +02:00
VideoResolver,
2020-06-23 14:10:17 +02:00
VideoCaptionService,
VideoChannelService,
CustomPageService,
ActorRedirectGuard
2020-06-23 14:10:17 +02:00
]
})
export class SharedMainModule { }