From 5242cbb3c6d2d40091d7a27ca972777ad90fb3ff Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Tue, 5 May 2026 17:10:07 +0800 Subject: [PATCH] fix: lint --- .../connection/ConnectionErrorIndicator.vue | 99 +++++++++---------- src/components/ui/popover/Popover.vue | 16 ++- src/components/ui/popover/PopoverAnchor.vue | 11 +-- src/components/ui/popover/PopoverContent.vue | 33 +++---- .../ui/popover/PopoverDescription.vue | 13 +-- src/components/ui/popover/PopoverHeader.vue | 13 +-- src/components/ui/popover/PopoverTitle.vue | 13 +-- src/components/ui/popover/PopoverTrigger.vue | 11 +-- src/components/ui/popover/index.ts | 14 +-- 9 files changed, 93 insertions(+), 130 deletions(-) diff --git a/src/components/connection/ConnectionErrorIndicator.vue b/src/components/connection/ConnectionErrorIndicator.vue index a4ae872896..523b7e8491 100644 --- a/src/components/connection/ConnectionErrorIndicator.vue +++ b/src/components/connection/ConnectionErrorIndicator.vue @@ -2,73 +2,62 @@ import { computed } from "vue"; import { useI18n } from "vue-i18n"; import { AlertTriangle, X } from "lucide-vue-next"; -import { - Popover, - PopoverContent, - PopoverTrigger, -} from "@/components/ui/popover"; +import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { useConnectionStore } from "@/stores/connectionStore"; const props = withDefaults( - defineProps<{ - connectionId?: string | null; - triggerClass?: string; - }>(), - { - connectionId: null, - triggerClass: "", - }, + defineProps<{ + connectionId?: string | null; + triggerClass?: string; + }>(), + { + connectionId: null, + triggerClass: "", + }, ); const { t } = useI18n(); const connectionStore = useConnectionStore(); -const errorMessage = computed(() => - props.connectionId - ? connectionStore.connectionErrors[props.connectionId] - : "", -); +const errorMessage = computed(() => (props.connectionId ? connectionStore.connectionErrors[props.connectionId] : "")); function clearError() { - if (props.connectionId) - connectionStore.clearConnectionError(props.connectionId); + if (props.connectionId) connectionStore.clearConnectionError(props.connectionId); } diff --git a/src/components/ui/popover/Popover.vue b/src/components/ui/popover/Popover.vue index a3fe9ac64b..e43a385bd0 100644 --- a/src/components/ui/popover/Popover.vue +++ b/src/components/ui/popover/Popover.vue @@ -1,19 +1,15 @@ diff --git a/src/components/ui/popover/PopoverAnchor.vue b/src/components/ui/popover/PopoverAnchor.vue index e96a121141..44a4296583 100644 --- a/src/components/ui/popover/PopoverAnchor.vue +++ b/src/components/ui/popover/PopoverAnchor.vue @@ -1,15 +1,12 @@ diff --git a/src/components/ui/popover/PopoverContent.vue b/src/components/ui/popover/PopoverContent.vue index b5fccb4503..7304b6b070 100644 --- a/src/components/ui/popover/PopoverContent.vue +++ b/src/components/ui/popover/PopoverContent.vue @@ -1,30 +1,23 @@