Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
import { clsx } from 'clsx';
|
|
import type { ClassValue } from 'clsx';
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function toUrl(href: NonNullable<InertiaLinkProps['href']>) {
|
|
return typeof href === 'string' ? href : href?.url;
|
|
}
|