Skip to content

Commit

Permalink
FIX: peer network wired
Browse files Browse the repository at this point in the history
  • Loading branch information
mabasian committed Oct 3, 2024
1 parent 0b12cab commit 47d7d2b
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 287 deletions.
1 change: 1 addition & 0 deletions launcher/src/backend/Monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,7 @@ export class Monitoring {
details[clientType]["service"] = clt.service;
details[clientType]["client"] = clt.service.replace(/Beacon|Service/gi, "").toUpperCase();
details[clientType]["state"] = clt.state;
details[clientType]["serviceID"] = clt.config.serviceID;
opttyp = Object.keys(services).find((key) => services[key].hasOwnProperty(clt.service));
if (!opttyp) {
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<template>
<div class="p2pBarCont">
<div class="titleVal">
<span>{{ props.clientName }}</span>
</div>
<div class="p2pVal">
<div class="p2pVal_value" :style="{ width: props.clientVal + '%' }"></div>
</div>
<div class="valNo">
<span>{{ props.clientNum }}</span>
</div>
</div>
</template>

<script setup>
import { defineProps } from "vue";
const props = defineProps({
clientName: {
type: String,
required: true,
},
clientVal: {
type: Number,
required: true,
},
clientNum: {
type: Number,
required: true,
},
});
</script>

<style scoped>
.p2pBarCont {
width: 95%;
display: flex;
justify-content: space-around;
align-items: center;
height: 40%;
}
.titleVal {
display: flex;
justify-content: flex-start;
align-items: center;
width: 40%;
height: 100%;
font-size: 42%;
font-weight: 600;
color: #c1c1c1;
}
.p2pVal {
width: 60%;
height: 80%;
margin-right: 5px;
background: #33393e;
display: flex;
justify-content: flex-start;
align-items: center;
overflow: hidden;
border-radius: 5px;
box-shadow: 1px 1px 11px 1px #1f1f1f;
}
.p2pVal_value {
background: #568d50;
height: 98%;
}
.valNo {
display: flex;
justify-content: center;
align-items: center;
font-size: 65%;
font-weight: 800;
width: 12%;
height: 100%;
color: #c1c1c1;
}
</style>
Loading

0 comments on commit 47d7d2b

Please sign in to comment.