Files
hereconnect/src/router/index.ts
T

90 lines
2.8 KiB
TypeScript
Raw Normal View History

2024-11-07 14:13:39 +02:00
import { createRouter, createWebHistory } from 'vue-router'
2024-11-14 16:43:46 +02:00
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-кода
},
2024-11-18 18:26:28 +02:00
{
path: ':placement/actions',
name: 'create-actions',
component: () => import('@/views/CreateActionsView.vue'), // Второй шаг создания QR-кода
},
2024-11-14 16:43:46 +02:00
],
},
// {
// 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'), // Условия использования
// },
]
2024-11-07 14:13:39 +02:00
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
2024-11-14 16:43:46 +02:00
routes,
2024-11-07 14:13:39 +02:00
})
export default router