diff --git a/GUI/src/App.vue b/GUI/src/App.vue deleted file mode 100644 index abfd315..0000000 --- a/GUI/src/App.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - - You did it! - - Visit vuejs.org to read the - documentation - - - - diff --git a/GUI/src/Layout.vue b/GUI/src/Layout.vue new file mode 100644 index 0000000..adc4f91 --- /dev/null +++ b/GUI/src/Layout.vue @@ -0,0 +1,8 @@ + + + + You did it! + + + + diff --git a/GUI/src/main.ts b/GUI/src/main.ts index c09854a..08d2815 100644 --- a/GUI/src/main.ts +++ b/GUI/src/main.ts @@ -1,5 +1,5 @@ import { createApp } from 'vue' -import App from './App.vue' +import App from './Layout.vue' import router from './router' import vuetify from './plugins/vuetify' diff --git a/GUI/src/router/index.ts b/GUI/src/router/index.ts index e1eab52..07d76ff 100644 --- a/GUI/src/router/index.ts +++ b/GUI/src/router/index.ts @@ -1,8 +1,17 @@ +import Home from '@/routes/Home.vue' +import NotFound from '@/routes/404NotFound.vue' import { createRouter, createWebHistory } from 'vue-router' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), - routes: [], + routes: [ + { + name: 'Home', + path: '/', + component: Home, + }, + { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound }, + ], }) export default router diff --git a/GUI/src/routes/404NotFound.vue b/GUI/src/routes/404NotFound.vue new file mode 100644 index 0000000..7b62b86 --- /dev/null +++ b/GUI/src/routes/404NotFound.vue @@ -0,0 +1,21 @@ + + + + 404 + + + diff --git a/GUI/src/routes/Home.vue b/GUI/src/routes/Home.vue new file mode 100644 index 0000000..eba75b9 --- /dev/null +++ b/GUI/src/routes/Home.vue @@ -0,0 +1,9 @@ + + + + Home Vue + + + \ No newline at end of file
- Visit vuejs.org to read the - documentation -