|
@ -2,6 +2,9 @@ |
|
|
<transition name="slide-fade" appear> |
|
|
<transition name="slide-fade" appear> |
|
|
<div v-if="monitor"> |
|
|
<div v-if="monitor"> |
|
|
<h1> {{ monitor.name }}</h1> |
|
|
<h1> {{ monitor.name }}</h1> |
|
|
|
|
|
<div class="tags"> |
|
|
|
|
|
<Tag v-for="tag in monitor.tags" :key="tag.id" :item="tag" :size="'sm'" /> |
|
|
|
|
|
</div> |
|
|
<p class="url"> |
|
|
<p class="url"> |
|
|
<a v-if="monitor.type === 'http' || monitor.type === 'keyword' " :href="monitor.url" target="_blank">{{ monitor.url }}</a> |
|
|
<a v-if="monitor.type === 'http' || monitor.type === 'keyword' " :href="monitor.url" target="_blank">{{ monitor.url }}</a> |
|
|
<span v-if="monitor.type === 'port'">TCP Ping {{ monitor.hostname }}:{{ monitor.port }}</span> |
|
|
<span v-if="monitor.type === 'port'">TCP Ping {{ monitor.hostname }}:{{ monitor.port }}</span> |
|
@ -188,6 +191,7 @@ import CountUp from "../components/CountUp.vue"; |
|
|
import Uptime from "../components/Uptime.vue"; |
|
|
import Uptime from "../components/Uptime.vue"; |
|
|
import Pagination from "v-pagination-3"; |
|
|
import Pagination from "v-pagination-3"; |
|
|
const PingChart = defineAsyncComponent(() => import("../components/PingChart.vue")); |
|
|
const PingChart = defineAsyncComponent(() => import("../components/PingChart.vue")); |
|
|
|
|
|
import Tag from "../components/Tag.vue"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
@ -199,6 +203,7 @@ export default { |
|
|
Status, |
|
|
Status, |
|
|
Pagination, |
|
|
Pagination, |
|
|
PingChart, |
|
|
PingChart, |
|
|
|
|
|
Tag, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -423,4 +428,12 @@ table { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tags { |
|
|
|
|
|
margin-bottom: 0.5rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tags > div:first-child { |
|
|
|
|
|
margin-left: 0 !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|