From 4d00155a427b938d67e0888e586b699e022617d5 Mon Sep 17 00:00:00 2001 From: Nafu Satsuki Date: Sat, 14 Oct 2023 18:29:57 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=AF=E3=83=BC=E3=83=89=E3=83=9F?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=83=88=E3=81=AB=E8=A9=B2=E5=BD=93=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=83=8E=E3=83=BC=E3=83=88=E3=82=92=E9=9D=9E=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=AB=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en-US.yml | 1 + locales/index.d.ts | 1 + locales/ja-JP.yml | 1 + packages/frontend/src/components/MkNote.vue | 186 +++++++++--------- .../frontend/src/pages/settings/general.vue | 2 + packages/frontend/src/store.ts | 4 + 6 files changed, 100 insertions(+), 95 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 7b0f64f50d..0841adb136 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1634,6 +1634,7 @@ _wordMute: muteWords: "Muted words" muteWordsDescription: "Separate with spaces for an AND condition or with line breaks for an OR condition." muteWordsDescription2: "Surround keywords with slashes to use regular expressions." + hideMutedNotes: "Hide notes containing muted words" _instanceMute: instanceMuteDescription: "This will mute any notes/renotes from the listed instances, including those of users replying to a user from a muted instance." instanceMuteDescription2: "Separate with newlines" diff --git a/locales/index.d.ts b/locales/index.d.ts index 791ae673c4..86580f44a9 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1772,6 +1772,7 @@ export interface Locale { "muteWords": string; "muteWordsDescription": string; "muteWordsDescription2": string; + "hideMutedNotes": string; }; "_instanceMute": { "instanceMuteDescription": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index eebd1a5830..d77b24804f 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1689,6 +1689,7 @@ _wordMute: muteWords: "ミュートするワード" muteWordsDescription: "スペースで区切るとAND指定になり、改行で区切るとOR指定になります。" muteWordsDescription2: "キーワードをスラッシュで囲むと正規表現になります。" + hideMutedNotes: "ミュートされた単語を含むノートを非表示にする" _instanceMute: instanceMuteDescription: "ミュートしたサーバーのユーザーへの返信を含めて、設定したサーバーの全てのノートとRenoteをミュートします。" diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index eff81f3894..0743989e85 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -45,107 +45,102 @@ SPDX-License-Identifier: AGPL-3.0-only - - - + + -
- - -
-
-
- -
- - -
-

- - -

-
-
- ({{ i18n.ts.private }}) - - -
- -
- {{ i18n.t('translatedFrom', {x: translation.sourceLang}) }}: - -
+
+
+ + +
+
+
+ +
+ + +
+

+ + +

+
+
+ ({{ i18n.ts.private }}) + + +
+ +
+ {{ i18n.t('translatedFrom', { x: translation.sourceLang }) }}: +
-
- -
- - -
- -
- -
- {{ appearNote.channel.name }} - +
+ +
+ + +
+ +
- - - -
- - - - - - - -
+ {{ appearNote.channel.name }}
-
-
-
+ + + +
+ + + + + + + +
+
+
+ +
+ + + +