chore: updates angular to v17
This commit is contained in:
@@ -80,10 +80,10 @@
|
|||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "frontend-hideyoshi.com:build:production"
|
"buildTarget": "frontend-hideyoshi.com:build:production"
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"browserTarget": "frontend-hideyoshi.com:build:development"
|
"buildTarget": "frontend-hideyoshi.com:build:development"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "frontend-hideyoshi.com:build"
|
"buildTarget": "frontend-hideyoshi.com:build"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
|
|||||||
38411
package-lock.json
generated
38411
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
158
package.json
158
package.json
@@ -1,81 +1,81 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend-hideyoshi.com",
|
"name": "frontend-hideyoshi.com",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./set_env.js && node ./server.js",
|
"start": "node ./set_env.js && node ./server.js",
|
||||||
"serve": "node ./set_env.js && ng serve",
|
"serve": "node ./set_env.js && ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"start:prod": "node ./set_env.js --prod && node ./server.js",
|
"start:prod": "node ./set_env.js --prod && node ./server.js",
|
||||||
"serve:prod": "node ./set_env.js --prod && ng serve --configuration=production",
|
"serve:prod": "node ./set_env.js --prod && ng serve --configuration=production",
|
||||||
"build:prod": "ng build --configuration=production"
|
"build:prod": "ng build --configuration=production"
|
||||||
},
|
},
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"/callback": {
|
"/callback": {
|
||||||
"target": "http://localhost:8070"
|
"target": "http://localhost:8070"
|
||||||
}
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@angular/animations": "^16.2.2",
|
|
||||||
"@angular/cdk": "^16.2.1",
|
|
||||||
"@angular/common": "^16.2.2",
|
|
||||||
"@angular/compiler": "^16.2.2",
|
|
||||||
"@angular/core": "^16.2.2",
|
|
||||||
"@angular/forms": "^16.2.2",
|
|
||||||
"@angular/material": "^16.2.1",
|
|
||||||
"@angular/platform-browser": "^16.2.2",
|
|
||||||
"@angular/platform-browser-dynamic": "^16.2.2",
|
|
||||||
"@angular/router": "^16.2.2",
|
|
||||||
"@angular/service-worker": "^16.2.2",
|
|
||||||
"@fortawesome/angular-fontawesome": "^0.13.0",
|
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
|
||||||
"@fortawesome/free-regular-svg-icons": "^6.1.1",
|
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
|
||||||
"@glidejs/glide": "^3.6.0",
|
|
||||||
"@sinclair/typebox": "^0.32.4",
|
|
||||||
"apexcharts": "^3.45.1",
|
|
||||||
"bootstrap": "^4.6.2",
|
|
||||||
"cookieconsent": "^3.1.1",
|
|
||||||
"cors": "^2.8.5",
|
|
||||||
"envsub": "^4.1.0",
|
|
||||||
"express": "^4.18.1",
|
|
||||||
"jquery": "^3.6.0",
|
|
||||||
"ng-apexcharts": "^1.8.0",
|
|
||||||
"ngx-cookie-service": "^16.0.1",
|
|
||||||
"ngx-cookieconsent": "^4.0.2",
|
|
||||||
"ngx-glide": "^16.0.0",
|
|
||||||
"normalize.css": "^8.0.1",
|
|
||||||
"rxjs": "~7.5.0",
|
|
||||||
"ts-interface-checker": "^1.0.2",
|
|
||||||
"tslib": "^2.3.0",
|
|
||||||
"zone.js": "~0.13.1"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@angular-devkit/build-angular": "^16.1.1",
|
|
||||||
"@angular-eslint/builder": "^16.1.1",
|
|
||||||
"@angular-eslint/eslint-plugin": "16.1.1",
|
|
||||||
"@angular-eslint/eslint-plugin-template": "16.1.1",
|
|
||||||
"@angular-eslint/schematics": "^20.5.0",
|
|
||||||
"@angular-eslint/template-parser": "16.1.1",
|
|
||||||
"@angular/cli": "^16.1.1",
|
|
||||||
"@angular/compiler-cli": "^16.2.2",
|
|
||||||
"@types/jasmine": "~4.0.0",
|
|
||||||
"@types/node": "^18.11.19",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
||||||
"@typescript-eslint/parser": "^5.59.2",
|
|
||||||
"eslint": "^8.39.0",
|
|
||||||
"eslint-config-prettier": "^9.0.0",
|
|
||||||
"eslint-plugin-prettier": "^5.0.1",
|
|
||||||
"jasmine-core": "~4.1.0",
|
|
||||||
"karma": "~6.3.0",
|
|
||||||
"karma-chrome-launcher": "~3.1.0",
|
|
||||||
"karma-coverage": "~2.2.0",
|
|
||||||
"karma-jasmine": "~5.0.0",
|
|
||||||
"karma-jasmine-html-reporter": "~1.7.0",
|
|
||||||
"prettier": "^3.0.3",
|
|
||||||
"prettier-eslint": "^16.1.1",
|
|
||||||
"ts-interface-builder": "^0.3.3",
|
|
||||||
"typescript": "~5.1.6"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/animations": "^17.3.12",
|
||||||
|
"@angular/cdk": "^16.2.1",
|
||||||
|
"@angular/common": "^17.3.12",
|
||||||
|
"@angular/compiler": "^17.3.12",
|
||||||
|
"@angular/core": "^17.3.12",
|
||||||
|
"@angular/forms": "^17.3.12",
|
||||||
|
"@angular/material": "^16.2.1",
|
||||||
|
"@angular/platform-browser": "^17.3.12",
|
||||||
|
"@angular/platform-browser-dynamic": "^17.3.12",
|
||||||
|
"@angular/router": "^17.3.12",
|
||||||
|
"@angular/service-worker": "^17.3.12",
|
||||||
|
"@fortawesome/angular-fontawesome": "^0.13.0",
|
||||||
|
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
||||||
|
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
||||||
|
"@fortawesome/free-regular-svg-icons": "^6.1.1",
|
||||||
|
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
||||||
|
"@glidejs/glide": "^3.6.0",
|
||||||
|
"@sinclair/typebox": "^0.32.4",
|
||||||
|
"apexcharts": "^3.45.1",
|
||||||
|
"bootstrap": "^4.6.2",
|
||||||
|
"cookieconsent": "^3.1.1",
|
||||||
|
"cors": "^2.8.5",
|
||||||
|
"envsub": "^4.1.0",
|
||||||
|
"express": "^4.18.1",
|
||||||
|
"jquery": "^3.6.0",
|
||||||
|
"ng-apexcharts": "^1.8.0",
|
||||||
|
"ngx-cookie-service": "^16.0.1",
|
||||||
|
"ngx-cookieconsent": "^4.0.2",
|
||||||
|
"ngx-glide": "^16.0.0",
|
||||||
|
"normalize.css": "^8.0.1",
|
||||||
|
"rxjs": "~7.5.0",
|
||||||
|
"ts-interface-checker": "^1.0.2",
|
||||||
|
"tslib": "^2.3.0",
|
||||||
|
"zone.js": "~0.14.10"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular-devkit/build-angular": "^17.3.17",
|
||||||
|
"@angular-eslint/builder": "^16.1.1",
|
||||||
|
"@angular-eslint/eslint-plugin": "16.1.1",
|
||||||
|
"@angular-eslint/eslint-plugin-template": "16.1.1",
|
||||||
|
"@angular-eslint/schematics": "^20.5.0",
|
||||||
|
"@angular-eslint/template-parser": "16.1.1",
|
||||||
|
"@angular/cli": "^17.3.17",
|
||||||
|
"@angular/compiler-cli": "^17.3.12",
|
||||||
|
"@types/jasmine": "~4.0.0",
|
||||||
|
"@types/node": "^18.11.19",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
||||||
|
"@typescript-eslint/parser": "^5.59.2",
|
||||||
|
"eslint": "^8.39.0",
|
||||||
|
"eslint-config-prettier": "^9.0.0",
|
||||||
|
"eslint-plugin-prettier": "^5.0.1",
|
||||||
|
"jasmine-core": "~4.1.0",
|
||||||
|
"karma": "~6.3.0",
|
||||||
|
"karma-chrome-launcher": "~3.1.0",
|
||||||
|
"karma-coverage": "~2.2.0",
|
||||||
|
"karma-jasmine": "~5.0.0",
|
||||||
|
"karma-jasmine-html-reporter": "~1.7.0",
|
||||||
|
"prettier": "^3.0.3",
|
||||||
|
"prettier-eslint": "^16.1.1",
|
||||||
|
"ts-interface-builder": "^0.3.3",
|
||||||
|
"typescript": "~5.4.5"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,7 +17,11 @@ export class UpdateService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public checkForUpdates(): void {
|
public checkForUpdates(): void {
|
||||||
this.swUpdate.available.subscribe((event) => this.promptUser());
|
this.swUpdate.versionUpdates.subscribe(versionUpdate => {
|
||||||
|
if (versionUpdate.type === 'VERSION_READY') {
|
||||||
|
this.promptUser();
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private promptUser(): void {
|
private promptUser(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user