add sensor setting ing...

This commit is contained in:
snoop 2018-02-02 14:40:46 +09:00
parent 12dce5e7db
commit a4abd5d7d6
13 changed files with 148 additions and 0 deletions

View File

@ -25,6 +25,13 @@ export const menus = [
'chip': false, 'chip': false,
'open': false, 'open': false,
}, },
{
'name': 'SensorSetting',
'link': '/sensor-setting',
'icon': 'indeterminate_check_box',
'chip': false,
'open': false,
},
{ {
'name': 'Probes', 'name': 'Probes',
'link': '/probes', 'link': '/probes',

View File

@ -0,0 +1,3 @@
<p>
setting works!
</p>

View File

@ -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<SettingComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SettingComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SettingComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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() {
}
}

View File

@ -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 { }

View File

@ -13,6 +13,7 @@ const routes: Routes = [
{ path: 'probe', loadChildren: './probe/probe-page.module#ProbePageModule' }, { path: 'probe', loadChildren: './probe/probe-page.module#ProbePageModule' },
{ path: 'discovery', loadChildren: './discovery/discovery-page.module#DiscoveryPageModule' }, { path: 'discovery', loadChildren: './discovery/discovery-page.module#DiscoveryPageModule' },
{ path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' }, { path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
{ path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' },
] ]
} }
]; ];

View File

@ -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 { }

View File

@ -0,0 +1,5 @@
<p>
sensor-setting-page works!
</p>
<of-sensor-setting></of-sensor-setting>

View File

@ -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<SensorSettingPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SensorSettingPageComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SensorSettingPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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() {
}
}

View File

@ -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 { }