Added basic navigation, views for all components

This commit is contained in:
2023-06-14 10:20:28 +02:00
parent cb00ae291a
commit d94e4c3043
8 changed files with 65 additions and 0 deletions

View File

@@ -13,6 +13,11 @@ onMounted(() => {
</script>
<template>
<button @click="$router.push('/xml')">XML</button>
<button @click="$router.push('/formatter')">Formatter</button>
<button @click="$router.push('/restmock')">REST Mock</button>
<RouterView></RouterView>
</template>

View File

@@ -1,6 +1,9 @@
import { createRouter, createWebHistory } from 'vue-router'
const landingPage = import("@/views/LandingView.vue")
const xmlTool = import("@/views/XmlToolView.vue")
const restMock = import("@/views/RestMockView.vue")
const formatter = import("@/views/FormatterView.vue")
const routes = [
{
@@ -8,6 +11,21 @@ const routes = [
name: 'landing',
component: () => landingPage
},
{
path: '/xml',
name: 'xmltool',
component: () => xmlTool
},
{
path: '/restmock',
name: 'restmock',
component: () => restMock
},
{
path: '/formatter',
name: 'formatter',
component: () => formatter
},
]

View File

@@ -0,0 +1,14 @@
<script lang="ts">
import FormatterComponent from '@/components/FormatterComponent.vue'
export default {
name:"FormatterView",
components: {FormatterComponent}
}
</script>
<template>
<FormatterComponent></FormatterComponent>
</template>

View File

@@ -0,0 +1,14 @@
<script lang="ts">
import RestMockComponent from '@/components/RestMockComponent.vue'
export default {
name:"RestMockView",
components: {RestMockComponent}
}
</script>
<template>
<RestMockComponent></RestMockComponent>
</template>

View File

@@ -0,0 +1,14 @@
<script lang="ts">
import XmlToolComponent from '@/components/XmlToolComponent.vue'
export default {
name:"XmlToolView",
components: {XmlToolComponent}
}
</script>
<template>
<XmlToolComponent></XmlToolComponent>
</template>