]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/core.module.ts
Upgrade client dep
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
index be29b88daea9204f19a948c9931b3d411fcda766..c4ce2b637df7a4fb75cad592ac48cfefbc80d8e7 100644 (file)
@@ -1,21 +1,54 @@
-import { NgModule, Optional, SkipSelf } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { HttpModule } from '@angular/http';
+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 { 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
+    HttpModule,
+    RouterModule,
+    BrowserAnimationsModule,
+
+    ModalModule,
+    SimpleNotificationsModule.forRoot()
+  ],
+
+  declarations: [
+    ConfirmComponent,
+    MenuComponent,
+    MenuAdminComponent
   ],
-  declarations: [ ],
-  exports: [ ],
-  providers: [ AuthService ]
+
+  exports: [
+    SimpleNotificationsModule,
+
+    ConfirmComponent,
+    MenuComponent,
+    MenuAdminComponent
+  ],
+
+  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')
   }
 }