Match dashboard header and shell layout to the Mento mockup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-01 15:39:18 +03:30
co-authored by Cursor
parent 523e641d8f
commit da6c494fcb
4 changed files with 867 additions and 452 deletions
+6
View File
@@ -170,6 +170,12 @@ export function formatJalaliLong(d: Date): string {
return `${weekdayName(d)} ${toFaDigits(jd)} ${jalaliMonthName(jm)} ${toFaDigits(jy)}`;
}
/** مثل: دوشنبه ۲۶ مرداد */
export function formatJalaliShort(d: Date): string {
const { jm, jd } = dateToJalali(d);
return `${weekdayName(d)} ${toFaDigits(jd)} ${jalaliMonthName(jm)}`;
}
export function toFaDigits(value: number | string): string {
return String(value).replace(/\d/g, (d) => '۰۱۲۳۴۵۶۷۸۹'[Number(d)]!);
}