diff --git a/src/app/commons/component/sidebar/menu-element.ts b/src/app/commons/component/sidebar/menu-element.ts index 165ebff..45f4237 100644 --- a/src/app/commons/component/sidebar/menu-element.ts +++ b/src/app/commons/component/sidebar/menu-element.ts @@ -25,6 +25,13 @@ export const menus = [ 'chip': false, 'open': false, }, + { + 'name': 'SensorSetting', + 'link': '/sensor-setting', + 'icon': 'indeterminate_check_box', + 'chip': false, + 'open': false, + }, { 'name': 'Probes', 'link': '/probes', diff --git a/src/app/packages/sensor/component/setting/setting.component.html b/src/app/packages/sensor/component/setting/setting.component.html new file mode 100644 index 0000000..ad35fcb --- /dev/null +++ b/src/app/packages/sensor/component/setting/setting.component.html @@ -0,0 +1,3 @@ +

+ setting works! +

diff --git a/src/app/packages/sensor/component/setting/setting.component.scss b/src/app/packages/sensor/component/setting/setting.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/packages/sensor/component/setting/setting.component.spec.ts b/src/app/packages/sensor/component/setting/setting.component.spec.ts new file mode 100644 index 0000000..009aeb2 --- /dev/null +++ b/src/app/packages/sensor/component/setting/setting.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SettingComponent } from './setting.component'; + +describe('SettingComponent', () => { + let component: SettingComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ SettingComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(SettingComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/packages/sensor/component/setting/setting.component.ts b/src/app/packages/sensor/component/setting/setting.component.ts new file mode 100644 index 0000000..24a375a --- /dev/null +++ b/src/app/packages/sensor/component/setting/setting.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'of-sensor-setting', + templateUrl: './setting.component.html', + styleUrls: ['./setting.component.scss'] +}) +export class SettingComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/packages/sensor/sensor.module.ts b/src/app/packages/sensor/sensor.module.ts new file mode 100644 index 0000000..acba77d --- /dev/null +++ b/src/app/packages/sensor/sensor.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { MaterialModule } from 'app/commons/ui/material/material.module'; +import { SettingComponent } from 'app/packages/sensor/component/setting/setting.component'; + + +@NgModule({ + imports: [ + CommonModule, + MaterialModule + ], + declarations: [SettingComponent] +}) +export class SensorModule { } diff --git a/src/app/pages/pages-routing.module.ts b/src/app/pages/pages-routing.module.ts index b54031a..f179fc6 100644 --- a/src/app/pages/pages-routing.module.ts +++ b/src/app/pages/pages-routing.module.ts @@ -13,6 +13,7 @@ const routes: Routes = [ { path: 'probe', loadChildren: './probe/probe-page.module#ProbePageModule' }, { path: 'discovery', loadChildren: './discovery/discovery-page.module#DiscoveryPageModule' }, { path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' }, + { path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' }, ] } ]; diff --git a/src/app/pages/sensor-setting/sensor-setting-page-routing.module.ts b/src/app/pages/sensor-setting/sensor-setting-page-routing.module.ts new file mode 100644 index 0000000..b23efe2 --- /dev/null +++ b/src/app/pages/sensor-setting/sensor-setting-page-routing.module.ts @@ -0,0 +1,18 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { Routes, RouterModule } from '@angular/router'; +import { SensorSettingPageComponent } from 'app/pages/sensor-setting/sensor-setting-page.component'; + + +const routes: Routes = [ + { + path: '', + component: SensorSettingPageComponent, + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class SensorSettingPageRoutingModule { } diff --git a/src/app/pages/sensor-setting/sensor-setting-page.component.html b/src/app/pages/sensor-setting/sensor-setting-page.component.html new file mode 100644 index 0000000..f80e8ea --- /dev/null +++ b/src/app/pages/sensor-setting/sensor-setting-page.component.html @@ -0,0 +1,5 @@ +

+ sensor-setting-page works! +

+ + \ No newline at end of file diff --git a/src/app/pages/sensor-setting/sensor-setting-page.component.scss b/src/app/pages/sensor-setting/sensor-setting-page.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/sensor-setting/sensor-setting-page.component.spec.ts b/src/app/pages/sensor-setting/sensor-setting-page.component.spec.ts new file mode 100644 index 0000000..190ed70 --- /dev/null +++ b/src/app/pages/sensor-setting/sensor-setting-page.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SensorSettingPageComponent } from './sensor-setting-page.component'; + +describe('SensorSettingPageComponent', () => { + let component: SensorSettingPageComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ SensorSettingPageComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(SensorSettingPageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/sensor-setting/sensor-setting-page.component.ts b/src/app/pages/sensor-setting/sensor-setting-page.component.ts new file mode 100644 index 0000000..49eb460 --- /dev/null +++ b/src/app/pages/sensor-setting/sensor-setting-page.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'of-sensor-setting-page', + templateUrl: './sensor-setting-page.component.html', + styleUrls: ['./sensor-setting-page.component.scss'] +}) +export class SensorSettingPageComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/sensor-setting/sensor-setting-page.module.ts b/src/app/pages/sensor-setting/sensor-setting-page.module.ts new file mode 100644 index 0000000..2f11c6f --- /dev/null +++ b/src/app/pages/sensor-setting/sensor-setting-page.module.ts @@ -0,0 +1,19 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { SensorSettingPageRoutingModule } from 'app/pages/sensor-setting/sensor-setting-page-routing.module'; +import { SensorSettingPageComponent } from 'app/pages/sensor-setting/sensor-setting-page.component'; +import { SensorModule } from 'app/packages/sensor/sensor.module'; +import { MaterialModule } from 'app/commons/ui/material/material.module'; + + + +@NgModule({ + imports: [ + CommonModule, + MaterialModule, + SensorSettingPageRoutingModule, + SensorModule + ], + declarations: [SensorSettingPageComponent] +}) +export class SensorSettingPageModule { }