From b30ebc12f8959f9937060313aae485b532b8d190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sun, 8 Jan 2023 15:49:32 +0800 Subject: [PATCH] refactor: generic components (#868) Co-authored-by: Anthony Fu --- components/common/CommonAlert.vue | 2 +- components/common/CommonPaginator.vue | 25 ++++--- components/modal/ModalMediaPreview.vue | 6 +- components/nav/NavFooter.vue | 2 +- ...ficationSubscribePushNotificationError.vue | 2 +- components/publish/PublishWidget.vue | 4 +- components/status/StatusCard.vue | 2 +- components/status/StatusReplyingTo.vue | 4 +- components/status/StatusSpoiler.vue | 2 +- components/timeline/TimelinePaginator.vue | 2 +- nuxt.config.ts | 4 ++ package.json | 2 +- pnpm-lock.yaml | 67 +++++++++---------- 13 files changed, 63 insertions(+), 61 deletions(-) diff --git a/components/common/CommonAlert.vue b/components/common/CommonAlert.vue index dabf780d..f784ce87 100644 --- a/components/common/CommonAlert.vue +++ b/components/common/CommonAlert.vue @@ -20,7 +20,7 @@ function close() {
- diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index 00e50d7c..fcb10b9a 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -1,4 +1,4 @@ - @@ -62,7 +67,7 @@ const { items, prevItems, update, state, endAnchor, error } = usePaginator(pagin diff --git a/components/modal/ModalMediaPreview.vue b/components/modal/ModalMediaPreview.vue index 9f3f8621..2faaa135 100644 --- a/components/modal/ModalMediaPreview.vue +++ b/components/modal/ModalMediaPreview.vue @@ -40,14 +40,14 @@ onUnmounted(() => locked.value = false)
diff --git a/components/nav/NavFooter.vue b/components/nav/NavFooter.vue index 7a9a416e..a20eaac3 100644 --- a/components/nav/NavFooter.vue +++ b/components/nav/NavFooter.vue @@ -16,7 +16,7 @@ function toggleDark() {