chore: initial scaffold
Generated by /init-project. React 19 + TS strict + Vite 6 + Tailwind 4 + shadcn/ui + motion + pdf-lib + Zod + Zustand + react-router 7. Empty skeleton, no business logic. Docker multi-stage + nginx + Traefik labels commented. AGPL-3.0-or-later.
This commit is contained in:
commit
a115e785a7
88 files changed
+12149
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { clsx, type ClassValue } from 'clsx';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
export function cn(...inputs: ClassValue[]): string {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { format, parseISO } from 'date-fns';
|
||||
import { fr } from 'date-fns/locale';
|
||||
|
||||
export function formatDateFr(iso: string): string {
|
||||
return format(parseISO(iso), 'd MMMM yyyy', { locale: fr });
|
||||
}
|
||||
|
||||
export function todayIso(): string {
|
||||
return new Date().toISOString().slice(0, 10);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
export function newId(prefix?: string): string {
|
||||
return prefix ? `${prefix}_${nanoid(10)}` : nanoid(12);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import type { Transition } from 'motion/react';
|
||||
|
||||
export const SPRING: Transition = {
|
||||
type: 'spring',
|
||||
stiffness: 260,
|
||||
damping: 22,
|
||||
};
|
||||
|
||||
export const FADE_IN_UP: Transition = {
|
||||
duration: 0.2,
|
||||
ease: [0.22, 1, 0.36, 1],
|
||||
};
|
||||
Reference in new issue
Block a user