docs: remove pick usage

This commit is contained in:
Benjamin Canac
2023-09-11 19:08:40 +02:00
parent 00e951f708
commit 1c707ca00d

View File

@@ -180,7 +180,6 @@
</template>
<script setup lang="ts">
import { pick } from 'lodash-es'
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne())
@@ -193,7 +192,7 @@ const { data: module } = await useFetch<{
username: string
}[]
}>('https://api.nuxt.com/modules/ui', {
transform: (module) => pick(module, ['stats', 'contributors'])
transform: ({ stats, contributors }) => ({ stats, contributors })
})
const source = ref('npm i @nuxt/ui')