diff --git a/.gitignore b/.gitignore index e32977a0..b95b021d 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ broken-skills.json # PR Lens writes its previews here. They are rebuilt on demand. .pr-lens/ layers/registry/server/data/skill-demos.json.lock + +# Native checker configurations stay beside their original projects. +**/.site-typecheck/ diff --git a/app/component-attributes.d.ts b/app/component-attributes.d.ts new file mode 100644 index 00000000..0937d3bb --- /dev/null +++ b/app/component-attributes.d.ts @@ -0,0 +1,8 @@ +import type { AriaAttributes, HTMLAttributes } from 'vue' + +declare module 'vue' { + // Components pass these standard attributes and listeners through $attrs. + interface ComponentCustomProps extends AriaAttributes, Pick { + onClick?: ((event: MouseEvent) => void) | Array<(event: MouseEvent) => void> + } +} diff --git a/app/components/HomeSearch.vue b/app/components/HomeSearch.vue index 88b713fd..b4c23e56 100644 --- a/app/components/HomeSearch.vue +++ b/app/components/HomeSearch.vue @@ -59,7 +59,7 @@ const submitLabel = computed(() => (state.value._tag === 'repository' ? 'Index r icon="i-lucide-search" placeholder="Search skills or repos" name="q" - enterkeyhint="search" + enterKeyHint="search" size="xl" color="neutral" autocomplete="off" diff --git a/app/components/SkillSearchTrigger.vue b/app/components/SkillSearchTrigger.vue index 313ac876..ffbed8c6 100644 --- a/app/components/SkillSearchTrigger.vue +++ b/app/components/SkillSearchTrigger.vue @@ -54,7 +54,7 @@ watch(() => route.fullPath, () => { icon="i-lucide-search" placeholder="Search" name="skill-search" - enterkeyhint="search" + enterKeyHint="search" size="sm" autocomplete="off" role="combobox" @@ -102,7 +102,7 @@ watch(() => route.fullPath, () => { icon="i-lucide-search" placeholder="Search skills or repos" name="skill-search-mobile" - enterkeyhint="search" + enterKeyHint="search" size="lg" autocomplete="off" role="combobox" diff --git a/app/components/WeeklyEmailPreview.vue b/app/components/WeeklyEmailPreview.vue index 7252cb30..5e12f6bf 100644 --- a/app/components/WeeklyEmailPreview.vue +++ b/app/components/WeeklyEmailPreview.vue @@ -23,7 +23,7 @@ const hasDemo = computed(() => !!demo.value?.card && (demo.value?.rowCount ?? 0) /** * CSS changes the card's palette. Switching themes costs no request. */ -const card = computed(() => demo.value?.card) +const card = computed(() => demo.value?.card ?? '')