generated from VLADIMIR/template_frontend
fix
This commit is contained in:
+14
-29
@@ -1,92 +1,77 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import CatalogView from '../views/CatalogView.vue'
|
||||
import ConsentView from '../views/ConsentView.vue'
|
||||
import GamesView from '../views/GamesView.vue'
|
||||
import GameView from '../views/GameView.vue'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import LoginView from '../views/LoginView.vue'
|
||||
import OfficeView from '../views/OfficeView.vue'
|
||||
import PrivacyPolicyView from '../views/PrivacyPolicyView.vue'
|
||||
import ScenariosEditorView from '../views/ScenariosEditorView.vue'
|
||||
import ScenariosView from '../views/ScenariosView.vue'
|
||||
import ScenarioView from '../views/ScenarioView.vue'
|
||||
import TeamStoryView from '../views/TeamStoryView.vue'
|
||||
import UserAgreementView from '../views/UserAgreementView.vue'
|
||||
import UsersView from '../views/UsersView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView,
|
||||
component: () => import('../views/HomeView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: LoginView,
|
||||
component: () => import('../views/LoginView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/office',
|
||||
name: 'office',
|
||||
component: OfficeView,
|
||||
component: () => import('../views/OfficeView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/user-agreement',
|
||||
name: 'user-agreement',
|
||||
component: UserAgreementView,
|
||||
component: () => import('../views/UserAgreementView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/privacy-policy',
|
||||
name: 'privacy-policy',
|
||||
component: PrivacyPolicyView,
|
||||
component: () => import('../views/PrivacyPolicyView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/consent',
|
||||
name: 'consent',
|
||||
component: ConsentView,
|
||||
component: () => import('../views/ConsentView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/games',
|
||||
name: 'games',
|
||||
component: GamesView,
|
||||
component: () => import('../views/GamesView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/games/:id',
|
||||
name: 'game',
|
||||
component: GameView,
|
||||
component: () => import('../views/GameView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/team-story/:id',
|
||||
name: 'team-story',
|
||||
component: TeamStoryView,
|
||||
component: () => import('../views/TeamStoryView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/scenarios',
|
||||
name: 'scenarios',
|
||||
component: ScenariosView,
|
||||
component: () => import('../views/ScenariosView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/catalog',
|
||||
name: 'catalog',
|
||||
component: CatalogView,
|
||||
component: () => import('../views/CatalogView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/scenarios/:id/editor', // Динамический параметр id
|
||||
name: 'scenario-editor',
|
||||
component: ScenariosEditorView,
|
||||
component: () => import('../views/ScenariosEditorView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/scenarios/:id', // Динамический параметр id
|
||||
name: 'scenario',
|
||||
component: ScenarioView,
|
||||
component: () => import('../views/ScenarioView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/users',
|
||||
name: 'users',
|
||||
component: UsersView,
|
||||
component: () => import('../views/UsersView.vue'),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user