From: Tiago Melo Date: Tue, 30 Jun 2020 16:34:07 +0000 (+0000) Subject: mgr/dashboard: Remove ngx-bootstrap X-Git-Tag: v16.1.0~1846^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cbeb6597d9c1b50997f98ba4c99e5b292791cf1e;p=ceph.git mgr/dashboard: Remove ngx-bootstrap Fixes: https://tracker.ceph.com/issues/46281 Signed-off-by: Tiago Melo --- diff --git a/src/pybind/mgr/dashboard/frontend/package-lock.json b/src/pybind/mgr/dashboard/frontend/package-lock.json index 89e6dd5baa09..3624d677944d 100644 --- a/src/pybind/mgr/dashboard/frontend/package-lock.json +++ b/src/pybind/mgr/dashboard/frontend/package-lock.json @@ -13708,12 +13708,6 @@ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, - "mem": { - "requires": { - "mimic-fn": "^1.0.0" - }, - "version": "4.3.0" - }, "memory-fs": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", @@ -13959,7 +13953,8 @@ "mimic-fn": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true }, "min-indent": { "version": "1.0.1", @@ -14389,11 +14384,6 @@ "tslib": "^1.9.0" } }, - "ngx-bootstrap": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/ngx-bootstrap/-/ngx-bootstrap-5.6.1.tgz", - "integrity": "sha512-8fDs3VaaWgKpupakPKS0QaUc+1E/JMBGJDxUUODjyIkLtFr1A8vH4cjXiV3AfrPvhK27GH0oyTPyKWKcCjEtVg==" - }, "ngx-toastr": { "version": "12.1.0", "resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-12.1.0.tgz", @@ -15116,6 +15106,11 @@ "dependencies": { "mem": { "version": "4.3.0" + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" } } }, diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index afc2eef05f77..ae40091954e5 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -45,7 +45,7 @@ "/src/setupJest.ts" ], "transformIgnorePatterns": [ - "node_modules/(?!@ngrx|ngx-bootstrap|@progress|simplebar)" + "node_modules/(?!@ngrx|@progress|simplebar)" ], "transform": { "^.+\\.(ts|html)$": "ts-jest", @@ -94,7 +94,6 @@ "ng-bootstrap-form-validation": "5.0.0", "ng-click-outside": "6.0.0", "ng2-charts": "2.3.0", - "ngx-bootstrap": "5.6.1", "ngx-toastr": "12.1.0", "rxjs": "6.5.5", "simplebar-angular": "2.2.0", diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.spec.ts index e334098a9015..8288e9403a9a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.spec.ts @@ -3,9 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; -import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader'; -import { PositioningService } from 'ngx-bootstrap/positioning'; - import { configureTestBed, FormHelper, i18nProviders } from '../../../../testing/unit-test-helper'; import { DirectivesModule } from '../../../shared/directives/directives.module'; import { CdFormGroup } from '../../../shared/forms/cd-form-group'; @@ -26,8 +23,6 @@ describe('RbdConfigurationFormComponent', () => { imports: [ReactiveFormsModule, DirectivesModule, SharedModule], declarations: [RbdConfigurationFormComponent], providers: [ - ComponentLoaderFactory, - PositioningService, RbdConfigurationService, FormatterService, DimlessBinaryPerSecondPipe, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/auth.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/auth.module.ts index 4dab79faa7cf..d9e42bf6398c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/auth.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/auth.module.ts @@ -5,7 +5,6 @@ import { RouterModule, Routes } from '@angular/router'; import { NgbNavModule, NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap'; import { NgBootstrapFormValidationModule } from 'ng-bootstrap-form-validation'; -import { ButtonsModule } from 'ngx-bootstrap/buttons'; import { ActionLabels, URLVerbs } from '../../shared/constants/app.constants'; import { SharedModule } from '../../shared/shared.module'; @@ -22,7 +21,6 @@ import { UserTabsComponent } from './user-tabs/user-tabs.component'; @NgModule({ imports: [ - ButtonsModule.forRoot(), CommonModule, FormsModule, ReactiveFormsModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.spec.ts index ef9490fc58cb..9eb6bde2aec6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.spec.ts @@ -6,7 +6,6 @@ import { Router, Routes } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap'; -import { ButtonsModule } from 'ngx-bootstrap/buttons'; import { ToastrModule } from 'ngx-toastr'; import { of } from 'rxjs'; @@ -54,7 +53,6 @@ describe('UserFormComponent', () => { ComponentsModule, ToastrModule.forRoot(), SharedModule, - ButtonsModule.forRoot(), NgbPopoverModule ], declarations: [UserFormComponent, FakeComponent], diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts index 64e4bdacf043..b820f16a4552 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts @@ -2,8 +2,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; -import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; -import { CollapseModule } from 'ngx-bootstrap/collapse'; +import { NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; import { SimplebarAngularModule } from 'simplebar-angular'; import { AppRoutingModule } from '../../app-routing.module'; @@ -21,7 +20,7 @@ import { NotificationsComponent } from './notifications/notifications.component' imports: [ CommonModule, AuthModule, - CollapseModule.forRoot(), + NgbCollapseModule, NgbDropdownModule, AppRoutingModule, SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html index 2a42f711fb55..a4cb3081aaec 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html @@ -26,8 +26,7 @@ -