diff --git a/src/packages/infra/component/map/map.component.ts b/src/packages/infra/component/map/map.component.ts
index e46b257..8468828 100644
--- a/src/packages/infra/component/map/map.component.ts
+++ b/src/packages/infra/component/map/map.component.ts
@@ -8,7 +8,7 @@ import { ListSelector } from '../../store';
import { Page, PageParams } from 'app/commons/model';
import { Domain } from '../../../domain/model';
import { MatDialog } from '@angular/material';
-import { SensorSettingPageComponent } from 'app/pages/sensor-setting/sensor-setting-page.component';
+import { SettingComponent } from '../../../sensor/component/setting/setting.component';
@Component({
selector: 'of-infra-map',
@@ -64,7 +64,7 @@ export class MapComponent implements OnInit, AfterContentInit {
const targetId = infra.target.id;
console.log(targetId);
- const dialogRef = this.dialog.open(SensorSettingPageComponent, {
+ const dialogRef = this.dialog.open(SettingComponent, {
width: '80%',
data: { }
});
diff --git a/src/packages/infra/infra.module.ts b/src/packages/infra/infra.module.ts
index 9159f2c..ce72315 100644
--- a/src/packages/infra/infra.module.ts
+++ b/src/packages/infra/infra.module.ts
@@ -7,15 +7,16 @@ import { InfraStoreModule } from './infra-store.module';
import { COMPONENTS } from './component';
import { SERVICES } from './service';
-import { SensorSettingPageComponent } from 'app/pages/sensor-setting/sensor-setting-page.component';
import { SensorSettingPageModule } from 'app/pages/sensor-setting/sensor-setting-page.module';
+import { SensorModule } from '../sensor/sensor.module';
+import { SettingComponent } from '../sensor/component/setting/setting.component';
@NgModule({
imports: [
CommonModule,
MaterialModule,
InfraStoreModule,
- SensorSettingPageModule
+ SensorModule
],
declarations: [
COMPONENTS,
@@ -27,7 +28,7 @@ import { SensorSettingPageModule } from 'app/pages/sensor-setting/sensor-setting
SERVICES
],
entryComponents: [
- SensorSettingPageComponent,
+ SettingComponent,
]
})
export class InfraModule { }
diff --git a/src/packages/sensor/component/index.ts b/src/packages/sensor/component/index.ts
index 7d11086..bb35714 100644
--- a/src/packages/sensor/component/index.ts
+++ b/src/packages/sensor/component/index.ts
@@ -3,6 +3,10 @@ import { SettingResultComponent } from './setting-result/setting-result.componen
import { FilterComponent } from './list/filter/filter.component';
import { ListComponent } from './list/list.component';
import { DetailComponent } from './detail/detail.component';
+import { TargetSelectorComponent } from './setting/target-selector/target-selector.component';
+import { CrawlerSelectorComponent } from './setting/crawler-selector/crawler-selector.component';
+import { CrawlerAuthComponent } from './setting/crawler-auth/crawler-auth.component';
+import { SensorItemSelectorComponent } from './setting/sensor-item-selector/sensor-item-selector.component';
export const COMPONENTS = [
SettingComponent,
@@ -10,4 +14,8 @@ export const COMPONENTS = [
ListComponent,
FilterComponent,
DetailComponent,
+ TargetSelectorComponent,
+ CrawlerSelectorComponent,
+ CrawlerAuthComponent,
+ SensorItemSelectorComponent
];
diff --git a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html
new file mode 100644
index 0000000..798cb00
--- /dev/null
+++ b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.html
@@ -0,0 +1,15 @@
+
+
+
+ Step 3
+ Crawler 인증
+
+
+
+
+ 크롤러 인증해야 됨
+
+
+
+
+
\ No newline at end of file
diff --git a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.scss b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.spec.ts b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.spec.ts
new file mode 100644
index 0000000..87f023d
--- /dev/null
+++ b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { CrawlerAuthComponent } from './crawler-auth.component';
+
+describe('FilterComponent', () => {
+ let component: CrawlerAuthComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ CrawlerAuthComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(CrawlerAuthComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts
new file mode 100644
index 0000000..69feba2
--- /dev/null
+++ b/src/packages/sensor/component/setting/crawler-auth/crawler-auth.component.ts
@@ -0,0 +1,16 @@
+import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+
+
+@Component({
+ selector: 'of-crawler-auth',
+ templateUrl: './crawler-auth.component.html',
+ styleUrls: ['./crawler-auth.component.scss']
+})
+export class CrawlerAuthComponent implements OnInit {
+
+ constructor(private router: Router) { }
+
+ ngOnInit() {
+ }
+}
diff --git a/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.html b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.html
new file mode 100644
index 0000000..ad139e4
--- /dev/null
+++ b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.html
@@ -0,0 +1,15 @@
+
+
+
+ Step 2
+ Crawler 선택
+
+
+
+
+ 크롤러 골라야됨
+
+
+
+
+
\ No newline at end of file
diff --git a/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.scss b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.spec.ts b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.spec.ts
new file mode 100644
index 0000000..77251eb
--- /dev/null
+++ b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { CrawlerSelectorComponent } from './crawler-selector.component';
+
+describe('FilterComponent', () => {
+ let component: CrawlerSelectorComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ CrawlerSelectorComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(CrawlerSelectorComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.ts b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.ts
new file mode 100644
index 0000000..9e9b028
--- /dev/null
+++ b/src/packages/sensor/component/setting/crawler-selector/crawler-selector.component.ts
@@ -0,0 +1,16 @@
+import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+
+
+@Component({
+ selector: 'of-crawler-selector',
+ templateUrl: './crawler-selector.component.html',
+ styleUrls: ['./crawler-selector.component.scss']
+})
+export class CrawlerSelectorComponent implements OnInit {
+
+ constructor(private router: Router) { }
+
+ ngOnInit() {
+ }
+}
diff --git a/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.html b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.html
new file mode 100644
index 0000000..ad5047c
--- /dev/null
+++ b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.html
@@ -0,0 +1,17 @@
+
+
+
+ Step 4
+ Select Sensor Items
+
+
+
+
+
+ 트리 들어가야됨
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.scss b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.spec.ts b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.spec.ts
new file mode 100644
index 0000000..25e7477
--- /dev/null
+++ b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { SensorItemSelectorComponent } from './sensor-item-selector.component';
+
+describe('SensorItemSelectorComponent', () => {
+ let component: SensorItemSelectorComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ SensorItemSelectorComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(SensorItemSelectorComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.ts b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.ts
new file mode 100644
index 0000000..d8fc1cd
--- /dev/null
+++ b/src/packages/sensor/component/setting/sensor-item-selector/sensor-item-selector.component.ts
@@ -0,0 +1,16 @@
+import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+
+
+@Component({
+ selector: 'of-sensor-item-selector',
+ templateUrl: './sensor-item-selector.component.html',
+ styleUrls: ['./sensor-item-selector.component.scss']
+})
+export class SensorItemSelectorComponent implements OnInit {
+
+ constructor(private router: Router) { }
+
+ ngOnInit() {
+ }
+}
diff --git a/src/packages/sensor/component/setting/setting.component.html b/src/packages/sensor/component/setting/setting.component.html
index 61ef2ca..d0fccb0 100644
--- a/src/packages/sensor/component/setting/setting.component.html
+++ b/src/packages/sensor/component/setting/setting.component.html
@@ -1,86 +1,19 @@
-
-
-
-
-
+
-
-
- Step 1
- Select Target
-
-
- 여기에 타겟들 출력
-
-
+
+
+
-
-
- Step 3
- Crawler Auth
-
-
-
-
-
+
+
+
-
+
+
+
-
-
-
-
- Step 2
- Select Crawler
-
-
-
-
- {{crawler}}
-
-
- Your select crawler is: {{selectCrawler}}
-
-
-
-
-
- Step 4
- Select Sensor Item
-
-
- 트리로 센서 아이템 목록 출력
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 스텝 순서를 바꿨으니 나중에 바꾸잡
-
-
-
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/packages/sensor/component/setting/setting.component.ts b/src/packages/sensor/component/setting/setting.component.ts
index 1a1f611..59a8fec 100644
--- a/src/packages/sensor/component/setting/setting.component.ts
+++ b/src/packages/sensor/component/setting/setting.component.ts
@@ -13,21 +13,12 @@ export class SettingComponent implements OnInit, AfterContentInit {
constructor() { }
- selectCrawler: String;
-
- crawlerList: Array;
ngOnInit() {
}
ngAfterContentInit() {
- this.crawlerList = new Array();
-
- this.crawlerList.push('SSH Crawler');
- this.crawlerList.push('WMI Crawler');
- this.crawlerList.push('MySQL Crawler');
- this.crawlerList.push('PostgreSQL Crawler');
}
onNext() {
diff --git a/src/packages/sensor/component/setting/target-selector/target-selector.component.html b/src/packages/sensor/component/setting/target-selector/target-selector.component.html
new file mode 100644
index 0000000..6bc0369
--- /dev/null
+++ b/src/packages/sensor/component/setting/target-selector/target-selector.component.html
@@ -0,0 +1,21 @@
+
+
+
+ Step 1
+ Select Target
+
+
+
+
+
+
+
+ {{target.name}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/packages/sensor/component/setting/target-selector/target-selector.component.scss b/src/packages/sensor/component/setting/target-selector/target-selector.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/packages/sensor/component/setting/target-selector/target-selector.component.spec.ts b/src/packages/sensor/component/setting/target-selector/target-selector.component.spec.ts
new file mode 100644
index 0000000..c13ee67
--- /dev/null
+++ b/src/packages/sensor/component/setting/target-selector/target-selector.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { TargetSelectorComponent } from './target-selector.component';
+
+describe('FilterComponent', () => {
+ let component: TargetSelectorComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ TargetSelectorComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(TargetSelectorComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/packages/sensor/component/setting/target-selector/target-selector.component.ts b/src/packages/sensor/component/setting/target-selector/target-selector.component.ts
new file mode 100644
index 0000000..3cb7fd7
--- /dev/null
+++ b/src/packages/sensor/component/setting/target-selector/target-selector.component.ts
@@ -0,0 +1,33 @@
+import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+
+
+@Component({
+ selector: 'of-target-selector',
+ templateUrl: './target-selector.component.html',
+ styleUrls: ['./target-selector.component.scss']
+})
+export class TargetSelectorComponent implements OnInit {
+
+ targets = [
+ {
+ 'name': 'Target1'
+ },
+ {
+ 'name': 'Target2'
+ },
+ {
+ 'name': 'Target3'
+ },
+ {
+ 'name': 'Target4'
+ },
+ {
+ 'name': 'Target5'
+ },
+ ];
+ constructor(private router: Router) { }
+
+ ngOnInit() {
+ }
+}
diff --git a/src/packages/sensor/sensor.module.ts b/src/packages/sensor/sensor.module.ts
index 62a5d34..42183ee 100644
--- a/src/packages/sensor/sensor.module.ts
+++ b/src/packages/sensor/sensor.module.ts
@@ -9,6 +9,7 @@ import { SERVICES } from './service';
import { SensorStoreModule } from './sensor-store.module';
import { SettingComponent } from './component/setting/setting.component';
import { TreeModule } from 'angular-tree-component';
+import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
@NgModule({
imports: [
@@ -16,7 +17,8 @@ import { TreeModule } from 'angular-tree-component';
MaterialModule,
FormsModule,
SensorStoreModule,
- TreeModule
+ TreeModule,
+ PerfectScrollbarModule
],
declarations: [
COMPONENTS,