work-hub-server/apps/web/app/components/TemplateMenu.vue
Nicolas HOARAU f11c306ac6
All checks were successful
ci / ci (22) (push) Successful in 11m57s
feat: add type checking and linting improvements across the project
- Added "check-types" script to package.json for type checking in both api and web apps.
- Updated ESLint configuration to use a shared tooling package for consistent linting rules.
- Refactored TypeScript configurations to extend from shared tooling configurations.
- Improved code formatting and consistency in various files, including Vue components and TypeScript files.
- Introduced CI workflow for automated linting, formatting checks, and type checking on push and pull request events.
- Cleaned up unnecessary dependencies and updated existing ones for better performance and maintainability.
2026-06-04 16:33:06 +04:00

50 lines
1.3 KiB
Vue

<template>
<UDropdownMenu
v-slot="{ open }"
:modal="false"
:items="[{
label: 'Starter',
to: 'https://starter-template.nuxt.dev/',
color: 'primary',
checked: true,
type: 'checkbox',
}, {
label: 'Landing',
to: 'https://landing-template.nuxt.dev/',
}, {
label: 'Docs',
to: 'https://docs-template.nuxt.dev/',
}, {
label: 'SaaS',
to: 'https://saas-template.nuxt.dev/',
}, {
label: 'Dashboard',
to: 'https://dashboard-template.nuxt.dev/',
}, {
label: 'Chat',
to: 'https://chat-template.nuxt.dev/',
}, {
label: 'Portfolio',
to: 'https://portfolio-template.nuxt.dev/',
}, {
label: 'Changelog',
to: 'https://changelog-template.nuxt.dev/',
}]"
:content="{ align: 'start' }"
:ui="{ content: 'min-w-fit' }"
size="xs"
>
<UButton
label="Starter"
variant="subtle"
trailing-icon="i-lucide-chevron-down"
size="xs"
class="-mb-[6px] font-semibold rounded-full truncate"
:class="[open && 'bg-primary/15']"
:ui="{
trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' '),
}"
/>
</UDropdownMenu>
</template>