Move business logic out of App Router into module packages, add boundary validation scripts, and keep all routes as thin re-exports without changing URLs or API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
1001 B
TypeScript
35 lines
1001 B
TypeScript
/** Beauty module visual tokens — extends global DS (globals.css). */
|
|
export const beautyTokens = {
|
|
accent: "var(--beauty-accent)",
|
|
accentSoft: "var(--beauty-accent-soft)",
|
|
warm: "var(--beauty-warm)",
|
|
calm: "var(--beauty-calm)",
|
|
success: "var(--beauty-success)",
|
|
warning: "var(--beauty-warning)",
|
|
danger: "var(--beauty-danger)",
|
|
} as const;
|
|
|
|
export const appointmentStatusTone: Record<
|
|
string,
|
|
"default" | "primary" | "success" | "warning" | "danger" | "info"
|
|
> = {
|
|
requested: "default",
|
|
confirmed: "primary",
|
|
checked_in: "info",
|
|
in_progress: "warning",
|
|
completed: "success",
|
|
cancelled: "danger",
|
|
no_show: "warning",
|
|
};
|
|
|
|
export const businessFormatLabels: Record<string, string> = {
|
|
salon: "سالن زیبایی",
|
|
barbershop: "آرایشگاه",
|
|
clinic: "کلینیک زیبایی",
|
|
laser: "لیزر",
|
|
skin_care: "مراقبت پوست",
|
|
hair_treatment: "درمان مو",
|
|
spa: "اسپا",
|
|
mixed: "ترکیبی",
|
|
};
|