From 849f8f0acbe896cac7e531fee6895442382318cc Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Thu, 13 Apr 2017 09:24:37 +0000
Subject: [PATCH] #0 config - Migrated to jspm and Angular 4.0.2
---
securis/src/main/webapp/src/app/app.module.ts | 39 ++++++++++++++++++++++-----------------
1 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/securis/src/main/webapp/src/app/app.module.ts b/securis/src/main/webapp/src/app/app.module.ts
index 512e9ca..66a8a52 100644
--- a/securis/src/main/webapp/src/app/app.module.ts
+++ b/securis/src/main/webapp/src/app/app.module.ts
@@ -1,21 +1,24 @@
-import { NgModule } from '@angular/core';
-import { BrowserModule } from '@angular/platform-browser';
-import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { CommonModule } from '@angular/common';
+import { NgModule, TypeProvider } from '@angular/core';
+import { HttpModule } from '@angular/http';
+import { BrowserModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
-import {MaterialModule} from '@angular/material';
-import {CovalentCoreModule} from '@covalent/core';
-import {CovalentHttpModule} from '@covalent/http';
-import {CovalentDynamicFormsModule} from '@covalent/dynamic-forms';
+import { MaterialModule } from '@angular/material';
+import { CovalentCoreModule } from '@covalent/core';
+import { CovalentHttpModule } from '@covalent/http';
+import { CovalentDynamicFormsModule } from '@covalent/dynamic-forms';
-import { LocalStorageModule } from 'angular-2-local-storage';
+import { LockerModule, DRIVERS } from 'angular-safeguard';
+
import { ToastModule } from 'ng2-toastr/ng2-toastr';
import { HomeComponent } from './home.component';
-import { I18nDirective } from './common/i18n';
import { MetadataManagerComponent } from './forms/base';
import { FieldReadonlyComponent } from './forms/base';
import { ErrorCheckerComponent } from './forms/base';
+
+import { LocaleServiceModule, I18nDirective, LocaleService } from './common/i18n';
import { UserService } from './user.service';
import { PacksService } from './resources/packs';
@@ -42,30 +45,33 @@
import { OrganizationFormComponent } from './forms/organization.form.component';
import { UserFormComponent } from './forms/user.form.component';
-
import { appRoutes, appRoutingProviders } from './app.routes';
import { requestOptionsProvider, requestBackendProvider } from './common/default.requests.options';
-import { LocaleServiceModule } from './common/i18n';
import { SeCurisSession } from './common/session';
+
+
@NgModule({
imports: [
- LocalStorageModule.withConfig({
- prefix: 'securis',
- storageType: 'localStorage'
+ LocaleServiceModule.withConfig('en'),
+ LockerModule.withConfig({
+ driverNamespace: 'securis',
+ defaultDriverType: DRIVERS.LOCAL,
+ namespaceSeparator: '-'
}),
BrowserModule,
BrowserAnimationsModule,
+ HttpModule,
FormsModule,
MaterialModule,
CovalentCoreModule.forRoot(),
CovalentHttpModule.forRoot(),
CovalentDynamicFormsModule.forRoot(),
ToastModule.forRoot(),
- LocaleServiceModule.withConfig('en'),
appRoutes,
],
declarations: [
+ HomeComponent,
ApplicationListComponent,
ApplicationFormComponent,
PackListComponent,
@@ -81,7 +87,6 @@
OrganizationFormComponent,
UserFormComponent,
I18nDirective,
- HomeComponent,
MenuComponent,
NoMenuComponent,
FieldReadonlyComponent,
@@ -91,7 +96,7 @@
bootstrap: [ HomeComponent ],
entryComponents: [ ],
providers: [
- SeCurisSession,
+ SeCurisSession,
UserService,
PacksService,
LicensesService,
--
Gitblit v1.3.2