From f165eebed38d34ab669719ddae933058befce3bd Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 25 Nov 2022 16:08:30 +0000 Subject: [PATCH] refactor: drop `Setup` suffix for setup components --- components/account/AccountHeader.vue | 6 +++--- components/account/AccountHoverCard.vue | 2 +- components/account/AccountInfo.vue | 2 +- components/account/AccountInlineInfo.vue | 2 +- components/account/AccountLink.vue | 2 +- components/status/StatusAccountDetails.vue | 2 +- components/status/StatusBody.vue | 2 +- modules/setup-components.ts | 16 ++++++++++++++++ nuxt.config.ts | 1 + 9 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 modules/setup-components.ts diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index 65fd38bf..ffbcfb0f 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -57,7 +57,7 @@ function getFieldNameIcon(fieldName: string) {
- +

{{ getAccountHandle(account) }}

@@ -74,7 +74,7 @@ function getFieldNameIcon(fieldName: string) {
- +
@@ -82,7 +82,7 @@ function getFieldNameIcon(fieldName: string) {
{{ field.name }} |
- +
diff --git a/components/account/AccountHoverCard.vue b/components/account/AccountHoverCard.vue index c2738eee..e05cb5f2 100644 --- a/components/account/AccountHoverCard.vue +++ b/components/account/AccountHoverCard.vue @@ -22,6 +22,6 @@ defineProps<{ {{ account.followersCount }} Followers
- + diff --git a/components/account/AccountInfo.vue b/components/account/AccountInfo.vue index 9648bec6..ed0c5e66 100644 --- a/components/account/AccountInfo.vue +++ b/components/account/AccountInfo.vue @@ -19,7 +19,7 @@ const accountHandle = $(useAccountHandle(account, fullServer)) - +

{{ accountHandle }}

diff --git a/components/account/AccountInlineInfo.vue b/components/account/AccountInlineInfo.vue index f4957b11..7a2358b0 100644 --- a/components/account/AccountInlineInfo.vue +++ b/components/account/AccountInlineInfo.vue @@ -10,6 +10,6 @@ const { link = true } = defineProps<{ diff --git a/components/account/AccountLink.vue b/components/account/AccountLink.vue index 05be6506..d425b2f5 100644 --- a/components/account/AccountLink.vue +++ b/components/account/AccountLink.vue @@ -8,6 +8,6 @@ defineProps<{ diff --git a/components/status/StatusAccountDetails.vue b/components/status/StatusAccountDetails.vue index fc54d6a3..9abdb53f 100644 --- a/components/status/StatusAccountDetails.vue +++ b/components/status/StatusAccountDetails.vue @@ -14,7 +14,7 @@ const accountHandle = $(useAccountHandle(account)) :to="link ? getAccountPath(account) : undefined" flex="~ col" min-w-0 md:flex="~ row gap-2" md:items-center > - +

{{ accountHandle }}

diff --git a/components/status/StatusBody.vue b/components/status/StatusBody.vue index 9711fa31..0a54c8b8 100644 --- a/components/status/StatusBody.vue +++ b/components/status/StatusBody.vue @@ -9,7 +9,7 @@ const { translation } = useTranslation(status)