diff options
Diffstat (limited to 'frontend/src/game/apps')
| -rw-r--r-- | frontend/src/game/apps/Connecting.jsx | 7 | ||||
| -rw-r--r-- | frontend/src/game/apps/Failed.jsx | 7 | ||||
| -rw-r--r-- | frontend/src/game/apps/Finished.jsx | 24 | ||||
| -rw-r--r-- | frontend/src/game/apps/Gaming.jsx | 24 | ||||
| -rw-r--r-- | frontend/src/game/apps/Starting.jsx | 9 | ||||
| -rw-r--r-- | frontend/src/game/apps/Waiting.jsx | 7 |
6 files changed, 0 insertions, 78 deletions
diff --git a/frontend/src/game/apps/Connecting.jsx b/frontend/src/game/apps/Connecting.jsx deleted file mode 100644 index 464af23..0000000 --- a/frontend/src/game/apps/Connecting.jsx +++ /dev/null @@ -1,7 +0,0 @@ -export default () => { - return ( - <div> - 接続中です...... - </div> - ); -} diff --git a/frontend/src/game/apps/Failed.jsx b/frontend/src/game/apps/Failed.jsx deleted file mode 100644 index f96e999..0000000 --- a/frontend/src/game/apps/Failed.jsx +++ /dev/null @@ -1,7 +0,0 @@ -export default () => { - return ( - <div> - エラー - </div> - ); -} diff --git a/frontend/src/game/apps/Finished.jsx b/frontend/src/game/apps/Finished.jsx deleted file mode 100644 index efd4e81..0000000 --- a/frontend/src/game/apps/Finished.jsx +++ /dev/null @@ -1,24 +0,0 @@ -export default ({ result }) => { - const { yourScore, opponentScore } = result; - const yourScoreToCompare = yourScore ?? Infinity; - const opponentScoreToCompare = opponentScore ?? Infinity; - const resultText = yourScoreToCompare === opponentScoreToCompare ? '引き分け' : (yourScoreToCompare < opponentScoreToCompare ? 'あなたの勝ち' : 'あなたの負け'); - return ( - <> - <div> - 対戦終了 - </div> - <div> - <div> - {resultText} - </div> - <div> - あなたのスコア: {yourScore ?? 'なし'} - </div> - <div> - 相手のスコア: {opponentScore ?? 'なし'} - </div> - </div> - </> - ); -} diff --git a/frontend/src/game/apps/Gaming.jsx b/frontend/src/game/apps/Gaming.jsx deleted file mode 100644 index bf47860..0000000 --- a/frontend/src/game/apps/Gaming.jsx +++ /dev/null @@ -1,24 +0,0 @@ -export default ({ problem, onCodeChange, score }) => { - const handleTextChange = (e) => { - onCodeChange({ code: e.target.value }); - }; - - return ( - <div style={{ display: 'flex' }}> - <div style={{ flex: 1, padding: '10px', borderRight: '1px solid #ccc' }}> - <div> - {problem} - </div> - <div> - {score == null ? 'Score: -' : `Score: ${score} byte`} - </div> - </div> - <div style={{ flex: 1, padding: '10px' }}> - <textarea - style={{ width: '100%', height: '100%' }} - onChange={handleTextChange} - /> - </div> - </div> - ); -}; diff --git a/frontend/src/game/apps/Starting.jsx b/frontend/src/game/apps/Starting.jsx deleted file mode 100644 index e66aa34..0000000 --- a/frontend/src/game/apps/Starting.jsx +++ /dev/null @@ -1,9 +0,0 @@ -export default ({ timeLeft }) => { - return ( - <> - <div> - 対戦相手が見つかりました。{timeLeft} 秒後にゲームを開始します。 - </div> - </> - ); -} diff --git a/frontend/src/game/apps/Waiting.jsx b/frontend/src/game/apps/Waiting.jsx deleted file mode 100644 index 27fdd76..0000000 --- a/frontend/src/game/apps/Waiting.jsx +++ /dev/null @@ -1,7 +0,0 @@ -export default () => { - return ( - <div> - 対戦相手が現れるのを待っています...... - </div> - ); -} |
