Add nuxt template
This commit is contained in:
parent
e722d4b062
commit
a37bba93fe
32
server/utils/buildNuxtTemplate.js
Normal file
32
server/utils/buildNuxtTemplate.js
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
export function buildNuxtTemplate({ title, name }) {
|
||||||
|
return `<script setup>
|
||||||
|
definePageMeta({
|
||||||
|
title: "${title}",
|
||||||
|
middleware: ["auth"],
|
||||||
|
requiresAuth: true,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<LayoutsBreadcrumb />
|
||||||
|
<rs-card>
|
||||||
|
<template #header>
|
||||||
|
<div>
|
||||||
|
${title}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #body>
|
||||||
|
<div>
|
||||||
|
Content for ${title}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</rs-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/* Add your styles here */
|
||||||
|
</style>
|
||||||
|
`;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user