From 0b5d5babc4827a9e1eff30a7c6a25c65159dbc69 Mon Sep 17 00:00:00 2001 From: SebClem Date: Wed, 14 Aug 2024 11:14:19 +0200 Subject: [PATCH] Fix all ts errors --- nextcloud_backup/frontend/auto-imports.d.ts | 62 ------------------- .../frontend/src/components/MessageBar.vue | 3 +- .../src/components/cloud/CloudList.vue | 2 +- .../src/components/cloud/CloudListItem.vue | 3 +- .../homeAssistant/HaDeleteDialog.vue | 1 - .../src/components/homeAssistant/HaList.vue | 2 +- .../homeAssistant/HaListItemContent.vue | 2 +- .../src/components/statusBar/StatusBar.vue | 3 +- .../frontend/src/composable/ConfigForm.ts | 2 +- .../frontend/src/composable/menuSize.ts | 2 +- .../frontend/src/services/statusService.ts | 1 - nextcloud_backup/frontend/src/types/status.ts | 1 - 12 files changed, 8 insertions(+), 76 deletions(-) diff --git a/nextcloud_backup/frontend/auto-imports.d.ts b/nextcloud_backup/frontend/auto-imports.d.ts index 7c9f508..e198150 100644 --- a/nextcloud_backup/frontend/auto-imports.d.ts +++ b/nextcloud_backup/frontend/auto-imports.d.ts @@ -133,65 +133,3 @@ declare module 'vue' { readonly watchSyncEffect: UnwrapRef } } -declare module '@vue/runtime-core' { - interface GlobalComponents {} - interface ComponentCustomProperties { - readonly EffectScope: UnwrapRef - readonly computed: UnwrapRef - readonly createApp: UnwrapRef - readonly customRef: UnwrapRef - readonly defineAsyncComponent: UnwrapRef - readonly defineComponent: UnwrapRef - readonly effectScope: UnwrapRef - readonly getCurrentInstance: UnwrapRef - readonly getCurrentScope: UnwrapRef - readonly h: UnwrapRef - readonly inject: UnwrapRef - readonly isProxy: UnwrapRef - readonly isReactive: UnwrapRef - readonly isReadonly: UnwrapRef - readonly isRef: UnwrapRef - readonly markRaw: UnwrapRef - readonly nextTick: UnwrapRef - readonly onActivated: UnwrapRef - readonly onBeforeMount: UnwrapRef - readonly onBeforeRouteLeave: UnwrapRef - readonly onBeforeRouteUpdate: UnwrapRef - readonly onBeforeUnmount: UnwrapRef - readonly onBeforeUpdate: UnwrapRef - readonly onDeactivated: UnwrapRef - readonly onErrorCaptured: UnwrapRef - readonly onMounted: UnwrapRef - readonly onRenderTracked: UnwrapRef - readonly onRenderTriggered: UnwrapRef - readonly onScopeDispose: UnwrapRef - readonly onServerPrefetch: UnwrapRef - readonly onUnmounted: UnwrapRef - readonly onUpdated: UnwrapRef - readonly provide: UnwrapRef - readonly reactive: UnwrapRef - readonly readonly: UnwrapRef - readonly ref: UnwrapRef - readonly resolveComponent: UnwrapRef - readonly shallowReactive: UnwrapRef - readonly shallowReadonly: UnwrapRef - readonly shallowRef: UnwrapRef - readonly toRaw: UnwrapRef - readonly toRef: UnwrapRef - readonly toRefs: UnwrapRef - readonly toValue: UnwrapRef - readonly triggerRef: UnwrapRef - readonly unref: UnwrapRef - readonly useAttrs: UnwrapRef - readonly useCssModule: UnwrapRef - readonly useCssVars: UnwrapRef - readonly useLink: UnwrapRef - readonly useRoute: UnwrapRef - readonly useRouter: UnwrapRef - readonly useSlots: UnwrapRef - readonly watch: UnwrapRef - readonly watchEffect: UnwrapRef - readonly watchPostEffect: UnwrapRef - readonly watchSyncEffect: UnwrapRef - } -} diff --git a/nextcloud_backup/frontend/src/components/MessageBar.vue b/nextcloud_backup/frontend/src/components/MessageBar.vue index 438401c..0ab020d 100644 --- a/nextcloud_backup/frontend/src/components/MessageBar.vue +++ b/nextcloud_backup/frontend/src/components/MessageBar.vue @@ -94,7 +94,7 @@ import { useMessageStore } from "@/store/message"; import { MessageType } from "@/types/messages"; import { DateTime } from "luxon"; import { storeToRefs } from "pinia"; -import { onBeforeUnmount, ref } from "vue"; +import { onBeforeUnmount } from "vue"; const messagesStore = useMessageStore(); const { messages } = storeToRefs(messagesStore); @@ -162,7 +162,6 @@ function getTimeDelta(time: string) { } as any); } } -const show = ref([]); refreshMessages(); function markReaded(id: string) { diff --git a/nextcloud_backup/frontend/src/components/cloud/CloudList.vue b/nextcloud_backup/frontend/src/components/cloud/CloudList.vue index 5191b4b..7814e2b 100644 --- a/nextcloud_backup/frontend/src/components/cloud/CloudList.vue +++ b/nextcloud_backup/frontend/src/components/cloud/CloudList.vue @@ -86,7 +86,7 @@