From 0a173a3c1c77b12384b319cf346192fb8f221709 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 20 Apr 2023 02:53:28 +0000 Subject: [PATCH] feat: add an option to disable emoji reactions (#9878) Closes: #9865 Co-authored-by: naskya Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9878 Co-authored-by: naskya Co-committed-by: naskya --- locales/en-US.yml | 1 + locales/ja-JP.yml | 1 + locales/zh-CN.yml | 1 + locales/zh-TW.yml | 1 + packages/client/src/components/MkNote.vue | 30 +++- .../client/src/components/MkNoteDetailed.vue | 31 +++- packages/client/src/components/MkNoteSub.vue | 31 +++- .../client/src/components/MkNotification.vue | 19 ++- .../src/components/MkReactedUsersDialog.vue | 2 +- .../src/components/MkStarButtonNoEmoji.vue | 133 +++++++++++++++ .../pages/settings/preferences-backups.vue | 1 + .../client/src/pages/settings/reaction.vue | 158 ++++++++++-------- packages/client/src/store.ts | 4 + 13 files changed, 330 insertions(+), 83 deletions(-) create mode 100644 packages/client/src/components/MkStarButtonNoEmoji.vue diff --git a/locales/en-US.yml b/locales/en-US.yml index 648f7f1fd1..60e7c77408 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -114,6 +114,7 @@ clickToShow: "Click to show" sensitive: "NSFW" add: "Add" reaction: "Reactions" +enableEmojiReactions: "Enable emoji reactions" reactionSetting: "Reactions to show in the reaction picker" reactionSettingDescription2: "Drag to reorder, click to delete, press \"+\" to add." rememberNoteVisibility: "Remember post visibility settings" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 5bd06f23eb..9fbf712885 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -109,6 +109,7 @@ clickToShow: "クリックして表示" sensitive: "閲覧注意" add: "追加" reaction: "リアクション" +enableEmojiReactions: "絵文字リアクションを有効にする" reactionSetting: "ピッカーに表示するリアクション" reactionSettingDescription2: "ドラッグして並び替え、クリックして削除、+を押して追加します。" rememberNoteVisibility: "公開範囲を記憶する" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index 2784da81d7..fc507b8e06 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -107,6 +107,7 @@ clickToShow: "点击以显示" sensitive: "敏感内容" add: "添加" reaction: "回应" +enableEmojiReaction: "启用表情符号回应" reactionSetting: "在选择器中显示的回应" reactionSettingDescription2: "拖动重新排序,单击删除,点击 + 添加。" rememberNoteVisibility: "保存上次设置的可见性" diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index 3e8485adbb..c46452e88a 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -107,6 +107,7 @@ clickToShow: "按一下以顯示" sensitive: "敏感內容" add: "新增" reaction: "情感" +enableEmojiReaction: "啟用表情符號反應" reactionSetting: "在選擇器中顯示反應" reactionSettingDescription2: "拖動以重新列序,點擊以刪除,按下 + 添加。" rememberNoteVisibility: "記住貼文可見性" diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 658e799b8e..311a80fa01 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -176,6 +176,7 @@