-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#114 replaced pages file with each page having it's own module so tha…
…t lazy loading can be used. Still need to convert to using smart and dumb components, currently all components are containers. Also moved guards, services, and some components to a /core file
- Loading branch information
Showing
73 changed files
with
356 additions
and
216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
// Containers | ||
import { AdminPageComponent } from './containers/admin-page/admin-page.component'; | ||
import { ViewTablePageComponent } from './containers/view-table-page/view-table-page.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: AdminPageComponent | ||
}, { | ||
path: 'viewTable/:uid', | ||
component: ViewTablePageComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class AdminRoutingModule { } |
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,20 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { MaterialModule } from 'src/app/material.module'; | ||
|
||
import { AdminRoutingModule } from './admin-routing.module'; | ||
|
||
// Containers | ||
import { AdminPageComponent } from './containers/admin-page/admin-page.component'; | ||
import { ViewTablePageComponent } from './containers/view-table-page/view-table-page.component'; | ||
|
||
@NgModule({ | ||
declarations: [AdminPageComponent, ViewTablePageComponent], | ||
imports: [ | ||
CommonModule, | ||
AdminRoutingModule, | ||
MaterialModule, | ||
] | ||
}) | ||
export class AdminModule { } |
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...c/app/pages/login/login.component.spec.ts → ...s/admin-page/admin-page.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
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.
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
frontend/src/app/admin/containers/view-table-page/view-table-page.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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ViewTablePageComponent } from './view-table-page.component'; | ||
|
||
describe('ViewTablePageComponent', () => { | ||
let component: ViewTablePageComponent; | ||
let fixture: ComponentFixture<ViewTablePageComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ ViewTablePageComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ViewTablePageComponent); | ||
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
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,18 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
// Containers | ||
import { BluraysPageComponent } from './containers/blurays-page/blurays-page.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: BluraysPageComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class BluraysRoutingModule { } |
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,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { MaterialModule } from 'src/app/material.module'; | ||
|
||
import { BluraysRoutingModule } from './blurays-routing.module'; | ||
|
||
// Containers | ||
import { BluraysPageComponent } from './containers/blurays-page/blurays-page.component'; | ||
|
||
@NgModule({ | ||
declarations: [BluraysPageComponent], | ||
imports: [ | ||
CommonModule, | ||
MaterialModule, | ||
BluraysRoutingModule, | ||
] | ||
}) | ||
export class BluraysModule { } |
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...pages/register/register.component.spec.ts → ...urays-page/blurays-page.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
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.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.