Remove unused redirects from the Next.js configuration and update package dependencies to include new Tiptap extensions for enhanced text editing capabilities. Clean up the database seeding script by removing commented-out code and ensuring proper deletion of obsolete entries. Update various pages to handle not found scenarios gracefully, improving user experience across the application.

This commit is contained in:
smhk1376 committed 2026-10-28 14:04:17 +03:30
1 parent 4b84409ed7
commit 2858b9c746
106 files changed
+2516 -1004

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { formatJalaliDate } from "@/lib/jalali";
/** Format a stored Gregorian `YYYY-MM-DD` as a Shamsi date, without a UTC day-shift. */
export function formatPersianDate(isoDate: string): string {
return formatJalaliDate(isoDate) ?? isoDate;
}
/** Persian card line for when a course starts being held. */
export function formatCourseScheduleLine(course: {
startDate?: string | null;
}): string | null {
return course.startDate ? formatPersianDate(course.startDate) : null;
}