dashboard page created

This commit is contained in:
geek 2018-02-28 15:46:51 +09:00
parent 4ceaf533d2
commit 13375be336
8 changed files with 79 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export const menus = [
}, },
{ {
'name': 'Dashboards', 'name': 'Dashboards',
'link': '', 'link': '/dashboard',
'icon': 'indeterminate_check_box', 'icon': 'indeterminate_check_box',
'chip': { 'value': 3, 'color': 'accent'}, 'chip': { 'value': 3, 'color': 'accent'},
'open': false, 'open': false,

View File

@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {DashboardPageComponent} from './dashboard-page.component';
const routes: Routes = [
{
path: '',
component: DashboardPageComponent,
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class DashboardPageRoutingModule { }

View File

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

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DashboardPageComponent } from './dashboard-page.component';
describe('DashboardPageComponent', () => {
let component: DashboardPageComponent;
let fixture: ComponentFixture<DashboardPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DashboardPageComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DashboardPageComponent);
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-dashboard-page',
templateUrl: './dashboard-page.component.html',
styleUrls: ['./dashboard-page.component.scss']
})
export class DashboardPageComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DashboardPageRoutingModule } from './dashboard-page-routing.module';
import { MaterialModule } from 'app/commons/ui/material/material.module';
import {DashboardPageComponent} from './dashboard-page.component';
@NgModule({
imports: [
CommonModule,
DashboardPageRoutingModule,
MaterialModule,
],
declarations: [
DashboardPageComponent
]
})
export class DashboardPageModule { }

View File

@ -17,6 +17,7 @@ const routes: Routes = [
{ path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' }, { path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' },
{ path: 'target', loadChildren: './target/target-page.module#TargetPageModule' }, { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
{ path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' }, { path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
{ path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' },
] ]
} }
]; ];