From dd6b3a130dd9c9d8e52b9697da338c540bb549f2 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Tue, 12 Nov 2024 12:30:09 -0700 Subject: [PATCH] add initial application --- .../geophysical-profiles/app.component.html | 19 +++++++++ .../geophysical-profiles/app.component.scss | 0 .../app.component.spec.ts | 22 ++++++++++ .../ncm/geophysical-profiles/app.component.ts | 42 +++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.html create mode 100644 projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.scss create mode 100644 projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.spec.ts create mode 100644 projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.ts diff --git a/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.html b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.html new file mode 100644 index 000000000..7b42a2066 --- /dev/null +++ b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.html @@ -0,0 +1,19 @@ +<nshmp-lib-ng-template [navigationList]="navigationList" [title]="title"> + <nshmp-template-content-container> + <nshmp-template-control-panel> + <app-control-panel /> + </nshmp-template-control-panel> + + <nshmp-template-plot-content> + <app-content /> + </nshmp-template-plot-content> + + <nshmp-template-settings> + <app-plot-settings-panel /> + </nshmp-template-settings> + </nshmp-template-content-container> + + <nshmp-lib-ng-about-page> + <app-about /> + </nshmp-lib-ng-about-page> +</nshmp-lib-ng-template> diff --git a/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.scss b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.spec.ts b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.spec.ts new file mode 100644 index 000000000..39ededed7 --- /dev/null +++ b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.spec.ts @@ -0,0 +1,22 @@ +import {ComponentFixture, TestBed} from '@angular/core/testing'; + +import {AppComponent} from './app.component'; + +describe('AppComponent', () => { + let component: AppComponent; + let fixture: ComponentFixture<AppComponent>; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [AppComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(AppComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.ts b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.ts new file mode 100644 index 000000000..c84f4c286 --- /dev/null +++ b/projects/nshmp-apps/src/app/ncm/geophysical-profiles/app.component.ts @@ -0,0 +1,42 @@ +import {Component} from '@angular/core'; +import {NshmpLibNgAboutPageComponent} from '@ghsc/nshmp-lib-ng/about'; +import {NshmpLibNgTemplateComponent} from '@ghsc/nshmp-lib-ng/nshmp'; +import { + NshmpTemplateContentContainerComponent, + NshmpTemplateControlPanelComponent, + NshmpTemplatePlotContentComponent, + NshmpTemplateSettingsComponent, +} from '@ghsc/nshmp-template'; +import {apps} from 'projects/nshmp-apps/src/shared/utils/applications.utils'; +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 {PlotSettingsPanelComponent} from './components/plot-settings-panel/plot-settings-panel.component'; + +@Component({ + imports: [ + NshmpLibNgTemplateComponent, + NshmpTemplateControlPanelComponent, + NshmpTemplateContentContainerComponent, + NshmpTemplatePlotContentComponent, + NshmpLibNgAboutPageComponent, + NshmpTemplateSettingsComponent, + ControlPanelComponent, + ContentComponent, + PlotSettingsPanelComponent, + AboutComponent, + ], + selector: 'app-app', + standalone: true, + styleUrl: './app.component.scss', + templateUrl: './app.component.html', +}) +export class AppComponent { + /** Navigation list for menu */ + navigationList = navigation(); + + /** Application title */ + title = apps().ncm.geophysicalProfiles.display; +} -- GitLab