upgrade to angular 20

This commit is contained in:
Alex Shnitman
2025-12-05 11:24:44 +02:00
parent 53944244a7
commit 9907e1b885
5 changed files with 2654 additions and 2393 deletions

View File

@@ -137,5 +137,31 @@
}, },
"cli": { "cli": {
"analytics": false "analytics": false
},
"schematics": {
"@schematics/angular:component": {
"type": "component"
},
"@schematics/angular:directive": {
"type": "directive"
},
"@schematics/angular:service": {
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
} }
} }

4970
ui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,34 +11,34 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^19.2.14", "@angular/animations": "^20.3.15",
"@angular/common": "^19.2.14", "@angular/common": "^20.3.15",
"@angular/compiler": "^19.2.14", "@angular/compiler": "^20.3.15",
"@angular/core": "^19.2.14", "@angular/core": "^20.3.15",
"@angular/forms": "^19.2.14", "@angular/forms": "^20.3.15",
"@angular/localize": "^19.2.14", "@angular/localize": "^20.3.15",
"@angular/platform-browser": "^19.2.14", "@angular/platform-browser": "^20.3.15",
"@angular/platform-browser-dynamic": "^19.2.14", "@angular/platform-browser-dynamic": "^20.3.15",
"@angular/router": "^19.2.14", "@angular/router": "^20.3.15",
"@angular/service-worker": "^19.2.14", "@angular/service-worker": "^20.3.15",
"@fortawesome/angular-fontawesome": "~1.0.0", "@fortawesome/angular-fontawesome": "~3.0.0",
"@fortawesome/fontawesome-svg-core": "^6.7.0", "@fortawesome/fontawesome-svg-core": "^7.1.0",
"@fortawesome/free-brands-svg-icons": "^6.7.2", "@fortawesome/free-brands-svg-icons": "^7.1.0",
"@fortawesome/free-regular-svg-icons": "^6.7.0", "@fortawesome/free-regular-svg-icons": "^7.1.0",
"@fortawesome/free-solid-svg-icons": "^6.7.0", "@fortawesome/free-solid-svg-icons": "^7.1.0",
"@ng-bootstrap/ng-bootstrap": "^18.0.0", "@ng-bootstrap/ng-bootstrap": "^19.0.0",
"@ng-select/ng-select": "^14.0.0", "@ng-select/ng-select": "^20.0.0",
"bootstrap": "^5.3.6", "bootstrap": "^5.3.6",
"ngx-cookie-service": "^19.0.0", "ngx-cookie-service": "^20.0.0",
"ngx-socket-io": "~4.8.0", "ngx-socket-io": "~4.9.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"zone.js": "~0.15.1" "zone.js": "~0.15.1"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^19.2.14", "@angular-devkit/build-angular": "^20.3.13",
"@angular/cli": "^19.2.14", "@angular/cli": "^20.3.13",
"@angular/compiler-cli": "^19.2.14", "@angular/compiler-cli": "^20.3.15",
"@types/node": "^22.15.29", "@types/node": "^22.15.29",
"codelyzer": "^6.0.2", "codelyzer": "^6.0.2",
"ts-node": "~10.9.1", "ts-node": "~10.9.1",

View File

@@ -1,11 +1,12 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { ApplicationRef } from '@angular/core';
import { Socket } from 'ngx-socket-io'; import { Socket } from 'ngx-socket-io';
@Injectable() @Injectable()
export class MeTubeSocket extends Socket { export class MeTubeSocket extends Socket {
constructor() { constructor(appRef: ApplicationRef) {
const path = const path =
document.location.pathname.replace(/share-target/, '') + 'socket.io'; document.location.pathname.replace(/share-target/, '') + 'socket.io';
super({ url: '', options: { path } }); super({ url: '', options: { path } }, appRef);
} }
} }

View File

@@ -8,7 +8,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"declaration": false, "declaration": false,
"experimentalDecorators": true, "experimentalDecorators": true,
"moduleResolution": "node", "moduleResolution": "bundler",
"importHelpers": true, "importHelpers": true,
"target": "ES2022", "target": "ES2022",
"module": "es2020", "module": "es2020",