From 000635252c6e0339764c386913504acc9d044ff2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Aug 2018 21:30:44 +0900 Subject: [PATCH] wip --- locales/ja.yml | 8 +- .../games/reversi/reversi.index.vue | 258 ++++++++++++++++++ .../components/games/reversi/reversi.vue | 208 +------------- 3 files changed, 272 insertions(+), 202 deletions(-) create mode 100644 src/client/app/common/views/components/games/reversi/reversi.index.vue diff --git a/locales/ja.yml b/locales/ja.yml index 7e245d46a9..5ad0da28aa 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -132,6 +132,11 @@ common: pop-right: "右に出す" common/views/components/games/reversi/reversi.vue: + matching: + waiting-for: "{}を待っています" + cancel: "キャンセル" + +common/views/components/games/reversi/reversi.index.vue: title: "Misskey Reversi" sub-title: "他のMisskeyユーザーとリバーシで対戦しよう" invite: "招待" @@ -146,9 +151,6 @@ common/views/components/games/reversi/reversi.vue: game-state: ended: "終了" playing: "進行中" - matching: - waiting-for: "{}を待っています" - cancel: "キャンセル" common/views/components/games/reversi/reversi.room.vue: settings-of-the-game: "ゲームの設定" diff --git a/src/client/app/common/views/components/games/reversi/reversi.index.vue b/src/client/app/common/views/components/games/reversi/reversi.index.vue new file mode 100644 index 0000000000..026159a0fd --- /dev/null +++ b/src/client/app/common/views/components/games/reversi/reversi.index.vue @@ -0,0 +1,258 @@ + + + + + diff --git a/src/client/app/common/views/components/games/reversi/reversi.vue b/src/client/app/common/views/components/games/reversi/reversi.vue index b6b13bdd97..4169a5465a 100644 --- a/src/client/app/common/views/components/games/reversi/reversi.vue +++ b/src/client/app/common/views/components/games/reversi/reversi.vue @@ -10,49 +10,7 @@
-

%i18n:@title%

-

%i18n:@sub-title%

-
- - %i18n:@invite% -
- %i18n:@rule% -
-

%i18n:@rule-desc%

-
-
%i18n:@mode-invite%
-
%i18n:@mode-invite-desc%
-
-
-
-
-
-

%i18n:@invitations%

-
- - {{ i.parent | userName }} - @{{ i.parent.username }} - -
-
-
-

%i18n:@my-games%

- - - - {{ g.user1 | userName }} vs {{ g.user2 | userName }} - {{ g.isEnded ? '%i18n:@game-state.ended%' : '%i18n:@game-state.playing%' }} - -
-
-

%i18n:@all-games%

- - - - {{ g.user1 | userName }} vs {{ g.user2 | userName }} - {{ g.isEnded ? '%i18n:@game-state.ended%' : '%i18n:@game-state.playing%' }} - -
+
@@ -60,10 +18,12 @@