Update to Angular v19 and fixing (#3)

Reviewed-on: #3
Co-authored-by: sandre <perso@sebastienandre.com>
Co-committed-by: sandre <perso@sebastienandre.com>
This commit was merged in pull request #3.
This commit is contained in:
2026-01-20 10:56:31 +00:00
committed by sandre
parent af44e50f54
commit 137b2ab1fc
117 changed files with 3496 additions and 2471 deletions
@@ -1,26 +1,25 @@
import { HttpHeaders } from '@angular/common/http';
import { HttpHeaders } from "@angular/common/http";
import { ConfigurationHelper } from './configuration-helper';
import { ServiceCacheApi } from './service-cache-api.service';
import { ConfigurationHelper } from "./configuration-helper";
import { ServiceCacheApi } from "./service-cache-api.service";
export class BaseService {
protected headers: HttpHeaders;
protected apiUrl: string;
protected serviceCacheApi : ServiceCacheApi;
protected headers: HttpHeaders;
protected apiUrl: string;
protected serviceCacheApi: ServiceCacheApi;
constructor() {
ConfigurationHelper.settings.subscribe(settings =>
{
if (settings != null) {
let tmpApiUrl : string = settings.apiUrl;
this.headers = new HttpHeaders({
'Access-Control-Allow-Origin': tmpApiUrl
});
this.apiUrl = tmpApiUrl + '/api';
}
constructor() {
ConfigurationHelper.settings.subscribe((settings) => {
if (settings != null) {
let tmpApiUrl: string = settings.apiUrl;
this.headers = new HttpHeaders({
"Access-Control-Allow-Origin": tmpApiUrl,
});
this.apiUrl = tmpApiUrl + "/api";
}
});
this.serviceCacheApi = new ServiceCacheApi();
}
this.serviceCacheApi = new ServiceCacheApi();
}
}