From 6de204359253c5a58d4e9f297b5d1a8667fde925 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Tue, 20 Aug 2024 10:13:15 -0600 Subject: [PATCH] rename to plot-settings-panel --- .../dev/hazard/dynamic-compare/app.component.html | 2 +- .../dev/hazard/dynamic-compare/app.component.spec.ts | 4 ++-- .../app/dev/hazard/dynamic-compare/app.component.ts | 4 ++-- .../plot-settings-panel.component.html} | 0 .../plot-settings-panel.component.scss} | 0 .../plot-settings-panel.component.spec.ts} | 12 ++++++------ .../plot-settings-panel.component.ts} | 8 ++++---- 7 files changed, 15 insertions(+), 15 deletions(-) rename projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/{plot-settings/plot-settings.component.html => plot-settings-panel/plot-settings-panel.component.html} (100%) rename projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/{plot-settings/plot-settings.component.scss => plot-settings-panel/plot-settings-panel.component.scss} (100%) rename projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/{plot-settings/plot-settings.component.spec.ts => plot-settings-panel/plot-settings-panel.component.spec.ts} (64%) rename projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/{plot-settings/plot-settings.component.ts => plot-settings-panel/plot-settings-panel.component.ts} (93%) diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.html b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.html index 104704efb..375b90fa6 100644 --- a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.html +++ b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.html @@ -12,7 +12,7 @@ <!-- Settings --> <nshmp-template-settings> - <app-plot-settings /> + <app-plot-settings-panel /> </nshmp-template-settings> </nshmp-template-content-container> diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.spec.ts b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.spec.ts index 9809620ec..b0069e6b5 100644 --- a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.spec.ts +++ b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.spec.ts @@ -9,7 +9,7 @@ import {ContentComponent} from './components/content/content.component'; import {ControlPanelComponent} from './components/control-panel/control-panel.component'; import {HazardDataComponent} from './components/hazard-data/hazard-data.component'; import {ParameterSummaryComponent} from './components/parameter-summary/parameter-summary.component'; -import {PlotSettingsComponent} from './components/plot-settings/plot-settings.component'; +import {PlotSettingsPanelComponent} from './components/plot-settings-panel/plot-settings-panel.component'; import {PlotsComponent} from './components/plots/plots.component'; import {SpectraDataComponent} from './components/spectra-data/spectra-data.component'; import {TableDataPanelComponent} from './components/table-data-panel/table-data-panel.component'; @@ -28,7 +28,7 @@ describe('AppComponent', () => { HazardDataComponent, SpectraDataComponent, TableDataPanelComponent, - PlotSettingsComponent, + PlotSettingsPanelComponent, AboutComponent, ParameterSummaryComponent, ], diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.ts b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.ts index 254075bee..48e7c37bb 100644 --- a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.ts +++ b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/app.component.ts @@ -15,7 +15,7 @@ import {devNavigation} from 'projects/nshmp-apps/src/shared/utils/navigation.uti import {AboutComponent} from './components/about/about.component'; import {ContentComponent} from './components/content/content.component'; import {ControlPanelComponent} from './components/control-panel/control-panel.component'; -import {PlotSettingsComponent} from './components/plot-settings/plot-settings.component'; +import {PlotSettingsPanelComponent} from './components/plot-settings-panel/plot-settings-panel.component'; import {AppService} from './services/app.service'; @Component({ @@ -29,7 +29,7 @@ import {AppService} from './services/app.service'; NshmpLibNgAboutPageComponent, ControlPanelComponent, ContentComponent, - PlotSettingsComponent, + PlotSettingsPanelComponent, AboutComponent, AsyncPipe, ], diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.html b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.html similarity index 100% rename from projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.html rename to projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.html diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.scss b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.scss similarity index 100% rename from projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.scss rename to projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.scss diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.spec.ts b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.spec.ts similarity index 64% rename from projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.spec.ts rename to projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.spec.ts index 294462436..ac3c9e960 100644 --- a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.spec.ts +++ b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.spec.ts @@ -3,15 +3,15 @@ import {ComponentFixture, TestBed} from '@angular/core/testing'; import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {provideRouter} from '@angular/router'; -import {PlotSettingsComponent} from './plot-settings.component'; +import {PlotSettingsPanelComponent} from './plot-settings-panel.component'; -describe('PlotSettingsComponent', () => { - let component: PlotSettingsComponent; - let fixture: ComponentFixture<PlotSettingsComponent>; +describe('PlotSettingsPanelComponent', () => { + let component: PlotSettingsPanelComponent; + let fixture: ComponentFixture<PlotSettingsPanelComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [PlotSettingsComponent], + imports: [PlotSettingsPanelComponent], providers: [ provideHttpClient(), provideNoopAnimations(), @@ -19,7 +19,7 @@ describe('PlotSettingsComponent', () => { ], }).compileComponents(); - fixture = TestBed.createComponent(PlotSettingsComponent); + fixture = TestBed.createComponent(PlotSettingsPanelComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.ts b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.ts similarity index 93% rename from projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.ts rename to projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.ts index 078f1479f..d2c363f74 100644 --- a/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings/plot-settings.component.ts +++ b/projects/nshmp-apps/src/app/dev/hazard/dynamic-compare/components/plot-settings-panel/plot-settings-panel.component.ts @@ -27,12 +27,12 @@ import {AppService} from '../../services/app.service'; MatExpansionPanelTitle, AsyncPipe, ], - selector: 'app-plot-settings', + selector: 'app-plot-settings-panel', standalone: true, - styleUrl: './plot-settings.component.scss', - templateUrl: './plot-settings.component.html', + styleUrl: './plot-settings-panel.component.scss', + templateUrl: './plot-settings-panel.component.html', }) -export class PlotSettingsComponent { +export class PlotSettingsPanelComponent { /** Hazard plot data */ private hazardPlot = computed(() => this.service.plots().get(Plots.HAZARD)); -- GitLab