From d3cd808d9cdaec0f2cdfe8da6ce7c0897b8ed08c Mon Sep 17 00:00:00 2001 From: ZOI-dayo Date: Sat, 5 Oct 2024 01:20:07 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=B8=E3=81=AE?= =?UTF-8?q?=E3=83=AB=E3=83=BC=E3=83=86=E3=82=A3=E3=83=B3=E3=82=B0=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 109 +++++++++++++++++- src/views/LoginView.vue | 9 ++ src/views/ProblemView.vue | 10 ++ src/views/ProblemsView.vue | 9 ++ src/views/ResetPasswordView.vue | 10 ++ src/views/SettingsView.vue | 10 ++ src/views/SignupView.vue | 10 ++ src/views/TopView.vue | 10 ++ src/views/UserView.vue | 10 ++ src/views/problem/ProblemEditView.vue | 9 ++ src/views/problem/ProblemEditorialView.vue | 9 ++ src/views/problem/ProblemHomeView.vue | 9 ++ src/views/problem/ProblemSubmissionView.vue | 9 ++ src/views/problem/ProblemSubmissionsView.vue | 9 ++ src/views/problem/ProblemSubmitView.vue | 9 ++ .../ResetPasswordAfterMailView.vue | 9 ++ .../reset-password/ResetPasswordFormView.vue | 9 ++ .../reset-password/ResetPasswordHomeView.vue | 9 ++ src/views/settings/SettingsAccountView.vue | 9 ++ src/views/settings/SettingsProfileView.vue | 9 ++ src/views/signup/SignupAfterMailView.vue | 9 ++ src/views/signup/SignupHomeView.vue | 9 ++ src/views/signup/SignupRegisterView.vue | 9 ++ src/views/user/UserHomeView.vue | 9 ++ src/views/user/UserProblemsView.vue | 9 ++ src/views/user/UserSubmissionsView.vue | 9 ++ 26 files changed, 339 insertions(+), 1 deletion(-) create mode 100644 src/views/LoginView.vue create mode 100644 src/views/ProblemView.vue create mode 100644 src/views/ProblemsView.vue create mode 100644 src/views/ResetPasswordView.vue create mode 100644 src/views/SettingsView.vue create mode 100644 src/views/SignupView.vue create mode 100644 src/views/TopView.vue create mode 100644 src/views/UserView.vue create mode 100644 src/views/problem/ProblemEditView.vue create mode 100644 src/views/problem/ProblemEditorialView.vue create mode 100644 src/views/problem/ProblemHomeView.vue create mode 100644 src/views/problem/ProblemSubmissionView.vue create mode 100644 src/views/problem/ProblemSubmissionsView.vue create mode 100644 src/views/problem/ProblemSubmitView.vue create mode 100644 src/views/reset-password/ResetPasswordAfterMailView.vue create mode 100644 src/views/reset-password/ResetPasswordFormView.vue create mode 100644 src/views/reset-password/ResetPasswordHomeView.vue create mode 100644 src/views/settings/SettingsAccountView.vue create mode 100644 src/views/settings/SettingsProfileView.vue create mode 100644 src/views/signup/SignupAfterMailView.vue create mode 100644 src/views/signup/SignupHomeView.vue create mode 100644 src/views/signup/SignupRegisterView.vue create mode 100644 src/views/user/UserHomeView.vue create mode 100644 src/views/user/UserProblemsView.vue create mode 100644 src/views/user/UserSubmissionsView.vue diff --git a/src/router/index.ts b/src/router/index.ts index 1ca0b01..37a3c07 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,8 +1,115 @@ import { createRouter, createWebHistory } from 'vue-router' +import TopView from '@/views/TopView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), - routes: [] + routes: [ + { + path: '/', + component: TopView + }, + { + path: '/signup', + component: () => import('@/views/SignupView.vue'), + children: [ + { + path: '', + component: () => import('@/views/signup/SignupHomeView.vue') + }, + { + path: 'register', + component: () => import('@/views/signup/SignupRegisterView.vue') + }, + { + path: 'after-mail', + component: () => import('@/views/signup/SignupAfterMailView.vue') + } + ] + }, + { path: '/login', component: () => import('@/views/LoginView.vue') }, + { + path: '/reset-password', + component: () => import('@/views/ResetPasswordView.vue'), + children: [ + { + path: '', + component: () => import('@/views/reset-password/ResetPasswordHomeView.vue') + }, + { + path: 'form', + component: () => import('@/views/reset-password/ResetPasswordFormView.vue') + }, + { + path: 'after-mail', + component: () => import('@/views/reset-password/ResetPasswordAfterMailView.vue') + } + ] + }, + { + path: '/users/:id', + component: () => import('@/views/UserView.vue'), + children: [ + { + path: '', + component: () => import('@/views/user/UserHomeView.vue') + }, + { + path: 'submissions', + component: () => import('@/views/user/UserSubmissionsView.vue') + }, + { path: 'problems', component: () => import('@/views/user/UserProblemsView.vue') } + ] + }, + { + path: '/problems', + component: () => import('@/views/ProblemsView.vue') + }, + { + path: '/problems/:id', + component: () => import('@/views/ProblemView.vue'), + children: [ + { + path: '', + component: () => import('@/views/problem/ProblemHomeView.vue') + }, + { + path: 'submit', + component: () => import('@/views/problem/ProblemSubmitView.vue') + }, + { + path: 'submissions', + component: () => import('@/views/problem/ProblemSubmissionsView.vue') + }, + { + path: 'submissions/:submissionId', + component: () => import('@/views/problem/ProblemSubmissionView.vue') + }, + { + path: 'editorial', + component: () => import('@/views/problem/ProblemEditorialView.vue') + }, + { + path: 'edit', + component: () => import('@/views/problem/ProblemEditView.vue') + } + ] + }, + { + path: '/settings', + component: () => import('@/views/SettingsView.vue'), + children: [ + { path: '', redirect: '/settings/account' }, + { + path: 'account', + component: () => import('@/views/settings/SettingsAccountView.vue') + }, + { + path: 'profile', + component: () => import('@/views/settings/SettingsProfileView.vue') + } + ] + } + ] }) export default router diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue new file mode 100644 index 0000000..223f1f5 --- /dev/null +++ b/src/views/LoginView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/ProblemView.vue b/src/views/ProblemView.vue new file mode 100644 index 0000000..308a929 --- /dev/null +++ b/src/views/ProblemView.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/views/ProblemsView.vue b/src/views/ProblemsView.vue new file mode 100644 index 0000000..5ebf570 --- /dev/null +++ b/src/views/ProblemsView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/ResetPasswordView.vue b/src/views/ResetPasswordView.vue new file mode 100644 index 0000000..4aec564 --- /dev/null +++ b/src/views/ResetPasswordView.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/views/SettingsView.vue b/src/views/SettingsView.vue new file mode 100644 index 0000000..e1c5590 --- /dev/null +++ b/src/views/SettingsView.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/views/SignupView.vue b/src/views/SignupView.vue new file mode 100644 index 0000000..255e181 --- /dev/null +++ b/src/views/SignupView.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/views/TopView.vue b/src/views/TopView.vue new file mode 100644 index 0000000..5fb3b47 --- /dev/null +++ b/src/views/TopView.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/views/UserView.vue b/src/views/UserView.vue new file mode 100644 index 0000000..07a33eb --- /dev/null +++ b/src/views/UserView.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/views/problem/ProblemEditView.vue b/src/views/problem/ProblemEditView.vue new file mode 100644 index 0000000..152a0f3 --- /dev/null +++ b/src/views/problem/ProblemEditView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/problem/ProblemEditorialView.vue b/src/views/problem/ProblemEditorialView.vue new file mode 100644 index 0000000..805a253 --- /dev/null +++ b/src/views/problem/ProblemEditorialView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/problem/ProblemHomeView.vue b/src/views/problem/ProblemHomeView.vue new file mode 100644 index 0000000..b11149b --- /dev/null +++ b/src/views/problem/ProblemHomeView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/problem/ProblemSubmissionView.vue b/src/views/problem/ProblemSubmissionView.vue new file mode 100644 index 0000000..14aa8d3 --- /dev/null +++ b/src/views/problem/ProblemSubmissionView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/problem/ProblemSubmissionsView.vue b/src/views/problem/ProblemSubmissionsView.vue new file mode 100644 index 0000000..ba1371d --- /dev/null +++ b/src/views/problem/ProblemSubmissionsView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/problem/ProblemSubmitView.vue b/src/views/problem/ProblemSubmitView.vue new file mode 100644 index 0000000..e9e5e0f --- /dev/null +++ b/src/views/problem/ProblemSubmitView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/reset-password/ResetPasswordAfterMailView.vue b/src/views/reset-password/ResetPasswordAfterMailView.vue new file mode 100644 index 0000000..12a9758 --- /dev/null +++ b/src/views/reset-password/ResetPasswordAfterMailView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/reset-password/ResetPasswordFormView.vue b/src/views/reset-password/ResetPasswordFormView.vue new file mode 100644 index 0000000..55e16b2 --- /dev/null +++ b/src/views/reset-password/ResetPasswordFormView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/reset-password/ResetPasswordHomeView.vue b/src/views/reset-password/ResetPasswordHomeView.vue new file mode 100644 index 0000000..c30cc5a --- /dev/null +++ b/src/views/reset-password/ResetPasswordHomeView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/settings/SettingsAccountView.vue b/src/views/settings/SettingsAccountView.vue new file mode 100644 index 0000000..922b5ea --- /dev/null +++ b/src/views/settings/SettingsAccountView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/settings/SettingsProfileView.vue b/src/views/settings/SettingsProfileView.vue new file mode 100644 index 0000000..9443d3b --- /dev/null +++ b/src/views/settings/SettingsProfileView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/signup/SignupAfterMailView.vue b/src/views/signup/SignupAfterMailView.vue new file mode 100644 index 0000000..5cbf5f7 --- /dev/null +++ b/src/views/signup/SignupAfterMailView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/signup/SignupHomeView.vue b/src/views/signup/SignupHomeView.vue new file mode 100644 index 0000000..eb8465d --- /dev/null +++ b/src/views/signup/SignupHomeView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/signup/SignupRegisterView.vue b/src/views/signup/SignupRegisterView.vue new file mode 100644 index 0000000..ec66ee8 --- /dev/null +++ b/src/views/signup/SignupRegisterView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/user/UserHomeView.vue b/src/views/user/UserHomeView.vue new file mode 100644 index 0000000..dec2ba0 --- /dev/null +++ b/src/views/user/UserHomeView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/user/UserProblemsView.vue b/src/views/user/UserProblemsView.vue new file mode 100644 index 0000000..a748c87 --- /dev/null +++ b/src/views/user/UserProblemsView.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/user/UserSubmissionsView.vue b/src/views/user/UserSubmissionsView.vue new file mode 100644 index 0000000..9a01b5a --- /dev/null +++ b/src/views/user/UserSubmissionsView.vue @@ -0,0 +1,9 @@ + + + + +