Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade helix-front to Angular 9.1 #2094

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
11b6a0a
volta pin node@8.9.4
micahstubbs May 2, 2022
c3537c1
update package-lock.json after npm install
micahstubbs May 2, 2022
c23aa77
remove missing helix-front tslint linting rules to fix warnings
micahstubbs May 2, 2022
dc2f35a
HttpModule --> HttpClientModule
micahstubbs May 2, 2022
9f4c78f
Http --> HttpClient, Headers --> HttpHeaders, Response --> HttpResponse
micahstubbs May 2, 2022
35d35dc
we do not need to responses to json anymore
micahstubbs May 2, 2022
d674de0
npm install @angular/{cdk,common,compiler,compiler-cli,core,forms,mat…
micahstubbs May 2, 2022
755d98b
NG_DISABLE_VERSION_CHECK=1 npx @angular/cli@6 update @angular/cli@6
micahstubbs May 4, 2022
a34db0b
ng update @angular/cli --from=5.2.11 --to=6 --migrate-only
micahstubbs May 4, 2022
b20f7c8
add engines, remove volta since it conflicts with necessary global an…
micahstubbs May 4, 2022
adfae23
update scripts in package.json to use two dashes for flags to be POSI…
micahstubbs May 4, 2022
ed4a285
ngx-dag@0.0.2 --> @swimlane/ngx-graph@6.0.0
micahstubbs May 4, 2022
b7d1e4a
rxjs-5-to-6-migrate -p client/tsconfig.app.json
micahstubbs May 4, 2022
f88b10d
npm i -D rxjs-tslint, add rxjs specific linting rules, add lint:tslin…
micahstubbs May 4, 2022
cf88bba
restore temporarily removed deps now that we are done working around …
micahstubbs May 4, 2022
6607f35
npm install @angular/cdk@6.1.0
micahstubbs May 4, 2022
0fc1f53
npm install @angular/{animations,cdk,common,compiler,compiler-cli,cor…
micahstubbs May 4, 2022
0cd89d1
npm i @swimlane/ngx-datatable@12.0.0
micahstubbs May 5, 2022
8594995
npm i @swimlane/ngx-datatable@13.0.0
micahstubbs May 5, 2022
19d4696
npm i @swimlane/ngx-charts@8.0.0
micahstubbs May 5, 2022
fb717c0
npm i ajv@6.9.1
micahstubbs May 5, 2022
052fe3a
npm i codelyzer@6.0.1
micahstubbs May 5, 2022
091a2e8
npm i ngx-clipboard@11.1.5
micahstubbs May 5, 2022
ee4e309
npm i tsickle@0.32.1
micahstubbs May 5, 2022
388184f
restore rxjs-compat@6.0.0-rc.0 to fix rxjs issue at npm run build
micahstubbs May 8, 2022
09fda53
add TypeScript npm scripts
micahstubbs May 8, 2022
ccb1116
configure vscode to use project typescript version
micahstubbs May 8, 2022
783773e
fix typescript errors related to rxjs and typescript upgrades
micahstubbs May 8, 2022
a01cf49
register proxy.conf.json in ng serve builder in angular.json
micahstubbs May 8, 2022
f9e2e37
WIP state with new Reactive Form
micahstubbs May 10, 2022
a6fa279
Revert "WIP state with new Reactive Form"
micahstubbs May 10, 2022
d1fa841
upgrade to typescript@^3.2.4
micahstubbs May 10, 2022
09d0220
pin typescript at 3.2.4
micahstubbs May 10, 2022
33cbe18
NG_DISABLE_VERSION_CHECK=1 npx @angular/cli@7 update @angular/cli@7 @…
micahstubbs May 10, 2022
e963017
manually update @angular/material to ^7.2.16
micahstubbs May 10, 2022
8c6bb36
npm i @angular/flex-layout@7.0.0-beta.24
micahstubbs May 10, 2022
5c624f8
npm i tsickle@0.34.2
micahstubbs May 10, 2022
fd553ad
npm i @swimlane/ngx-datatable@14.0.0
micahstubbs May 10, 2022
16d81dc
npm i @swimlane/ngx-charts@11.0.1
micahstubbs May 10, 2022
c4fefa9
npm i @swimlane/ngx-graph@6.0.0-rc.2
micahstubbs May 10, 2022
b6bca33
npm i @swimlane/ngx-charts@10.1.0
micahstubbs May 10, 2022
bb1b711
ObservableMedia --> MediaObserver to handle breaking change introduce…
micahstubbs May 10, 2022
b8ba53b
npm i @swimlane/ngx-charts@11.2.0
micahstubbs May 10, 2022
7664e0b
manually upgrade to Angular 8.2.14 and associated major deps
micahstubbs May 11, 2022
010efce
fix new TypeScript errors
micahstubbs May 11, 2022
e9dcd1d
update bundle target to ES2015 since Angular 8 now automatically crea…
micahstubbs May 11, 2022
d9f11c3
@ViewChild {static: true}
micahstubbs May 11, 2022
07a5b46
NG_DISABLE_VERSION_CHECK=1 npx @angular/cli@8 update @angular/materia…
micahstubbs May 11, 2022
3d651ce
use @angular/core@8.2.3 and friends, fix bad upgrade script that jump…
micahstubbs May 11, 2022
57aa305
npm i typescript@3.5.3
micahstubbs May 11, 2022
59fc6d4
npm i zone.js@~0.9.1
micahstubbs May 11, 2022
d3ad310
npm i tsickle@0.37.0
micahstubbs May 11, 2022
cf060a0
npm i @angular/flex-layout@8.0.0-beta.27
micahstubbs May 11, 2022
05cdba2
npm i @swimlane/ngx-datatable@16.0.0
micahstubbs May 11, 2022
df6ee36
npm i @ngtools/webpack@9.0.0-next.7
micahstubbs May 11, 2022
0ab3c5c
npm uninstall node-sass && npm i sass
micahstubbs May 11, 2022
eb3c46d
nvm use 10.9.0 && npm i
micahstubbs May 11, 2022
c993629
manually update material imports, use deep imports
micahstubbs May 11, 2022
e53efd6
npm i -D @angular-devkit/build-angular@0.803.29
micahstubbs May 11, 2022
5b63736
npm i ngx-clipboard@12.1.2
micahstubbs May 11, 2022
23cde60
npm i @swimlane/ngx-charts@13.0.4
micahstubbs May 11, 2022
a6b4c5d
npm i @swimlane/ngx-graph@7.0.0
micahstubbs May 11, 2022
e8571b9
npm i @swimlane/ngx-datatable@16.0.3
micahstubbs May 11, 2022
edc390d
npm i @swimlane/ngx-datatable@16.1.0
micahstubbs May 11, 2022
3005402
update ngx-datatable style paths: no longer a release folder
micahstubbs May 11, 2022
7f3f3f9
nvm use 10.13.0
micahstubbs May 12, 2022
577ee05
Angular CLI update for packages - @angular/core@9, @angular/cli@9
micahstubbs May 12, 2022
8bc3900
@angular/cli migration - workspace-version-9
micahstubbs May 12, 2022
2915801
@angular/cli migration - schematic-options-9
micahstubbs May 12, 2022
f703a16
npm i tsickle@0.38.1
micahstubbs May 12, 2022
8fb6d4f
add generic type to ModuleWithProviders in app routing module
micahstubbs May 12, 2022
620940d
npm i rxjs@6.5.5
micahstubbs May 12, 2022
8cfd1f2
NG_DISABLE_VERSION_CHECK=1 npx @angular/cli@9 update @angular/materia…
micahstubbs May 12, 2022
a296eb3
npm i @angular/flex-layout@9.0.0-beta.31
micahstubbs May 12, 2022
53cdf12
ngForm --> ng-form
micahstubbs May 12, 2022
6f66ffd
npm i angulartics2@9.1.0
micahstubbs May 12, 2022
30d00dc
Anglartics2Piwik --> Angulartics2Matomo
micahstubbs May 12, 2022
4d335fe
Revert "Anglartics2Piwik --> Angulartics2Matomo"
micahstubbs May 12, 2022
03f8224
update piwik import
micahstubbs May 12, 2022
4bdea21
specify one budget of 500k for initial js needed to bootstrap app
micahstubbs May 12, 2022
c7116a5
ng-form --> ngForm
micahstubbs May 12, 2022
857e344
npm i ngx-vis@3.1.0
micahstubbs May 12, 2022
49201bd
install peer deps for ngx-vis
micahstubbs May 12, 2022
0dd8588
npm i ngx-vis@2.3.2
micahstubbs May 12, 2022
937379f
Revert "npm i ngx-vis@2.3.2"
micahstubbs May 12, 2022
0368eec
update dashboard network vis code to new syntax from ngx-vis@3
micahstubbs May 13, 2022
c9af2a8
increase build budget to 3503kb, using current es5 build size as the …
micahstubbs May 13, 2022
ed37aee
use array instead to DataSet to fix tests
micahstubbs May 13, 2022
7c8bcff
temporarily disable tracking lib angulartics to work around v9 bug, r…
micahstubbs May 13, 2022
6ad8759
upgrade helix-front to Angular 9.1
micahstubbs May 16, 2022
fde2c1c
Fix race condition between instance drop and participant history upda…
qqu0127 May 3, 2022
b703bd5
Refactor bump-up.command script and add helix-view-aggregator (#2086)
qqu0127 May 10, 2022
8e4f1bf
Fix release URL
junkaixue May 12, 2022
691ab94
[maven-release-plugin] prepare release helix-1.0.4
junkaixue May 12, 2022
1d60cdd
[maven-release-plugin] prepare for next development iteration
junkaixue May 12, 2022
8d849e9
Revert "[maven-release-plugin] prepare for next development iteration"
junkaixue May 12, 2022
757c33b
Revert "[maven-release-plugin] prepare release helix-1.0.4"
junkaixue May 12, 2022
4393218
Enable helix-front for release
junkaixue May 12, 2022
bedcc6a
[maven-release-plugin] prepare release helix-1.0.4
junkaixue May 12, 2022
b91fd1f
[maven-release-plugin] prepare for next development iteration
junkaixue May 12, 2022
ad19a02
Release note for 1.0.4
junkaixue May 12, 2022
ed69054
Update pom and update ivy files
junkaixue May 12, 2022
60f6972
Define development process
junkaixue May 12, 2022
b182a2e
specify known working nodejs and npm versions in package.json (#2074)
micahstubbs May 17, 2022
a118a6e
npm install @angular/{cdk,common,compiler,compiler-cli,core,forms,mat…
micahstubbs May 2, 2022
858725e
upgrade helix-front to Angular 9.1
micahstubbs May 16, 2022
93c6fe3
upgrade helix-front to Angular 9.1
micahstubbs May 16, 2022
0f89f64
specify known working nodejs and npm versions in package.json (#2074)
micahstubbs May 17, 2022
6f3e6c2
npm install @angular/{cdk,common,compiler,compiler-cli,core,forms,mat…
micahstubbs May 2, 2022
485e4e7
upgrade helix-front to Angular 9.1
micahstubbs May 16, 2022
c14b82f
upgrade helix-front to Angular 9.1
micahstubbs May 16, 2022
80f0093
upgrade helix-front to Angular 9.1
micahstubbs May 16, 2022
170388f
Merge branch 'master' into micahstubbs/2092/upgrade-to-angular-9.1
micahstubbs May 17, 2022
685bc33
upgrade helix-front to Angular 9.1
micahstubbs May 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions helix-front/.angular-cli.json

This file was deleted.

1 change: 1 addition & 0 deletions helix-front/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v10.13.0
3 changes: 3 additions & 0 deletions helix-front/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
138 changes: 138 additions & 0 deletions helix-front/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"helix-front": {
"root": "",
"sourceRoot": "client",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/public",
"index": "client/index.html",
"main": "client/main.ts",
"tsConfig": "client/tsconfig.app.json",
"polyfills": "client/polyfills.ts",
"assets": [
"client/assets",
"client/favicon.ico"
],
"styles": [
"client/styles.scss",
"client/theme.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "3503kb"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "client/environments/environment.ts",
"with": "client/environments/environment.prod.ts"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "helix-front:build",
"proxyConfig": "./proxy.conf.json"
},
"configurations": {
"production": {
"browserTarget": "helix-front:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "helix-front:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "client/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "client/polyfills.ts",
"tsConfig": "client/tsconfig.spec.json",
"scripts": [],
"styles": [
"client/styles.scss",
"client/theme.scss"
],
"assets": [
"client/assets",
"client/favicon.ico"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": []
}
}
}
},
"helix-front-e2e": {
"root": "e2e",
"sourceRoot": "e2e",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "helix-front:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude": []
}
}
}
}
},
"defaultProject": "helix-front",
"schematics": {
"@schematics/angular:component": {
"prefix": "hi",
"style": "scss"
},
"@schematics/angular:directive": {
"prefix": "hi"
}
}
}
2 changes: 1 addition & 1 deletion helix-front/client/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ const HELIX_ROUTES: Routes = [
}
];

export const AppRoutingModule: ModuleWithProviders = RouterModule.forRoot(HELIX_ROUTES);
export const AppRoutingModule: ModuleWithProviders<RouterModule> = RouterModule.forRoot(HELIX_ROUTES);
9 changes: 5 additions & 4 deletions helix-front/client/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { TestBed, async } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';

import { Angulartics2, Angulartics2Piwik } from 'angulartics2';
// import { Angulartics2 } from 'angulartics2';
// import { Angulartics2Piwik } from 'angulartics2/piwik';

import { TestingModule } from '../testing/testing.module';
import { AppComponent } from './app.component';
Expand All @@ -10,7 +11,7 @@ describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
TestingModule
TestingModule,
],
declarations: [
AppComponent
Expand All @@ -21,8 +22,8 @@ describe('AppComponent', () => {
],
// TODO vxu: I don't want to add the following two but ...
providers: [
Angulartics2,
Angulartics2Piwik
// Angulartics2,
// Angulartics2Piwik,
]
}).compileComponents();
}));
Expand Down
9 changes: 5 additions & 4 deletions helix-front/client/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
NavigationCancel,
NavigationError
} from '@angular/router';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';

