Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion app/components/module/ModuleItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,22 @@ const items = computed(() => [
target: '_blank'
},
{
label: 'View on npm',
label: 'View downloads',
icon: 'i-lucide-package',
to: `https://npm.chart.dev/${props.module.npm}`,
target: '_blank'
},
{
label: 'View on npm',
icon: 'i-simple-icons-npm',
to: `https://www.npmjs.com/package/${props.module.npm}`,
target: '_blank'
},
{
label: 'View on npmx',
icon: 'i-simple-icons-npm',
to: `https://npmx.dev/package/${props.module.npm}`,
target: '_blank'
Comment thread
Norbiros marked this conversation as resolved.
Outdated
}
]
])
Expand Down
5 changes: 5 additions & 0 deletions app/pages/modules/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const links = computed(() => module.value
label: module.value.npm,
to: `https://npmjs.org/package/${module.value.npm}`,
target: '_blank'
}, module.value.npm && {
icon: 'i-simple-icons-npm',
label: 'npmx',
to: `https://npmx.dev/package/${module.value.npm}`,
target: '_blank'
}, module.value.learn_more && {
icon: 'i-lucide-link',
label: 'Learn more',
Expand Down
3 changes: 2 additions & 1 deletion server/routes/raw/modules.md.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default defineCachedEventHandler(async (event) => {
const links = [
mod.website ? `[Docs](${mod.website})` : '',
mod.repo ? `[GitHub](https://github.com/${mod.repo})` : '',
`[npm](https://www.npmjs.com/package/${mod.npm})`
`[npm](https://www.npmjs.com/package/${mod.npm})`,
`[npmx](https://npmx.dev/package/${mod.npm})`
].filter(Boolean).join(' · ')

lines.push(`### ${mod.npm}`, '')
Expand Down