From ca38bce4e570b06e965e19dba29ea1e23a638961 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 14 Dec 2024 19:10:41 +0900 Subject: [PATCH] GalleryFromPosts -> Files --- locales/index.d.ts | 4 ---- locales/ja-JP.yml | 1 - .../src/pages/user/{post-gallery.vue => files.vue} | 0 packages/frontend/src/pages/user/index.vue | 12 ++++++------ 4 files changed, 6 insertions(+), 11 deletions(-) rename packages/frontend/src/pages/user/{post-gallery.vue => files.vue} (100%) diff --git a/locales/index.d.ts b/locales/index.d.ts index 92c2fd2b72..0ae188f1f7 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -3470,10 +3470,6 @@ export interface Locale extends ILocale { * ギャラリー */ "gallery": string; - /** - * メディア - */ - "galleryFromPosts": string; /** * 最近の投稿 */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 09320c95c2..1b59708d85 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -863,7 +863,6 @@ configure: "設定する" postToGallery: "ギャラリーへ投稿" postToHashtag: "このハッシュタグで投稿" gallery: "ギャラリー" -galleryFromPosts: "メディア" recentPosts: "最近の投稿" popularPosts: "人気の投稿" shareWithNote: "ノートで共有" diff --git a/packages/frontend/src/pages/user/post-gallery.vue b/packages/frontend/src/pages/user/files.vue similarity index 100% rename from packages/frontend/src/pages/user/post-gallery.vue rename to packages/frontend/src/pages/user/files.vue diff --git a/packages/frontend/src/pages/user/index.vue b/packages/frontend/src/pages/user/index.vue index b9ce5ecdba..cf46c71b0b 100644 --- a/packages/frontend/src/pages/user/index.vue +++ b/packages/frontend/src/pages/user/index.vue @@ -13,6 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only <MkSpacer v-else-if="tab === 'notes'" key="notes" :contentMax="800" style="padding-top: 0"> <XTimeline :user="user"/> </MkSpacer> + <XFiles v-else-if="tab === 'files'" :user="user"/> <XActivity v-else-if="tab === 'activity'" key="activity" :user="user"/> <XAchievements v-else-if="tab === 'achievements'" key="achievements" :user="user"/> <XReactions v-else-if="tab === 'reactions'" key="reactions" :user="user"/> @@ -21,7 +22,6 @@ SPDX-License-Identifier: AGPL-3.0-only <XPages v-else-if="tab === 'pages'" key="pages" :user="user"/> <XFlashs v-else-if="tab === 'flashs'" key="flashs" :user="user"/> <XGallery v-else-if="tab === 'gallery'" key="gallery" :user="user"/> - <XGalleryFromPosts v-else-if="tab === 'galleryFromPosts'" :user="user"/> <XRaw v-else-if="tab === 'raw'" key="raw" :user="user"/> </MkHorizontalSwipe> </div> @@ -44,6 +44,7 @@ import { getServerContext } from '@/server-context.js'; const XHome = defineAsyncComponent(() => import('./home.vue')); const XTimeline = defineAsyncComponent(() => import('./index.timeline.vue')); +const XFiles = defineAsyncComponent(() => import('./files.vue')); const XActivity = defineAsyncComponent(() => import('./activity.vue')); const XAchievements = defineAsyncComponent(() => import('./achievements.vue')); const XReactions = defineAsyncComponent(() => import('./reactions.vue')); @@ -52,7 +53,6 @@ const XLists = defineAsyncComponent(() => import('./lists.vue')); const XPages = defineAsyncComponent(() => import('./pages.vue')); const XFlashs = defineAsyncComponent(() => import('./flashs.vue')); const XGallery = defineAsyncComponent(() => import('./gallery.vue')); -const XGalleryFromPosts = defineAsyncComponent(() => import('./post-gallery.vue')); const XRaw = defineAsyncComponent(() => import('./raw.vue')); const CTX_USER = getServerContext('user'); @@ -104,6 +104,10 @@ const headerTabs = computed(() => user.value ? [{ key: 'notes', title: i18n.ts.notes, icon: 'ti ti-pencil', +}, { + key: 'file', + title: i18n.ts.files, + icon: 'ti ti-photo', }, { key: 'activity', title: i18n.ts.activity, @@ -136,10 +140,6 @@ const headerTabs = computed(() => user.value ? [{ key: 'gallery', title: i18n.ts.gallery, icon: 'ti ti-icons', -}, { - key: 'galleryFromPosts', - title: i18n.ts.galleryFromPosts, - icon: 'ti ti-icons', }, { key: 'raw', title: 'Raw',