import { Angulartics2Piwik } from 'angulartics2';
// import { Angulartics2Piwik } from 'angulartics2/piwik';

import { UserService } from './core/user.service';
import { InputDialogComponent } from './shared/dialog/input-dialog/input-dialog.component';
Expand All @@ -19,7 +19,7 @@ import { HelperService } from './shared/helper.service';
selector: 'hi-root',
templateUrl: './app.component.html',
styleUrls: [ './app.component.scss' ],
providers: [ UserService ]
providers: [ UserService/*, Angulartics2Piwik */ ]
})
export class AppComponent implements OnInit {

Expand All @@ -29,9 +29,9 @@ export class AppComponent implements OnInit {
currentUser: any;

constructor(
// protected angulartics2Piwik: Angulartics2Piwik,
protected route: ActivatedRoute,
protected router: Router,
protected angulartics: Angulartics2Piwik,
protected dialog: MatDialog,
protected service: UserService,
protected helper: HelperService
Expand All @@ -50,6 +50,7 @@ export class AppComponent implements OnInit {
this.isLoading = false;
}
});
// angulartics2Piwik.startTracking();
}

ngOnInit() {
Expand Down
10 changes: 5 additions & 5 deletions helix-front/client/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { Angulartics2Module, Angulartics2Piwik } from 'angulartics2';
import { HttpClientModule } from '@angular/common/http';

// import { Angulartics2Module } from 'angulartics2';
// import { Angulartics2Piwik } from 'angulartics2/piwik';
import { AppRoutingModule } from './app-routing.module';
import { CoreModule } from './core/core.module';
import { SharedModule } from './shared/shared.module';
Expand All @@ -26,9 +26,9 @@ import { DashboardModule } from './dashboard/dashboard.module';
imports: [
BrowserModule,
FormsModule,
HttpModule,
HttpClientModule,
AppRoutingModule,
Angulartics2Module.forRoot([ Angulartics2Piwik ]),
// Angulartics2Module.forRoot(),
CoreModule,
SharedModule,
ClusterModule,
Expand Down
4 changes: 2 additions & 2 deletions helix-front/client/app/chooser/shared/chooser.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TestBed, inject } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';

import { ChooserService } from './chooser.service';

Expand All @@ -9,7 +9,7 @@ describe('ChooserService', () => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
HttpModule
HttpClientModule
],
providers: [ChooserService]
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

import {map} from 'rxjs/operators';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';

import { Cluster } from '../shared/cluster.model';
import { HelperService } from '../../shared/helper.service';
Expand Down Expand Up @@ -42,8 +44,8 @@ export class ClusterDetailComponent implements OnInit {

ngOnInit() {
this.clusterService.can().subscribe(data => this.can = data);
this.route.params
.map(p => p.name)
this.route.params.pipe(
map(p => p.name))
.subscribe(name => {
this.clusterName = name;
this.loadCluster();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { MatDialog, MatSnackBar } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { Router } from '@angular/router';

import { ClusterService } from '../shared/cluster.service';
Expand Down
13 changes: 8 additions & 5 deletions helix-front/client/app/cluster/cluster.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { MediaChange, ObservableMedia } from '@angular/flex-layout';
import { MediaChange, MediaObserver } from '@angular/flex-layout';

@Component({
selector: 'hi-cluster',
Expand All @@ -8,20 +8,23 @@ import { MediaChange, ObservableMedia } from '@angular/flex-layout';
})
export class ClusterComponent implements OnInit {

@ViewChild('sidenav') sidenav;
@ViewChild('sidenav', {static: true}) sidenav;

isNarrowView: boolean;

constructor(
protected media: ObservableMedia
protected media: MediaObserver
) { }

ngOnInit() {
// auto adjust side nav only if not embed
this.isNarrowView = (this.media.isActive('xs') || this.media.isActive('sm'));

this.media.subscribe((change: MediaChange) => {
this.isNarrowView = (change.mqAlias === 'xs' || change.mqAlias === 'sm');
this.media.asObservable().subscribe((change: MediaChange[]) => {
change.forEach((item) => {
this.isNarrowView = (item.mqAlias === 'xs' || item.mqAlias === 'sm');
})

});
}

Expand Down
Loading