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> </script>
<template> <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> <WelcomeItem>
<template #icon> <template #icon>
<ToolingIcon /> <ToolingIcon />
@ -85,3 +71,5 @@ import SupportIcon from './icons/IconSupport.vue'
<a target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</a>. <a target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</a>.
</WelcomeItem> </WelcomeItem>
</template> </template>
<style lang="postcss">
</style>

View File

@ -8,15 +8,7 @@ const router = createRouter({
{ {
path: '/', path: '/',
name: 'home', name: 'home',
component: HomeView 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'),
meta: { meta: {
layout: 'NoNavbarDemoLayout' layout: 'NoNavbarDemoLayout'
} }
@ -25,7 +17,7 @@ const router = createRouter({
path: "/login", path: "/login",
component: HomeView, component: HomeView,
beforeEnter(to, from, next) { beforeEnter(to, from, next) {
window.location.href = "https://google.com/contact"; window.location.href = "/sso/login/";
} }
}, },
{ {

View File

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

View File

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