mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 06:13:22 -07:00
angular 16
This commit is contained in:
parent
28f1998889
commit
178cf03a5e
3 changed files with 1466 additions and 978 deletions
|
@ -13,17 +13,17 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^15.2.10",
|
"@angular/animations": "^16.2.12",
|
||||||
"@angular/cdk": "^14.2.7",
|
"@angular/cdk": "^14.2.7",
|
||||||
"@angular/common": "^15.2.10",
|
"@angular/common": "^16.2.12",
|
||||||
"@angular/compiler": "^15.2.10",
|
"@angular/compiler": "^16.2.12",
|
||||||
"@angular/core": "^15.2.10",
|
"@angular/core": "^16.2.12",
|
||||||
"@angular/forms": "^15.2.10",
|
"@angular/forms": "^16.2.12",
|
||||||
"@angular/material": "^14.2.7",
|
"@angular/material": "^14.2.7",
|
||||||
"@angular/platform-browser": "^15.2.10",
|
"@angular/platform-browser": "^16.2.12",
|
||||||
"@angular/platform-browser-dynamic": "^15.2.10",
|
"@angular/platform-browser-dynamic": "^16.2.12",
|
||||||
"@angular/platform-server": "^15.2.10",
|
"@angular/platform-server": "^16.2.12",
|
||||||
"@angular/router": "^15.2.10",
|
"@angular/router": "^16.2.12",
|
||||||
"@angularclass/hmr": "^3.0.0",
|
"@angularclass/hmr": "^3.0.0",
|
||||||
"@auth0/angular-jwt": "^5.0.2",
|
"@auth0/angular-jwt": "^5.0.2",
|
||||||
"@fortawesome/fontawesome-free": "^6.4.2",
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
||||||
|
@ -53,18 +53,18 @@
|
||||||
"zone.js": "~0.13.2"
|
"zone.js": "~0.13.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^15.0.2",
|
"@angular-devkit/build-angular": "^16.2.12",
|
||||||
"@angular/cli": "^15.0.2",
|
"@angular/cli": "^16.2.12",
|
||||||
"@angular/compiler-cli": "^15.0.4",
|
"@angular/compiler-cli": "^16.2.12",
|
||||||
"@babel/core": "^7.18.9",
|
"@babel/core": "^7.18.9",
|
||||||
"@compodoc/compodoc": "^1.1.19",
|
"@compodoc/compodoc": "^1.1.19",
|
||||||
"@storybook/angular": "^6.5.9",
|
"@storybook/angular": "^6.5.9",
|
||||||
"chromatic": "^6.7.1",
|
"chromatic": "^6.7.1",
|
||||||
"typescript": "~4.8.4"
|
"typescript": "~5.1.6"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"protractor": "~5.4.0",
|
"protractor": "~5.4.0",
|
||||||
"ts-node": "~5.0.1",
|
"ts-node": "~5.0.1",
|
||||||
"tslint": "^5.12.0"
|
"tslint": "^5.12.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Router } from "@angular/router";
|
import { Router } from "@angular/router";
|
||||||
import { CanActivate } from "@angular/router";
|
|
||||||
import { AuthService } from "./auth.service";
|
import { AuthService } from "./auth.service";
|
||||||
import { StorageService } from "../shared/storage/storage-service";
|
import { StorageService } from "../shared/storage/storage-service";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AuthGuard implements CanActivate {
|
export class AuthGuard {
|
||||||
|
|
||||||
constructor(private auth: AuthService, private router: Router,
|
constructor(private auth: AuthService, private router: Router,
|
||||||
private store: StorageService) { }
|
private store: StorageService) { }
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue