]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/core/core.module.ts
Video blacklist refractoring
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
CommitLineData
df98563e
C
1import { NgModule, Optional, SkipSelf } from '@angular/core'
2import { CommonModule } from '@angular/common'
3import { HttpModule } from '@angular/http'
4import { RouterModule } from '@angular/router'
e7dbeae8 5import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
693b1aba 6
df98563e
C
7import { SimpleNotificationsModule } from 'angular2-notifications'
8import { ModalModule } from 'ngx-bootstrap/modal'
7ddd02c9 9
df98563e 10import { AuthService } from './auth'
db7af09b 11import { ServerService } from './server'
df98563e
C
12import { ConfirmComponent, ConfirmService } from './confirm'
13import { MenuComponent, MenuAdminComponent } from './menu'
14import { throwIfAlreadyLoaded } from './module-import-guard'
693b1aba
C
15
16@NgModule({
17 imports: [
18 CommonModule,
50b0c262 19 HttpModule,
7ddd02c9 20 RouterModule,
e7dbeae8 21 BrowserAnimationsModule,
7ddd02c9 22
5769e1db 23 ModalModule,
99b727ec 24 SimpleNotificationsModule.forRoot()
693b1aba 25 ],
5769e1db 26
b99290b1 27 declarations: [
5769e1db 28 ConfirmComponent,
b99290b1
C
29 MenuComponent,
30 MenuAdminComponent
31 ],
5769e1db 32
b99290b1 33 exports: [
7ddd02c9
C
34 SimpleNotificationsModule,
35
5769e1db 36 ConfirmComponent,
b99290b1
C
37 MenuComponent,
38 MenuAdminComponent
39 ],
5769e1db
C
40
41 providers: [
42 AuthService,
92fb909c 43 ConfirmService,
db7af09b 44 ServerService
5769e1db 45 ]
693b1aba
C
46})
47export class CoreModule {
df98563e
C
48 constructor ( @Optional() @SkipSelf() parentModule: CoreModule) {
49 throwIfAlreadyLoaded(parentModule, 'CoreModule')
693b1aba
C
50 }
51}