From be9f6ad29433b1403850397c6b24e63d0a15619a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Aug 2018 22:28:01 +0900 Subject: [PATCH] Implement surrender of reversi --- locales/ja.yml | 4 ++ .../components/games/reversi/reversi.game.vue | 36 ++++++++++- src/models/games/reversi/game.ts | 1 + .../games/reversi/games/surrender.ts | 59 +++++++++++++++++++ 4 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 src/server/api/endpoints/games/reversi/games/surrender.ts diff --git a/locales/ja.yml b/locales/ja.yml index 9760f976ae..936bdea214 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -182,6 +182,10 @@ common/views/components/games/reversi/reversi.vue: waiting-for: "{}を待っています" cancel: "キャンセル" +common/views/components/games/reversi/reversi.game.vue: + surrender: "投了" + surrendered: "投了により" + common/views/components/games/reversi/reversi.index.vue: title: "Misskey Reversi" sub-title: "他のMisskeyユーザーとリバーシで対戦しよう" diff --git a/src/client/app/common/views/components/games/reversi/reversi.game.vue b/src/client/app/common/views/components/games/reversi/reversi.game.vue index bbfec2c1cc..66973e1970 100644 --- a/src/client/app/common/views/components/games/reversi/reversi.game.vue +++ b/src/client/app/common/views/components/games/reversi/reversi.game.vue @@ -1,6 +1,6 @@