From bf3914d59bce508cf1b44500696316d37ee42754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=AA=E3=82=B9=E3=82=AB=E3=83=BC=E3=80=81?= Date: Tue, 26 Nov 2024 21:51:28 +0900 Subject: [PATCH] enhance(about): refactor about page --- packages/frontend/src/pages/about.vue | 42 +++++++++------------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/packages/frontend/src/pages/about.vue b/packages/frontend/src/pages/about.vue index 37a57b7e8..112de1849 100644 --- a/packages/frontend/src/pages/about.vue +++ b/packages/frontend/src/pages/about.vue @@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
{{ instance.name ?? host }} @@ -22,6 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only + @@ -87,6 +88,7 @@ SPDX-License-Identifier: AGPL-3.0-only
    +
@@ -102,13 +104,11 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.support }} -
@@ -132,24 +132,16 @@ SPDX-License-Identifier: AGPL-3.0-only
- - Profile image of @oscar@oscar.surf - @oscar - - オスカー。 - - - - - Profile image of @oscar@oscar.surf - @ion + + + @{{ user.username }} オスカー。 - + {{ `@${$i.username}` }} {{ i18n.ts.thankYou }} @@ -182,11 +174,6 @@ SPDX-License-Identifier: AGPL-3.0-only - @@ -198,7 +185,6 @@ SPDX-License-Identifier: AGPL-3.0-only import { computed, watch, ref } from 'vue'; import * as Misskey from 'misskey-js'; import XEmojis from './about.emojis.vue'; -// import XFederation from './about.federation.vue'; import { version, host } from '@/config.js'; import FormLink from '@/components/form/link.vue'; import FormSection from '@/components/form/section.vue'; @@ -227,6 +213,10 @@ const props = withDefaults(defineProps<{ const stats = ref(null); const tab = ref(props.initialTab); +const staffs = ref([]); +const staffIds = ['9ua5ndrtx7', '9urvwtlwo6']; + +staffs.value = await misskeyApi('users/show', { userIds: staffIds }); watch(tab, () => { if (tab.value === 'charts') { @@ -248,11 +238,7 @@ const headerTabs = computed(() => [{ key: 'emojis', title: i18n.ts.customEmojis, icon: 'ti ti-icons', -}, /* { - key: 'federation', - title: i18n.ts.federation, - icon: 'ti ti-whirl', -}, */ { +}, { key: 'charts', title: i18n.ts.charts, icon: 'ti ti-chart-line',