hassio-nextcloud-backup/nextcloud_backup/frontend/src/App.vue

42 lines
1.4 KiB
Vue
Raw Normal View History

2022-10-11 14:10:25 +02:00
<template>
<v-app>
<navbar-component></navbar-component>
2022-10-26 12:06:29 +02:00
<message-bar></message-bar>
<webdav-config-menu @saved="cloudList?.refreshBackup"></webdav-config-menu>
2023-02-05 18:58:58 +01:00
<backup-config-menu></backup-config-menu>
<alert-manager></alert-manager>
<v-main class="mx-xl-16 mx-lg-10 mx-2">
<StatusBar @state-updated="refreshLists"></StatusBar>
2024-04-18 13:42:49 +02:00
<v-row>
<v-col cols="12" lg="6">
<ha-list ref="haList"></ha-list>
2024-04-18 13:42:49 +02:00
</v-col>
<v-col cols="12" lg="6">
<cloud-list ref="cloudList"></cloud-list>
2022-10-26 15:34:45 +02:00
</v-col>
</v-row>
</v-main>
</v-app>
2022-10-11 14:10:25 +02:00
</template>
<script setup lang="ts">
import { ref } from "vue";
2023-02-05 18:58:58 +01:00
import AlertManager from "./components/AlertManager.vue";
2022-10-26 15:34:45 +02:00
import CloudList from "./components/cloud/CloudList.vue";
import HaList from "./components/homeAssistant/HaList.vue";
2023-02-05 18:58:58 +01:00
import MessageBar from "./components/MessageBar.vue";
import NavbarComponent from "./components/NavbarComponent.vue";
2023-01-13 16:18:27 +01:00
import BackupConfigMenu from "./components/settings/BackupConfigMenu.vue";
import WebdavConfigMenu from "./components/settings/WebdavConfigMenu.vue";
import StatusBar from "./components/statusBar/StatusBar.vue";
const cloudList = ref<InstanceType<typeof CloudList> | null>(null);
const haList = ref<InstanceType<typeof HaList> | null>(null);
function refreshLists() {
cloudList.value?.refreshBackup();
haList.value?.refreshBackup();
}
</script>
2022-10-11 14:10:25 +02:00
<style scoped></style>