Skip to content

Commit

Permalink
Merge pull request #61 from Sports-day/feature/imizu-automation
Browse files Browse the repository at this point in the history
射水キャンパス用に自動入力機能を修正
  • Loading branch information
testusuke authored Oct 7, 2024
2 parents 833d5ec + 83bcd00 commit 86e0c51
Show file tree
Hide file tree
Showing 13 changed files with 962 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {sportFactory} from "@/src/models/SportModel";
import {gameFactory} from "@/src/models/GameModel";
import {AutomaticMatchEditor} from "@/components/automation/AutomaticMatchEditor";
import NextLink from "next/link";
import {AutomaticMatchEditorForImizu} from "@/components/automation/AutomaticMatchEditorForImizu";

export default async function AutomaticMatchEditorPage({params}: { params: { gameId:string, id: string } }) {
const gameId = parseInt(params.gameId, 10)
Expand Down Expand Up @@ -49,7 +50,8 @@ export default async function AutomaticMatchEditorPage({params}: { params: { gam
<Typography color="text.primary">試合一括編集</Typography>
</Breadcrumbs>
<CardBackground title={`試合一括編集`}>
<AutomaticMatchEditor game={game} />
{/*<AutomaticMatchEditor game={game} />*/}
<AutomaticMatchEditorForImizu game={game} />
</CardBackground>
</Stack>
)
Expand Down
8 changes: 8 additions & 0 deletions app/(authenticated)/teams/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ export default async function TeamPage() {
>
一括名前変更
</Button>

<Button
variant={"contained"}
href={"/teams/team-creating-automation"}
component={NextLink}
>
(一時的)射水チーム作成
</Button>
</Stack>
<TeamsAgGrid
classes={classes}
Expand Down
37 changes: 37 additions & 0 deletions app/(authenticated)/teams/team-creating-automation/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {Breadcrumbs, Link, Stack, Typography} from "@mui/material";
import CardBackground from "@/components/layout/cardBackground";
import React from "react";
import NextLink from "next/link";
import TeamCreatingAutomation from "@/components/teams/automatic-entry/teamCreatingAutomation";

export default async function TeamAutomaticRenamePage() {

return (
<Stack spacing={1} mx={2} my={3}>
<Breadcrumbs aria-label="breadcrumb" sx={{pl: 2}}>
<Link
underline="hover"
color="inherit"
href="/"
component={NextLink}
>
管理者のダッシュボード
</Link>
<Link
underline="hover"
color="inherit"
href={"/teams/"}
component={NextLink}
>
チーム管理
</Link>
<Typography color="text.primary">
射水チーム作成
</Typography>
</Breadcrumbs>
<CardBackground>
<TeamCreatingAutomation/>
</CardBackground>
</Stack>
)
}
5 changes: 4 additions & 1 deletion app/(authenticated)/users/csv/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import CardBackground from "@/components/layout/cardBackground";
import {classFactory} from "@/src/models/ClassModel";
import UserCreatingAutomation from "@/components/users/csv/userCreatingAutomation";
import NextLink from "next/link";
import UserCreatingAutomationWithoutClassSelection
from "@/components/users/csv/userCreatingAutomationWithoutClassSelection";

export default async function UsersCsv() {
const classes = await classFactory().index()
Expand Down Expand Up @@ -30,7 +32,8 @@ export default async function UsersCsv() {
</Breadcrumbs>

<CardBackground title={"ユーザーのCSV一括作成"} >
<UserCreatingAutomation classes={classes} />
{/*<UserCreatingAutomation classes={classes} />*/}
<UserCreatingAutomationWithoutClassSelection classes={classes} />
</CardBackground>
</Stack>
);
Expand Down
Loading

0 comments on commit 86e0c51

Please sign in to comment.