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