Skip to content

Commit

Permalink
chore: link npm downloads to npm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Nov 27, 2024
1 parent 765d5e2 commit d1d4e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/pages/modules/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defineOgImageComponent('Docs', {

<div class="flex flex-col lg:flex-row lg:items-center gap-3 mt-4">
<UTooltip text="Monthly NPM Downloads">
<NuxtLink class="flex items-center gap-1.5" :to="`https://npmjs.org/package/${module.npm}`" target="_blank">
<NuxtLink class="flex items-center gap-1.5" :to="`https://npm.chart.dev/${module.npm}`" target="_blank">
<UIcon name="i-ph-arrow-circle-down" class="w-5 h-5 flex-shrink-0" />
<span class="text-sm font-medium">{{ formatNumber(module.stats.downloads) }} downloads</span>
</NuxtLink>
Expand Down
2 changes: 1 addition & 1 deletion app/pages/modules/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const { copy } = useCopyToClipboard()
<UTooltip text="Monthly NPM Downloads">
<NuxtLink
class="flex items-center gap-1 hover:text-gray-900 hover:dark:text-white"
:to="`https://npmjs.org/package/${module.npm}`"
:to="`https://npm.chart.dev/${module.npm}`"
target="_blank"
>
<UIcon name="i-ph-arrow-circle-down" class="w-4 h-4 flex-shrink-0" />
Expand Down

0 comments on commit d1d4e25

Please sign in to comment.