mgr/dashboard: upgrade angular to v18

Fixes: https://tracker.ceph.com/issues/68896
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
This commit is contained in:
Ivo Almeida 2024-11-11 15:23:33 +00:00
parent 7a4d23c474
commit 6803f28124
4 changed files with 3109 additions and 1638 deletions

File diff suppressed because it is too large Load Diff

View File

@ -43,15 +43,15 @@
},
"private": true,
"dependencies": {
"@angular/animations": "17.3.12",
"@angular/common": "17.3.12",
"@angular/compiler": "17.3.12",
"@angular/core": "17.3.12",
"@angular/forms": "17.3.12",
"@angular/localize": "17.3.12",
"@angular/platform-browser": "17.3.12",
"@angular/platform-browser-dynamic": "17.3.12",
"@angular/router": "17.3.12",
"@angular/animations": "18.2.11",
"@angular/common": "18.2.11",
"@angular/compiler": "18.2.11",
"@angular/core": "18.2.11",
"@angular/forms": "18.2.11",
"@angular/localize": "18.2.11",
"@angular/platform-browser": "18.2.11",
"@angular/platform-browser-dynamic": "18.2.11",
"@angular/router": "18.2.11",
"@carbon/icons": "11.41.0",
"@carbon/styles": "1.57.0",
"@ibm/plex": "6.4.0",
@ -85,15 +85,15 @@
"zone.js": "0.14.10"
},
"devDependencies": {
"@angular-devkit/build-angular": "17.3.11",
"@angular-devkit/build-angular": "18.2.11",
"@angular-eslint/builder": "13.5.0",
"@angular-eslint/eslint-plugin": "13.5.0",
"@angular-eslint/eslint-plugin-template": "13.5.0",
"@angular-eslint/schematics": "18.3.1",
"@angular-eslint/template-parser": "13.5.0",
"@angular/cli": "17.3.11",
"@angular/compiler-cli": "17.3.12",
"@angular/language-service": "17.3.12",
"@angular/cli": "18.2.11",
"@angular/compiler-cli": "18.2.11",
"@angular/language-service": "18.2.11",
"@applitools/eyes-cypress": "3.22.5",
"@compodoc/compodoc": "1.1.18",
"@cypress/browserify-preprocessor": "3.0.2",

View File

@ -1,5 +1,5 @@
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 { ErrorHandler, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@ -14,38 +14,32 @@ import { ApiInterceptorService } from './shared/services/api-interceptor.service
import { JsErrorHandler } from './shared/services/js-error-handler.service';
import { SharedModule } from './shared/shared.module';
@NgModule({
declarations: [AppComponent],
imports: [
HttpClientModule,
BrowserModule,
BrowserAnimationsModule,
ToastrModule.forRoot({
positionClass: 'toast-top-right',
preventDuplicates: true,
enableHtml: true
}),
AppRoutingModule,
CoreModule,
SharedModule,
CephModule
],
exports: [SharedModule],
providers: [
{
provide: ErrorHandler,
useClass: JsErrorHandler
},
{
provide: HTTP_INTERCEPTORS,
useClass: ApiInterceptorService,
multi: true
},
{
provide: APP_BASE_HREF,
useValue: '/' + (window.location.pathname.split('/', 1)[1] || '')
}
],
bootstrap: [AppComponent]
})
@NgModule({ declarations: [AppComponent],
exports: [SharedModule],
bootstrap: [AppComponent], imports: [BrowserModule,
BrowserAnimationsModule,
ToastrModule.forRoot({
positionClass: 'toast-top-right',
preventDuplicates: true,
enableHtml: true
}),
AppRoutingModule,
CoreModule,
SharedModule,
CephModule], providers: [
{
provide: ErrorHandler,
useClass: JsErrorHandler
},
{
provide: HTTP_INTERCEPTORS,
useClass: ApiInterceptorService,
multi: true
},
{
provide: APP_BASE_HREF,
useValue: '/' + (window.location.pathname.split('/', 1)[1] || '')
},
provideHttpClient(withInterceptorsFromDi())
] })
export class AppModule {}

View File

@ -1,10 +1,4 @@
import {
HttpErrorResponse,
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpRequest
} from '@angular/common/http';
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';