Update to angular 21

This commit is contained in:
2026-08-05 08:59:29 +02:00
parent 2dbeffc262
commit cece61afbe
11 changed files with 1224 additions and 682 deletions
+1177 -651
View File
File diff suppressed because it is too large Load Diff
+16 -16
View File
@@ -44,22 +44,22 @@
"update-fontawesome": "npm update @fortawesome/fontawesome-svg-core @fortawesome/free-brands-svg-icons @fortawesome/free-solid-svg-icons @fortawesome/angular-fontawesome --save"
},
"devDependencies": {
"@angular-devkit/build-angular": "20.3.32",
"@angular/animations": "20.3.27",
"@angular/common": "20.3.27",
"@angular/compiler": "20.3.27",
"@angular/compiler-cli": "20.3.27",
"@angular/core": "20.3.27",
"@angular/forms": "20.3.27",
"@angular/platform-browser": "20.3.27",
"@angular/platform-browser-dynamic": "20.3.27",
"@angular/platform-server": "20.3.27",
"@angular/router": "20.3.27",
"@fortawesome/angular-fontawesome": "3.0.0",
"@angular-devkit/build-angular": "21.2.19",
"@angular/animations": "21.2.19",
"@angular/common": "21.2.19",
"@angular/compiler": "21.2.19",
"@angular/compiler-cli": "21.2.19",
"@angular/core": "21.2.19",
"@angular/forms": "21.2.19",
"@angular/platform-browser": "21.2.19",
"@angular/platform-browser-dynamic": "21.2.19",
"@angular/platform-server": "21.2.19",
"@angular/router": "21.2.19",
"@fortawesome/angular-fontawesome": "4.0.0",
"@fortawesome/fontawesome-svg-core": "6.7.2",
"@fortawesome/free-brands-svg-icons": "6.7.2",
"@fortawesome/free-solid-svg-icons": "6.7.2",
"@ngtools/webpack": "20.3.32",
"@ngtools/webpack": "21.2.19",
"@types/bluebird": "3.5.42",
"@types/body-parser": "1.19.6",
"@types/chai": "5.2.3",
@@ -132,7 +132,7 @@
"ts-node": "10.9.2",
"tslib": "2.8.1",
"tsutils": "3.17.1",
"typescript": "5.8.3",
"typescript": "5.9.3",
"webpack": "5.105.4",
"webpack-bundle-analyzer": "5.2.0",
"webpack-cli": "7.0.2",
@@ -143,7 +143,7 @@
"zone.js": "0.15.1"
},
"dependencies": {
"@angular/cdk": "20.2.14",
"@angular/cdk": "21.2.14",
"@encharm/cws": "4.5.3",
"@passport-next/passport-facebook": "^3.1.3",
"@passport-next/passport-google-oauth2": "^1.0.0",
@@ -176,7 +176,7 @@
"markdown-tree": "0.0.0",
"mongoose": "9.3.2",
"morgan": "1.9.1",
"ngx-bootstrap": "20.0.2",
"ngx-bootstrap": "21.2.2",
"passport": "0.7.0",
"passport-deviantart": "0.0.5",
"passport-discord": "0.1.3",
+3 -3
View File
@@ -81,9 +81,9 @@ export const routes: Routes = [
RouterModule,
FormsModule,
HttpClientModule,
PopoverModule.forRoot(),
PaginationModule.forRoot(),
ButtonsModule.forRoot(),
PopoverModule,
PaginationModule,
ButtonsModule,
ModalModule,
TooltipModule,
SharedModule,
+3 -3
View File
@@ -37,9 +37,9 @@ export const routes: Routes = [
RouterModule.forRoot(routes, { anchorScrolling: 'enabled' }),
FormsModule,
HttpClientModule,
PopoverModule.forRoot(),
ButtonsModule.forRoot(),
TooltipModule.forRoot(),
PopoverModule,
ButtonsModule,
TooltipModule,
SharedModule,
RouterModule.forRoot(routes),
FontAwesomeModule,
+2 -2
View File
@@ -153,10 +153,10 @@ const declarations = [
BrowserModule,
RouterModule,
FormsModule,
TooltipModule.forRoot(),
TooltipModule,
PopoverModule,
ButtonsModule,
ModalModule.forRoot(),
ModalModule,
FontAwesomeModule,
DragDropModule,
CommonModule,
+3 -3
View File
@@ -61,9 +61,9 @@ export const routes: Routes = [
FormsModule,
HttpClientModule,
SharedModule,
PopoverModule.forRoot(),
TypeaheadModule.forRoot(),
ButtonsModule.forRoot(),
PopoverModule,
TypeaheadModule,
ButtonsModule,
RouterModule.forRoot(routes),
FontAwesomeModule,
NoopAnimationsModule,
+2 -1
View File
@@ -3,6 +3,7 @@
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
@@ -17,4 +18,4 @@
"skipMetadataEmit": true,
"preserveWhitespaces": true
}
}
}
+2 -1
View File
@@ -2,9 +2,10 @@
"extends": "./tsconfig-aot.json",
"compilerOptions": {
"target": "es2022",
"moduleResolution": "bundler",
"paths": {
"core-js/es6": ["src/fixes/empty.js"],
"lodash": ["src/ts/lodash.ts"]
}
}
}
}
+2 -1
View File
@@ -3,6 +3,7 @@
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
@@ -17,4 +18,4 @@
"skipMetadataEmit": true,
"preserveWhitespaces": true
}
}
}
+2 -1
View File
@@ -3,6 +3,7 @@
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
@@ -17,4 +18,4 @@
"skipMetadataEmit": true,
"preserveWhitespaces": true
}
}
}
+12
View File
@@ -10,6 +10,18 @@
"pretty": true,
"module": "commonjs",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@angular/common/http": ["node_modules/@angular/common/types/http.d.ts"],
"@angular/platform-browser/animations": ["node_modules/@angular/platform-browser/types/animations.d.ts"],
"@angular/cdk/drag-drop": ["node_modules/@angular/cdk/types/drag-drop.d.ts"],
"ngx-bootstrap/popover": ["node_modules/ngx-bootstrap/popover/types/ngx-bootstrap-popover.d.ts"],
"ngx-bootstrap/modal": ["node_modules/ngx-bootstrap/modal/types/ngx-bootstrap-modal.d.ts"],
"ngx-bootstrap/tooltip": ["node_modules/ngx-bootstrap/tooltip/types/ngx-bootstrap-tooltip.d.ts"],
"ngx-bootstrap/buttons": ["node_modules/ngx-bootstrap/buttons/types/ngx-bootstrap-buttons.d.ts"],
"ngx-bootstrap/typeahead": ["node_modules/ngx-bootstrap/typeahead/types/ngx-bootstrap-typeahead.d.ts"],
"ngx-bootstrap/pagination": ["node_modules/ngx-bootstrap/pagination/types/ngx-bootstrap-pagination.d.ts"]
},
"importHelpers": true,
"noUnusedLocals": true,
"noUnusedParameters": true,