feat: migrate showcase to Next.js and overhaul CRM UI
- rebuild the public site on the Next.js App Router with static export, per-section SEO pages, metadata, sitemap, robots and a generated OG image - add full-screen scroll-snap regions, staged scroll reveals, a hash-free tab navigation with a sliding indicator and region-by-region menu scrolling - replace the theme text toggle with animated sun/moon icons - restructure the CRM API into config, middleware, models, routes, services and utils layers - redesign the CRM shell with a single surface, tab rail, full-width blurred DataTable, record dialogs and mask-based icons - update Docker/Nginx publishing, Makefile targets, shared UI polish and docs
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/** Normalisations de texte partagées par les services. */
|
||||
|
||||
/** Slug lisible : sans accent, sans ponctuation, séparé par des tirets. */
|
||||
export const slugify = (value: string): string =>
|
||||
value
|
||||
.normalize("NFD")
|
||||
.replace(/[\u0300-\u036f]/g, "")
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9]+/g, "-")
|
||||
.replace(/^-+|-+$/g, "")
|
||||
.slice(0, 255);
|
||||
|
||||
/** Un e-mail absent ne doit pas heurter l'index unique : NULL passe partout. */
|
||||
export const normalizeEmail = (value: string | null | undefined): string | null =>
|
||||
value ? value.toLowerCase() : null;
|
||||
Reference in New Issue
Block a user