docs: remove lodash (#678)

This commit is contained in:
Benjamin Canac
2023-09-14 19:19:20 +02:00
committed by GitHub
parent d6476d17f9
commit 4127caac76
8 changed files with 81 additions and 47 deletions

View File

@@ -5,6 +5,7 @@
<script setup lang="ts">
// @ts-expect-error
import { transformContent } from '@nuxt/content/transformers'
import { upperFirst, camelCase } from 'scule'
const props = defineProps({
slug: {
@@ -17,8 +18,8 @@ const appConfig = useAppConfig()
const route = useRoute()
// eslint-disable-next-line vue/no-dupe-keys
const slug = props.slug || route.params.slug[route.params.slug.length - 1]
const camelName = useCamelCase(slug)
const name = `U${useUpperFirst(camelName)}`
const camelName = camelCase(slug)
const name = `U${upperFirst(camelName)}`
const preset = appConfig.ui[camelName]