Skip to content

Commit 9adfedc

Browse files
[autofix.ci] apply automated fixes
1 parent 2758f20 commit 9adfedc

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

app/components/OgImage/Compare.vue

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ try {
4444
$fetch<{ downloads: number }>(
4545
`https://api.npmjs.org/downloads/point/last-week/${encoded}`,
4646
).catch(() => null),
47-
$fetch<{ 'dist-tags'?: { latest?: string } }>(
48-
`https://registry.npmjs.org/${encoded}`,
49-
{ headers: { Accept: 'application/vnd.npm.install-v1+json' } },
50-
).catch(() => null),
47+
$fetch<{ 'dist-tags'?: { latest?: string } }>(`https://registry.npmjs.org/${encoded}`, {
48+
headers: { Accept: 'application/vnd.npm.install-v1+json' },
49+
}).catch(() => null),
5150
])
5251
return {
5352
name,
@@ -118,31 +117,20 @@ function barPct(downloads: number): string {
118117
class="opacity-80 tracking-[-0.1em]"
119118
:style="{ color: primaryColor }"
120119
style="margin-right: 0.25rem"
121-
>./</span>compare
120+
>./</span
121+
>compare
122122
</h1>
123123
</div>
124124

125125
<!-- Bar chart rows -->
126126
<div class="flex flex-col gap-2">
127-
<div
128-
v-for="pkg in stats"
129-
:key="pkg.name"
130-
class="flex flex-col gap-1"
131-
>
127+
<div v-for="pkg in stats" :key="pkg.name" class="flex flex-col gap-1">
132128
<!-- Label row: name + downloads + version -->
133-
<div
134-
class="flex items-center gap-3"
135-
style="font-family: 'Geist', sans-serif"
136-
>
137-
<span
138-
class="text-2xl font-semibold tracking-tight"
139-
:style="{ color: pkg.color }"
140-
>
129+
<div class="flex items-center gap-3" style="font-family: 'Geist', sans-serif">
130+
<span class="text-2xl font-semibold tracking-tight" :style="{ color: pkg.color }">
141131
{{ pkg.name }}
142132
</span>
143-
<span class="text-xl text-[#737373]">
144-
{{ formatDownloads(pkg.downloads) }}/wk
145-
</span>
133+
<span class="text-xl text-[#737373]"> {{ formatDownloads(pkg.downloads) }}/wk </span>
146134
<span
147135
v-if="pkg.version"
148136
class="text-lg px-2 py-0.5 rounded-md border"

0 commit comments

Comments
 (0)