Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
// 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'),
+ },
+
+ // Add the demo page (this is being lazy-loaded)
+ {
+ path: "/demo",
+ name: "demo",
+ component: () => import("../views/DemoView.vue"),
},
],
})
--- /dev/null
+<!--
+ This is a demo page that shows all possible elements for testing.
+-->
+
+<script setup lang="ts">
+ import Section from "../components/Section.vue"
+</script>
+
+<template>
+ <Section :title="$t('This Is A Section')">
+ <p>{{ $t("The section can have any content...") }}</p>
+ </Section>
+</template>