]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/core/core.module.ts
Fix lint
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
... / ...
CommitLineData
1import { CommonModule } from '@angular/common'
2import { NgModule, Optional, SkipSelf } from '@angular/core'
3import { FormsModule } from '@angular/forms'
4import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
5import { RouterModule } from '@angular/router'
6import { LoadingBarModule } from '@ngx-loading-bar/core'
7import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
8import { LoadingBarRouterModule } from '@ngx-loading-bar/router'
9
10import { AuthService } from './auth'
11import { ConfirmService } from './confirm'
12import { throwIfAlreadyLoaded } from './module-import-guard'
13import { LoginGuard, RedirectService, UserRightGuard } from './routing'
14import { ServerService } from './server'
15import { ThemeService } from './theme'
16import { HotkeyModule } from 'angular2-hotkeys'
17import { CheatSheetComponent } from './hotkeys'
18import { ToastModule } from 'primeng/toast'
19import { Notifier } from './notification'
20import { MessageService } from 'primeng/api'
21import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service'
22import { ServerConfigResolver } from './routing/server-config-resolver.service'
23import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service'
24
25@NgModule({
26 imports: [
27 CommonModule,
28 RouterModule,
29 FormsModule,
30 BrowserAnimationsModule,
31
32 LoadingBarHttpClientModule,
33 LoadingBarRouterModule,
34 LoadingBarModule,
35 ToastModule,
36
37 HotkeyModule.forRoot({
38 cheatSheetCloseEsc: true
39 })
40 ],
41
42 declarations: [
43 CheatSheetComponent
44 ],
45
46 exports: [
47 LoadingBarHttpClientModule,
48 LoadingBarModule,
49
50 ToastModule,
51
52 CheatSheetComponent
53 ],
54
55 providers: [
56 AuthService,
57 ConfirmService,
58 ServerService,
59 ThemeService,
60 LoginGuard,
61 UserRightGuard,
62 UnloggedGuard,
63
64 RedirectService,
65 Notifier,
66 MessageService,
67 UserNotificationSocket,
68 ServerConfigResolver
69 ]
70})
71export class CoreModule {
72 constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
73 throwIfAlreadyLoaded(parentModule, 'CoreModule')
74 }
75}