This commit is contained in:
crusader 2018-09-11 17:04:22 +09:00
parent f4453338e4
commit a4f7ac810d
9 changed files with 115 additions and 14 deletions

View File

@ -0,0 +1,2 @@
export const COMPONENTS = [
];

View File

@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { COMPONENTS } from './component';
import { DIRECTIVES } from './directive';
@NgModule({
imports: [
CommonModule,
],
exports: [
COMPONENTS,
DIRECTIVES,
],
declarations: [
COMPONENTS,
DIRECTIVES,
],
})
export class D3ForceModule { }

View File

@ -0,0 +1,2 @@
export const DIRECTIVES = [
];

View File

@ -7,11 +7,17 @@ export interface Host {
name?: string; name?: string;
address?: string; address?: string;
mac?: string; mac?: string;
meta?: Map<string, string>;
osType?: string;
deviceType?: string;
deviceVendor?: string;
deviceModel?: string;
meta?: Map<string, Map<string, string>>;
discoveredBy?: string[];
discoveredDate?: Date;
zone?: Zone; zone?: Zone;
portList?: Port[]; portList?: Port[];
discoveredBy?: string;
discoveredDate?: Date;
} }

View File

@ -5,11 +5,11 @@ import { MetaPortType } from '../meta';
export interface Port { export interface Port {
metaPortType?: MetaPortType; metaPortType?: MetaPortType;
portNumber?: number; portNumber?: number;
meta?: Map<string, string>;
meta?: Map<string, Map<string, string>>;
discoveredBy?: string[];
discoveredDate?: Date;
host?: Host; host?: Host;
serviceList?: Service[]; serviceList?: Service[];
discoveredBy?: string;
discoveredDate?: Date;
} }

View File

@ -4,11 +4,12 @@ import { MetaCryptoType } from '../meta';
export interface Service { export interface Service {
metaCryptoType?: MetaCryptoType; metaCryptoType?: MetaCryptoType;
key?: string; key?: string;
name?: string;
description?: string; description?: string;
meta?: Map<string, string>;
meta?: Map<string, Map<string, string>>;
discoveredBy?: string[];
discoveredDate?: Date;
port?: Port; port?: Port;
discoveredBy?: string;
discoveredDate?: Date;
} }

View File

