From dd84f626d2742decb3e23d1e87c7235b971d0bd5 Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 30 Jan 2018 16:37:35 +0900 Subject: [PATCH] added infra map --- .../infra/components/map/map.component.html | 3 +++ .../infra/components/map/map.component.scss | 0 .../components/map/map.component.spec.ts | 25 +++++++++++++++++++ .../infra/components/map/map.component.ts | 15 +++++++++++ .../pages/infra/infra-page-routing.module.ts | 18 +++++++++++++ src/app/pages/infra/infra-page.component.html | 3 +++ src/app/pages/infra/infra-page.component.scss | 0 .../pages/infra/infra-page.component.spec.ts | 25 +++++++++++++++++++ src/app/pages/infra/infra-page.component.ts | 15 +++++++++++ src/app/pages/infra/infra-page.module.ts | 14 +++++++++++ src/app/pages/pages-routing.module.ts | 1 + 11 files changed, 119 insertions(+) create mode 100644 src/app/packages/infra/components/map/map.component.html create mode 100644 src/app/packages/infra/components/map/map.component.scss create mode 100644 src/app/packages/infra/components/map/map.component.spec.ts create mode 100644 src/app/packages/infra/components/map/map.component.ts create mode 100644 src/app/pages/infra/infra-page-routing.module.ts create mode 100644 src/app/pages/infra/infra-page.component.html create mode 100644 src/app/pages/infra/infra-page.component.scss create mode 100644 src/app/pages/infra/infra-page.component.spec.ts create mode 100644 src/app/pages/infra/infra-page.component.ts create mode 100644 src/app/pages/infra/infra-page.module.ts diff --git a/src/app/packages/infra/components/map/map.component.html b/src/app/packages/infra/components/map/map.component.html new file mode 100644 index 0000000..41e757e --- /dev/null +++ b/src/app/packages/infra/components/map/map.component.html @@ -0,0 +1,3 @@ +

+ map works! +

diff --git a/src/app/packages/infra/components/map/map.component.scss b/src/app/packages/infra/components/map/map.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/packages/infra/components/map/map.component.spec.ts b/src/app/packages/infra/components/map/map.component.spec.ts new file mode 100644 index 0000000..449dba0 --- /dev/null +++ b/src/app/packages/infra/components/map/map.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { MapComponent } from './map.component'; + +describe('MapComponent', () => { + let component: MapComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ MapComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(MapComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/packages/infra/components/map/map.component.ts b/src/app/packages/infra/components/map/map.component.ts new file mode 100644 index 0000000..182e1ca --- /dev/null +++ b/src/app/packages/infra/components/map/map.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'of-map', + templateUrl: './map.component.html', + styleUrls: ['./map.component.scss'] +}) +export class MapComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/infra/infra-page-routing.module.ts b/src/app/pages/infra/infra-page-routing.module.ts new file mode 100644 index 0000000..d3eaf1c --- /dev/null +++ b/src/app/pages/infra/infra-page-routing.module.ts @@ -0,0 +1,18 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { InfraPageComponent } from './infra-page.component'; + + +const routes: Routes = [ + { + path: '', + component: InfraPageComponent, + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class InfraPageRoutingModule { } diff --git a/src/app/pages/infra/infra-page.component.html b/src/app/pages/infra/infra-page.component.html new file mode 100644 index 0000000..8170a71 --- /dev/null +++ b/src/app/pages/infra/infra-page.component.html @@ -0,0 +1,3 @@ +

+ infra-page works! +

diff --git a/src/app/pages/infra/infra-page.component.scss b/src/app/pages/infra/infra-page.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/infra/infra-page.component.spec.ts b/src/app/pages/infra/infra-page.component.spec.ts new file mode 100644 index 0000000..53048da --- /dev/null +++ b/src/app/pages/infra/infra-page.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { InfraPageComponent } from './infra-page.component'; + +describe('InfraPageComponent', () => { + let component: InfraPageComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ InfraPageComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(InfraPageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/infra/infra-page.component.ts b/src/app/pages/infra/infra-page.component.ts new file mode 100644 index 0000000..be747df --- /dev/null +++ b/src/app/pages/infra/infra-page.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'of-infra-page', + templateUrl: './infra-page.component.html', + styleUrls: ['./infra-page.component.scss'] +}) +export class InfraPageComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/infra/infra-page.module.ts b/src/app/pages/infra/infra-page.module.ts new file mode 100644 index 0000000..517e865 --- /dev/null +++ b/src/app/pages/infra/infra-page.module.ts @@ -0,0 +1,14 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { InfraPageComponent } from './infra-page.component'; +import { InfraPageRoutingModule } from './infra-page-routing.module'; + +@NgModule({ + imports: [ + CommonModule, + InfraPageRoutingModule + ], + declarations: [InfraPageComponent] +}) +export class InfraPageModule { } diff --git a/src/app/pages/pages-routing.module.ts b/src/app/pages/pages-routing.module.ts index 0dee7a4..05bb1c9 100644 --- a/src/app/pages/pages-routing.module.ts +++ b/src/app/pages/pages-routing.module.ts @@ -12,6 +12,7 @@ const routes: Routes = [ { path: 'probes', loadChildren: './probes/probes-page.module#ProbesPageModule' }, { path: 'discovery', loadChildren: './discovery/discovery.module#DiscoveryModule' }, + { path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' }, ] } ];