angular 17 -> 18 + migrations
This commit is contained in:
parent
49e3155f9c
commit
b4f950bc7c
5 changed files with 3365 additions and 11496 deletions
|
|
@ -37,17 +37,21 @@
|
||||||
"prefix": "app",
|
"prefix": "app",
|
||||||
"architect": {
|
"architect": {
|
||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular/build:application",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "../server/RdtClient.Web/wwwroot",
|
"outputPath": {
|
||||||
|
"base": "../server/RdtClient.Web/wwwroot"
|
||||||
|
},
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"polyfills": [
|
||||||
"polyfills": "src/polyfills.ts",
|
"src/polyfills.ts"
|
||||||
|
],
|
||||||
"tsConfig": "tsconfig.app.json",
|
"tsConfig": "tsconfig.app.json",
|
||||||
"inlineStyleLanguage": "scss",
|
"inlineStyleLanguage": "scss",
|
||||||
"assets": ["src/favicon.ico", "src/assets"],
|
"assets": ["src/favicon.ico", "src/assets"],
|
||||||
"styles": ["src/styles.scss"],
|
"styles": ["src/styles.scss"],
|
||||||
"scripts": []
|
"scripts": [],
|
||||||
|
"browser": "src/main.ts"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
|
|
@ -72,9 +76,7 @@
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildOptimizer": false,
|
|
||||||
"optimization": false,
|
"optimization": false,
|
||||||
"vendorChunk": true,
|
|
||||||
"extractLicenses": false,
|
"extractLicenses": false,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"namedChunks": true
|
"namedChunks": true
|
||||||
|
|
@ -83,7 +85,7 @@
|
||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular/build:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"proxyConfig": "angular-proxy.json"
|
"proxyConfig": "angular-proxy.json"
|
||||||
},
|
},
|
||||||
|
|
@ -98,7 +100,7 @@
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
},
|
},
|
||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
"builder": "@angular/build:extract-i18n",
|
||||||
"options": {
|
"options": {
|
||||||
"buildTarget": "client:build"
|
"buildTarget": "client:build"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14737
client/package-lock.json
generated
14737
client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -12,16 +12,16 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^17.3.12",
|
"@angular/animations": "^18.2.13",
|
||||||
"@angular/cdk": "^17.3.10",
|
"@angular/cdk": "^18.2.14",
|
||||||
"@angular/common": "^17.3.12",
|
"@angular/common": "^18.2.13",
|
||||||
"@angular/compiler": "^17.3.12",
|
"@angular/compiler": "^18.2.13",
|
||||||
"@angular/core": "^17.3.12",
|
"@angular/core": "^18.2.13",
|
||||||
"@angular/flex-layout": "^15.0.0-beta.42",
|
"@angular/flex-layout": "^15.0.0-beta.42",
|
||||||
"@angular/forms": "^17.3.12",
|
"@angular/forms": "^18.2.13",
|
||||||
"@angular/platform-browser": "^17.3.12",
|
"@angular/platform-browser": "^18.2.13",
|
||||||
"@angular/platform-browser-dynamic": "^17.3.12",
|
"@angular/platform-browser-dynamic": "^18.2.13",
|
||||||
"@angular/router": "^17.3.12",
|
"@angular/router": "^18.2.13",
|
||||||
"@fortawesome/fontawesome-free": "^6.4.2",
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
||||||
"@microsoft/signalr": "^6.0.21",
|
"@microsoft/signalr": "^6.0.21",
|
||||||
"bulma": "^0.9.4",
|
"bulma": "^0.9.4",
|
||||||
|
|
@ -33,15 +33,15 @@
|
||||||
"zone.js": "~0.14.10"
|
"zone.js": "~0.14.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^17.3.12",
|
"@angular-eslint/builder": "18.4.3",
|
||||||
"@angular-eslint/builder": "17.5.3",
|
"@angular-eslint/eslint-plugin": "18.4.3",
|
||||||
"@angular-eslint/eslint-plugin": "17.5.3",
|
"@angular-eslint/eslint-plugin-template": "18.4.3",
|
||||||
"@angular-eslint/eslint-plugin-template": "17.5.3",
|
"@angular-eslint/schematics": "18.4.3",
|
||||||
"@angular-eslint/schematics": "17.5.3",
|
"@angular-eslint/template-parser": "18.4.3",
|
||||||
"@angular-eslint/template-parser": "17.5.3",
|
"@angular/build": "^18.2.14",
|
||||||
"@angular/cli": "^17.3.12",
|
"@angular/cli": "^18.2.14",
|
||||||
"@angular/compiler-cli": "^17.3.12",
|
"@angular/compiler-cli": "^18.2.13",
|
||||||
"@angular/language-service": "^17.3.12",
|
"@angular/language-service": "^18.2.13",
|
||||||
"@types/file-saver": "^2.0.5",
|
"@types/file-saver": "^2.0.5",
|
||||||
"@types/file-saver-es": "^2.0.1",
|
"@types/file-saver-es": "^2.0.1",
|
||||||
"@types/node": "^20.5.8",
|
"@types/node": "^20.5.8",
|
||||||
|
|
@ -51,4 +51,4 @@
|
||||||
"prettier": "^3.0.3",
|
"prettier": "^3.0.3",
|
||||||
"typescript": "5.4.5"
|
"typescript": "5.4.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { ClipboardModule } from '@angular/cdk/clipboard';
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
||||||
import { APP_BASE_HREF } from '@angular/common';
|
import { APP_BASE_HREF } from '@angular/common';
|
||||||
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
@ -27,38 +27,32 @@ import { SortPipe } from './sort.pipe';
|
||||||
|
|
||||||
curray();
|
curray();
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({ declarations: [
|
||||||
declarations: [
|
AppComponent,
|
||||||
AppComponent,
|
MainLayoutComponent,
|
||||||
MainLayoutComponent,
|
NavbarComponent,
|
||||||
NavbarComponent,
|
AddNewTorrentComponent,
|
||||||
AddNewTorrentComponent,
|
TorrentTableComponent,
|
||||||
TorrentTableComponent,
|
SettingsComponent,
|
||||||
SettingsComponent,
|
TorrentStatusPipe,
|
||||||
TorrentStatusPipe,
|
DownloadStatusPipe,
|
||||||
DownloadStatusPipe,
|
LoginComponent,
|
||||||
LoginComponent,
|
SetupComponent,
|
||||||
SetupComponent,
|
TorrentComponent,
|
||||||
TorrentComponent,
|
DecodeURIPipe,
|
||||||
DecodeURIPipe,
|
ProfileComponent,
|
||||||
ProfileComponent,
|
Nl2BrPipe,
|
||||||
Nl2BrPipe,
|
SortPipe,
|
||||||
SortPipe,
|
],
|
||||||
],
|
bootstrap: [AppComponent], imports: [BrowserModule,
|
||||||
imports: [
|
AppRoutingModule,
|
||||||
BrowserModule,
|
FormsModule,
|
||||||
AppRoutingModule,
|
NgxFilesizeModule,
|
||||||
FormsModule,
|
FlexLayoutModule,
|
||||||
HttpClientModule,
|
ClipboardModule], providers: [
|
||||||
NgxFilesizeModule,
|
FileSizePipe,
|
||||||
FlexLayoutModule,
|
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
|
||||||
ClipboardModule,
|
{ provide: APP_BASE_HREF, useValue: (window as any)['_app_base'] || '/' },
|
||||||
],
|
provideHttpClient(withInterceptorsFromDi()),
|
||||||
providers: [
|
] })
|
||||||
FileSizePipe,
|
|
||||||
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
|
|
||||||
{ provide: APP_BASE_HREF, useValue: (window as any)['_app_base'] || '/' },
|
|
||||||
],
|
|
||||||
bootstrap: [AppComponent],
|
|
||||||
})
|
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"outDir": "./dist/out-tsc",
|
"outDir": "./dist/out-tsc",
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noPropertyAccessFromIndexSignature": true,
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
|
|
@ -12,7 +13,6 @@
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"downlevelIteration": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue