From 931daa3cda8456a73030a7d88f54ee31a886f66c Mon Sep 17 00:00:00 2001 From: insanity Date: Thu, 19 Apr 2018 19:54:08 +0900 Subject: [PATCH] added notification page --- .../notification-page-routing.module.ts | 16 ++++++++++++ .../notification-page.component.html | 9 +++++++ .../notification-page.component.spec.ts | 25 +++++++++++++++++++ .../notification-page.component.ts | 14 +++++++++++ .../notification/notification-page.module.ts | 19 ++++++++++++++ src/app/pages/pages-routing.module.ts | 2 +- 6 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 src/app/pages/notification/notification-page-routing.module.ts create mode 100644 src/app/pages/notification/notification-page.component.html create mode 100644 src/app/pages/notification/notification-page.component.spec.ts create mode 100644 src/app/pages/notification/notification-page.component.ts create mode 100644 src/app/pages/notification/notification-page.module.ts diff --git a/src/app/pages/notification/notification-page-routing.module.ts b/src/app/pages/notification/notification-page-routing.module.ts new file mode 100644 index 0000000..bd9560b --- /dev/null +++ b/src/app/pages/notification/notification-page-routing.module.ts @@ -0,0 +1,16 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { NotificationPageComponent } from './notification-page.component'; + +const routes: Routes = [ + { + path: '', + component: NotificationPageComponent, + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class NotificationPageRoutingModule { } diff --git a/src/app/pages/notification/notification-page.component.html b/src/app/pages/notification/notification-page.component.html new file mode 100644 index 0000000..58e9d0a --- /dev/null +++ b/src/app/pages/notification/notification-page.component.html @@ -0,0 +1,9 @@ +
+
+
+
+

Notification page

+
+
+
+
\ No newline at end of file diff --git a/src/app/pages/notification/notification-page.component.spec.ts b/src/app/pages/notification/notification-page.component.spec.ts new file mode 100644 index 0000000..ed89982 --- /dev/null +++ b/src/app/pages/notification/notification-page.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NotificationPageComponent } from './notification-page.component'; + +describe('OverviewComponent', () => { + let component: NotificationPageComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [NotificationPageComponent] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(NotificationPageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/notification/notification-page.component.ts b/src/app/pages/notification/notification-page.component.ts new file mode 100644 index 0000000..98bb0f9 --- /dev/null +++ b/src/app/pages/notification/notification-page.component.ts @@ -0,0 +1,14 @@ +import { Component, OnInit, Inject } from '@angular/core'; + +@Component({ + selector: 'of-page-notification', + templateUrl: './notification-page.component.html', +}) +export class NotificationPageComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/notification/notification-page.module.ts b/src/app/pages/notification/notification-page.module.ts new file mode 100644 index 0000000..5bcd8f1 --- /dev/null +++ b/src/app/pages/notification/notification-page.module.ts @@ -0,0 +1,19 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { NotificationPageComponent } from './notification-page.component'; +import { NotificationPageRoutingModule } from './notification-page-routing.module'; + + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + NotificationPageRoutingModule, + ], + declarations: [ + NotificationPageComponent, + ] +}) +export class NotificationPageModule { } diff --git a/src/app/pages/pages-routing.module.ts b/src/app/pages/pages-routing.module.ts index ca2222c..71367fb 100644 --- a/src/app/pages/pages-routing.module.ts +++ b/src/app/pages/pages-routing.module.ts @@ -18,7 +18,7 @@ const routes: Routes = [ // { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' }, { path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' }, { path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' }, - // { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' }, + { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' }, { path: 'alert', loadChildren: './alert/alert-page.module#AlertPageModule' }, { path: 'report', loadChildren: './report/report-page.module#ReportPageModule' }, { path: 'log', loadChildren: './log/log-page.module#LogPageModule' },