-
Notifications
You must be signed in to change notification settings - Fork 393
/
page.vue.hbs
50 lines (43 loc) · 1.51 KB
/
page.vue.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<vue-content-block :class="$style.{{ camelCase componentName }}">
<vue-box :padding="['24 16', '24 16', 24, 32]">
<vue-stack :space="[16, 16, 24, 32]">
<vue-breadcrumb :items="breadCrumbItems" />
<vue-text look="h1" as="h1">{{ properCase componentName }}</vue-text>
</vue-stack>
</vue-box>
</vue-content-block>
</template>
<script lang="ts">
import { computed, defineComponent, useContext, useMeta } from '@nuxtjs/composition-api';
import VueContentBlock from '@/components/layout/VueContentBlock/VueContentBlock.vue';
import VueBox from '@/components/layout/VueBox/VueBox.vue';
import VueStack from '@/components/layout/VueStack/VueStack.vue';
import VueBreadcrumb from '@/components/navigation/VueBreadcrumb/VueBreadcrumb.vue';
import VueText from '@/components/typography/VueText/VueText.vue';
export default defineComponent({
name: '{{ properCase componentName }}Page',
components: {
VueContentBlock,
VueBox,
VueStack,
VueBreadcrumb,
VueText,
},
setup() {
useMeta({ title: '{{ properCase componentName }}' });
const { app } = useContext();
const breadCrumbItems = computed(() => [{ label: app.i18n.t('common.{{ properCase componentName }}' /* {{ properCase componentName }} */), value: '/{{filePath}}/{{ dashCase componentName }}' }]);
return {
breadCrumbItems,
};
},
head: {},
});
</script>
<style lang="scss" module>
@import '~@/assets/design-system';
.{{ camelCase componentName }} {
padding-top: $navbar-height;
}
</style>