Skip to content

Commit b7db8e0

Browse files
Merge branch 'main' into feat/invalid-query-length-message
2 parents 16bbda3 + 56b443e commit b7db8e0

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

app/pages/index.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ import { debounce } from 'perfect-debounce'
44
const searchQuery = shallowRef('')
55
const searchInputRef = useTemplateRef('searchInputRef')
66
const { focused: isSearchFocused } = useFocus(searchInputRef)
7+
const frameworks = ref([
8+
{ name: 'nuxt', package: 'nuxt' },
9+
{ name: 'vue', package: 'vue' },
10+
{ name: 'react', package: 'react' },
11+
{ name: 'svelte', package: 'svelte' },
12+
{ name: 'vite', package: 'vite' },
13+
{ name: 'next', package: 'next' },
14+
{ name: 'astro', package: 'astro' },
15+
{ name: 'typescript', package: 'typescript' },
16+
{ name: 'Angular', package: '@angular/core' },
17+
])
718
819
async function search() {
920
const query = searchQuery.value.trim()
@@ -114,18 +125,15 @@ defineOgImageComponent('Default', {
114125
style="animation-delay: 0.3s"
115126
>
116127
<ul class="flex flex-wrap items-center justify-center gap-x-6 gap-y-3 list-none m-0 p-0">
117-
<li
118-
v-for="pkg in ['nuxt', 'vue', 'react', 'svelte', 'vite', 'next', 'astro', 'typescript']"
119-
:key="pkg"
120-
>
128+
<li v-for="framework in frameworks" :key="framework.name">
121129
<NuxtLink
122-
:to="{ name: 'package', params: { package: [pkg] } }"
130+
:to="{ name: 'package', params: { package: [framework.package] } }"
123131
class="link-subtle font-mono text-sm inline-flex items-center gap-2 group"
124132
>
125133
<span
126134
class="w-1 h-1 rounded-full bg-accent group-hover:bg-fg transition-colors duration-200"
127135
/>
128-
{{ pkg }}
136+
{{ framework.name }}
129137
</NuxtLink>
130138
</li>
131139
</ul>

test/nuxt/a11y.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ describe('background theme accessibility', () => {
19781978
it(`${colorMode}/${bgTheme}`, async () => {
19791979
applyTheme(colorMode, bgTheme)
19801980
const results = await runAxe(await mount())
1981-
await new Promise(resolve => setTimeout(resolve, 2000))
1981+
await nextTick()
19821982
expect(results.violations).toEqual([])
19831983
})
19841984
}

0 commit comments

Comments
 (0)