Upgrade to angular 16

This commit is contained in:
Chris Chen 2024-04-06 09:45:34 -07:00
parent 56d2bd17e4
commit e2f55f0b8b
3 changed files with 3315 additions and 2289 deletions

5580
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -31,10 +31,10 @@
},
"dependencies": {
"@angular/animations": "^16.2.12",
"@angular/cdk": "15.2.9",
"@angular/cdk": "16.2.14",
"@angular/common": "^16.2.12",
"@angular/compiler": "^16.2.12",
"@angular/core": "^15.2.10",
"@angular/core": "^16.2.12",
"@angular/forms": "^16.2.12",
"@angular/google-maps": "^12.2.13",
"@angular/platform-browser": "^16.2.12",
@ -42,11 +42,11 @@
"@angular/router": "^16.2.12",
"@asymmetrik/ngx-leaflet": "3.0.1",
"@microsoft/signalr": "^6.0.8",
"@nebular/auth": "11.0.0",
"@nebular/date-fns": "^11.0.0",
"@nebular/eva-icons": "11.0.0",
"@nebular/security": "11.0.0",
"@nebular/theme": "11.0.0",
"@nebular/auth": "12.0.0",
"@nebular/date-fns": "^12.0.0",
"@nebular/eva-icons": "12.0.0",
"@nebular/security": "12.0.0",
"@nebular/theme": "12.0.0",
"angular2-chartjs": "0.4.1",
"angular2-qrcode": "^2.0.3",
"bootstrap": "4.3.1",
@ -78,11 +78,11 @@
"tslib": "^2.3.1",
"typeface-exo": "0.0.22",
"typeit": "^8.7.0",
"zone.js": "~0.11.4"
"zone.js": "~0.13.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.2.11",
"@angular/cli": "^15.2.11",
"@angular-devkit/build-angular": "^16.2.13",
"@angular/cli": "^16.2.13",
"@angular/compiler-cli": "^16.2.12",
"@angular/language-service": "16.2.12",
"@compodoc/compodoc": "1.0.1",

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { CanActivate, CanActivateChild, CanLoad, Route, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Route, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { first, map } from 'rxjs/operators';
@ -13,7 +13,7 @@ import { EnumUtils } from '../utilities/enum-utils';
@Injectable({
providedIn: "root",
})
export class AuthGuardService implements CanActivate, CanActivateChild, CanLoad {
export class AuthGuardService {
constructor(
private authService: AuthService,