From d263858723b2b9f8d7a062eff6c7d15bcd06c5c2 Mon Sep 17 00:00:00 2001 From: Ilgmi Date: Tue, 22 Oct 2024 15:44:16 +0200 Subject: [PATCH] fix the base item group component to have the ability to create sub menus add divider to the drawer so that the menu can have dividers with or without text --- ui/src/components/base/ItemGroup.vue | 52 ++++++++++++-------- ui/src/components/core/Drawer.vue | 54 ++++++++++++++++++++- ui/src/localisation/en.json | 11 ++++- ui/src/pages/AdminComponentsPage.vue | 35 +++++++++++++ ui/src/pages/AdminServiceCategoriesPage.vue | 34 +++++++++++++ ui/src/pages/AdminServiceVendorsPage.vue | 53 ++++++++++++++++++++ ui/src/pages/router.js | 18 +++++++ 7 files changed, 236 insertions(+), 21 deletions(-) create mode 100644 ui/src/pages/AdminComponentsPage.vue create mode 100644 ui/src/pages/AdminServiceCategoriesPage.vue create mode 100644 ui/src/pages/AdminServiceVendorsPage.vue diff --git a/ui/src/components/base/ItemGroup.vue b/ui/src/components/base/ItemGroup.vue index 9acd6b6b..913a38e0 100644 --- a/ui/src/components/base/ItemGroup.vue +++ b/ui/src/components/base/ItemGroup.vue @@ -1,41 +1,49 @@ + + + \ No newline at end of file diff --git a/ui/src/pages/AdminServiceCategoriesPage.vue b/ui/src/pages/AdminServiceCategoriesPage.vue new file mode 100644 index 00000000..d6e5d419 --- /dev/null +++ b/ui/src/pages/AdminServiceCategoriesPage.vue @@ -0,0 +1,34 @@ + + + + \ No newline at end of file diff --git a/ui/src/pages/AdminServiceVendorsPage.vue b/ui/src/pages/AdminServiceVendorsPage.vue new file mode 100644 index 00000000..15fb6bc4 --- /dev/null +++ b/ui/src/pages/AdminServiceVendorsPage.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/ui/src/pages/router.js b/ui/src/pages/router.js index b81483f4..115a4b76 100644 --- a/ui/src/pages/router.js +++ b/ui/src/pages/router.js @@ -149,6 +149,24 @@ const routes = [ component: () => import('@/pages/AdminPage'), meta: { adminPermissionRequired: true }, }, + { + name: 'AdminComponents', + path: '/admin/components', + component: () => import('@/pages/AdminComponentsPage'), + meta: { adminPermissionRequired: true }, + }, + { + name: 'AdminServiceCategories', + path: '/admin/service-categories', + component: () => import('@/pages/AdminServiceCategoriesPage'), + meta: { adminPermissionRequired: true }, + }, + { + name: 'AdminServiceVendors', + path: '/admin/service-vendors', + component: () => import('@/pages/AdminServiceVendorsPage'), + meta: { adminPermissionRequired: true }, + }, ], } ];