diff --git a/src/packages/infra/component/map/map.component.html b/src/packages/infra/component/map/map.component.html
index 36c1758..781235c 100644
--- a/src/packages/infra/component/map/map.component.html
+++ b/src/packages/infra/component/map/map.component.html
@@ -1,7 +1,7 @@
Map
-
+
@@ -9,21 +9,49 @@
-
-
-
-
-
- Up
- Dwon
- Warn
- Error
-
+
+
+
+
+
+ Up
+ Dwon
+ Warn
+ Error
+
-
+
+
+
+ {{node.label}}
+
+
+
+ {{node.label}}
+
+
+
+ {{node.label}}
+
+
+
+ {{node.label}}
+
+
+
+ {{node.label}}
+
+
+
+
+
+
+
diff --git a/src/packages/infra/component/map/map.component.ts b/src/packages/infra/component/map/map.component.ts
index a01299a..2c5df4a 100644
--- a/src/packages/infra/component/map/map.component.ts
+++ b/src/packages/infra/component/map/map.component.ts
@@ -144,21 +144,18 @@ export class MapComponent implements OnInit, AfterContentInit {
// for (const itt of this.infraTree) {
// }
-
-
// }
for (const sensor of sensorList) {
const st = {
label: 'Sensors - ' + sensor.crawler.name,
- expandedIcon: 'fa-folder-open',
- collapsedIcon: 'fa-folder',
+ type: 'sensor',
obj: sensor,
expanded: true
};
// FIXME:: target test id ....
- const tt = this.targetTreeMap.get(3);
+ const tt = this.targetTreeMap.get(4);
// const tt = this.targetTreeMap.get(sensor.target.id);
if (tt !== undefined && tt !== null) {
tt.children.push(st);
@@ -206,6 +203,7 @@ export class MapComponent implements OnInit, AfterContentInit {
const infraTree = {
label: 'Infra',
+ type: 'infra',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: true,
@@ -216,6 +214,7 @@ export class MapComponent implements OnInit, AfterContentInit {
const tp = {
label: 'Probe - ' + key,
+ type: 'probe',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: this.DEFAULT_EXPANDED.valueOf(),
@@ -228,6 +227,7 @@ export class MapComponent implements OnInit, AfterContentInit {
const th = {
label: 'Host - ' + ih.ip,
+ type: 'host',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: this.DEFAULT_EXPANDED.valueOf(),
@@ -246,6 +246,7 @@ export class MapComponent implements OnInit, AfterContentInit {
for (let i = 0 ; i < ifsl.length; ++i) {
const ts = {
label: 'Service - ' + ifsl[i].vendor.name,
+ type: 'service',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: this.DEFAULT_EXPANDED.valueOf(),
@@ -376,18 +377,21 @@ export class MapComponent implements OnInit, AfterContentInit {
const testInfraList = [
{
label: 'Infra',
+ type: 'infra',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: true,
children: [
{
label: 'Zone - 192.168.1.0/24',
+ type: 'zone',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: true,
children: [
{
label: 'Host - 192.168.1.106 - Snoop Host',
+ type: 'host',
expandedIcon: 'fa-folder-open',
collapsedIcon: 'fa-folder',
expanded: true,