Update angular to v16

This commit is contained in:
Sébastien ANDRE
2023-05-04 09:27:13 +02:00
parent 3ecc6cb74b
commit 3dac4fe8e9
4 changed files with 1535 additions and 1302 deletions

View File

@@ -23,7 +23,7 @@
], ],
"styles": [ "styles": [
"src/assets/css/styles-app-loading.scss", "src/assets/css/styles-app-loading.scss",
"src/assets/css/custom-theme-dark.scss", "@angular/material/prebuilt-themes/pink-bluegrey.css",
"src/assets/css/styles.css" "src/assets/css/styles.css"
], ],
"scripts": [], "scripts": [],
@@ -132,7 +132,6 @@
} }
} }
}, },
"defaultProject": "skydivelogs-app",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"prefix": "app", "prefix": "app",

File diff suppressed because it is too large Load Diff

View File

@@ -12,26 +12,26 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^15.2.0", "@angular/animations": "^16.0.0",
"@angular/cdk": "^15.2.6", "@angular/cdk": "^16.0.0",
"@angular/common": "^15.2.0", "@angular/common": "^16.0.0",
"@angular/compiler": "^15.2.0", "@angular/compiler": "^16.0.0",
"@angular/core": "^15.2.0", "@angular/core": "^16.0.0",
"@angular/forms": "^15.2.0", "@angular/forms": "^16.0.0",
"@angular/material": "^15.2.6", "@angular/material": "^16.0.0",
"@angular/platform-browser": "^15.2.0", "@angular/platform-browser": "^16.0.0",
"@angular/platform-browser-dynamic": "^15.2.0", "@angular/platform-browser-dynamic": "^16.0.0",
"@angular/router": "^15.2.0", "@angular/router": "^16.0.0",
"@ngx-translate/core": "^14.0.0", "@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0", "@ngx-translate/http-loader": "^7.0.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.12.0" "zone.js": "~0.13.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^15.2.6", "@angular-devkit/build-angular": "^16.0.0",
"@angular/cli": "~15.2.6", "@angular/cli": "~16.0.0",
"@angular/compiler-cli": "^15.2.0", "@angular/compiler-cli": "^16.0.0",
"@types/jasmine": "~4.3.0", "@types/jasmine": "~4.3.0",
"jasmine-core": "~4.5.0", "jasmine-core": "~4.5.0",
"karma": "~6.4.0", "karma": "~6.4.0",
@@ -41,4 +41,4 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"typescript": "~4.9.4" "typescript": "~4.9.4"
} }
} }

View File

@@ -1,9 +1,9 @@
import { Injectable } from "@angular/core"; import { Injectable } from "@angular/core";
import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from "@angular/router"; import { Router, ActivatedRouteSnapshot, RouterStateSnapshot } from "@angular/router";
import { AuthenticationService } from "./authentication.service"; import { AuthenticationService } from "./authentication.service";
@Injectable({ providedIn: "root" }) @Injectable({ providedIn: "root" })
export class AuthGuardService implements CanActivate { export class AuthGuardService {
constructor(private router: Router, constructor(private router: Router,
private authenticationService: AuthenticationService) {} private authenticationService: AuthenticationService) {}