Update to angular 18

This commit is contained in:
2026-03-24 21:00:57 +01:00
parent a0763b6d14
commit 5517fb5e0f
3 changed files with 2469 additions and 2044 deletions
+2453 -2028
View File
File diff suppressed because it is too large Load Diff
+14 -14
View File
@@ -50,19 +50,19 @@
"webpack-cli": "^7.0.2" "webpack-cli": "^7.0.2"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/build-angular": "^17.3.0", "@angular-devkit/build-angular": "^18.2.21",
"@angular/animations": "^17.3.0", "@angular/animations": "^18.2.14",
"@angular/cdk": "^17.3.0", "@angular/cdk": "^18.2.14",
"@angular/common": "^17.3.0", "@angular/common": "^18.2.14",
"@angular/compiler": "^17.3.0", "@angular/compiler": "^18.2.14",
"@angular/compiler-cli": "^17.3.0", "@angular/compiler-cli": "^18.2.14",
"@angular/core": "^17.3.0", "@angular/core": "^18.2.14",
"@angular/forms": "^17.3.0", "@angular/forms": "^18.2.14",
"@angular/platform-browser": "^17.3.0", "@angular/platform-browser": "^18.2.14",
"@angular/platform-browser-dynamic": "^17.3.0", "@angular/platform-browser-dynamic": "^18.2.14",
"@angular/platform-server": "^17.3.0", "@angular/platform-server": "^18.2.14",
"@angular/router": "^17.3.0", "@angular/router": "^18.2.14",
"@ngtools/webpack": "^17.3.0", "@ngtools/webpack": "^18.0.0",
"@encharm/cws": "^4.5.3", "@encharm/cws": "^4.5.3",
"@fortawesome/angular-fontawesome": "^0.11.1", "@fortawesome/angular-fontawesome": "^0.11.1",
"@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/fontawesome-svg-core": "^6.7.2",
@@ -206,7 +206,7 @@
"tslib": "^2.8.1", "tslib": "^2.8.1",
"tslint": "^5.19.0", "tslint": "^5.19.0",
"tsutils": "^3.17.1", "tsutils": "^3.17.1",
"typescript": "~5.2", "typescript": "5.4",
"ua-parser-js": "^0.7.20", "ua-parser-js": "^0.7.20",
"webgl-debug": "^2.0.1", "webgl-debug": "^2.0.1",
"webpack-bundle-analyzer": "^5.2.0", "webpack-bundle-analyzer": "^5.2.0",
+2 -2
View File
@@ -25,14 +25,14 @@ export function getWebGLContext(canvas: HTMLCanvasElement): WebGLRenderingContex
const useDebugContext = false; const useDebugContext = false;
if (useDebugContext) { if (useDebugContext) {
gl = makeDebugContext(gl); gl = makeDebugContext(gl as WebGLRenderingContext);
if (!gl) { if (!gl) {
throw new Error(WEBGL_CREATION_ERROR); throw new Error(WEBGL_CREATION_ERROR);
} }
} }
return gl; return gl as WebGLRenderingContext;
} }
export function isWebGL2(gl: WebGLRenderingContext | undefined) { export function isWebGL2(gl: WebGLRenderingContext | undefined) {