- Rename and restructure components and assets for uniformity.
- 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`).
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user