From 7afadca31c212fcb6ac4b4328dddec3a6131495b Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Tue, 20 Aug 2024 10:16:54 -0600 Subject: [PATCH] rename --- .../src/app/gmm/magnitude/app.component.html | 2 +- .../src/app/gmm/magnitude/app.component.spec.ts | 4 ++-- .../src/app/gmm/magnitude/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/gmm/magnitude/components/{plots-settings/plots-settings.component.html => plot-settings-panel/plot-settings-panel.component.html} (100%) rename projects/nshmp-apps/src/app/gmm/magnitude/components/{plots-settings/plots-settings.component.scss => plot-settings-panel/plot-settings-panel.component.scss} (100%) rename projects/nshmp-apps/src/app/gmm/magnitude/components/{plots-settings/plots-settings.component.spec.ts => plot-settings-panel/plot-settings-panel.component.spec.ts} (63%) rename projects/nshmp-apps/src/app/gmm/magnitude/components/{plots-settings/plots-settings.component.ts => plot-settings-panel/plot-settings-panel.component.ts} (86%) diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/app.component.html b/projects/nshmp-apps/src/app/gmm/magnitude/app.component.html index 109357b1a..cdf8fb7e3 100644 --- a/projects/nshmp-apps/src/app/gmm/magnitude/app.component.html +++ b/projects/nshmp-apps/src/app/gmm/magnitude/app.component.html @@ -9,7 +9,7 @@ </nshmp-template-plot-content> <nshmp-template-settings> - <app-plots-settings /> + <app-plot-settings-panel /> </nshmp-template-settings> </nshmp-template-content-container> diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/app.component.spec.ts b/projects/nshmp-apps/src/app/gmm/magnitude/app.component.spec.ts index 62d2c415b..77dfe350a 100644 --- a/projects/nshmp-apps/src/app/gmm/magnitude/app.component.spec.ts +++ b/projects/nshmp-apps/src/app/gmm/magnitude/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 {ParameterSummaryComponent} from './components/parameter-summary/parameter-summary.component'; import {PlotsComponent} from './components/plots/plots.component'; -import {PlotsSettingsComponent} from './components/plots-settings/plots-settings.component'; +import {PlotSettingsPanelComponent} from './components/plot-settings-panel/plot-settings-panel.component'; describe('MainComponent', () => { let component: AppComponent; @@ -22,7 +22,7 @@ describe('MainComponent', () => { ControlPanelComponent, ContentComponent, PlotsComponent, - PlotsSettingsComponent, + PlotSettingsPanelComponent, AboutComponent, ParameterSummaryComponent, ], diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/app.component.ts b/projects/nshmp-apps/src/app/gmm/magnitude/app.component.ts index b661b5dc1..2e1e32de8 100644 --- a/projects/nshmp-apps/src/app/gmm/magnitude/app.component.ts +++ b/projects/nshmp-apps/src/app/gmm/magnitude/app.component.ts @@ -13,7 +13,7 @@ import {navigation} from 'projects/nshmp-apps/src/shared/utils/navigation.utils' import {AboutComponent} from './components/about/about.component'; import {ContentComponent} from './components/content/content.component'; import {ControlPanelComponent} from './components/control-panel/control-panel.component'; -import {PlotsSettingsComponent} from './components/plots-settings/plots-settings.component'; +import {PlotSettingsPanelComponent} from './components/plot-settings-panel/plot-settings-panel.component'; import {AppService} from './services/app.service'; /** @@ -33,7 +33,7 @@ import {AppService} from './services/app.service'; NshmpLibNgAboutPageComponent, ControlPanelComponent, ContentComponent, - PlotsSettingsComponent, + PlotSettingsPanelComponent, AboutComponent, ], selector: 'app-app', diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.html b/projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.html similarity index 100% rename from projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.html rename to projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.html diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.scss b/projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.scss similarity index 100% rename from projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.scss rename to projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.scss diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.spec.ts b/projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.spec.ts similarity index 63% rename from projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.spec.ts rename to projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.spec.ts index f32cb4991..fe3897a2e 100644 --- a/projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.spec.ts +++ b/projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.spec.ts @@ -2,22 +2,22 @@ import {provideHttpClient} from '@angular/common/http'; import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; import {provideNoopAnimations} from '@angular/platform-browser/animations'; -import {PlotsSettingsComponent} from './plots-settings.component'; +import {PlotSettingsPanelComponent} from './plot-settings-panel.component'; -describe('PlotsSettingsComponent', () => { - let component: PlotsSettingsComponent; - let fixture: ComponentFixture<PlotsSettingsComponent>; +describe('PlotSettingsPanelComponent', () => { + let component: PlotSettingsPanelComponent; + let fixture: ComponentFixture<PlotSettingsPanelComponent>; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [PlotsSettingsComponent], + imports: [PlotSettingsPanelComponent], providers: [provideHttpClient(), provideNoopAnimations()], teardown: {destroyAfterEach: false}, }).compileComponents(); })); beforeEach(() => { - fixture = TestBed.createComponent(PlotsSettingsComponent); + fixture = TestBed.createComponent(PlotSettingsPanelComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.ts b/projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.ts similarity index 86% rename from projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.ts rename to projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.ts index ac6f4a09d..7e809c808 100644 --- a/projects/nshmp-apps/src/app/gmm/magnitude/components/plots-settings/plots-settings.component.ts +++ b/projects/nshmp-apps/src/app/gmm/magnitude/components/plot-settings-panel/plot-settings-panel.component.ts @@ -18,12 +18,12 @@ import {AppService} from '../../services/app.service'; NshmpLibNgPlotSettingsComponent, AsyncPipe, ], - selector: 'app-plots-settings', + selector: 'app-plot-settings-panel', standalone: true, - styleUrl: './plots-settings.component.scss', - templateUrl: './plots-settings.component.html', + styleUrl: './plot-settings-panel.component.scss', + templateUrl: './plot-settings-panel.component.html', }) -export class PlotsSettingsComponent { +export class PlotSettingsPanelComponent { PlotIds = gmmUtils.PlotType; /** Mean plot state */ -- GitLab