Add test page

This commit is contained in:
Christian Cueni 2022-04-14 11:20:14 +02:00
parent 32182fab27
commit a2622d7c5b
4 changed files with 7 additions and 26 deletions

View File

@ -8,20 +8,6 @@ import SupportIcon from './icons/IconSupport.vue'
</script>
<template>
<WelcomeItem>
<template #icon>
<DocumentationIcon />
</template>
<template #heading>Documentation</template>
<p>{{ $t("test") }}</p>
Vues
<a class="bg-blue" target="_blank" href="https://vuejs.org/">official documentation</a>
provides you with all information you need to get started.
<h1 class="text-3xl font-bold underline">
Hello world!
</h1>
</WelcomeItem>
<WelcomeItem>
<template #icon>
<ToolingIcon />
@ -85,3 +71,5 @@ import SupportIcon from './icons/IconSupport.vue'
<a target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</a>.
</WelcomeItem>
</template>
<style lang="postcss">
</style>

View File

@ -8,15 +8,7 @@ const router = createRouter({
{
path: '/',
name: 'home',
component: HomeView
},
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('../views/AboutView.vue'),
component: HomeView,
meta: {
layout: 'NoNavbarDemoLayout'
}
@ -25,7 +17,7 @@ const router = createRouter({
path: "/login",
component: HomeView,
beforeEnter(to, from, next) {
window.location.href = "https://google.com/contact";
window.location.href = "/sso/login/";
}
},
{

View File

@ -1,6 +1,6 @@
<template>
<div class="about">
<h1>This is an about page</h1>
<h1>This is a profile page</h1>
</div>
</template>

View File

@ -23,7 +23,8 @@ export default defineConfig({
},
server: {
proxy: {
'/foo': 'http://localhost:4567',
'/sso': 'http://localhost:8000',
'/api': 'http://localhost:8000',
}
},
})