Skip to content

Commit b366eaa

Browse files
committed
chore: sync
1 parent 6e89cb9 commit b366eaa

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

app/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if (import.meta.client) {
118118
}
119119
120120
// title and description will be inferred
121-
// this will be overriden by upstream pages that use different templates
121+
// this will be overridden by upstream pages that use different templates
122122
defineOgImage('Page.takumi')
123123
</script>
124124

app/components/OgImage/Package.takumi.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async function fetchCodeTree() {
114114
function walk(nodes: JsDelivrFileNode[], depth: number) {
115115
for (const node of sorted(nodes)) {
116116
if (rows.length >= MAX_ROWS) return
117-
rows.push({ name: node.name, depth })
117+
rows.push({ name: node.name, depth, isDir: node.type === 'directory' })
118118
if (node.files) walk(node.files, depth + 1)
119119
}
120120
}

app/components/OgImage/Splash.takumi.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { name, description } = useSiteConfig()
1111

1212
<div class="flex flex-col">
1313
<div class="flex items-center gap-4">
14-
<img src="/logo.svg" width="100" height="100" />
14+
<img src="/logo.svg" width="100" height="100" alt="npmx logo" />
1515
<h1 class="text-8xl pb-3 font-mono">{{ name }}</h1>
1616
</div>
1717
<div class="text-4xl text-fg-muted gap-3">

test/e2e/og-image.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import { expect, test } from './test-utils'
33
// TODO(serhalp): The nuxt@3.20.2 fixture has no stars. Update fixture to have stars coverage here.
44

55
/**
6-
* OG image snapshot tests.
6+
* OG image snapshot tests (Takumi templates).
77
*
88
* Each entry tests a different visual edge case to catch layout/overflow regressions:
9-
* - Home page (Default template)
10-
* - Standard packages (Package template with various name lengths, scopes, descriptions)
9+
* - Home page (Splash.takumi)
10+
* - Static pages (Page.takumi)
11+
* - Packages (Package.takumi with download-chart, code-tree, function-tree variants)
1112
*/
1213
const testCases = [
1314
// Default OG image template

0 commit comments

Comments
 (0)