Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

射水キャンパス用に自動入力機能を修正 #61

Merged
merged 4 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading