feat: dns图表定义
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "cn-icon"; /* Project id 2614877 */
|
font-family: "cn-icon"; /* Project id 2614877 */
|
||||||
src: url('iconfont.woff2?t=1659663639076') format('woff2'),
|
src: url('iconfont.woff2?t=1663070128326') format('woff2'),
|
||||||
url('iconfont.woff?t=1659663639076') format('woff'),
|
url('iconfont.woff?t=1663070128326') format('woff'),
|
||||||
url('iconfont.ttf?t=1659663639076') format('truetype');
|
url('iconfont.ttf?t=1663070128326') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.cn-icon {
|
.cn-icon {
|
||||||
@@ -13,6 +13,42 @@
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cn-icon-events-type:before {
|
||||||
|
content: "\e7a5";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-events2:before {
|
||||||
|
content: "\e7a6";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-arrow-right2:before {
|
||||||
|
content: "\e7a7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-traffic-overview:before {
|
||||||
|
content: "\e7a8";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-ingress:before {
|
||||||
|
content: "\e7a9";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-egress:before {
|
||||||
|
content: "\e7aa";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-close:before {
|
||||||
|
content: "\e7ab";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-serach:before {
|
||||||
|
content: "\e7ac";
|
||||||
|
}
|
||||||
|
|
||||||
|
.cn-icon-setting2:before {
|
||||||
|
content: "\e7a4";
|
||||||
|
}
|
||||||
|
|
||||||
.cn-icon-xiala:before {
|
.cn-icon-xiala:before {
|
||||||
content: "\e7a3";
|
content: "\e7a3";
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -128,6 +128,30 @@
|
|||||||
:chart="chart"
|
:chart="chart"
|
||||||
@toggleLoading="toggleLoading"
|
@toggleLoading="toggleLoading"
|
||||||
></link-traffic-line>
|
></link-traffic-line>
|
||||||
|
<dns-active-malicious-domain
|
||||||
|
v-else-if="chart.type === typeMapping.dnsInsight.dnsActiveMaliciousDomain"
|
||||||
|
:time-filter="timeFilter"
|
||||||
|
:chart="chart"
|
||||||
|
@toggleLoading="toggleLoading"
|
||||||
|
></dns-active-malicious-domain>
|
||||||
|
<dns-event-chart
|
||||||
|
v-else-if="chart.type === typeMapping.dnsInsight.dnsEventChart"
|
||||||
|
:time-filter="timeFilter"
|
||||||
|
:chart="chart"
|
||||||
|
@toggleLoading="toggleLoading"
|
||||||
|
></dns-event-chart>
|
||||||
|
<dns-recent-events
|
||||||
|
v-else-if="chart.type === typeMapping.dnsInsight.dnsRecentEvents"
|
||||||
|
:time-filter="timeFilter"
|
||||||
|
:chart="chart"
|
||||||
|
@toggleLoading="toggleLoading"
|
||||||
|
></dns-recent-events>
|
||||||
|
<dns-traffic-line
|
||||||
|
v-else-if="chart.type === typeMapping.dnsInsight.dnsTrafficLine"
|
||||||
|
:time-filter="timeFilter"
|
||||||
|
:chart="chart"
|
||||||
|
@toggleLoading="toggleLoading"
|
||||||
|
></dns-traffic-line>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -154,6 +178,11 @@ import NpmTrafficLine from '@/views/charts2/charts/npm/NpmTrafficLine'
|
|||||||
import LinkBlock from '@/views/charts2/charts/linkMonitor/LinkBlock'
|
import LinkBlock from '@/views/charts2/charts/linkMonitor/LinkBlock'
|
||||||
import LinkTrafficSankey from '@/views/charts2/charts/linkMonitor/LinkTrafficSankey'
|
import LinkTrafficSankey from '@/views/charts2/charts/linkMonitor/LinkTrafficSankey'
|
||||||
import LinkTrafficLine from '@/views/charts2/charts/linkMonitor/LinkTrafficLine'
|
import LinkTrafficLine from '@/views/charts2/charts/linkMonitor/LinkTrafficLine'
|
||||||
|
import DnsActiveMaliciousDomain from '@/views/charts2/charts/dnsInsight/DnsActiveMaliciousDomain'
|
||||||
|
import DnsEventChart from '@/views/charts2/charts/dnsInsight/DnsEventChart'
|
||||||
|
import DnsRecentEvents from '@/views/charts2/charts/dnsInsight/DnsRecentEvents'
|
||||||
|
import DnsTrafficLine from '@/views/charts2/charts/dnsInsight/DnsTrafficLine'
|
||||||
|
|
||||||
import { get } from '@/utils/http'
|
import { get } from '@/utils/http'
|
||||||
import { getNowTime, getSecond } from '@/utils/date-util'
|
import { getNowTime, getSecond } from '@/utils/date-util'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
@@ -180,7 +209,11 @@ export default {
|
|||||||
NpmTrafficLine,
|
NpmTrafficLine,
|
||||||
LinkBlock,
|
LinkBlock,
|
||||||
LinkTrafficSankey,
|
LinkTrafficSankey,
|
||||||
LinkTrafficLine
|
LinkTrafficLine,
|
||||||
|
DnsActiveMaliciousDomain,
|
||||||
|
DnsEventChart,
|
||||||
|
DnsRecentEvents,
|
||||||
|
DnsTrafficLine
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
chart: Object,
|
chart: Object,
|
||||||
|
|||||||
@@ -24,5 +24,11 @@ export const typeMapping = {
|
|||||||
linkBlock: 707,
|
linkBlock: 707,
|
||||||
linkTrafficSankey: 708,
|
linkTrafficSankey: 708,
|
||||||
linkTrafficLine: 710
|
linkTrafficLine: 710
|
||||||
|
},
|
||||||
|
dnsInsight: {
|
||||||
|
dnsTrafficLine: 704,
|
||||||
|
dnsEventChart: 711,
|
||||||
|
dnsRecentEvents: 605,
|
||||||
|
dnsActiveMaliciousDomain: 604
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
呵呵
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DnsActiveMaliciousDomain'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
9
src/views/charts2/charts/dnsInsight/DnsEventChart.vue
Normal file
9
src/views/charts2/charts/dnsInsight/DnsEventChart.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
呵呵
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DnsEventChart'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
9
src/views/charts2/charts/dnsInsight/DnsRecentEvents.vue
Normal file
9
src/views/charts2/charts/dnsInsight/DnsRecentEvents.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
呵呵
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DnsRecentEvents'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
9
src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue
Normal file
9
src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
呵呵
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DnsTrafficLine'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user