X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fcore.module.ts;h=c4ce2b637df7a4fb75cad592ac48cfefbc80d8e7;hb=7a8032bb6d1d2fdfce9b23af13c3ed1cdfac91e9;hp=09a6f92f5542f71e6a3e1be6269a06959d95b0d4;hpb=b99290b1d5d736083513fb8f66e91f61bfe07e0b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index 09a6f92f5..c4ce2b637 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts @@ -1,30 +1,54 @@ -import { NgModule, Optional, SkipSelf } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { HttpModule } from '@angular/http'; -import { RouterModule } from '@angular/router'; +import { NgModule, Optional, SkipSelf } from '@angular/core' +import { CommonModule } from '@angular/common' +import { HttpModule } from '@angular/http' +import { RouterModule } from '@angular/router' +import { BrowserAnimationsModule } from '@angular/platform-browser/animations' -import { AuthService } from './auth'; -import { MenuComponent, MenuAdminComponent } from './menu'; -import { throwIfAlreadyLoaded } from './module-import-guard'; +import { SimpleNotificationsModule } from 'angular2-notifications' +import { ModalModule } from 'ngx-bootstrap/modal' + +import { AuthService } from './auth' +import { LoginGuard, UserRightGuard } from './routing' +import { ServerService } from './server' +import { ConfirmComponent, ConfirmService } from './confirm' +import { MenuComponent, MenuAdminComponent } from './menu' +import { throwIfAlreadyLoaded } from './module-import-guard' @NgModule({ imports: [ CommonModule, HttpModule, - RouterModule + RouterModule, + BrowserAnimationsModule, + + ModalModule, + SimpleNotificationsModule.forRoot() ], + declarations: [ + ConfirmComponent, MenuComponent, MenuAdminComponent ], + exports: [ + SimpleNotificationsModule, + + ConfirmComponent, MenuComponent, MenuAdminComponent ], - providers: [ AuthService ] + + providers: [ + AuthService, + ConfirmService, + ServerService, + LoginGuard, + UserRightGuard + ] }) export class CoreModule { - constructor( @Optional() @SkipSelf() parentModule: CoreModule) { - throwIfAlreadyLoaded(parentModule, 'CoreModule'); + constructor (@Optional() @SkipSelf() parentModule: CoreModule) { + throwIfAlreadyLoaded(parentModule, 'CoreModule') } }