feat: complete admin panel major functionalities including responsive layout, recharts, custom modals, inline editing, and loading states

This commit is contained in:
parsa committed 2026-06-12 16:19:57 +03:30
1 parent ee041d4e52
commit a7ebb8d792
33 files changed
+1311 -173

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export const toPersian = (n: number | string | undefined | null) => {
if (n === undefined || n === null) return "";
return n.toString().replace(/\d/g, d => '۰۱۲۳۴۵۶۷۸۹'[parseInt(d)]);
};
export function cn(...classes: (string | boolean | undefined)[]) {
return classes.filter(Boolean).join(" ");
}