diff --git a/src/app/commons/component/sidebar/menu-element.ts b/src/app/commons/component/sidebar/menu-element.ts index 45f4237..07fdc7e 100644 --- a/src/app/commons/component/sidebar/menu-element.ts +++ b/src/app/commons/component/sidebar/menu-element.ts @@ -49,7 +49,7 @@ export const menus = [ 'sub': [ { 'name': 'Overview', - 'link': '', + 'link': '/overview', 'icon': 'indeterminate_check_box', 'chip': false, 'open': false, diff --git a/src/app/pages/overview/overview-page-routing.module.ts b/src/app/pages/overview/overview-page-routing.module.ts new file mode 100644 index 0000000..7fb3ddc --- /dev/null +++ b/src/app/pages/overview/overview-page-routing.module.ts @@ -0,0 +1,16 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { OverviewPageComponent } from 'app/pages/overview/overview-page.component'; + +const routes: Routes = [ + { + path: '', + component: OverviewPageComponent, + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class OverviewPageRoutingModule { } diff --git a/src/app/pages/overview/overview-page.component.html b/src/app/pages/overview/overview-page.component.html new file mode 100644 index 0000000..9e1daf9 --- /dev/null +++ b/src/app/pages/overview/overview-page.component.html @@ -0,0 +1,3 @@ +

+ overview works! +

diff --git a/src/app/pages/overview/overview-page.component.scss b/src/app/pages/overview/overview-page.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/overview/overview-page.component.spec.ts b/src/app/pages/overview/overview-page.component.spec.ts new file mode 100644 index 0000000..c0c5051 --- /dev/null +++ b/src/app/pages/overview/overview-page.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { OverviewPageComponent } from './overview-page.component'; + +describe('OverviewComponent', () => { + let component: OverviewPageComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ OverviewPageComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(OverviewPageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/overview/overview-page.component.ts b/src/app/pages/overview/overview-page.component.ts new file mode 100644 index 0000000..9140bea --- /dev/null +++ b/src/app/pages/overview/overview-page.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'of-page-overview', + templateUrl: './overview-page.component.html', + styleUrls: ['./overview-page.component.scss'] +}) +export class OverviewPageComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/overview/overview-page.module.ts b/src/app/pages/overview/overview-page.module.ts new file mode 100644 index 0000000..c8fc9f1 --- /dev/null +++ b/src/app/pages/overview/overview-page.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { OverviewPageRoutingModule } from 'app/pages/overview/overview-page-routing.module'; +import { OverviewPageComponent } from 'app/pages/overview/overview-page.component'; + +@NgModule({ + imports: [ + CommonModule, + OverviewPageRoutingModule + ], + declarations: [ + OverviewPageComponent + ] +}) +export class OverviewPageModule { } diff --git a/src/app/pages/pages-routing.module.ts b/src/app/pages/pages-routing.module.ts index 2525034..1492318 100644 --- a/src/app/pages/pages-routing.module.ts +++ b/src/app/pages/pages-routing.module.ts @@ -15,6 +15,7 @@ const routes: Routes = [ { path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' }, { path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' }, { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' }, + { path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' }, ] } ];