add new pages

This commit is contained in:
Владимир Фёдоров 2025-07-02 01:18:39 +07:00
parent 1245d98552
commit 0742f742d9
5 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
<p>Я редактор сценариев</p>
</template>
<style scoped>
</style>

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
<p>Я каталог игр</p>
</template>
<style scoped>
</style>

View File

@ -1,5 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue' import HomeView from '../views/HomeView.vue'
import EditorView from '../views/EditorView.vue'
import GamesView from '../views/GamesView.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
@ -9,6 +11,16 @@ const router = createRouter({
name: 'home', name: 'home',
component: HomeView, component: HomeView,
}, },
{
path: '/editor',
name: 'editor',
component: EditorView,
},
{
path: '/games',
name: 'games',
component: GamesView,
},
], ],
}) })

7
src/views/EditorView.vue Normal file
View File

@ -0,0 +1,7 @@
<script setup lang="ts">
import EditorWindow from '../components/EditorWindow.vue'
</script>
<template>
<EditorWindow />
</template>

7
src/views/GamesView.vue Normal file
View File

@ -0,0 +1,7 @@
<script setup lang="ts">
import GamesWindow from '../components/GamesWindow.vue'
</script>
<template>
<GamesWindow />
</template>