From ed4b13dc55a8b43d4830eacb4cdf591efc7652c3 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Thu, 28 Nov 2024 18:11:24 +0100 Subject: [PATCH] remove unused component --- projects/dashboards/ecometrics/.eslintrc.json | 5 ++++- .../src/app/legend/legend.component.html | 17 ----------------- .../src/app/legend/legend.component.scss | 14 -------------- .../src/app/legend/legend.component.ts | 17 ----------------- 4 files changed, 4 insertions(+), 49 deletions(-) delete mode 100644 projects/dashboards/esg-indicator-service/src/app/legend/legend.component.html delete mode 100644 projects/dashboards/esg-indicator-service/src/app/legend/legend.component.scss delete mode 100644 projects/dashboards/esg-indicator-service/src/app/legend/legend.component.ts diff --git a/projects/dashboards/ecometrics/.eslintrc.json b/projects/dashboards/ecometrics/.eslintrc.json index 958dc20db..403ea42da 100644 --- a/projects/dashboards/ecometrics/.eslintrc.json +++ b/projects/dashboards/ecometrics/.eslintrc.json @@ -5,7 +5,10 @@ { "files": ["*.ts"], "parserOptions": { - "project": ["projects/dashboards/ecometrics/tsconfig.app.json", "projects/dashboards/ecometrics/tsconfig.spec.json"], + "project": [ + "projects/dashboards/ecometrics/tsconfig.app.json", + "projects/dashboards/ecometrics/tsconfig.spec.json" + ], "createDefaultProgram": true }, "rules": {} diff --git a/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.html b/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.html deleted file mode 100644 index 49eed4655..000000000 --- a/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.html +++ /dev/null @@ -1,17 +0,0 @@ -
- @if (visible()) { -
- -

Legend

-
- @if (layer(); as layer) { - - } - } @else { - - } -
diff --git a/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.scss b/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.scss deleted file mode 100644 index 586f8f091..000000000 --- a/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.scss +++ /dev/null @@ -1,14 +0,0 @@ -.legend-container { - padding: 0.5rem; - - h4 { - margin: 0; - font-weight: normal; - font-size: 1rem; - } -} - -.legend-header { - display: flex; - align-items: center; /* Align items vertically centered */ -} diff --git a/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.ts b/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.ts deleted file mode 100644 index 4b82b2e50..000000000 --- a/projects/dashboards/esg-indicator-service/src/app/legend/legend.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {Component, ChangeDetectionStrategy, input, signal} from '@angular/core'; -import {RasterLayer} from '@geoengine/common'; -import {CoreModule, RasterLegendComponent} from '@geoengine/core'; - -@Component({ - selector: 'geoengine-legend', // eslint-disable-line @angular-eslint/component-selector - templateUrl: './legend.component.html', - styleUrls: ['./legend.component.scss'], - standalone: true, - changeDetection: ChangeDetectionStrategy.OnPush, - imports: [CoreModule, RasterLegendComponent], -}) -export class LegendComponent { - layer = input(); - - visible = signal(true); -}