-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from oss-slu/Issue#33
fixes issue #33 Webpage for Gaussian Data
- Loading branch information
Showing
11 changed files
with
918 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
<div class="filter-wrapper row" *ngIf="dashboard == '/' "> | ||
<div class="col-md-3 offset-md-3"> | ||
<app-dashboard appendTo="body" [options]="options" (onPanelHide)="onPanelHide($event)"></app-dashboard> | ||
</div> | ||
</div> | ||
<router-outlet></router-outlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 0 additions & 83 deletions
83
frontend/orca_data_converter/src/app/views/dashboard/dashboard.component.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
52 changes: 52 additions & 0 deletions
52
frontend/orca_data_converter/src/app/views/dashboardView/dashboardView.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<div id="whole"> | ||
<h2>Convert {{ fileType }} files to Word documents</h2> | ||
<h3>Upload your {{ fileType }} data file</h3> | ||
<div class="background-image"></div> | ||
<div> | ||
<input type="file" (change)="onFileSelected($event)" [accept]="fileExtension"> | ||
<button class="Submit" (click)="onUpload()">Submit</button> | ||
</div> | ||
<div> | ||
<h3>Enter the terms you wish to search for (txt only):</h3> | ||
<div class="keyterms-search"> | ||
<form action="localhost:4200/" method="POST"> | ||
<input type="text" placeholder="E.g., CARTESIAN COORDINATES" id="keyTerms-toSearch" /> | ||
</form> | ||
</div> | ||
</div> | ||
<div> | ||
<h3>Enter how you want the lines specified:</h3> | ||
<div class="linesSpecified_search"> | ||
<form action="localhost:4200/" method="POST"> | ||
<input type="text" placeholder="E.g., WHOLE, FIRST X, LAST X" id="linesSpecified-toSearch" /> | ||
</form> | ||
</div> | ||
</div> | ||
<div> | ||
<h3>Number of sections?</h3> | ||
<div class="sections_search"> | ||
<form action="localhost:4200/" method="POST"> | ||
<input type="text" placeholder="Input as number..." id="sections-toSearch" /> | ||
</form> | ||
</div> | ||
</div> | ||
<div> | ||
<h3>Use total lines?</h3> | ||
<div class="useTotalLines_search"> | ||
<form action="localhost:4200/" method="POST"> | ||
<input type="text" placeholder="TRUE/FALSE" id="useTotalLines-toSearch" /> | ||
</form> | ||
</div> | ||
</div> | ||
<div> | ||
<h3>Total number of lines for output doc?</h3> | ||
<div class="totalLines_search"> | ||
<form action="localhost:4200/" method="POST"> | ||
<input type="text" placeholder="Input as number..." id="totalLines-toSearch" /> | ||
</form> | ||
</div> | ||
</div> | ||
<div> | ||
<button id="downloadButton" value="Download" type="button" (click)="runBackend()">Convert</button> | ||
</div> | ||
</div> |
35 changes: 35 additions & 0 deletions
35
...d/orca_data_converter/src/app/views/gaussianDashboard/gaussianDashboard.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { AppComponent } from '../../app.component'; | ||
|
||
describe('AppComponent', () => { | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ | ||
RouterTestingModule | ||
], | ||
declarations: [ | ||
AppComponent | ||
], | ||
}).compileComponents(); | ||
}); | ||
|
||
it('should create the app', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
|
||
it(`should have as title 'example'`, () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app.title).toEqual('example'); | ||
}); | ||
|
||
it('should render title', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
fixture.detectChanges(); | ||
const compiled = fixture.nativeElement as HTMLElement; | ||
expect(compiled.querySelector('.content span')?.textContent).toContain('example app is running!'); | ||
}); | ||
}); |
Oops, something went wrong.