1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-16 10:29:33 +02:00
uptime-kuma/src/pages/Dashboard.vue

38 lines
915 B
Vue
Raw Normal View History

2021-06-25 15:55:49 +02:00
<template>
<div class="container-fluid">
<div class="row">
<div v-if="! $root.isMobile" class="col-12 col-md-5 col-xl-4">
<div>
<router-link to="/add" class="btn btn-primary mb-3"><font-awesome-icon icon="plus" /> {{ $t("Add New Monitor") }}</router-link>
2021-06-25 15:55:49 +02:00
</div>
2021-09-01 19:56:02 +02:00
<MonitorList :scrollbar="true" />
2021-06-25 15:55:49 +02:00
</div>
2021-08-29 20:22:49 +02:00
<div class="col-12 col-md-7 col-xl-8 mb-3">
<!-- Add :key to disable vue router re-use the same component -->
<router-view :key="$route.fullPath" />
2021-06-25 15:55:49 +02:00
</div>
</div>
</div>
</template>
<script>
import MonitorList from "../components/MonitorList.vue";
2021-06-27 10:10:55 +02:00
2021-06-25 15:55:49 +02:00
export default {
components: {
MonitorList,
2021-06-25 15:55:49 +02:00
},
data() {
2021-07-27 19:47:13 +02:00
return {}
2021-06-25 15:55:49 +02:00
},
}
</script>
<style lang="scss" scoped>
2021-06-25 15:55:49 +02:00
.container-fluid {
2021-08-24 17:38:25 +02:00
width: 98%;
2021-06-25 15:55:49 +02:00
}
</style>