feat: add kependudukan seeders, API routes, year filter, and navbar menu
- Add Prisma models: DataBanjar, DistribusiAgama, DistribusiUmur, MigrasiPenduduk, DinamikaPenduduk - Create seeders for all kependudukan models with year 2026 data - Register Kependudukan API routes in route.ts - Update API findMany endpoints to make tahun parameter optional - Add YearFilter reusable component for admin pages - Update 4 kependudukan admin pages with year filter UI - Fix Mantine color array in AdminThemeProvider (add 10th element) - Fix invalid Mantine color scale in paguTable.tsx (gray.50 -> gray.1) - Add Kependudukan menu to navbar-list-menu.ts - Fix Bun JSON import resolution with loadJsonData helper - Update 74 seeder files to use dynamic JSON loading Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
32
prisma/data/core/app-menu.json
Normal file
32
prisma/data/core/app-menu.json
Normal file
@@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"id": "menu-001",
|
||||
"name": "Beranda",
|
||||
"link": "/",
|
||||
"isActive": true
|
||||
},
|
||||
{
|
||||
"id": "menu-002",
|
||||
"name": "Profil Desa",
|
||||
"link": "/profil-desa",
|
||||
"isActive": true
|
||||
},
|
||||
{
|
||||
"id": "menu-003",
|
||||
"name": "Layanan",
|
||||
"link": "/layanan",
|
||||
"isActive": true
|
||||
},
|
||||
{
|
||||
"id": "menu-004",
|
||||
"name": "Informasi",
|
||||
"link": "/informasi",
|
||||
"isActive": true
|
||||
},
|
||||
{
|
||||
"id": "menu-005",
|
||||
"name": "Kontak",
|
||||
"link": "/kontak",
|
||||
"isActive": true
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user