Commit completed Torbat Pages admin frontend module, BFF proxy, routes, and validation artifacts for official platform deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
768 B
TypeScript
23 lines
768 B
TypeScript
export const experienceTokens = {
|
|
accent: "var(--experience-accent)",
|
|
accentSoft: "var(--experience-accent-soft)",
|
|
success: "var(--experience-success)",
|
|
warning: "var(--experience-warning)",
|
|
danger: "var(--experience-danger)",
|
|
} as const;
|
|
|
|
export const publishStatusLabels: Record<string, string> = {
|
|
draft: "پیشنویس",
|
|
published: "منتشر شده",
|
|
archived: "بایگانی",
|
|
active: "فعال",
|
|
inactive: "غیرفعال",
|
|
};
|
|
|
|
export const publishStatusTone = (status: string): "default" | "success" | "warning" | "danger" => {
|
|
if (status === "published" || status === "active") return "success";
|
|
if (status === "draft") return "warning";
|
|
if (status === "archived") return "danger";
|
|
return "default";
|
|
};
|