]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/core/core.module.ts
emit more specific status codes on video upload (#3423)
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
... / ...
CommitLineData
1import { HotkeyModule } from 'angular2-hotkeys'
2import { MessageService } from 'primeng/api'
3import { ToastModule } from 'primeng/toast'
4import { CommonModule } from '@angular/common'
5import { NgModule, Optional, SkipSelf } from '@angular/core'
6import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
7import { PeerTubeSocket } from '@app/core/notification/peertube-socket.service'
8import { HooksService } from '@app/core/plugins/hooks.service'
9import { PluginService } from '@app/core/plugins/plugin.service'
10import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service'
11import { LoadingBarModule } from '@ngx-loading-bar/core'
12import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
13import { LoadingBarRouterModule } from '@ngx-loading-bar/router'
14import { AuthService } from './auth'
15import { ScopedTokensService } from './scoped-tokens'
16import { ConfirmService } from './confirm'
17import { CheatSheetComponent } from './hotkeys'
18import { MenuService } from './menu'
19import { throwIfAlreadyLoaded } from './module-import-guard'
20import { Notifier } from './notification'
21import { HtmlRendererService, LinkifierService, MarkdownService } from './renderer'
22import { RestExtractor, RestService } from './rest'
23import { LoginGuard, RedirectService, UserRightGuard } from './routing'
24import { CanDeactivateGuard } from './routing/can-deactivate-guard.service'
25import { ServerConfigResolver } from './routing/server-config-resolver.service'
26import { ServerService } from './server'
27import { ThemeService } from './theme'
28import { UserService } from './users'
29import { LocalStorageService, ScreenService, SessionStorageService } from './wrappers'
30
31@NgModule({
32 imports: [
33 CommonModule,
34 BrowserAnimationsModule,
35
36 LoadingBarHttpClientModule,
37 LoadingBarRouterModule,
38 LoadingBarModule,
39 ToastModule,
40
41 HotkeyModule.forRoot({
42 cheatSheetCloseEsc: true
43 })
44 ],
45
46 declarations: [
47 CheatSheetComponent
48 ],
49
50 exports: [
51 LoadingBarHttpClientModule,
52 LoadingBarModule,
53
54 ToastModule,
55
56 CheatSheetComponent
57 ],
58
59 providers: [
60 AuthService,
61 ScopedTokensService,
62 ConfirmService,
63 ServerService,
64 ThemeService,
65 MenuService,
66 LoginGuard,
67 UserRightGuard,
68 UnloggedGuard,
69
70 PluginService,
71 HooksService,
72
73 HtmlRendererService,
74 LinkifierService,
75 MarkdownService,
76
77 RestExtractor,
78 RestService,
79
80 UserService,
81
82 ScreenService,
83 LocalStorageService,
84 SessionStorageService,
85
86 RedirectService,
87 Notifier,
88 MessageService,
89 PeerTubeSocket,
90 ServerConfigResolver,
91 CanDeactivateGuard
92 ]
93})
94export class CoreModule {
95 constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
96 throwIfAlreadyLoaded(parentModule, 'CoreModule')
97 }
98}