diff --git a/src/app/pages/home/home-page.component.html b/src/app/pages/home/home-page.component.html index 68d5178..fca9bce 100644 --- a/src/app/pages/home/home-page.component.html +++ b/src/app/pages/home/home-page.component.html @@ -18,8 +18,12 @@ - + + + {{link.target.target.port.portNumber}} + @@ -38,7 +42,7 @@ - + @@ -52,7 +56,7 @@ - + @@ -63,21 +67,18 @@ + + Content + - - Total Hosts: {{resultMsg[0]}}
- Total Services: {{resultMsg[1]}}
- Time Spent: {{resultMsg[2]}} -
- -
+ diff --git a/src/app/pages/home/home-page.component.scss b/src/app/pages/home/home-page.component.scss index fe1a784..b5bf372 100644 --- a/src/app/pages/home/home-page.component.scss +++ b/src/app/pages/home/home-page.component.scss @@ -67,6 +67,14 @@ font-size: 14px; } +.linkTextClass { + stroke: #b6b4b4; + font-family: "Lucida Grande", "Droid Sans", Arial, Helvetica, sans-serif; + font-weight: normal; + stroke-width: .3; + font-size: 9px; +} + .focused { opacity: 1 !important; } diff --git a/src/app/pages/home/home-page.component.ts b/src/app/pages/home/home-page.component.ts index 5b744eb..1e7e48a 100644 --- a/src/app/pages/home/home-page.component.ts +++ b/src/app/pages/home/home-page.component.ts @@ -14,7 +14,12 @@ import { Node } from '../../../commons/model/node'; import { Link } from '../../../commons/model/link'; import { RPCError } from '@overflow/rpc-js'; +<<<<<<< HEAD import { toMetaIPType, MetaIPTypeEnum, toMetaCryptoType, MetaCryptoTypeEnum } from '@overflow/model/meta'; +======= +import { toMetaIPType, MetaIPTypeEnum, toMetaCryptoType, MetaCryptoTypeEnum, toMetaPortType, MetaPortTypeEnum } from '@overflow/model/meta'; +import { Message } from 'primeng/primeng'; +>>>>>>> 42243565d710c6f755deb99207bfaa337ffbbc78 import { DiscoveryModeType } from '@overflow/model/discovery/discovery'; import { PingResult } from '@overflow/model/ping'; @@ -238,7 +243,7 @@ export class HomePageComponent implements OnInit, OnDestroy { const __this = this; const nodeElements = d3.select(this.discoveryTargetRef.nativeElement).selectAll('.node-container'); - const linkElements = d3.select(this.discoveryTargetRef.nativeElement).selectAll('.link'); + const linkElements = d3.select(this.discoveryTargetRef.nativeElement).selectAll('.link-container'); function getNodeFromElement(element: Element): Node | null { const container = d3.select(element); @@ -537,7 +542,7 @@ export class HomePageComponent implements OnInit, OnDestroy { const __this = this; const nodeElements = d3.select(this.discoveryTargetRef.nativeElement).selectAll('.node-container'); - const linkElements = d3.select(this.discoveryTargetRef.nativeElement).selectAll('.link'); + const linkElements = d3.select(this.discoveryTargetRef.nativeElement).selectAll('.link-container'); __this.selectedNode = null; @@ -770,9 +775,8 @@ export class HomePageComponent implements OnInit, OnDestroy { } private setTestData() { - const hostNode = new Node('192.168.1.1'); - hostNode.group = 'host'; - hostNode.target = { + + const host1: Host = { metaIPType: toMetaIPType(MetaIPTypeEnum.V4), name: 'Host1', address: '192.168.1.1', @@ -783,11 +787,13 @@ export class HomePageComponent implements OnInit, OnDestroy { hostModel: 'UNKNOWN', zone: this.zone, }; + + const hostNode = new Node('192.168.1.1'); + hostNode.group = 'host'; + hostNode.target = host1; hostNode.r = 40; - const hostNode2 = new Node('192.168.1.2'); - hostNode2.group = 'host'; - hostNode2.target = { + const host2: Host = { metaIPType: toMetaIPType(MetaIPTypeEnum.V4), name: 'Host2', address: '192.168.1.2', @@ -798,11 +804,13 @@ export class HomePageComponent implements OnInit, OnDestroy { hostModel: 'UNKNOWN', zone: this.zone, }; + + const hostNode2 = new Node('192.168.1.2'); + hostNode2.group = 'host'; + hostNode2.target = host2; hostNode2.r = 40; - const hostNode3 = new Node('192.168.1.3'); - hostNode3.group = 'host'; - hostNode3.target = { + const host3: Host = { metaIPType: toMetaIPType(MetaIPTypeEnum.V4), name: 'Host2', address: '192.168.1.3', @@ -813,6 +821,10 @@ export class HomePageComponent implements OnInit, OnDestroy { hostModel: 'UNKNOWN', zone: this.zone, }; + + const hostNode3 = new Node('192.168.1.3'); + hostNode3.group = 'host'; + hostNode3.target = host3; hostNode3.r = 40; const serviceNode1 = new Node('192.168.1.1-10-HTTP'); @@ -823,7 +835,11 @@ export class HomePageComponent implements OnInit, OnDestroy { serviceType: 'WEB', serviceVendor: 'Apache', serviceVersion: 'UNKNOWN', - + port: { + host: host1, + portNumber: 10, + metaPortType: toMetaPortType(MetaPortTypeEnum.TCP), + }, }; serviceNode1.group = 'service'; serviceNode1.r = 30; @@ -836,7 +852,11 @@ export class HomePageComponent implements OnInit, OnDestroy { serviceType: 'WEB', serviceVendor: 'Apache', serviceVersion: 'UNKNOWN', - + port: { + host: host1, + portNumber: 20, + metaPortType: toMetaPortType(MetaPortTypeEnum.TCP), + }, }; serviceNode2.group = 'service'; serviceNode2.r = 30; @@ -849,6 +869,11 @@ export class HomePageComponent implements OnInit, OnDestroy { serviceType: 'WEB', serviceVendor: 'Apache', serviceVersion: 'UNKNOWN', + port: { + host: host1, + portNumber: 30, + metaPortType: toMetaPortType(MetaPortTypeEnum.TCP), + }, }; serviceNode3.group = 'service'; @@ -863,6 +888,11 @@ export class HomePageComponent implements OnInit, OnDestroy { serviceType: 'WEB', serviceVendor: 'Apache', serviceVersion: 'UNKNOWN', + port: { + host: host3, + portNumber: 10, + metaPortType: toMetaPortType(MetaPortTypeEnum.TCP), + }, }; serviceNode31.group = 'service'; @@ -876,6 +906,11 @@ export class HomePageComponent implements OnInit, OnDestroy { serviceType: 'WEB', serviceVendor: 'Apache', serviceVersion: 'UNKNOWN', + port: { + host: host3, + portNumber: 20, + metaPortType: toMetaPortType(MetaPortTypeEnum.TCP), + }, }; serviceNode32.group = 'service'; diff --git a/src/assets/Windows_logo.png b/src/assets/Windows_logo.png deleted file mode 100644 index 00bd81f..0000000 Binary files a/src/assets/Windows_logo.png and /dev/null differ diff --git a/src/commons/component/nic-dropdown.component.html b/src/commons/component/nic-dropdown.component.html index 0478382..dbb0920 100644 --- a/src/commons/component/nic-dropdown.component.html +++ b/src/commons/component/nic-dropdown.component.html @@ -18,7 +18,7 @@ -
+