From a5a742ce5544f3aec94e49348bfa2ab9be4cbafc Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Thu, 2 Jan 2025 01:41:45 +0600 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D0=BD=D0=B8=D0=BC=20=D0=B1=D0=B8?= =?UTF-8?q?=D0=BB=D0=B402?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layouts/MainLayout.vue | 33 ++++++ frontend/src/router/index.ts | 16 +++ frontend/src/views/HomeView.vue | 28 ++++++ frontend/src/views/LoginView.vue | 149 +++++++++++++--------------- 4 files changed, 147 insertions(+), 79 deletions(-) create mode 100644 frontend/src/layouts/MainLayout.vue create mode 100644 frontend/src/views/HomeView.vue diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue new file mode 100644 index 0000000..fffcdd8 --- /dev/null +++ b/frontend/src/layouts/MainLayout.vue @@ -0,0 +1,33 @@ + + + \ No newline at end of file diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 9d22bcb..33052c8 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -4,6 +4,22 @@ import { useAuthStore } from '@/stores/auth'; const router = createRouter({ history: createWebHistory(), routes: [ + { + path: '/', + component: () => import('@/layouts/MainLayout.vue'), + children: [ + { + path: '', + name: 'Home', + component: () => import('@/views/HomeView.vue') + }, + { + path: 'login', + name: 'Login', + component: () => import('@/views/LoginView.vue') + } + ] + }, { path: '/admin', component: () => import('@/layouts/AdminLayout.vue'), diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue new file mode 100644 index 0000000..ead12a2 --- /dev/null +++ b/frontend/src/views/HomeView.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/LoginView.vue b/frontend/src/views/LoginView.vue index dd76400..15f45a3 100644 --- a/frontend/src/views/LoginView.vue +++ b/frontend/src/views/LoginView.vue @@ -1,98 +1,89 @@