Compare commits

..

2 Commits

Author SHA1 Message Date
renovate[bot] d05e33d557
Update backendDependencies 2023-12-24 18:07:30 +00:00
Matteo Gheza 9b29e554f2 Update frontend to Angular 16 2023-12-24 19:06:17 +01:00
6 changed files with 2999 additions and 1832 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,15 +13,15 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^15.1.5",
"@angular/common": "^15.1.5",
"@angular/compiler": "^15.1.5",
"@angular/core": "^15.1.5",
"@angular/forms": "^15.1.5",
"@angular/platform-browser": "^15.1.5",
"@angular/platform-browser-dynamic": "^15.1.5",
"@angular/router": "^15.1.5",
"@angular/service-worker": "^15.1.5",
"@angular/animations": "^16.2.12",
"@angular/common": "^16.2.12",
"@angular/compiler": "^16.2.12",
"@angular/core": "^16.2.12",
"@angular/forms": "^16.2.12",
"@angular/platform-browser": "^16.2.12",
"@angular/platform-browser-dynamic": "^16.2.12",
"@angular/router": "^16.2.12",
"@angular/service-worker": "^16.2.12",
"@asymmetrik/ngx-leaflet": "^15.0.1",
"@fortawesome/fontawesome-free": "^5.15.4",
"@ngx-translate/core": "^14.0.0",
@ -35,21 +35,21 @@
"rxjs": "~7.4.0",
"sweetalert2": "^11.3.4",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
"zone.js": "~0.13.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.1.6",
"@angular/cli": "^15.1.6",
"@angular/compiler-cli": "^15.1.5",
"@angular-devkit/build-angular": "^16.2.11",
"@angular/cli": "^16.2.11",
"@angular/compiler-cli": "^16.2.12",
"@types/jasmine": "~3.10.0",
"@types/leaflet": "^1.7.8",
"@types/node": "16.11.17",
"@types/node": "^20.10.5",
"jasmine-core": "4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "~4.8.4"
"typescript": "~5.1.6"
}
}

View File

@ -18,7 +18,7 @@ export class ModalAlertComponent implements OnInit, OnDestroy {
crewUsers: any[] = [];
loadDataInterval: NodeJS.Timer | undefined = undefined;
loadDataInterval: any = undefined;
notes = "";
originalNotes = "";

View File

@ -62,7 +62,7 @@ export class TableComponent implements OnInit, OnDestroy {
public originalData: any = [];
private etag: string = "";
public loadDataInterval: NodeJS.Timer | undefined = undefined;
public loadDataInterval: any = undefined;
public currentPage: number = 1;
public totalElements: number = 1;
@ -155,7 +155,7 @@ export class TableComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
if(typeof this.loadDataInterval !== 'undefined') {
clearInterval(this.loadDataInterval);
clearInterval(this.loadDataInterval as number);
}
}

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { GuardLoaderIconService } from '../_services/guard-loader-icon.service';
import { AuthService } from '../_services/auth.service';
@ -7,7 +7,7 @@ import { AuthService } from '../_services/auth.service';
@Injectable({
providedIn: 'root'
})
export class AuthorizeGuard implements CanActivate {
export class AuthorizeGuard {
constructor(
private authService: AuthService,
private guardLoaderIconService: GuardLoaderIconService,

View File

@ -18,7 +18,7 @@ export class ListComponent implements OnInit, OnDestroy {
alertModalRef?: BsModalRef;
@ViewChild('table') table!: TableComponent;
public loadAvailabilityInterval: NodeJS.Timer | undefined = undefined;
public loadAvailabilityInterval: any = undefined;
public available: boolean | undefined = undefined;
public manual_mode: boolean | undefined = undefined;
@ -131,7 +131,7 @@ export class ListComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
if(typeof this.loadAvailabilityInterval !== 'undefined') {
clearInterval(this.loadAvailabilityInterval);
clearInterval(this.loadAvailabilityInterval as number);
}
}