diff --git a/src/layouts/CreateLayout.vue b/src/layouts/CreateLayout.vue new file mode 100644 index 0000000..f71bc7b --- /dev/null +++ b/src/layouts/CreateLayout.vue @@ -0,0 +1,51 @@ + + + diff --git a/src/router/index.ts b/src/router/index.ts index a9ad1a5..73713c7 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,23 +1,89 @@ import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' +import HomeView from '@/views/HomeView.vue' + +const routes = [ + { + path: '/', + name: 'home', + component: HomeView, + }, + + { + path: '/create', + component: () => import('@/layouts/CreateLayout.vue'), + children: [ + { + path: '', + name: 'create', + component: () => import('@/views/CreateView.vue'), // Первый шаг создания QR-кода + }, + // { + // path: 'actions', + // name: 'create-actions', + // component: () => import('@/views/CreateActionsView.vue'), // Второй шаг создания QR-кода + // }, + ], + }, + // { + // path: '/create/actions', + // name: 'create-actions', + // component: () => import('@/views/CreateActionsView.vue'), // Второй шаг создания QR-кода + // }, + // { + // path: '/manage/:qr_code/settings', + // name: 'manage-settings', + // component: () => import('@/views/SettingsView.vue'), // Настройки QR-кода для владельца + // }, + // { + // path: '/manage/profile', + // name: 'manage-profile', + // component: () => import('@/views/ProfileView.vue'), // Личный кабинет владельца + // }, + // { + // path: '/manage/:qr_code/:chat', + // name: 'manage-chat', + // component: () => import('@/views/ChatView.vue'), // Чат для владельца + // }, + // { + // path: '/chat/:qr_code/:chat', + // name: 'public-chat', + // component: () => import('@/views/PublicChatView.vue'), // Публичный чат для гостей + // }, + // { + // path: '/:qr_code', + // name: 'public-qr', + // component: () => import('@/views/PublicQRView.vue'), // Публичная страница QR-кода + // }, + // { + // path: '/help', + // name: 'help', + // component: () => import('@/views/HelpView.vue'), // Страница помощи и FAQ + // }, + // { + // path: '/about', + // name: 'about', + // component: () => import('@/views/AboutView.vue'), // Страница информации о компании и проекте + // }, + // { + // path: '/contact', + // name: 'contact', + // component: () => import('@/views/ContactView.vue'), // Страница с контактной информацией + // }, + // { + // path: '/privacy-policy', + // name: 'privacy-policy', + // component: () => import('@/views/PrivacyPolicyView.vue'), // Политика конфиденциальности + // }, + // { + // path: '/terms-of-service', + // name: 'terms-of-service', + // component: () => import('@/views/TermsOfServiceView.vue'), // Условия использования + // }, +] const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), - routes: [ - { - path: '/', - name: 'home', - component: HomeView, - }, - { - path: '/create', - name: 'create', - // route level code-splitting - // this generates a separate chunk (About.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import('../views/CreateView.vue'), - }, - ], + routes, }) export default router diff --git a/src/views/CreateView.vue b/src/views/CreateView.vue index 4ed6944..d9b6b66 100644 --- a/src/views/CreateView.vue +++ b/src/views/CreateView.vue @@ -1,5 +1,60 @@ + +