feat: refactor UI components to TailwindCSS with dark mode support

- Convert Mantine-based components to TailwindCSS + Recharts
- Add dark mode support for all dashboard pages
- Update routing to allow public dashboard access
- Components refactored:
  - kinreja-divisi.tsx: Village performance dashboard
  - pengaduan-layanan-publik.tsx: Public complaint management
  - jenna-analytic.tsx: Chatbot analytics dashboard
  - demografi-pekerjaan.tsx: Demographic analytics
  - keuangan-anggaran.tsx: APBDes financial dashboard
  - bumdes-page.tsx: UMKM sales monitoring
  - sosial-page.tsx: Village social monitoring
- Remove landing page, redirect / to /dashboard
- Update auth middleware for public dashboard access

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-03-11 15:26:16 +08:00
parent b77f6e8fa3
commit 66d207c081
13 changed files with 2708 additions and 3695 deletions

View File

@@ -66,10 +66,10 @@ const routeRules: RouteRule[] = [
redirectTo: "/signin",
},
{
match: (p) => p === "/dashboard" || p.startsWith("/dashboard/"),
match: (p) => p === "/admin" || p.startsWith("/admin/"),
requireAuth: true,
requiredRole: "admin",
redirectTo: "/profile",
redirectTo: "/signin",
},
];