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)
-
diff --git a/modules/setup-components.ts b/modules/setup-components.ts
new file mode 100644
index 00000000..4c4d4380
--- /dev/null
+++ b/modules/setup-components.ts
@@ -0,0 +1,16 @@
+import { defineNuxtModule, useNuxt } from '@nuxt/kit'
+
+export default defineNuxtModule({
+ meta: {
+ name: 'setup-components',
+ },
+ setup() {
+ const nuxt = useNuxt()
+ nuxt.hook('components:extend', (components) => {
+ for (const component of components) {
+ component.pascalName = component.pascalName.replace(/Setup$/, '')
+ component.kebabName = component.kebabName.replace(/-setup$/, '')
+ }
+ })
+ },
+})
diff --git a/nuxt.config.ts b/nuxt.config.ts
index f376d9e8..6e35f92b 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -6,6 +6,7 @@ export default defineNuxtConfig({
'@pinia/nuxt',
'@vue-macros/nuxt',
'~/modules/purge-comments',
+ '~/modules/setup-components',
],
experimental: {
reactivityTransform: true,