Skip to content

Commit 0a68b75

Browse files
committed
Merge branch 'visual-adjustments' of https://github.com/jellydeck/npmx.dev into visual-adjustments
2 parents e9aaa19 + 0fb0c6c commit 0a68b75

14 files changed

Lines changed: 104 additions & 54 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,6 @@ jobs:
191191

192192
- name: 🧹 Check for unused code
193193
run: pnpm knip
194+
195+
- name: 🧹 Check for unused production code
196+
run: pnpm knip --production

app/components/Compare/ComparisonGrid.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ defineProps<{
2222
:key="index"
2323
class="comparison-cell comparison-cell-header"
2424
>
25-
<span class="font-mono text-sm font-medium text-fg truncate" :title="header">
25+
<NuxtLink
26+
:to="`/package/${header}`"
27+
class="link-subtle font-mono text-sm font-medium text-fg truncate"
28+
:title="header"
29+
>
2630
{{ header }}
27-
</span>
31+
</NuxtLink>
2832
</div>
2933
</div>
3034

app/components/ProvenanceBadge.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ const title = computed(() =>
3535
class="inline-flex items-center justify-center gap-1 text-xs font-mono text-fg-muted hover:text-fg transition-colors duration-200 min-w-6 min-h-6"
3636
:title="title"
3737
>
38-
<span
39-
class="i-solar-shield-check-outline shrink-0"
40-
:class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'"
41-
/>
38+
<span class="i-lucide-shield-check shrink-0" :class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'" />
4239
<span v-if="!compact" class="sr-only sm:not-sr-only">{{
4340
$t('badges.provenance.verified')
4441
}}</span>
@@ -48,10 +45,7 @@ const title = computed(() =>
4845
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted"
4946
:title="title"
5047
>
51-
<span
52-
class="i-solar-shield-check-outline shrink-0"
53-
:class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'"
54-
/>
48+
<span class="i-lucide-shield-check shrink-0" :class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'" />
5549
<span v-if="!compact" class="sr-only sm:not-sr-only">{{
5650
$t('badges.provenance.verified')
5751
}}</span>

app/error.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const props = defineProps<{
55
error: NuxtError
66
}>()
77
8-
const status = computed(() => props.error.status || 500)
8+
const status = computed(() => props.error.statusCode || 500)
99
const statusText = computed(() => {
10-
if (props.error.statusText) return props.error.statusText
10+
if (props.error.statusMessage) return props.error.statusMessage
1111
switch (status.value) {
1212
case 404:
1313
return 'Page not found'

app/pages/package-docs/[...path].vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,11 @@ const showEmptyState = computed(() => docsData.value?.status !== 'ok')
472472
.docs-content .docs-members pre code {
473473
@apply text-fg-muted;
474474
}
475+
476+
.docs-content .docs-symbol-name,
477+
.docs-content .docs-members dl dd,
478+
.docs-content .docs-members dl dt code,
479+
.docs-content .docs-section .docs-symbol .docs-description {
480+
word-break: break-all;
481+
}
475482
</style>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ defineOgImageComponent('Package', {
531531
class="inline-flex items-center justify-center gap-1.5 text-fg-muted hover:text-fg transition-colors duration-200 min-w-6 min-h-6"
532532
:title="$t('package.verified_provenance')"
533533
>
534-
<span class="i-solar:shield-check-outline w-3.5 h-3.5 shrink-0" aria-hidden="true" />
534+
<span class="i-lucide-shield-check w-3.5 h-3.5 shrink-0" aria-hidden="true" />
535535
</a>
536536
<span
537537
v-if="requestedVersion && latestVersion && resolvedVersion !== latestVersion.version"
@@ -853,7 +853,7 @@ defineOgImageComponent('Package', {
853853
class="text-fg-subtle hover:text-fg transition-colors duration-200 inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1"
854854
:title="$t('package.stats.inspect_dependency_tree')"
855855
>
856-
<span class="i-solar:eye-scan-outline w-3.5 h-3.5" aria-hidden="true" />
856+
<span class="i-lucide-view w-3.5 h-3.5" aria-hidden="true" />
857857
<span class="sr-only">{{ $t('package.stats.inspect_dependency_tree') }}</span>
858858
</a>
859859
</dd>

docs/content/2.guide/1.features.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,32 @@ Make sure to replace `TYPE` with one of the options listed below and `YOUR_PACKA
158158

159159
You can further customize your badges by appending query parameters to the badge URL.
160160

161+
##### `labelColor`
162+
163+
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix).
164+
165+
- **Default**: `#0a0a0a`
166+
- **Usage**: `?labelColor=HEX_CODE`
167+
168+
##### `label`
169+
170+
Overrides the default label text. You can pass any string to customize the label displayed on the badge.
171+
172+
- **Default**: Depends on the badge type (e.g., "version", "downloads/mo").
173+
- **Usage**: `?label=YOUR_LABEL`
174+
161175
##### `color`
162176

163177
Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix).
164178

165179
- **Default**: Depends on the badge type (e.g., version is blue, downloads are orange).
166180
- **Usage**: `?color=HEX_CODE`
167181

168-
| Example | URL |
169-
| :------------- | :------------------------------------ |
170-
| **Hot Pink** | `.../badge/version/nuxt?color=ff69b4` |
171-
| **Pure Black** | `.../badge/version/nuxt?color=000000` |
172-
| **Brand Blue** | `.../badge/version/nuxt?color=3b82f6` |
182+
| Example | URL |
183+
| :------------- | :------------------------------------- |
184+
| **Hot Pink** | `.../badge/version/nuxt?colorB=ff69b4` |
185+
| **Pure Black** | `.../badge/version/nuxt?colorB=000000` |
186+
| **Brand Blue** | `.../badge/version/nuxt?colorB=3b82f6` |
173187

174188
##### `name`
175189

knip.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const config: KnipConfig = {
2525
'uno-preset-rtl.ts!',
2626
'scripts/**/*.ts',
2727
],
28-
project: ['**/*.{ts,vue,cjs,mjs}'],
29-
ignore: ['test/fixtures/**'],
28+
project: ['**/*.{ts,vue,cjs,mjs}', '!test/fixtures/**'],
3029
ignoreDependencies: [
3130
'@iconify-json/*',
3231
'@vercel/kv',

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"@iconify-json/carbon": "1.2.18",
4949
"@iconify-json/lucide": "1.2.87",
5050
"@iconify-json/simple-icons": "1.2.68",
51-
"@iconify-json/solar": "1.2.5",
5251
"@iconify-json/svg-spinners": "1.2.4",
5352
"@iconify-json/vscode-icons": "1.2.40",
5453
"@intlify/shared": "11.2.8",
@@ -117,7 +116,6 @@
117116
"lint-staged": "16.2.7",
118117
"oxfmt": "0.27.0",
119118
"oxlint": "1.42.0",
120-
"playwright-core": "1.58.0",
121119
"schema-dts": "1.1.5",
122120
"simple-git-hooks": "2.13.1",
123121
"typescript": "5.9.3",

pnpm-lock.yaml

Lines changed: 10 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)