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