Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue committed May 6, 2024
2 parents 12f7755 + 36dfcea commit 7adc373
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/.vitepress/theme/components/Contributors.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script setup lang="ts">
// @ts-expect-error missing types
import _contributors from '/virtual-contributors'
import { computed } from 'vue'
import { computed, onMounted } from 'vue'
import type { ContributorInfo } from '@vueuse/metadata'
const props = defineProps<{ fn: string }>()
onMounted(() => {
// eslint-disable-next-line no-console
console.log('贡献者', _contributors)
})
const contributors = computed(() => _contributors[props.fn] || [] as ContributorInfo[])
</script>
Expand Down
3 changes: 2 additions & 1 deletion scripts/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import md5 from 'md5'
import Git from 'simple-git'
import type { CommitInfo, ContributorInfo } from '@vueuse/metadata'
import { functions } from '@vueuse/metadata'
import { functions } from '../packages/metadata'
import { uniq } from './utils'

const git = Git({
Expand Down Expand Up @@ -72,5 +72,6 @@ export async function getFunctionContributors() {
const result = await Promise.all(functions.map(async (i) => {
return [i.name, await getContributorsAt(`packages/${i.package}/${i.name}`)] as const
}))
console.log('查看贡献者列表', Object.fromEntries(result.slice(0, 10)))
return Object.fromEntries(result)
}

0 comments on commit 7adc373

Please sign in to comment.