13fdf97f5a
- Refactor `Field.vue` for better state management and event handling. - Update path references for SVG assets. - Add selection highlighting in game field with red and white arrows. - Simplify and organize styles in game components. - Minor updates to local mode game logic (`LocalMode.vue`).
24 lines
553 B
TypeScript
24 lines
553 B
TypeScript
import Home from '@/Home.vue'
|
|
import NotFound from '@/NotFound.vue'
|
|
import LocalMode from '@/routes/LocalMode.vue'
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'Startseite',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: "/localMode",
|
|
name: "LocalMode",
|
|
component: LocalMode
|
|
},
|
|
{ path: '/:pathMatch(.*)*', name: 'Nicht gefunden', component: NotFound },
|
|
],
|
|
})
|
|
|
|
export default router
|