-
Notifications
You must be signed in to change notification settings - Fork 1
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 #17 from idaholab/UI-Start
Base UI
- Loading branch information
Showing
79 changed files
with
1,841 additions
and
29 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>about works!</p> |
Empty file.
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { AboutComponent } from './about.component'; | ||
|
||
describe('AboutComponent', () => { | ||
let component: AboutComponent; | ||
let fixture: ComponentFixture<AboutComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [AboutComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(AboutComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-about', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './about.component.html', | ||
styleUrl: './about.component.scss' | ||
}) | ||
export class AboutComponent { | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.main{ | ||
font-family: "Roboto", sans-serif; | ||
margin:0 | ||
} | ||
|
||
.content{ | ||
margin:0 | ||
} |
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,9 +1,38 @@ | ||
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; | ||
import { ApplicationConfig, provideZoneChangeDetection, PLATFORM_ID } from '@angular/core'; | ||
import { provideRouter } from '@angular/router'; | ||
|
||
import { isPlatformServer } from '@angular/common'; | ||
import { LOCAL_STORAGE } from './tokens'; | ||
import { routes } from './app.routes'; | ||
import { provideClientHydration } from '@angular/platform-browser'; | ||
import { provideAnimations } from '@angular/platform-browser/animations'; | ||
import { ConfigService } from './services/config-service'; | ||
import { DashService } from './services/dashboard-service'; | ||
import { AuthService } from './services/auth-service'; | ||
import { provideHttpClient, withFetch } from '@angular/common/http'; | ||
import {ReactiveFormsModule} from '@angular/forms'; | ||
import { LoginService } from './services/login.service'; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideClientHydration()] | ||
providers: [ | ||
provideZoneChangeDetection({ eventCoalescing: true }), | ||
provideRouter(routes), | ||
provideClientHydration(), | ||
provideAnimations(), | ||
ConfigService, | ||
AuthService, | ||
DashService, | ||
LoginService, | ||
provideHttpClient(withFetch()), | ||
ReactiveFormsModule, | ||
{ | ||
provide: LOCAL_STORAGE, | ||
useFactory: (platformId: object) => { | ||
if (isPlatformServer(platformId)) { | ||
return {}; // Return an empty object on the server | ||
} | ||
return localStorage; // Use the browser's localStorage | ||
}, | ||
deps: [PLATFORM_ID], | ||
}, | ||
] | ||
}; |
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,71 @@ | ||
import { Routes } from '@angular/router'; | ||
import { DiagramComponent } from './diagram/diagram.component'; | ||
import { LayoutComponent } from './layout/layout.component'; | ||
import { DashboardComponent } from './dashboard/dashboard.component'; | ||
import { LayoutLoginComponent } from './layout-login/layout-login.component'; | ||
import { AboutComponent } from './about/about.component'; | ||
import { NotFoundComponent } from './not-found/not-found.component'; | ||
import { UserManagementComponent } from './user-management/user-management.component'; | ||
import { LoginComponent } from './login/login.component'; | ||
import { RegisterComponent } from './register/register.component'; | ||
import { PasswordRestoreComponent } from './password-restore/password-restore.component'; | ||
import { AuthGuardGeneral } from './services/authGuards/auth-guard-general'; | ||
import { InvestigationMainComponent } from './investigation/investigation-main/investigation-main.component'; | ||
|
||
export const routes: Routes = [ | ||
{ path: "diagram", component: DiagramComponent }, | ||
|
||
|
||
{ path: '', redirectTo: 'login/signin', pathMatch: 'full' }, //default route | ||
{ | ||
path: 'login', | ||
component: LayoutLoginComponent, | ||
children: [ | ||
{ | ||
path: "signin", | ||
component: LoginComponent | ||
}, | ||
{ | ||
path: "register", | ||
component: RegisterComponent | ||
}, | ||
{ | ||
path: "passowrdReset", | ||
component: PasswordRestoreComponent, | ||
}, | ||
{ path: '**', component: NotFoundComponent } | ||
] | ||
}, | ||
|
||
{ | ||
path: 'main', | ||
component: LayoutComponent, | ||
children: [ | ||
{ | ||
path: "", | ||
redirectTo: 'dashboard' , | ||
pathMatch: 'full' | ||
}, | ||
{ | ||
path: "dashboard", | ||
component: DashboardComponent, | ||
canActivate: [AuthGuardGeneral] | ||
}, | ||
{ | ||
path: "investigation/:id", | ||
component: InvestigationMainComponent, | ||
canActivate: [AuthGuardGeneral] | ||
}, | ||
{ | ||
path: "about", | ||
component: AboutComponent, | ||
canActivate: [AuthGuardGeneral] | ||
}, | ||
{ | ||
path: "user", | ||
component: UserManagementComponent, | ||
canActivate: [AuthGuardGeneral], | ||
}, | ||
{ path: '**', component: NotFoundComponent } | ||
] | ||
}, | ||
|
||
]; |
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,59 @@ | ||
|
||
<div class="dash-container"> | ||
<!-- <div class="dash-header"> | ||
ResDeeds | ||
</div> --> | ||
<div class="card-row"> | ||
<div class="card"> | ||
<div class="card-header">Recent Items</div> | ||
<div class="card-body"> | ||
<app-recent-items style="display: flex; flex-grow:1"></app-recent-items> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header">Header Test</div> | ||
<div class="card-body"> | ||
<div class="card-item"> | ||
This is my body text | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-row"> | ||
<div class="card"> | ||
<div class="card-header">Header Test</div> | ||
<div class="card-body"> | ||
<div class="card-item"> | ||
This is my body text | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-row"> | ||
<div class="card"> | ||
<div class="card-header">Header Test</div> | ||
<div class="card-body"> | ||
<div class="card-item"> | ||
This is my body text | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header">Header Test</div> | ||
<div class="card-body"> | ||
<div class="card-item"> | ||
This is my body text | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header">Header Test</div> | ||
<div class="card-body"> | ||
<div class="card-item"> | ||
This is my body text | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> |
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,15 @@ | ||
.dash-container{ | ||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
padding: 1em; | ||
height: calc(100% - 1em); | ||
max-width: 1180px; | ||
margin: auto; | ||
} | ||
.dash-header{ | ||
display: flex; | ||
flex-direction: column; | ||
|
||
border-bottom: solid 1px var(--black); | ||
} |
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { DashboardComponent } from './dashboard.component'; | ||
|
||
describe('DashboardComponent', () => { | ||
let component: DashboardComponent; | ||
let fixture: ComponentFixture<DashboardComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [DashboardComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(DashboardComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.