From 9fc4f8975515c11a16b254e96615d60443d1f734 Mon Sep 17 00:00:00 2001 From: AllForNothing Date: Fri, 13 Jan 2023 12:31:22 +0800 Subject: [PATCH] Remove helm chart UI 1.Remove all helm chart v2 related code Signed-off-by: AllForNothing --- .../app/account/sign-in/sign-in.component.ts | 7 - src/portal/src/app/app.component.ts | 4 - src/portal/src/app/base/base.module.ts | 11 - .../harbor-shell/harbor-shell.component.html | 1 - .../harbor-shell/harbor-shell.component.ts | 3 - .../config/config.component.html | 2 +- .../list-project/list-project.component.html | 4 - .../list-project/list-project.component.ts | 5 - .../create-edit-endpoint.component.ts | 10 +- .../create-edit-rule.component.html | 8 +- .../replication/replication.component.ts | 1 - .../total-replication-page.component.html | 1 - .../total-replication-page.component.ts | 4 - .../system-robot-util.ts | 30 -- .../chart-detail.component.html | 18 - .../chart-detail.component.scss | 16 - .../chart-detail.component.spec.ts | 60 --- .../chart-detail.component.ts | 59 -- .../chart-detail-dependency.component.html | 22 - .../chart-detail-dependency.component.scss | 3 - .../chart-detail-dependency.component.spec.ts | 25 - .../chart-detail-dependency.component.ts | 15 - .../chart-detail-summary.component.html | 224 -------- .../chart-detail-summary.component.scss | 45 -- .../chart-detail-summary.component.spec.ts | 59 -- .../chart-detail-summary.component.ts | 87 --- .../chart-detail-value.component.html | 54 -- .../chart-detail-value.component.scss | 24 - .../chart-detail-value.component.spec.ts | 42 -- .../chart-detail-value.component.ts | 53 -- .../chart-detail/chart-detail.component.html | 68 --- .../chart-detail/chart-detail.component.scss | 28 - .../chart-detail.component.spec.ts | 143 ----- .../chart-detail/chart-detail.component.ts | 109 ---- .../helm-chart-detail.module.ts | 51 -- .../helm-chart.interface.service.ts | 89 ---- .../helm-chart.service.spec.ts | 18 - .../helm-chart-detail/helm-chart.service.ts | 266 --------- .../label-filter/label-filter.component.html | 32 -- .../label-filter/label-filter.component.scss | 37 -- .../label-filter.component.spec.ts | 27 - .../label-filter/label-filter.component.ts | 84 --- .../label-marker/label-marker.component.html | 33 -- .../label-marker/label-marker.component.scss | 53 -- .../label-marker.component.spec.ts | 52 -- .../label-marker/label-marker.component.ts | 171 ------ .../helm-chart-version.component.html | 276 ---------- .../helm-chart-version.component.scss | 131 ----- .../helm-chart-version.component.spec.ts | 110 ---- .../helm-chart-version.component.ts | 504 ------------------ .../list-chart-versions.component.html | 21 - .../list-chart-versions.component.scss | 16 - .../list-chart-versions.component.spec.ts | 56 -- .../list-chart-versions.component.ts | 57 -- .../helm-chart-list/helm-chart-list.module.ts | 30 -- .../helm-chart.component.html | 290 ---------- .../helm-chart.component.scss | 148 ----- .../helm-chart.component.spec.ts | 104 ---- .../helm-chart.component.ts | 392 -------------- .../list-charts.component.html | 8 - .../list-charts.component.scss | 0 .../list-charts.component.spec.ts | 53 -- .../helm-chart-list/list-charts.component.ts | 44 -- .../project-detail.component.ts | 28 +- .../src/app/base/project/project.module.ts | 14 - src/portal/src/app/base/project/project.ts | 1 - .../artifact/artifact-additions/models.ts | 18 - .../project/summary/summary.component.html | 55 -- .../project/summary/summary.component.spec.ts | 1 - .../base/project/summary/summary.component.ts | 55 +- .../harbor-route-reuse-strategy.ts | 1 - .../app/services/app-config.service.spec.ts | 1 - .../src/app/services/app-config.service.ts | 8 - src/portal/src/app/services/app-config.ts | 4 - .../global-search/global-search.component.ts | 4 - .../search-result.component.html | 5 - .../global-search/search-result.component.ts | 17 +- .../global-search/search-results.ts | 3 - .../list-chart-version-ro.component.html | 40 -- .../list-chart-version-ro.component.spec.ts | 46 -- .../list-chart-version-ro.component.ts | 75 --- .../navigator/navigator.component.html | 22 +- .../navigator/navigator.component.spec.ts | 3 - .../navigator/navigator.component.ts | 14 +- .../src/app/shared/entities/shared.const.ts | 2 - .../mode-guard-activate.service.ts | 23 +- .../app/shared/services/permission-static.ts | 25 - src/portal/src/app/shared/shared.module.ts | 8 - src/portal/src/app/shared/units/utils.ts | 2 - src/portal/src/i18n/lang/de-de-lang.json | 64 +-- src/portal/src/i18n/lang/en-us-lang.json | 64 +-- src/portal/src/i18n/lang/es-es-lang.json | 64 +-- src/portal/src/i18n/lang/fr-fr-lang.json | 63 +-- src/portal/src/i18n/lang/pt-br-lang.json | 62 +-- src/portal/src/i18n/lang/tr-tr-lang.json | 64 +-- src/portal/src/i18n/lang/zh-cn-lang.json | 64 +-- src/portal/src/i18n/lang/zh-tw-lang.json | 64 +-- 97 files changed, 28 insertions(+), 5354 deletions(-) delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-dependency.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-dependency.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-dependency.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-dependency.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-summary.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-summary.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-summary.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-summary.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-value.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-value.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-value.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail-value.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/chart-detail/chart-detail.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart-detail.module.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.interface.service.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.service.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.service.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-marker/label-marker.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-marker/label-marker.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-marker/label-marker.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-marker/label-marker.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/helm-chart-versions-detail/helm-chart-version.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/helm-chart-versions-detail/helm-chart-version.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/helm-chart-versions-detail/helm-chart-version.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/helm-chart-versions-detail/helm-chart-version.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/list-chart-versions.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/list-chart-versions.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/list-chart-versions.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-detail/list-chart-versions/list-chart-versions.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/helm-chart-list.module.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts-detail/helm-chart.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts-detail/helm-chart.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts-detail/helm-chart.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts-detail/helm-chart.component.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts.component.html delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts.component.scss delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts.component.spec.ts delete mode 100644 src/portal/src/app/base/project/helm-chart/helm-chart-list/list-charts.component.ts delete mode 100644 src/portal/src/app/shared/components/list-chart-version-ro/list-chart-version-ro.component.html delete mode 100644 src/portal/src/app/shared/components/list-chart-version-ro/list-chart-version-ro.component.spec.ts delete mode 100644 src/portal/src/app/shared/components/list-chart-version-ro/list-chart-version-ro.component.ts diff --git a/src/portal/src/app/account/sign-in/sign-in.component.ts b/src/portal/src/app/account/sign-in/sign-in.component.ts index f82f04b69fd..12b6535a6b3 100644 --- a/src/portal/src/app/account/sign-in/sign-in.component.ts +++ b/src/portal/src/app/account/sign-in/sign-in.component.ts @@ -118,13 +118,6 @@ export class SignInComponent implements AfterViewChecked, OnInit { // App title public get appTitle(): string { - if ( - this.appConfigService.getConfig() && - this.appConfigService.getConfig().with_admiral - ) { - return 'APP_TITLE.VIC'; - } - return 'APP_TITLE.VMW_HARBOR'; } diff --git a/src/portal/src/app/app.component.ts b/src/portal/src/app/app.component.ts index 7a0786e6f67..309f9e7e55f 100644 --- a/src/portal/src/app/app.component.ts +++ b/src/portal/src/app/app.component.ts @@ -50,10 +50,6 @@ export class AppComponent { this.initLanguage(); // Override page title let key: string = 'APP_TITLE.HARBOR'; - if (this.appConfigService.isIntegrationMode()) { - key = 'APP_TITLE.REG'; - } - translate.get(key).subscribe((res: string) => { const customSkinData: CustomStyle = this.skinableConfig.getSkinConfig(); diff --git a/src/portal/src/app/base/base.module.ts b/src/portal/src/app/base/base.module.ts index e4a68b8665d..6beb77fe643 100644 --- a/src/portal/src/app/base/base.module.ts +++ b/src/portal/src/app/base/base.module.ts @@ -161,17 +161,6 @@ const routes: Routes = [ projectResolver: ProjectRoutingResolver, }, }, - { - path: 'projects/:id/helm-charts', - canActivate: [MemberGuard], - resolve: { - projectResolver: ProjectRoutingResolver, - }, - loadChildren: () => - import( - './project/helm-chart/helm-chart-detail/helm-chart-detail.module' - ).then(m => m.HelmChartListModule), - }, ], }, ]; diff --git a/src/portal/src/app/base/harbor-shell/harbor-shell.component.html b/src/portal/src/app/base/harbor-shell/harbor-shell.component.html index 0d0b529f72a..af6d8f0bbab 100644 --- a/src/portal/src/app/base/harbor-shell/harbor-shell.component.html +++ b/src/portal/src/app/base/harbor-shell/harbor-shell.component.html @@ -129,7 +129,6 @@ {{ 'SIDE_NAV.DISTRIBUTIONS.NAME' | translate }} diff --git a/src/portal/src/app/base/harbor-shell/harbor-shell.component.ts b/src/portal/src/app/base/harbor-shell/harbor-shell.component.ts index 81b82d34752..8fedc8312c9 100644 --- a/src/portal/src/app/base/harbor-shell/harbor-shell.component.ts +++ b/src/portal/src/app/base/harbor-shell/harbor-shell.component.ts @@ -242,9 +242,6 @@ export class HarborShellComponent implements OnInit, OnDestroy { this.session.getCurrentUser().has_admin_role ); } - public get withAdmiral(): boolean { - return this.appConfigService.getConfig().with_admiral; - } // Open modal dialog openModal(event: ModalEvent): void { switch (event.modalName) { diff --git a/src/portal/src/app/base/left-side-nav/config/config.component.html b/src/portal/src/app/base/left-side-nav/config/config.component.html index dfef42c9e7a..b25eb825b19 100644 --- a/src/portal/src/app/base/left-side-nav/config/config.component.html +++ b/src/portal/src/app/base/left-side-nav/config/config.component.html @@ -24,7 +24,7 @@

type="button" routerLink="security" routerLinkActive="active"> - {{ 'HELM_CHART.SECURITY' | translate }} + {{ 'CONFIG.SECURITY' | translate }}