@ -7,8 +7,8 @@ export interface Zone {
metaIPType?: MetaIPType; metaIPType?: MetaIPType;
address?: string; address?: string;
mac?: string; mac?: string;
meta?: Map<string, string>;
discoveredBy?: string; meta?: Map<string, Map<string, string>>;
discoveredBy?: string[];
discoveredDate?: Date; discoveredDate?: Date;
} }

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 66 56" style="enable-background:new 0 0 66 56;" xml:space="preserve">
<style type="text/css">
.st0{fill:#B4920D;}
.st1{fill:#FFFFFF;}
</style>
<g>
<path class="st0" d="M16.1,19.2c-1.3,0-2.4-1.1-2.4-2.4V7.9c0-1.3,1.1-2.4,2.4-2.4h34.5c1.3,0,2.4,1.1,2.4,2.4v8.9
c0,1.3-1.1,2.4-2.4,2.4H16.1z"/>
<path class="st1" d="M50.6,6.5c0.8,0,1.4,0.6,1.4,1.4v8.9c0,0.8-0.6,1.4-1.4,1.4H16.1c-0.8,0-1.4-0.6-1.4-1.4V7.9
c0-0.8,0.6-1.4,1.4-1.4H50.6 M50.6,4.5H16.1c-1.9,0-3.4,1.5-3.4,3.4v8.9c0,1.9,1.5,3.4,3.4,3.4h34.5c1.9,0,3.4-1.5,3.4-3.4V7.9
C54,6,52.5,4.5,50.6,4.5L50.6,4.5z"/>
</g>
<rect x="20.1" y="10.3" class="st1" width="10.1" height="3.8"/>
<circle class="st1" cx="38.6" cy="12.2" r="2.1"/>
<circle class="st1" cx="44.6" cy="12.2" r="2.1"/>
<g>
<path class="st0" d="M16.1,32.7c-1.3,0-2.4-1.1-2.4-2.4v-8.9c0-1.3,1.1-2.4,2.4-2.4h34.5c1.3,0,2.4,1.1,2.4,2.4v8.9
c0,1.3-1.1,2.4-2.4,2.4H16.1z"/>
<path class="st1" d="M50.6,20c0.8,0,1.4,0.6,1.4,1.4v8.9c0,0.8-0.6,1.4-1.4,1.4H16.1c-0.8,0-1.4-0.6-1.4-1.4v-8.9
c0-0.8,0.6-1.4,1.4-1.4H50.6 M50.6,18H16.1c-1.9,0-3.4,1.5-3.4,3.4v8.9c0,1.9,1.5,3.4,3.4,3.4h34.5c1.9,0,3.4-1.5,3.4-3.4v-8.9
C54,19.5,52.5,18,50.6,18L50.6,18z"/>
</g>
<rect x="20.1" y="23.8" class="st1" width="10.1" height="3.8"/>
<circle class="st1" cx="38.6" cy="25.7" r="2.1"/>
<circle class="st1" cx="44.6" cy="25.7" r="2.1"/>
<g>
<path class="st0" d="M16.1,46.2c-1.3,0-2.4-1.1-2.4-2.4v-8.9c0-1.3,1.1-2.4,2.4-2.4h34.5c1.3,0,2.4,1.1,2.4,2.4v8.9
c0,1.3-1.1,2.4-2.4,2.4H16.1z"/>
<path class="st1" d="M50.6,33.5c0.8,0,1.4,0.6,1.4,1.4v8.9c0,0.8-0.6,1.4-1.4,1.4H16.1c-0.8,0-1.4-0.6-1.4-1.4v-8.9
c0-0.8,0.6-1.4,1.4-1.4H50.6 M50.6,31.5H16.1c-1.9,0-3.4,1.5-3.4,3.4v8.9c0,1.9,1.5,3.4,3.4,3.4h34.5c1.9,0,3.4-1.5,3.4-3.4v-8.9
C54,33,52.5,31.5,50.6,31.5L50.6,31.5z"/>
</g>
<rect x="20.1" y="37.3" class="st1" width="10.1" height="3.8"/>
<circle class="st1" cx="38.6" cy="39.2" r="2.1"/>
<circle class="st1" cx="44.6" cy="39.2" r="2.1"/>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 66 56" style="enable-background:new 0 0 66 56;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
.st1{fill:#008A61;}
.st2{fill:#008A61;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}
</style>
<circle class="st0" cx="44.6" cy="12.2" r="2.1"/>
<circle class="st0" cx="44.6" cy="25.7" r="2.1"/>
<g>
<g>
<path class="st1" d="M21.9,16.9c-0.6,0-1-0.4-1-1V7.6c0-1,1-1.7,2.2-1.7h19.8c1.3,0,2.2,0.7,2.2,1.7v8.4c0,0.6-0.4,1-1,1H21.9z"/>
<path class="st0" d="M42.9,6.9c0.7,0,1.2,0.3,1.2,0.7v8.4H21.9V7.6c0-0.4,0.6-0.7,1.2-0.7H42.9 M42.9,4.9H23.1
c-1.8,0-3.2,1.2-3.2,2.7v8.4c0,1.1,0.9,2,2,2h22.3c1.1,0,2-0.9,2-2V7.6C46.1,6,44.8,4.9,42.9,4.9L42.9,4.9z"/>
</g>
<g>
<path class="st1" d="M14.3,38.6c-1.3,0-2.4-1.1-2.4-2.4V18.6c0-1.3,1.1-2.4,2.4-2.4h37.4c1.3,0,2.4,1.1,2.4,2.4v17.5
c0,1.3-1.1,2.4-2.4,2.4H14.3z"/>
<path class="st0" d="M51.7,17.2c0.8,0,1.4,0.6,1.4,1.4v17.5c0,0.8-0.6,1.4-1.4,1.4H14.3c-0.8,0-1.4-0.6-1.4-1.4V18.6
c0-0.8,0.6-1.4,1.4-1.4H51.7 M51.7,15.2H14.3c-1.9,0-3.4,1.5-3.4,3.4v17.5c0,1.9,1.5,3.4,3.4,3.4h37.4c1.9,0,3.4-1.5,3.4-3.4V18.6
C55.1,16.7,53.6,15.2,51.7,15.2L51.7,15.2z"/>
</g>
<path class="st2" d="M42.9,44.8H23.1c-0.7,0-1.2-0.6-1.2-1.2V29.2h22.3v14.4C44.1,44.3,43.6,44.8,42.9,44.8z"/>
<line class="st2" x1="25.8" y1="33" x2="40.2" y2="33"/>
<line class="st2" x1="15.8" y1="20.8" x2="20" y2="20.8"/>
<line class="st2" x1="25.8" y1="36.8" x2="40.2" y2="36.8"/>
<line class="st2" x1="25.8" y1="40.7" x2="40.2" y2="40.7"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB