Implemented basic Vue.js frontend #222
@@ -13,6 +13,11 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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>
|
<RouterView></RouterView>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
|
|
||||||
const landingPage = import("@/views/LandingView.vue")
|
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 = [
|
const routes = [
|
||||||
{
|
{
|
||||||
@@ -8,6 +11,21 @@ const routes = [
|
|||||||
name: 'landing',
|
name: 'landing',
|
||||||
component: () => landingPage
|
component: () => landingPage
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/xml',
|
||||||
|
name: 'xmltool',
|
||||||
|
component: () => xmlTool
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/restmock',
|
||||||
|
name: 'restmock',
|
||||||
|
component: () => restMock
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/formatter',
|
||||||
|
name: 'formatter',
|
||||||
|
component: () => formatter
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
14
new-frontend/src/views/FormatterView.vue
Normal file
14
new-frontend/src/views/FormatterView.vue
Normal 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>
|
||||||
|
|
||||||
14
new-frontend/src/views/RestMockView.vue
Normal file
14
new-frontend/src/views/RestMockView.vue
Normal 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>
|
||||||
|
|
||||||
14
new-frontend/src/views/XmlToolView.vue
Normal file
14
new-frontend/src/views/XmlToolView.vue
Normal 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>
|
||||||
|
|
||||||
Reference in New Issue
Block a user