From 2a354ca8b152f9b93f5d8f9cec13cd831a62c64a 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 9760f976a..936bdea21 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 bbfec2c1c..66973e197 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 @@