diff --git a/src/packages/discovery/component/setting/setting.component.html b/src/packages/discovery/component/setting/setting.component.html index f90d174..6033980 100644 --- a/src/packages/discovery/component/setting/setting.component.html +++ b/src/packages/discovery/component/setting/setting.component.html @@ -52,8 +52,8 @@ - - + + @@ -80,7 +80,7 @@ - + diff --git a/src/packages/discovery/component/setting/setting.component.ts b/src/packages/discovery/component/setting/setting.component.ts index e16a4ec..5c9fa5b 100644 --- a/src/packages/discovery/component/setting/setting.component.ts +++ b/src/packages/discovery/component/setting/setting.component.ts @@ -102,39 +102,39 @@ export class SettingComponent implements OnInit, AfterContentInit { this.treeNodes = this.convertViewHost(this.testObj); - this.settingSucceed$.subscribe( - (succeed: boolean) => { - if (succeed) { - this.started = true; - } - }, - (error: RPCClientError) => { - console.log(error.response.message); - } - ); + // this.settingSucceed$.subscribe( + // (succeed: boolean) => { + // if (succeed) { + // this.started = true; + // } + // }, + // (error: RPCClientError) => { + // console.log(error.response.message); + // } + // ); - this.probe$.subscribe( - (probe: Probe) => { - if (probe != null) { - this.probe = probe; - } - }, - (error: RPCClientError) => { - console.log(error.response.message); - } - ); + // this.probe$.subscribe( + // (probe: Probe) => { + // if (probe != null) { + // this.probe = probe; + // } + // }, + // (error: RPCClientError) => { + // console.log(error.response.message); + // } + // ); - this.discoveryResult$.subscribe( - (zones: Map) => { - console.log('ZoneZoneZoneZoneZoneZoneZone'); - // console.log(JSON.stringify(zones)); - this.convertTreeViewZone(zones); - this.zones = zones; - }, - (error: RPCClientError) => { - console.log(error.response.message); - } - ); + // this.discoveryResult$.subscribe( + // (zones: Map) => { + // console.log('ZoneZoneZoneZoneZoneZoneZone'); + // // console.log(JSON.stringify(zones)); + // this.convertTreeViewZone(zones); + // this.zones = zones; + // }, + // (error: RPCClientError) => { + // console.log(error.response.message); + // } + // ); } @@ -190,41 +190,41 @@ export class SettingComponent implements OnInit, AfterContentInit { } discovery() { - let discoveryPort: DiscoveryPort = null; - let discoveryService: DiscoveryService = null; + // let discoveryPort: DiscoveryPort = null; + // let discoveryService: DiscoveryService = null; - if (this.serviceChecked) { - const services = new Array(); - for (const service of this.includeServices) { - services.push(service.name); - } - discoveryService = { - includeServices: services, - }; - } - if (this.portChecked) { - discoveryPort = { - firstScanRange: this.startPort, - lastScanRange: this.endPort, - includeTCP: this.tcpChecked, - includeUDP: this.udpChecked, - excludePorts: null, - discoveryService: discoveryService - }; - } - const discoveryZone: DiscoveryZone = { - discoveryHost: { - firstScanRange: this.startIP, - lastScanRange: this.endIP, - discoveryPort: discoveryPort, - }, - }; + // if (this.serviceChecked) { + // const services = new Array(); + // for (const service of this.includeServices) { + // services.push(service.name); + // } + // discoveryService = { + // includeServices: services, + // }; + // } + // if (this.portChecked) { + // discoveryPort = { + // firstScanRange: this.startPort, + // lastScanRange: this.endPort, + // includeTCP: this.tcpChecked, + // includeUDP: this.udpChecked, + // excludePorts: null, + // discoveryService: discoveryService + // }; + // } + // const discoveryZone: DiscoveryZone = { + // discoveryHost: { + // firstScanRange: this.startIP, + // lastScanRange: this.endIP, + // discoveryPort: discoveryPort, + // }, + // }; - console.log(discoveryZone); + // console.log(discoveryZone); - console.log('start discovery - ' + this.probe.probeKey); - this.discoverstore.dispatch(new DiscoverStore.DiscoverZone( - { probeID: this.probe.probeKey, discoveryZone: discoveryZone })); + // console.log('start discovery - ' + this.probe.probeKey); + // this.discoverstore.dispatch(new DiscoverStore.DiscoverZone( + // { probeID: this.probe.probeKey, discoveryZone: discoveryZone })); this.started = true; } diff --git a/src/packages/infra/component/map/map.component.html b/src/packages/infra/component/map/map.component.html index 20b1d65..8885b52 100644 --- a/src/packages/infra/component/map/map.component.html +++ b/src/packages/infra/component/map/map.component.html @@ -1,4 +1,38 @@ -
map
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +