-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(traffic): moving instant traffic to another section
- Loading branch information
Showing
7 changed files
with
134 additions
and
107 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/components/standalone/monitoring/InstantTrafficMonitor.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script lang="ts" setup> | ||
import InstantHostTrafficCard from '@/components/standalone/monitoring/traffic/InstantHostTrafficCard.vue' | ||
import { useTopTalkers } from '@/composables/useTopTalkers' | ||
import InstantProtocolTrafficCard from '@/components/standalone/monitoring/traffic/InstantProtocolTrafficCard.vue' | ||
import InstantAppTrafficCard from '@/components/standalone/monitoring/traffic/InstantAppTrafficCard.vue' | ||
import { NeInlineNotification, NeSkeleton } from '@nethesis/vue-components' | ||
const { | ||
topApps, | ||
topProtocols, | ||
topHosts, | ||
loadingTopTalkers, | ||
errorTopTalkers, | ||
errorTopTalkersDescription | ||
} = useTopTalkers() | ||
</script> | ||
|
||
<template> | ||
<NeSkeleton v-if="loadingTopTalkers" :lines="10" size="lg" /> | ||
<NeInlineNotification | ||
v-else-if="errorTopTalkers" | ||
:description="errorTopTalkersDescription" | ||
:title="errorTopTalkers" | ||
kind="error" | ||
/> | ||
<div v-else class="grid grid-cols-1 gap-6 xl:grid-cols-2 4xl:grid-cols-3"> | ||
<InstantHostTrafficCard :topHosts="topHosts" /> | ||
<!-- instant apps traffic --> | ||
<InstantAppTrafficCard :topApps="topApps" /> | ||
<!-- instant protocols traffic --> | ||
<InstantProtocolTrafficCard :topProtocols="topProtocols" /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.