dashboard page created
This commit is contained in:
parent
4ceaf533d2
commit
13375be336
|
@ -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,
|
||||||
|
|
17
src/app/pages/dashboard/dashboard-page-routing.module.ts
Normal file
17
src/app/pages/dashboard/dashboard-page-routing.module.ts
Normal 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 { }
|
3
src/app/pages/dashboard/dashboard-page.component.html
Normal file
3
src/app/pages/dashboard/dashboard-page.component.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<p>
|
||||||
|
dashboard-page works!
|
||||||
|
</p>
|
25
src/app/pages/dashboard/dashboard-page.component.spec.ts
Normal file
25
src/app/pages/dashboard/dashboard-page.component.spec.ts
Normal 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();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/pages/dashboard/dashboard-page.component.ts
Normal file
15
src/app/pages/dashboard/dashboard-page.component.ts
Normal 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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
17
src/app/pages/dashboard/dashboard-page.module.ts
Normal file
17
src/app/pages/dashboard/dashboard-page.module.ts
Normal 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 { }
|
|
@ -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' },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user