]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/core/core.module.ts
Handle when autoplay fails
[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 { SimpleNotificationsModule } from 'angular2-notifications'
11import { ModalModule } from 'ngx-bootstrap/modal'
12
13import { AuthService } from './auth'
14import { ConfirmComponent, ConfirmService } from './confirm'
15import { throwIfAlreadyLoaded } from './module-import-guard'
16import { LoginGuard, RedirectService, UserRightGuard } from './routing'
17import { ServerService } from './server'
18
19@NgModule({
20 imports: [
21 CommonModule,
22 RouterModule,
23 FormsModule,
24 BrowserAnimationsModule,
25
26 ModalModule,
27 SimpleNotificationsModule.forRoot(),
28
29 LoadingBarHttpClientModule,
30 LoadingBarRouterModule,
31 LoadingBarModule.forRoot()
32 ],
33
34 declarations: [
35 ConfirmComponent
36 ],
37
38 exports: [
39 SimpleNotificationsModule,
40 LoadingBarHttpClientModule,
41 LoadingBarModule,
42
43 ConfirmComponent
44 ],
45
46 providers: [
47 AuthService,
48 ConfirmService,
49 ServerService,
50 LoginGuard,
51 UserRightGuard,
52 RedirectService
53 ]
54})
55export class CoreModule {
56 constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
57 throwIfAlreadyLoaded(parentModule, 'CoreModule')
58 }
59}