From abb79a0b3656d5953df12967f6ec3b97bfaf2eba Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 7 Oct 2023 10:40:08 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=A7=E3=83=8E=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=81=8B=E3=83=8F?= =?UTF-8?q?=E3=82=A4=E3=83=A9=E3=82=A4=E3=83=88=E3=82=92=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=8B=E6=B1=BA=E3=82=81=E3=82=89=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 2 + locales/ja-JP.yml | 2 + .../frontend/src/pages/settings/general.vue | 3 + packages/frontend/src/pages/user/home.vue | 1066 +++++++++-------- packages/frontend/src/store.ts | 4 + 5 files changed, 557 insertions(+), 520 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index ebc96ab652..db41865f66 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -543,6 +543,8 @@ export interface Locale { "deleteAll": string; "showFixedPostForm": string; "showFixedPostFormInChannel": string; + "FeaturedOrNote": string; + "FeaturedOrNoteInfo": string; "newNoteRecived": string; "sounds": string; "sound": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index f9afdb54a0..0c0179eaca 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -540,6 +540,8 @@ serverLogs: "サーバーログ" deleteAll: "全て削除" showFixedPostForm: "タイムライン上部に投稿フォームを表示する" showFixedPostFormInChannel: "タイムライン上部に投稿フォームを表示する(チャンネル)" +FeaturedOrNote: "ユーザーのページで最新のノートを表示する" +FeaturedOrNoteInfo: "ユーザーのページに行ったときにハイライトか最新のノートを表示するかを選択することができます。 オフでハイライト オンで最新のノート です" newNoteRecived: "新しいノートがあります" sounds: "サウンド" sound: "サウンド" diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index d9279d8bb8..ba2e226f17 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -30,6 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.showFixedPostForm }} {{ i18n.ts.showFixedPostFormInChannel }} {{ i18n.ts.showMediaTimeline}} + {{ i18n.ts.FeaturedOrNote}} @@ -286,6 +287,7 @@ const enableGamingMode = computed(defaultStore.makeGetterSetter('gamingMode')); const enableonlyAndWithSave = computed(defaultStore.makeGetterSetter('onlyAndWithSave')); const showMediaTimeline = computed(defaultStore.makeGetterSetter('showMediaTimeline')); const showVisibilityColor = computed(defaultStore.makeGetterSetter('showVisibilityColor')) +const FeaturedOrNote = computed(defaultStore.makeGetterSetter('FeaturedOrNote')) watch(lang, () => { miLocalStorage.setItem('lang', lang.value as string); miLocalStorage.removeItem('locale'); @@ -347,6 +349,7 @@ watch([ showMediaTimeline, showVisibilityColor, enableonlyAndWithSave, + FeaturedOrNote, ], async () => { await reloadAsk(); }); diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index 6a3687c85d..d9986ebd43 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -4,150 +4,168 @@ SPDX-License-Identifier: AGPL-3.0-only -->