Update to Angular 17
This commit is contained in:
parent
d0150def51
commit
0442b6b3d6
4 changed files with 3509 additions and 3586 deletions
|
@ -82,21 +82,21 @@
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "twigs:build"
|
"buildTarget": "twigs:build"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "twigs:build:production"
|
"buildTarget": "twigs:build:production"
|
||||||
},
|
},
|
||||||
"codeserver": {
|
"codeserver": {
|
||||||
"browserTarget": "twigs:build:codeserver"
|
"buildTarget": "twigs:build:codeserver"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "twigs:build"
|
"buildTarget": "twigs:build"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
|
|
6824
package-lock.json
generated
6824
package-lock.json
generated
File diff suppressed because it is too large
Load diff
30
package.json
30
package.json
|
@ -15,29 +15,29 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^16.2.12",
|
"@angular/animations": "^17.2.3",
|
||||||
"@angular/cdk": "^15.2.9",
|
"@angular/cdk": "^15.2.9",
|
||||||
"@angular/common": "^16.2.12",
|
"@angular/common": "^17.2.3",
|
||||||
"@angular/compiler": "^16.2.12",
|
"@angular/compiler": "^17.2.3",
|
||||||
"@angular/core": "^16.2.12",
|
"@angular/core": "^17.2.3",
|
||||||
"@angular/forms": "^16.2.12",
|
"@angular/forms": "^17.2.3",
|
||||||
"@angular/material": "^15.2.9",
|
"@angular/material": "^15.2.9",
|
||||||
"@angular/platform-browser": "^16.2.12",
|
"@angular/platform-browser": "^17.2.3",
|
||||||
"@angular/platform-browser-dynamic": "^16.2.12",
|
"@angular/platform-browser-dynamic": "^17.2.3",
|
||||||
"@angular/router": "^16.2.12",
|
"@angular/router": "^17.2.3",
|
||||||
"@angular/service-worker": "^16.2.12",
|
"@angular/service-worker": "^17.2.3",
|
||||||
"chart.js": "^3.7.0",
|
"chart.js": "^3.7.0",
|
||||||
"core-js": "^3.20.3",
|
"core-js": "^3.20.3",
|
||||||
"ng2-charts": "^3.0.8",
|
"ng2-charts": "^3.0.8",
|
||||||
"rxjs": "^7.5.2",
|
"rxjs": "^7.5.2",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"zone.js": "~0.13.3"
|
"zone.js": "~0.14.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^16.2.12",
|
"@angular-devkit/build-angular": "^17.2.2",
|
||||||
"@angular/cli": "^16.2.12",
|
"@angular/cli": "^17.2.2",
|
||||||
"@angular/compiler-cli": "^16.2.12",
|
"@angular/compiler-cli": "^17.2.3",
|
||||||
"@angular/language-service": "^16.2.12",
|
"@angular/language-service": "^17.2.3",
|
||||||
"@types/jasmine": "~3.10.3",
|
"@types/jasmine": "~3.10.3",
|
||||||
"@types/jasminewd2": "^2.0.10",
|
"@types/jasminewd2": "^2.0.10",
|
||||||
"@types/node": "^17.0.10",
|
"@types/node": "^17.0.10",
|
||||||
|
@ -53,6 +53,6 @@
|
||||||
"protractor": "^7.0.0",
|
"protractor": "^7.0.0",
|
||||||
"ts-node": "~10.4.0",
|
"ts-node": "~10.4.0",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"typescript": "4.9.5"
|
"typescript": "5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -59,21 +59,14 @@ export class AppComponent implements OnInit {
|
||||||
this.router.navigateByUrl(`/login?redirect=${this.location.path()}`);
|
this.router.navigateByUrl(`/login?redirect=${this.location.path()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updates.available.subscribe(
|
this.updates.versionUpdates.subscribe(
|
||||||
event => {
|
event => {
|
||||||
console.log('current version is', event.current);
|
if (event.type == "VERSION_READY") {
|
||||||
console.log('available version is', event.available);
|
console.log('current version is', event.currentVersion);
|
||||||
|
console.log('available version is', event.latestVersion);
|
||||||
// TODO: Prompt user to click something to update
|
// TODO: Prompt user to click something to update
|
||||||
this.updates.activateUpdate();
|
this.updates.activateUpdate();
|
||||||
},
|
|
||||||
err => {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
|
||||||
this.updates.activated.subscribe(
|
|
||||||
event => {
|
|
||||||
console.log('old version was', event.previous);
|
|
||||||
console.log('new version is', event.current);
|
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue