-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
試合結果入力画面 Feature/#32 match result
- Loading branch information
Showing
14 changed files
with
625 additions
and
141 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
app/(authenticated)/sports/[id]/[gameId]/[matchId]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {Stack, Link, Typography, Breadcrumbs} from "@mui/material"; | ||
import {sportFactory} from "@/src/models/SportModel"; | ||
import {gameFactory} from "@/src/models/GameModel"; | ||
import {matchFactory} from "@/src/models/MatchModel"; | ||
import MatchEditor from "@/components/match/matchEditor"; | ||
|
||
export default async function MatchPage({params}: { params: { matchId:string, gameId:string, id: string } }) { | ||
const matchId = parseInt(params.matchId, 10) | ||
const match = await matchFactory().show(matchId) | ||
const gameId = parseInt(params.gameId, 10) | ||
const game = await gameFactory().show(gameId) | ||
const sportId = parseInt(params.id, 10) | ||
const sport = await sportFactory().show(sportId) | ||
|
||
return( | ||
<Stack spacing={1} mx={2} my={3}> | ||
<Breadcrumbs aria-label="breadcrumb" sx={{pl:2}}> | ||
<Link underline="hover" color="inherit" href="/"> | ||
管理者のダッシュボード | ||
</Link> | ||
<Link underline="hover" color="inherit" href={"/sports"}> | ||
競技管理 | ||
</Link> | ||
<Link underline="hover" color="inherit" href={`/sports/${sport.id}`}> | ||
{sport.name} | ||
</Link> | ||
<Link underline="hover" color="inherit" href={`/sports/${sport.id}/${gameId}`}> | ||
{game.name}(ID:{gameId}) | ||
</Link> | ||
<Typography color="text.primary">試合(ID:{match.id})</Typography> | ||
</Breadcrumbs> | ||
|
||
<MatchEditor sport={sport} match={match} game={game}/> | ||
|
||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import CardBackground from "@/components/layout/cardBackground"; | ||
import {Stack, Grid, Link, Typography, Breadcrumbs} from "@mui/material"; | ||
import CardList from "@/components/layout/cardList"; | ||
import {sportFactory} from "@/src/models/SportModel"; | ||
import {gameFactory} from "@/src/models/GameModel"; | ||
|
||
export default async function GamePage({params}: { params: { gameId:string, id: string } }) { | ||
const gameId = parseInt(params.gameId, 10) | ||
const game = await gameFactory().show(gameId) | ||
const sportId = parseInt(params.id, 10) | ||
const sport = await sportFactory().show(sportId) | ||
|
||
return( | ||
<Stack spacing={1} mx={2} my={3}> | ||
<Breadcrumbs aria-label="breadcrumb" sx={{pl:2}}> | ||
<Link underline="hover" color="inherit" href="/"> | ||
管理者のダッシュボード | ||
</Link> | ||
<Link underline="hover" color="inherit" href={"/sports"}> | ||
競技管理 | ||
</Link> | ||
<Link underline="hover" color="inherit" href={`/sports/${sport.id}`}> | ||
{sport.name} | ||
</Link> | ||
<Typography color="text.primary">{game.name}(ID:{gameId})</Typography> | ||
</Breadcrumbs> | ||
<CardBackground title={`${game.name}のリーグ表`}> | ||
</CardBackground> | ||
<CardBackground title={`${game.name}の進行中の試合`}> | ||
<Grid container> | ||
<CardList sport={"a"} league={"a"} judge={"a"} left={"a"} right={"a"} time={"11:11"} location={"a"}/> | ||
</Grid> | ||
</CardBackground> | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.