From 6258ce75b7ae97584100ecccdf0a7cd0225da7b2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 27 Oct 2020 18:11:41 +0900 Subject: [PATCH] Reversi (#6765) * wip * wip * wip * wip * Update game.setting.vue * wip * wip * Update game.setting.vue * wip * Update game.board.vue * wip * Update sidebar.ts --- locales/ja-JP.yml | 37 ++ src/client/components/emoji-picker.vue | 2 +- src/client/components/notification.vue | 4 +- src/client/components/time.vue | 2 +- src/client/components/ui/radio.vue | 1 + src/client/components/user-info.vue | 4 +- src/client/components/user-preview.vue | 6 +- src/client/os.ts | 2 +- src/client/pages/messaging/index.vue | 8 +- src/client/pages/reversi/game.board.vue | 472 ++++++++++++++++++ src/client/pages/reversi/game.setting.vue | 393 +++++++++++++++ src/client/pages/reversi/game.vue | 78 +++ src/client/pages/reversi/index.vue | 281 +++++++++++ src/client/router.ts | 2 + src/client/sidebar.ts | 2 +- src/client/widgets/rss.vue | 2 +- src/games/reversi/maps.ts | 45 -- .../api/stream/channels/games/reversi-game.ts | 11 +- 18 files changed, 1286 insertions(+), 66 deletions(-) create mode 100644 src/client/pages/reversi/game.board.vue create mode 100644 src/client/pages/reversi/game.setting.vue create mode 100644 src/client/pages/reversi/game.vue create mode 100644 src/client/pages/reversi/index.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 58e9132cf3..75ab558499 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -412,6 +412,7 @@ noMessagesYet: "まだチャットはありません" newMessageExists: "新しいメッセージがあります" onlyOneFileCanBeAttached: "メッセージに添付できるファイルはひとつです" signinRequired: "ログインしてください" +invitations: "招待" invitationCode: "招待コード" checking: "確認しています" available: "利用できます" @@ -598,6 +599,42 @@ openInSideView: "サイドビューで開く" defaultNavigationBehaviour: "デフォルトのナビゲーション" editTheseSettingsMayBreakAccount: "これらの設定を編集するとアカウントが破損する可能性があります。" instanceTicker: "ノートのインスタンス情報" +waitingFor: "{x}を待っています" +random: "ランダム" + +_reversi: + reversi: "リバーシ" + gameSettings: "対局の設定" + chooseBoard: "ボードを選択" + blackOrWhite: "先行/後攻" + blackIs: "{name}が黒(先行)" + rules: "ルール" + botSettings: "Botのオプション" + thisGameIsStartedSoon: "対局は数秒後に開始されます" + waitingForOther: "相手の準備が完了するのを待っています" + waitingForMe: "あなたの準備が完了するのを待っています" + waitingBoth: "準備してください" + ready: "準備完了" + cancelReady: "準備を再開" + opponentTurn: "相手のターンです" + myTurn: "あなたのターンです" + turnOf: "{name}のターンです" + pastTurnOf: "{name}のターン" + surrender: "投了" + surrendered: "投了により" + drawn: "引き分け" + won: "{name}の勝ち" + black: "黒" + white: "白" + total: "合計" + turnCount: "{count}ターン目" + myGames: "自分の対局" + allGames: "みんなの対局" + ended: "終了" + playing: "対局中" + isLlotheo: "石の少ない方が勝ち(ロセオ)" + loopedMap: "ループマップ" + canPutEverywhere: "どこでも置けるモード" _instanceTicker: none: "表示しない" diff --git a/src/client/components/emoji-picker.vue b/src/client/components/emoji-picker.vue index e79f3c9292..431edf6d18 100644 --- a/src/client/components/emoji-picker.vue +++ b/src/client/components/emoji-picker.vue @@ -185,7 +185,7 @@ export default defineComponent({ transition: color 0.2s ease; &:hover { - color: var(--textHighlighted); + color: var(--fgHighlighted); transition: color 0s; } diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue index db6d8ad167..c85457a56d 100644 --- a/src/client/components/notification.vue +++ b/src/client/components/notification.vue @@ -20,7 +20,7 @@
{{ notification.header }} - +
@@ -260,7 +260,7 @@ export default defineComponent({ overflow: hidden; } - > .mk-time { + > .time { margin-left: auto; font-size: 0.9em; } diff --git a/src/client/components/time.vue b/src/client/components/time.vue index 3219373739..544746c24b 100644 --- a/src/client/components/time.vue +++ b/src/client/components/time.vue @@ -1,5 +1,5 @@