add CreateView
Main daploy / deploy (push) Successful in 32s

This commit is contained in:
2024-11-14 16:43:46 +02:00
parent 6fd57f0849
commit e9489d44a9
3 changed files with 190 additions and 18 deletions
+82 -16
View File
@@ -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