Permalink
Browse files

Major front-end update from Angular 5.1.2 to Angular 6.0.3

  • Loading branch information...
ErikasKontenis committed Jun 2, 2018
1 parent bf935ee commit 20cf9f8f97e0c9dddc32ecff50194e8392ea8277
@@ -1,8 +1,8 @@
import { NgModule } from '@angular/core';
import { BrowserTransferStateModule } from '@angular/platform-browser'; //TODO: waiting for angular5 fixes
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ORIGIN_URL } from '@nguniversal/aspnetcore-engine';
import { BrowserPrebootModule } from 'preboot/browser';
import { ORIGIN_URL } from '@nguniversal/aspnetcore-engine/tokens';
import { PrebootModule } from 'preboot';
import { AdminModuleShared } from './admin.module';
import { AdminComponent } from './admin.component';
@@ -14,7 +14,7 @@ export function getOriginUrl() {
@NgModule({
bootstrap: [AdminComponent],
imports: [
BrowserPrebootModule.replayEvents(),
PrebootModule.withConfig({ appRoot: 'admin' }),
BrowserAnimationsModule,
AdminModuleShared
@@ -15,7 +15,7 @@ if (module['hot']) {
});
} else {
modulePromise.then(() => {
if ('service-worker' in navigator) {
if (navigator.hasOwnProperty('service-worker')) {
navigator.serviceWorker.register('/ngsw-worker.js')
}
}).catch(err => console.log(err));
@@ -1,8 +1,8 @@
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ORIGIN_URL, REQUEST } from '@nguniversal/aspnetcore-engine';
import { ORIGIN_URL, REQUEST } from '@nguniversal/aspnetcore-engine/tokens';
import { BrowserTransferStateModule } from '@angular/platform-browser'; //TODO: waiting for angular5 fixes
import { BrowserPrebootModule } from 'preboot/browser';
import { PrebootModule } from 'preboot';
import { ClientModuleShared } from './client.module';
import { ClientComponent } from './client.component';
@@ -19,7 +19,7 @@ export function getRequest() {
@NgModule({
bootstrap: [ClientComponent],
imports: [
BrowserPrebootModule.replayEvents(),
PrebootModule.withConfig({ appRoot: 'client' }),
BrowserAnimationsModule,
ClientModuleShared
],
@@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { ServerTransferStateModule } from '@angular/platform-server'; //TODO: waiting for angular5 fixes
import { ServerPrebootModule } from 'preboot/server';
import { PrebootModule } from 'preboot';
import { ClientModuleShared } from './client.module';
import { ClientComponent } from './client.component';
@@ -11,7 +11,7 @@ import { ClientComponent } from './client.component';
bootstrap: [ClientComponent],
imports: [
ServerModule,
ServerPrebootModule.recordEvents({ appRoot: 'client' }),
PrebootModule.withConfig({ appRoot: 'client' }),
NoopAnimationsModule,
ClientModuleShared
]
@@ -34,8 +34,8 @@ import { LucidTemplateModule } from './templates/lucid/lucid-template.module';
FormsModule,
// TODO: Remove RouterModule from application
RouterModule.forRoot([{ component: RouterOutletComponent, path: "**", pathMatch: "prefix" }]),
// TODO fix uncommenting on prod build
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: true }),
// TODO make enabled property configurable by working environment debug = false, prod = true
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: false }),
LucidTemplateModule
],
providers: [
@@ -3,7 +3,7 @@ import { Subject } from 'rxjs/Subject';
import { Location } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { Meta, Title } from '@angular/platform-browser';
import { ORIGIN_URL } from '@nguniversal/aspnetcore-engine';
import { ORIGIN_URL } from '@nguniversal/aspnetcore-engine/tokens';
@Injectable()
export class ComponentFactoryService {
@@ -1,5 +1,5 @@
import { Component, Input, OnInit } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Observable } from 'rxjs';
import { Subject } from 'rxjs/Subject';
import { HttpService } from '../../../shared/services/http.service';
import { Field } from "../../../shared/models/field.model";
@@ -1,4 +1,29 @@
import './polyfills.ts';
/***************************************************************************************************
* BROWSER POLYFILLS
*/
import 'zone.js/dist/zone';
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
/** */
import 'reflect-metadata';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** Evergreen browsers require these. **/
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';
@@ -1,36 +1,27 @@
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
/** */
import 'reflect-metadata';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
//import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** Evergreen browsers require these. **/
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
/**
* Date, currency, decimal and percent pipes.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/
// import 'intl'; // Run `npm install --save intl`.
import './rx-imports';
@@ -27,4 +27,3 @@ import 'rxjs/add/observable/interval';
import 'rxjs/add/observable/fromPromise';
import 'rxjs/add/observable/of';
import 'rxjs/add/observable/concat';
@@ -1,4 +1,3 @@
import './polyfills.ts';
import './polyfills.ts';
import 'reflect-metadata';
import 'zone.js';
@@ -1,5 +1,5 @@
import { HttpClient } from '@angular/common/http';
import { ORIGIN_URL } from '@nguniversal/aspnetcore-engine';
import { ORIGIN_URL } from '@nguniversal/aspnetcore-engine/tokens';
import { Injector, Injectable, Inject, PLATFORM_ID } from '@angular/core';
import { Observable } from "rxjs/Observable";
import 'rxjs/add/observable/throw';
@@ -11,6 +11,7 @@
]
},
"files": [
"polyfills.ts"
],
"include": [
"**/*.spec.ts",
@@ -18,84 +18,89 @@
"compodoc": "./node_modules/.bin/compodoc -p tsconfig.json"
},
"dependencies": {
"@angular/animations": "^5.1.2",
"@angular/common": "^5.1.2",
"@angular/compiler": "^5.1.2",
"@angular/core": "^5.1.2",
"@angular/forms": "^5.1.2",
"@angular/http": "^5.1.2",
"@angular/platform-browser": "^5.1.2",
"@angular/platform-browser-dynamic": "^5.1.2",
"@angular/platform-server": "^5.1.2",
"@angular/router": "^5.1.2",
"@angular/service-worker": "^5.2.2",
"@nguniversal/aspnetcore-engine": "^5.0.0-beta.5",
"@nguniversal/common": "^5.0.0-beta.5",
"@ngx-translate/core": "^8.0.0",
"@ngx-translate/http-loader": "^2.0.0",
"@types/node": "^7.0.12",
"@angular/animations": "^6.0.3",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/platform-server": "^6.0.3",
"@angular/router": "^6.0.3",
"@angular/service-worker": "^6.0.3",
"@nguniversal/aspnetcore-engine": "^6.0.0",
"@nguniversal/common": "^6.0.0",
"@ngx-translate/core": "^10.0.2",
"@ngx-translate/http-loader": "^3.0.1",
"@types/node": "^10.1.2",
"angular-confirmation-popover": "^3.4.1",
"angular2-router-loader": "^0.3.5",
"angular2-template-loader": "^0.6.2",
"aspnet-prerendering": "^3.0.1",
"aspnet-webpack": "^2.0.1",
"awesome-typescript-loader": "^3.0.0",
"aspnet-webpack": "^2.0.3",
"awesome-typescript-loader": "^5.0.0",
"bootstrap": "^3.3.7",
"bootstrap-sass": "^3.3.7",
"core-js": "^2.5.1",
"css": "^2.2.1",
"css-loader": "^0.28.7",
"event-source-polyfill": "^0.0.9",
"expose-loader": "^0.7.3",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
"html-loader": "^0.5.1",
"core-js": "^2.5.6",
"css": "^2.2.3",
"css-loader": "^0.28.11",
"event-source-polyfill": "^0.0.12",
"expose-loader": "^0.7.5",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^1.1.11",
"html-loader": "^0.5.5",
"isomorphic-fetch": "^2.2.1",
"jquery": "^2.2.1",
"json-loader": "^0.5.4",
"moment": "2.18.1",
"jquery": "^3.3.1",
"json-loader": "^0.5.7",
"moment": "2.22.1",
"ng-http-loader": "^0.5.1",
"ngx-bootstrap": "2.0.0-beta.6",
"ngx-bootstrap": "^3.0.0",
"ngx-toastr": "^8.1.0",
"node-sass": "^4.5.2",
"preboot": "^5.0.0",
"node-sass": "^4.9.0",
"preboot": "^6.0.0-beta.4",
"raw-loader": "^0.5.1",
"reflect-metadata": "^0.1.12",
"rimraf": "^2.6.2",
"rxjs": "^5.5.6",
"sass-loader": "^6.0.6",
"style-loader": "^0.18.2",
"rxjs": "^6.2.0",
"rxjs-compat": "^6.2.0",
"sass-loader": "^7.0.1",
"style-loader": "^0.21.0",
"to-string-loader": "^1.1.5",
"typescript": "2.5.x",
"url-loader": "^0.5.7",
"typescript": "~2.7.2",
"url-loader": "^1.0.1",
"web-animations-js": "^2.3.1",
"webpack": "^3.6.0",
"webpack-hot-middleware": "^2.19.1",
"webpack-merge": "^4.1.0",
"zone.js": "^0.8.17"
"webpack": "^4.9.1",
"webpack-hot-middleware": "^2.22.2",
"webpack-merge": "^4.1.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "^1.7.0-beta.1",
"@angular/compiler-cli": "^5.2.1",
"@ngtools/webpack": "^1.9.0",
"@types/chai": "^3.4.34",
"@types/jasmine": "^2.5.37",
"@angular/cli": "^6.0.5",
"@angular/compiler-cli": "6.0.3",
"@ngtools/webpack": "^6.0.5",
"@types/chai": "^4.1.3",
"@types/jasmine": "^2.8.7",
"angular-file": "^0.3.7",
"chai": "^3.5.0",
"codelyzer": "^3.0.0",
"istanbul-instrumenter-loader": "^3.0.0",
"chai": "^4.1.2",
"codelyzer": "^3.1.2",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"istanbul-instrumenter-loader": "^3.0.1",
"jasmine-core": "^2.5.2",
"karma": "^1.7.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.4",
"karma-jasmine": "^1.1.2",
"karma-mocha-reporter": "^2.2.5",
"karma-phantomjs-launcher": "^1.0.4",
"karma-remap-coverage": "^0.1.4",
"karma-remap-coverage": "^0.1.5",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.3",
"tslint": "^5.7.0",
"webpack-bundle-analyzer": "^2.9.0"
"karma-webpack": "^2.0.4",
"tslint": "^5.10.0",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-cli": "^2.1.4",
"@angular-devkit/build-angular": "~0.6.6"
}
}
@@ -4,8 +4,8 @@
"ban": false,
"class-name": true,
"comment-format": [
true,
"check-space"
true,
"check-space"
],
"component-class-suffix": true,
"component-selector-name": [
Oops, something went wrong.

0 comments on commit 20cf9f8

Please sign in to comment.