mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs: remove pick usage
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user