From 3961323cca20651b901ec7737f20ebc9af97dc69 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Sun, 13 Apr 2025 22:10:28 -0400 Subject: [PATCH] fix: more eslint issues --- server/components/CarouselPagination.vue | 8 +++---- server/components/CreateCollectionModal.vue | 2 +- server/components/{Logo.vue => DropLogo.vue} | 12 +++++----- .../{Wordmark.vue => DropWordmark.vue} | 0 server/components/GameSearchResultWidget.vue | 4 ++-- server/components/LibraryDirectory.vue | 13 ++++++----- server/components/NewsArticleCreateButton.vue | 21 +++++++++-------- server/components/NewsDirectory.vue | 23 +++++++++++-------- ...{Notification.vue => NotificationItem.vue} | 0 server/components/UploadFileDialog.vue | 9 ++++---- server/components/UserHeader/UserWidget.vue | 10 +++----- server/composables/collection.ts | 8 ++++--- server/composables/news.ts | 2 +- server/composables/request.ts | 7 +++--- server/pages/auth/signin.vue | 10 ++++---- server/pages/auth/signout.vue | 4 ++-- server/pages/store/[id]/index.vue | 2 +- .../api/v1/client/user/webtoken.post.ts | 2 +- 18 files changed, 71 insertions(+), 66 deletions(-) rename server/components/{Logo.vue => DropLogo.vue} (98%) rename server/components/{Wordmark.vue => DropWordmark.vue} (100%) rename server/components/{Notification.vue => NotificationItem.vue} (100%) diff --git a/server/components/CarouselPagination.vue b/server/components/CarouselPagination.vue index 82ce7cf6..61be4b90 100644 --- a/server/components/CarouselPagination.vue +++ b/server/components/CarouselPagination.vue @@ -18,8 +18,8 @@ const carousel = inject(injectCarousel)!; const amount = carousel.maxSlide - carousel.minSlide + 1; -function slideTo(index: number) { - const offsetIndex = index + carousel.minSlide; - carousel.nav.slideTo(offsetIndex); -} +// function slideTo(index: number) { +// const offsetIndex = index + carousel.minSlide; +// carousel.nav.slideTo(offsetIndex); +// } diff --git a/server/components/CreateCollectionModal.vue b/server/components/CreateCollectionModal.vue index 1410b4b8..64554758 100644 --- a/server/components/CreateCollectionModal.vue +++ b/server/components/CreateCollectionModal.vue @@ -58,7 +58,7 @@ const emit = defineEmits<{ created: [collectionId: string]; }>(); -const open: Ref = defineModel(); +const open = defineModel({ required: true }); const collectionName = ref(""); const createCollectionLoading = ref(false); diff --git a/server/components/Logo.vue b/server/components/DropLogo.vue similarity index 98% rename from server/components/Logo.vue rename to server/components/DropLogo.vue index 6105fd17..d7760057 100644 --- a/server/components/Logo.vue +++ b/server/components/DropLogo.vue @@ -1,7 +1,7 @@ - @@ -121,7 +121,7 @@