Skip to content

Commit 1d1e74f

Browse files
committed
Merge remote-tracking branch 'upstream/main' into refactor-remove-unnecessary-prop-from-links
2 parents 86242b9 + 893a3d3 commit 1d1e74f

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

app/components/OgImage/Package.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ if (
3232
}
3333
3434
const { data: downloads, refresh: refreshDownloads } = usePackageDownloads(name, 'last-week')
35-
const { data: pkg, refresh: refreshPkg } = usePackage(name, resolvedVersion.value ?? version.value)
35+
const { data: pkg, refresh: refreshPkg } = usePackage(
36+
name,
37+
() => resolvedVersion.value ?? version.value,
38+
)
3639
const displayVersion = computed(() => pkg.value?.requestedVersion ?? null)
3740
3841
const repositoryUrl = computed(() => {

app/pages/about.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,32 +108,32 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
108108
>
109109
<template #already>{{ $t('about.what_we_are_not.words.already') }}</template>
110110
<template #people>
111-
<LinkBase :to="pmLinks.npm">{{
111+
<LinkBase :to="pmLinks.npm" class="font-sans">{{
112112
$t('about.what_we_are_not.words.people')
113113
}}</LinkBase>
114114
</template>
115115
<template #building>
116-
<LinkBase :to="pmLinks.pnpm">{{
116+
<LinkBase :to="pmLinks.pnpm" class="font-sans">{{
117117
$t('about.what_we_are_not.words.building')
118118
}}</LinkBase>
119119
</template>
120120
<template #really>
121-
<LinkBase :to="pmLinks.yarn">{{
121+
<LinkBase :to="pmLinks.yarn" class="font-sans">{{
122122
$t('about.what_we_are_not.words.really')
123123
}}</LinkBase>
124124
</template>
125125
<template #cool>
126-
<LinkBase :to="pmLinks.bun">{{
126+
<LinkBase :to="pmLinks.bun" class="font-sans">{{
127127
$t('about.what_we_are_not.words.cool')
128128
}}</LinkBase>
129129
</template>
130130
<template #package>
131-
<LinkBase :to="pmLinks.deno">{{
131+
<LinkBase :to="pmLinks.deno" class="font-sans">{{
132132
$t('about.what_we_are_not.words.package')
133133
}}</LinkBase>
134134
</template>
135135
<template #managers>
136-
<LinkBase :to="pmLinks.vlt">{{
136+
<LinkBase :to="pmLinks.vlt" class="font-sans">{{
137137
$t('about.what_we_are_not.words.managers')
138138
}}</LinkBase>
139139
</template>

app/pages/compare.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ useSeoMeta({
257257
<!-- Empty state -->
258258
<section
259259
v-else
260-
class="text-center px-1.5 py-16 border border-dashed border-border rounded-lg"
260+
class="text-center px-1.5 py-16 border border-dashed border-border-hover rounded-lg"
261261
>
262262
<div class="i-carbon:compare w-12 h-12 text-fg-subtle mx-auto mb-4" aria-hidden="true" />
263263
<h2 class="font-mono text-lg text-fg-muted mb-2">

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const {
141141
data: pkg,
142142
status,
143143
error,
144-
} = usePackage(packageName, resolvedVersion.value ?? requestedVersion.value)
144+
} = usePackage(packageName, () => resolvedVersion.value ?? requestedVersion.value)
145145
const displayVersion = computed(() => pkg.value?.requestedVersion ?? null)
146146
147147
// Process package description

nuxt.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ export default defineNuxtConfig({
8888
routeRules: {
8989
// API routes
9090
'/api/**': { isr: 60 },
91+
'/api/registry/badge/**': {
92+
isr: {
93+
expiration: 60 * 60 /* one hour */,
94+
passQuery: true,
95+
allowQuery: ['color', 'labelColor', 'label', 'name'],
96+
},
97+
},
9198
'/api/registry/docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
9299
'/api/registry/file/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
93100
'/api/registry/provenance/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },

0 commit comments

Comments
 (0)