docs: update

This commit is contained in:
Benjamin Canac
2024-06-27 15:39:15 +02:00
parent 0b3ce24eb6
commit b5f42cdd3a
46 changed files with 792 additions and 52 deletions

View File

@@ -0,0 +1,42 @@
<script setup lang="ts">
import { upperFirst, camelCase } from 'scule'
import type { ComponentMeta } from 'vue-component-meta'
const route = useRoute()
const camelName = camelCase(route.params.slug[route.params.slug.length - 1])
const name = `U${upperFirst(camelName)}`
const componentMeta = await useComponentMeta(name as any)
const meta: ComputedRef<ComponentMeta> = computed(() => componentMeta.value.meta)
</script>
<template>
<ProseTable>
<ProseThead>
<ProseTr>
<ProseTh>
Event
</ProseTh>
<ProseTh>
Type
</ProseTh>
</ProseTr>
</ProseThead>
<ProseTbody>
<ProseTr v-for="event in meta.events" :key="event.name">
<ProseTd>
<ProseCodeInline>
{{ event.name }}
</ProseCodeInline>
</ProseTd>
<ProseTd>
<ProseCodeInline v-if="event.type" lang="ts">
{{ event.type }}
</ProseCodeInline>
</ProseTd>
</ProseTr>
</ProseTbody>
</ProseTable>
</template>