Jelajahi Sumber

Updated NG Bootstrap

Lukas Cerny 2 tahun lalu
induk
melakukan
a33630d250
4 mengubah file dengan 294 tambahan dan 694 penghapusan
  1. 279 669
      package-lock.json
  2. 11 11
      package.json
  3. 2 7
      src/app/auth/guards/auth.guard.ts
  4. 2 7
      src/app/auth/guards/role.guard.ts

File diff ditekan karena terlalu besar
+ 279 - 669
package-lock.json


+ 11 - 11
package.json

@@ -13,19 +13,19 @@
   "private": true,
   "dependencies": {
     "@angular/cdk": "^15.2.9",
-    "@angular/common": "^15.2.10",
-    "@angular/compiler": "^15.2.10",
-    "@angular/core": "^15.2.10",
-    "@angular/forms": "^15.2.10",
-    "@angular/localize": "^15.2.10",
+    "@angular/common": "^16.2.12",
+    "@angular/compiler": "^16.2.12",
+    "@angular/core": "^16.2.12",
+    "@angular/forms": "^16.2.12",
+    "@angular/localize": "^16.2.12",
     "@angular/material": "^15.2.9",
-    "@angular/platform-browser": "^15.2.10",
-    "@angular/platform-browser-dynamic": "^15.2.10",
-    "@angular/router": "^15.2.10",
+    "@angular/platform-browser": "^16.2.12",
+    "@angular/platform-browser-dynamic": "^16.2.12",
+    "@angular/router": "^16.2.12",
     "@fortawesome/angular-fontawesome": "^0.10.1",
     "@fortawesome/fontawesome-svg-core": "^1.2.36",
     "@fortawesome/free-solid-svg-icons": "^5.15.4",
-    "@ng-bootstrap/ng-bootstrap": "^12.0.0",
+    "@ng-bootstrap/ng-bootstrap": "^15.1.2",
     "@ngx-translate/core": "^14.0.0",
     "@ngx-translate/http-loader": "^7.0.0",
     "bootstrap": "^5.0.0",
@@ -60,7 +60,7 @@
     "vega": "5.23.0",
     "vega-tooltip": "^0.25.1",
     "xml-js": "^1.6.11",
-    "zone.js": "^0.11.3"
+    "zone.js": "^0.13.3"
   },
   "devDependencies": {
     "@angular-architects/module-federation": "^15.0.3",
@@ -72,7 +72,7 @@
     "@angular-eslint/schematics": "^15.2.1",
     "@angular-eslint/template-parser": "^15.2.1",
     "@angular/cli": "^15.2.10",
-    "@angular/compiler-cli": "^15.2.10",
+    "@angular/compiler-cli": "^16.2.12",
     "@types/jasmine": "~3.6.0",
     "@types/node": "^12.11.1",
     "codelyzer": "^6.0.0",

+ 2 - 7
src/app/auth/guards/auth.guard.ts

@@ -1,17 +1,12 @@
 import { Injectable } from '@angular/core';
-import {
-  CanActivate,
-  ActivatedRouteSnapshot,
-  RouterStateSnapshot,
-  UrlTree, Router
-} from '@angular/router';
+import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';
 import { Observable } from 'rxjs';
 import { AuthService } from '../services/auth.service';
 
 @Injectable({
   providedIn: 'root'
 })
-export class AuthGuard implements CanActivate {
+export class AuthGuard  {
 
   constructor(
     private authService: AuthService,

+ 2 - 7
src/app/auth/guards/role.guard.ts

@@ -1,10 +1,5 @@
 import { Injectable } from '@angular/core';
-import {
-  CanActivate,
-  ActivatedRouteSnapshot,
-  RouterStateSnapshot,
-  UrlTree, Router
-} from '@angular/router';
+import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';
 import { Observable } from 'rxjs';
 import { AuthService } from '../services/auth.service';
 import { LoginService } from '../../shared/api/endpoints/services';
@@ -12,7 +7,7 @@ import { LoginService } from '../../shared/api/endpoints/services';
 @Injectable({
   providedIn: 'root'
 })
-export class RoleGuard implements CanActivate {
+export class RoleGuard  {
 
   constructor(
     private authService: AuthService,

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini