From 616c8432605f933098b4545a767fb35988dd6c40 Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Thu, 14 Aug 2025 10:49:27 +0700 Subject: [PATCH] init doctor page --- app/components/app/doctor/entry-form.vue | 37 +++++++++++++ app/components/flow/doctor/add.vue | 2 +- app/components/flow/doctor/list.vue | 70 +----------------------- app/lib/page-permission.ts | 8 +++ app/middleware/rbac.ts | 3 +- app/pages/(features)/doctor/add.vue | 29 +++++++++- app/pages/(features)/doctor/index.vue | 28 +++++++++- public/side-menu-items/sys.json | 5 ++ 8 files changed, 109 insertions(+), 73 deletions(-) create mode 100644 app/components/app/doctor/entry-form.vue diff --git a/app/components/app/doctor/entry-form.vue b/app/components/app/doctor/entry-form.vue new file mode 100644 index 00000000..3fe1efc6 --- /dev/null +++ b/app/components/app/doctor/entry-form.vue @@ -0,0 +1,37 @@ + + + diff --git a/app/components/flow/doctor/add.vue b/app/components/flow/doctor/add.vue index 45f57502..0a990f90 100644 --- a/app/components/flow/doctor/add.vue +++ b/app/components/flow/doctor/add.vue @@ -2,5 +2,5 @@ diff --git a/app/components/flow/doctor/list.vue b/app/components/flow/doctor/list.vue index 8537ce3b..c169e59d 100644 --- a/app/components/flow/doctor/list.vue +++ b/app/components/flow/doctor/list.vue @@ -1,7 +1,5 @@ diff --git a/app/pages/(features)/doctor/index.vue b/app/pages/(features)/doctor/index.vue index 221c6b8e..6b45fb92 100644 --- a/app/pages/(features)/doctor/index.vue +++ b/app/pages/(features)/doctor/index.vue @@ -1,9 +1,33 @@ diff --git a/public/side-menu-items/sys.json b/public/side-menu-items/sys.json index 038acdcf..06768476 100644 --- a/public/side-menu-items/sys.json +++ b/public/side-menu-items/sys.json @@ -30,6 +30,11 @@ } ] }, + { + "title": "Doctor", + "icon": "i-lucide-cross", + "link": "/doctor" + }, { "title": "Pasien", "icon": "i-lucide-users",