|
|
@ -133,6 +133,23 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="shadow-box table-shadow-box">
|
|
|
|
<div class="shadow-box table-shadow-box">
|
|
|
|
|
|
|
|
<div class="dropdown dropdown-clear-data">
|
|
|
|
|
|
|
|
<button class="btn btn-sm btn-outline-danger dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
|
|
|
|
|
|
|
<font-awesome-icon icon="trash" /> {{ $t("Clear Data") }}
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<button type="button" class="dropdown-item" @click="clearEventsDialog">
|
|
|
|
|
|
|
|
{{ $t("Events") }}
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<button type="button" class="dropdown-item" @click="clearHeartbeatsDialog">
|
|
|
|
|
|
|
|
{{ $t("Heartbeats") }}
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<table class="table table-borderless table-hover">
|
|
|
|
<table class="table table-borderless table-hover">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -172,6 +189,14 @@
|
|
|
|
<Confirm ref="confirmDelete" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="deleteMonitor">
|
|
|
|
<Confirm ref="confirmDelete" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="deleteMonitor">
|
|
|
|
{{ $t("deleteMonitorMsg") }}
|
|
|
|
{{ $t("deleteMonitorMsg") }}
|
|
|
|
</Confirm>
|
|
|
|
</Confirm>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Confirm ref="confirmClearEvents" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="clearEvents">
|
|
|
|
|
|
|
|
{{ $t("clearEventsMsg") }}
|
|
|
|
|
|
|
|
</Confirm>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Confirm ref="confirmClearHeartbeats" btn-style="btn-danger" :yes-text="$t('Yes')" :no-text="$t('No')" @yes="clearHeartbeats">
|
|
|
|
|
|
|
|
{{ $t("clearHeartbeatsMsg") }}
|
|
|
|
|
|
|
|
</Confirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</transition>
|
|
|
|
</transition>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -313,6 +338,14 @@ export default {
|
|
|
|
this.$refs.confirmDelete.show();
|
|
|
|
this.$refs.confirmDelete.show();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clearEventsDialog() {
|
|
|
|
|
|
|
|
this.$refs.confirmClearEvents.show();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clearHeartbeatsDialog() {
|
|
|
|
|
|
|
|
this.$refs.confirmClearHeartbeats.show();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
deleteMonitor() {
|
|
|
|
deleteMonitor() {
|
|
|
|
this.$root.deleteMonitor(this.monitor.id, (res) => {
|
|
|
|
this.$root.deleteMonitor(this.monitor.id, (res) => {
|
|
|
|
if (res.ok) {
|
|
|
|
if (res.ok) {
|
|
|
@ -324,6 +357,27 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clearEvents() {
|
|
|
|
|
|
|
|
this.$root.clearEvents(this.monitor.id, (res) => {
|
|
|
|
|
|
|
|
if (res.ok) {
|
|
|
|
|
|
|
|
toast.success(res.msg);
|
|
|
|
|
|
|
|
this.$router.go();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
toast.error(res.msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clearHeartbeats() {
|
|
|
|
|
|
|
|
this.$root.clearHeartbeats(this.monitor.id, (res) => {
|
|
|
|
|
|
|
|
if (res.ok) {
|
|
|
|
|
|
|
|
toast.success(res.msg);
|
|
|
|
|
|
|
|
this.$router.go();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
toast.error(res.msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
@ -340,16 +394,20 @@ export default {
|
|
|
|
@media (max-width: 550px) {
|
|
|
|
@media (max-width: 550px) {
|
|
|
|
.functions {
|
|
|
|
.functions {
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button, a {
|
|
|
|
button, a {
|
|
|
|
margin-left: 10px !important;
|
|
|
|
margin-left: 10px !important;
|
|
|
|
margin-right: 10px !important;
|
|
|
|
margin-right: 10px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ping-chart-wrapper {
|
|
|
|
.ping-chart-wrapper {
|
|
|
|
padding: 10px !important;
|
|
|
|
padding: 10px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-clear-data {
|
|
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 400px) {
|
|
|
|
@media (max-width: 400px) {
|
|
|
@ -364,6 +422,13 @@ export default {
|
|
|
|
padding-left: 25px;
|
|
|
|
padding-left: 25px;
|
|
|
|
padding-right: 25px;
|
|
|
|
padding-right: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-clear-data {
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
padding-top: 4px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.url {
|
|
|
|
.url {
|
|
|
@ -417,9 +482,29 @@ table {
|
|
|
|
color: black;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-clear-data {
|
|
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dark {
|
|
|
|
.dark {
|
|
|
|
.keyword {
|
|
|
|
.keyword {
|
|
|
|
color: $dark-font-color;
|
|
|
|
color: $dark-font-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dropdown-clear-data {
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
|
|
|
background-color: $dark-bg;
|
|
|
|
|
|
|
|
border-color: $dark-bg2;
|
|
|
|
|
|
|
|
border-width: 2px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
li button{
|
|
|
|
|
|
|
|
color: $dark-font-color;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
li button:hover {
|
|
|
|
|
|
|
|
background-color: $dark-bg2;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|