From 38596766533c9e7b6f0f8a8c89d22121377d54e5 Mon Sep 17 00:00:00 2001 From: penginn-net <121443048+penginn-net@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:37:17 +0900 Subject: [PATCH 1/3] 317 --- locales/index.d.ts | 8 ++++++++ locales/ja-JP.yml | 2 ++ packages/frontend/src/pages/about.vue | 8 ++++++++ packages/frontend/src/pages/admin/official-tags.vue | 2 +- packages/frontend/src/pages/official-tags.vue | 8 +++++++- packages/frontend/src/ui/_common_/common.ts | 5 +++++ 6 files changed, 31 insertions(+), 2 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 530215acac..51408f1cbb 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5588,6 +5588,14 @@ export interface Locale extends ILocale { * 優先度の値が小さいものが上に表示されます */ "adminTopInfo": string; + /** + * タグ名 + */ + "adminTagName": string; + /** + * 公式タグはありません + */ + "noTag": string; }; /** * マスコット画像のリンク diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index cbe7ff4bfa..f9d4fc3b6b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1393,6 +1393,8 @@ _official_tag: title: "公式タグ" navbar: "公式タグ" adminTopInfo: "優先度の値が小さいものが上に表示されます" + adminTagName: "タグ名" + noTag: "公式タグはありません" mascotImageUrl: "マスコット画像のリンク" _checkR18: title: "成人指定のメディアです" diff --git a/packages/frontend/src/pages/about.vue b/packages/frontend/src/pages/about.vue index acf99b863f..d9caa06f76 100644 --- a/packages/frontend/src/pages/about.vue +++ b/packages/frontend/src/pages/about.vue @@ -19,6 +19,9 @@ SPDX-License-Identifier: AGPL-3.0-only + + + @@ -34,6 +37,7 @@ const XOverview = defineAsyncComponent(() => import('@/pages/about.overview.vue' const XEmojis = defineAsyncComponent(() => import('@/pages/about.emojis.vue')); const XFederation = defineAsyncComponent(() => import('@/pages/about.federation.vue')); const MkInstanceStats = defineAsyncComponent(() => import('@/components/MkInstanceStats.vue')); +const XOfficialTag = defineAsyncComponent(() => import('@/pages/official-tags.vue')); const props = withDefaults(defineProps<{ initialTab?: string; @@ -66,6 +70,10 @@ const headerTabs = computed(() => [{ key: 'charts', title: i18n.ts.charts, icon: 'ti ti-chart-line', +}, { + key: 'officialTags', + title: i18n.ts._official_tag.title, + icon: 'ti ti-bookmarks', }]); definePageMetadata(() => ({ diff --git a/packages/frontend/src/pages/admin/official-tags.vue b/packages/frontend/src/pages/admin/official-tags.vue index f55b62d3cd..6fe5d6b654 100644 --- a/packages/frontend/src/pages/admin/official-tags.vue +++ b/packages/frontend/src/pages/admin/official-tags.vue @@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only - + diff --git a/packages/frontend/src/pages/official-tags.vue b/packages/frontend/src/pages/official-tags.vue index d4cd7b8b6f..a811cfe984 100644 --- a/packages/frontend/src/pages/official-tags.vue +++ b/packages/frontend/src/pages/official-tags.vue @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only