From 6db070fd0fcbdf7dfa474a3c46e74f30c3acc23e 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 | 3 +++ src/web/assets/reactions/confused.png | 3 +++ src/web/assets/reactions/pudding.png | 3 +++ 8 files changed, 28 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 f817ea0d0..c6ead924c 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 9373ebf47..12cdb2939 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 a3b25baa6..ba5b69ada 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 922148a0a..012729391 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% +