From 44300bc8ad4da44e91eb4ab038930e4887fb0c1e Mon Sep 17 00:00:00 2001 From: mehm8128 Date: Wed, 4 Oct 2023 23:39:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?contest=20team=20new=E3=81=AE=E3=83=9A?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ContestTeamEdit.vue | 4 + src/pages/ContestTeamNew.vue | 145 ++++++++++++++++++++++++++++++++++ src/router/index.ts | 6 ++ 3 files changed, 155 insertions(+) create mode 100644 src/pages/ContestTeamNew.vue diff --git a/src/pages/ContestTeamEdit.vue b/src/pages/ContestTeamEdit.vue index 97c656fa..26e05e44 100644 --- a/src/pages/ContestTeamEdit.vue +++ b/src/pages/ContestTeamEdit.vue @@ -88,6 +88,10 @@ const deleteContestTeam = async () => { :header-texts="[ { title: 'Contests', url: '/contests' }, { title: contest.name, url: `/contests/${contestId}` }, + { + title: 'Teams', + url: `/contests/${contestId}` + }, { title: contestTeam.name, url: `/contests/${contestId}/teams/${contestTeamId}` diff --git a/src/pages/ContestTeamNew.vue b/src/pages/ContestTeamNew.vue new file mode 100644 index 00000000..73d94cb2 --- /dev/null +++ b/src/pages/ContestTeamNew.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index 5f3a28e7..5349e484 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,6 +13,7 @@ const Contests = () => import('/@/pages/Contests.vue') const Contest = () => import('/@/pages/Contest.vue') const ContestNew = () => import('/@/pages/ContestNew.vue') const ContestEdit = () => import('/@/pages/ContestEdit.vue') +const ContestTeamNew = () => import('/@/pages/ContestTeamNew.vue') const ContestTeamEdit = () => import('/@/pages/ContestTeamEdit.vue') const routes = [ @@ -61,6 +62,11 @@ const routes = [ name: 'ContestEdit', component: ContestEdit }, + { + path: '/contests/:contestId/teams/new', + name: 'ContestTeamNew', + component: ContestTeamNew + }, { path: '/contests/:contestId/teams/:teamId/edit', name: 'ContestTeamEdit', From 23cf728fe13c155dfc59500faa46255d7d26893c Mon Sep 17 00:00:00 2001 From: mehm8128 Date: Thu, 5 Oct 2023 13:43:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=83=98=E3=83=83=E3=83=80=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E8=AA=AC=E6=98=8E=E6=96=87=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ContestTeamNew.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ContestTeamNew.vue b/src/pages/ContestTeamNew.vue index 73d94cb2..3896a148 100644 --- a/src/pages/ContestTeamNew.vue +++ b/src/pages/ContestTeamNew.vue @@ -74,7 +74,7 @@ const createContestTeam = async () => { }, { title: 'New', url: `/contests/${contestId}/teams/new` } ]" - detail="コンテストチームの情報を変更します。" + detail="コンテストチームを追加します。" :class="$style.header" />