This commit is contained in:
insanity 2018-09-09 19:22:21 +09:00
parent 65a4980c3f
commit 9497df0ad9

View File

@ -70,38 +70,7 @@ export class HomePageComponent implements OnInit, OnDestroy {
image: "../../assets/Windows_logo.png", image: "../../assets/Windows_logo.png",
}, },
]); ]);
var testMap = new Map<string, string>();
testMap.set('KEY1', 'VALUE1');
testMap.set('KEY2', 'VALUE2');
var tempHost: Host = {
meta: testMap,
name: 'insanity'
};
this.nodeSet.update([
{
id: "", label: 'host', group: 'host', host: tempHost, shape: "image",
image: "http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/128/Devices-computer-icon.png",
},
]);
var tempService: Service = {
key: 'HTTP',
port: {
portNumber: 111,
metaPortType: {
name: 'TCP'
}
}
}
this.nodeSet.update([
{
id: 'http1', label: 'http', group: 'service',
shape: "image",
image: "../../assets/Windows_logo.png",
service: tempService,
},
]);
this.edgeSet = new vis.DataSet([]); this.edgeSet = new vis.DataSet([]);