From da502b6bb1f8d11f69aeafc5e395ba9f1ab26c13 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Wed, 5 Feb 2025 14:16:55 +0900 Subject: [PATCH 1/2] =?UTF-8?q?enhance(frontend):=20=E5=8F=A4=E3=81=84?= =?UTF-8?q?=E3=82=A2=E3=83=B3=E3=83=86=E3=83=8A=E3=83=BB=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E3=81=8C=E5=89=8A=E9=99=A4=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=8F=E3=81=93=E3=81=A8=E3=82=92=E6=98=8E=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 12 ++++++++++++ locales/ja-JP.yml | 3 +++ .../frontend/src/components/MkNotifications.vue | 2 +- packages/frontend/src/pages/antenna-timeline.vue | 12 ++++++++++++ packages/frontend/src/pages/notifications.vue | 15 +++++++++++++++ packages/frontend/src/store.ts | 5 +++++ 6 files changed, 48 insertions(+), 1 deletion(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 4e26d5406b..e4cd346ed3 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5254,6 +5254,14 @@ export interface Locale extends ILocale { * このサーバーは連合が無効化されています。他のサーバーのユーザーとやり取りすることはできません。 */ "federationDisabled": string; + /** + * 古い通知は自動的に削除されます。{here}から手動でリセットすることもできます。 + */ + "oldNotificationsWillBeDeleted": ParameterizedString<"here">; + /** + * こちら + */ + "oldNotificationsWillBeDeletedPlaceholderHere": string; "_accountSettings": { /** * コンテンツの表示にログインを必須にする @@ -5766,6 +5774,10 @@ export interface Locale extends ILocale { * グローバルタイムラインでは、接続している他のすべてのサーバーからの投稿を見られます。 */ "global": string; + /** + * アンテナに保存されている投稿は古いものから削除されていきます。必要に応じてクリップなどに移動させてください。 + */ + "antenna": string; }; "_serverRules": { /** diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 13d8aec9b8..0424542f9d 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1309,6 +1309,8 @@ availableRoles: "利用可能なロール" acknowledgeNotesAndEnable: "注意事項を理解した上でオンにします。" federationSpecified: "このサーバーはホワイトリスト連合で運用されています。管理者が指定したサーバー以外とやり取りすることはできません。" federationDisabled: "このサーバーは連合が無効化されています。他のサーバーのユーザーとやり取りすることはできません。" +oldNotificationsWillBeDeleted: "古い通知は自動的に削除されます。{here}から手動でリセットすることもできます。" +oldNotificationsWillBeDeletedPlaceholderHere: "こちら" _accountSettings: requireSigninToViewContents: "コンテンツの表示にログインを必須にする" @@ -1456,6 +1458,7 @@ _timelineDescription: local: "ローカルタイムラインでは、このサーバーにいるユーザー全員の投稿を見られます。" social: "ソーシャルタイムラインには、ホームタイムラインとローカルタイムラインの投稿が両方表示されます。" global: "グローバルタイムラインでは、接続している他のすべてのサーバーからの投稿を見られます。" + antenna: "アンテナに保存されている投稿は古いものから削除されていきます。必要に応じてクリップなどに移動させてください。" _serverRules: description: "新規登録前に表示する、サーバーの簡潔なルールを設定します。内容は利用規約の要約とすることを推奨します。" diff --git a/packages/frontend/src/components/MkNotifications.vue b/packages/frontend/src/components/MkNotifications.vue index 5a6ada474a..9c3da38a21 100644 --- a/packages/frontend/src/components/MkNotifications.vue +++ b/packages/frontend/src/components/MkNotifications.vue @@ -38,7 +38,7 @@ import MkPullToRefresh from '@/components/MkPullToRefresh.vue'; import * as Misskey from 'misskey-js'; const props = defineProps<{ - excludeTypes?: typeof notificationTypes[number][]; + excludeTypes?: typeof notificationTypes[number][] | null; }>(); const pagingComponent = shallowRef>(); diff --git a/packages/frontend/src/pages/antenna-timeline.vue b/packages/frontend/src/pages/antenna-timeline.vue index a01bafd996..4f79fbb9a2 100644 --- a/packages/frontend/src/pages/antenna-timeline.vue +++ b/packages/frontend/src/pages/antenna-timeline.vue @@ -8,6 +8,9 @@ SPDX-License-Identifier: AGPL-3.0-only
+ + {{ i18n.ts._timelineDescription.antenna }} +
(); const tlEl = shallowRef>(); +function closeTutorial() { + defaultStore.set('timelineTutorials', { + ...defaultStore.state.timelineTutorials, + antenna: false, + }); +} + function queueUpdated(q) { queue.value = q; } diff --git a/packages/frontend/src/pages/notifications.vue b/packages/frontend/src/pages/notifications.vue index 46ee501c76..5c1ab7ccfa 100644 --- a/packages/frontend/src/pages/notifications.vue +++ b/packages/frontend/src/pages/notifications.vue @@ -9,6 +9,14 @@ SPDX-License-Identifier: AGPL-3.0-only
+ + + + + +
@@ -25,17 +33,24 @@ SPDX-License-Identifier: AGPL-3.0-only