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:
44
prisma/data/core/app-menu-child.json
Normal file
44
prisma/data/core/app-menu-child.json
Normal file
@@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"id": "menu-child-001",
|
||||
"name": "Sejarah Desa",
|
||||
"link": "/profil-desa/sejarah",
|
||||
"isActive": true,
|
||||
"appMenuId": "menu-002"
|
||||
},
|
||||
{
|
||||
"id": "menu-child-002",
|
||||
"name": "Visi Misi",
|
||||
"link": "/profil-desa/visi-misi",
|
||||
"isActive": true,
|
||||
"appMenuId": "menu-002"
|
||||
},
|
||||
{
|
||||
"id": "menu-child-003",
|
||||
"name": "Surat Keterangan",
|
||||
"link": "/layanan/surat-keterangan",
|
||||
"isActive": true,
|
||||
"appMenuId": "menu-003"
|
||||
},
|
||||
{
|
||||
"id": "menu-child-004",
|
||||
"name": "Perizinan",
|
||||
"link": "/layanan/perizinan",
|
||||
"isActive": true,
|
||||
"appMenuId": "menu-003"
|
||||
},
|
||||
{
|
||||
"id": "menu-child-005",
|
||||
"name": "Berita Desa",
|
||||
"link": "/informasi/berita",
|
||||
"isActive": true,
|
||||
"appMenuId": "menu-004"
|
||||
},
|
||||
{
|
||||
"id": "menu-child-006",
|
||||
"name": "Pengumuman",
|
||||
"link": "/informasi/pengumuman",
|
||||
"isActive": true,
|
||||
"appMenuId": "menu-004"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user