From dff15d74cb30923a74be2b6cd8f8164f755897c3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 28 May 2017 20:12:22 +0900 Subject: [PATCH] Add some reactions --- locales/en.yml | 3 +++ locales/ja.yml | 3 +++ src/api/endpoints/posts/reactions/create.ts | 5 ++++- src/web/app/common/tags/reaction-icon.tag | 4 ++++ src/web/app/common/tags/reaction-picker.tag | 5 +++++ src/web/assets/reactions/angry.png | Bin 0 -> 5875 bytes src/web/assets/reactions/confused.png | Bin 0 -> 7255 bytes src/web/assets/reactions/pudding.png | Bin 0 -> 7652 bytes 8 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/web/assets/reactions/angry.png create mode 100644 src/web/assets/reactions/confused.png create mode 100644 src/web/assets/reactions/pudding.png diff --git a/locales/en.yml b/locales/en.yml index f817ea0d04..c6ead924cc 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -18,6 +18,9 @@ common: hmm: "Hmm...?" surprise: "Wow" congrats: "Congrats!" + angry: "Angry" + confused: "Confused" + pudding: "Pudding" input-message-here: "Enter message here" send: "Send" diff --git a/locales/ja.yml b/locales/ja.yml index 9373ebf478..12cdb29395 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -18,6 +18,9 @@ common: hmm: "ふぅ~む" surprise: "わお" congrats: "おめでとう" + angry: "おこ" + confused: "こまこまのこまり" + pudding: "Pudding" input-message-here: "ここにメッセージを入力" send: "送信" diff --git a/src/api/endpoints/posts/reactions/create.ts b/src/api/endpoints/posts/reactions/create.ts index a3b25baa6a..ba5b69ada3 100644 --- a/src/api/endpoints/posts/reactions/create.ts +++ b/src/api/endpoints/posts/reactions/create.ts @@ -26,7 +26,10 @@ module.exports = (params, user) => new Promise(async (res, rej) => { 'laugh', 'hmm', 'surprise', - 'congrats' + 'congrats', + 'angry', + 'confused', + 'pudding' ]).$; if (reactionErr) return rej('invalid reaction param'); diff --git a/src/web/app/common/tags/reaction-icon.tag b/src/web/app/common/tags/reaction-icon.tag index 922148a0aa..0127293917 100644 --- a/src/web/app/common/tags/reaction-icon.tag +++ b/src/web/app/common/tags/reaction-icon.tag @@ -5,6 +5,10 @@ %i18n:common.reactions.hmm% %i18n:common.reactions.surprise% %i18n:common.reactions.congrats% + %i18n:common.reactions.angry% + %i18n:common.reactions.confused% + %i18n:common.reactions.pudding% +