This repository was archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
試合結果入力画面 Feature/#32 match result #37
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2207fed
fix: leaguePage route
1nayu 11702fb
feat: gamePage
1nayu 2e4e10d
fix: card titles
1nayu bb16689
feat: matchEditor
1nayu 512f0f9
fix: removed unused routes
1nayu 41ba895
fix: matchEditor input error hundle
1nayu 57529ce
fix: matchEditor information appearance
1nayu e8b661e
fix: reformat codes
1nayu 0bafce9
fix: change tournament route
1nayu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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> | ||
) | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. なるほどここにデータを入れればいい感じですか There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. そう!!お願いします🙇 |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにその方がいいね