]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/core/core.module.ts
Detect posting request in our own inbox
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
CommitLineData
df98563e 1import { CommonModule } from '@angular/common'
78967fca 2import { NgModule, Optional, SkipSelf } from '@angular/core'
1f30a185 3import { FormsModule } from '@angular/forms'
e7dbeae8 4import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
78967fca 5import { RouterModule } from '@angular/router'
68e24d72
C
6import { LoadingBarModule } from '@ngx-loading-bar/core'
7import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
693b1aba 8
df98563e
C
9import { SimpleNotificationsModule } from 'angular2-notifications'
10import { ModalModule } from 'ngx-bootstrap/modal'
7ddd02c9 11
954605a8 12import { AuthService } from './auth'
df98563e 13import { ConfirmComponent, ConfirmService } from './confirm'
df98563e 14import { throwIfAlreadyLoaded } from './module-import-guard'
78967fca
C
15import { LoginGuard, UserRightGuard } from './routing'
16import { ServerService } from './server'
693b1aba
C
17
18@NgModule({
19 imports: [
20 CommonModule,
7ddd02c9 21 RouterModule,
1f30a185 22 FormsModule,
e7dbeae8 23 BrowserAnimationsModule,
7ddd02c9 24
5769e1db 25 ModalModule,
68e24d72
C
26 SimpleNotificationsModule.forRoot(),
27
28 LoadingBarHttpClientModule,
29 LoadingBarModule.forRoot()
693b1aba 30 ],
5769e1db 31
b99290b1 32 declarations: [
b33f657c 33 ConfirmComponent
b99290b1 34 ],
5769e1db 35
b99290b1 36 exports: [
7ddd02c9 37 SimpleNotificationsModule,
68e24d72
C
38 LoadingBarHttpClientModule,
39 LoadingBarModule,
7ddd02c9 40
b33f657c 41 ConfirmComponent
b99290b1 42 ],
5769e1db
C
43
44 providers: [
45 AuthService,
92fb909c 46 ConfirmService,
f47bf2e1 47 ServerService,
954605a8
C
48 LoginGuard,
49 UserRightGuard
5769e1db 50 ]
693b1aba
C
51})
52export class CoreModule {
7a8032bb 53 constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
df98563e 54 throwIfAlreadyLoaded(parentModule, 'CoreModule')
693b1aba
C
55 }
56}