From 2827ccb164499a33e1b6ee9d889b4211e1d1a3d6 Mon Sep 17 00:00:00 2001 From: Rezaul Karim Shaon Date: Tue, 23 Jul 2024 19:37:20 +0600 Subject: [PATCH] frontend: user user profile page created, and linked from sidebar, navbar --- .../admin/layout/AdminHeaderLayout.vue | 50 +++++++++---------- .../admin/layout/AdminSidebarLayout.vue | 7 ++- .../admin/page/AdminProfilePage.vue | 9 ++++ frontend/src/router/index.js | 6 +++ 4 files changed, 46 insertions(+), 26 deletions(-) create mode 100644 frontend/src/components/admin/page/AdminProfilePage.vue diff --git a/frontend/src/components/admin/layout/AdminHeaderLayout.vue b/frontend/src/components/admin/layout/AdminHeaderLayout.vue index 3ade8ea..18780c2 100644 --- a/frontend/src/components/admin/layout/AdminHeaderLayout.vue +++ b/frontend/src/components/admin/layout/AdminHeaderLayout.vue @@ -1,29 +1,29 @@ \ No newline at end of file diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 4be363b..018db8e 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -15,6 +15,7 @@ import AdminInventoryPage from '@/components/admin/page/AdminInventoryPage.vue'; import AdminAccountingPage from "@/components/admin/page/AdminAccountingPage.vue"; import AdminOrderPage from "@/components/admin/page/AdminOrderPage.vue"; import AdminCustomerPage from "@/components/admin/page/AdminCustomerPage.vue"; +import AdminProfilePage from "@/components/admin/page/AdminProfilePage.vue"; const routes = [ @@ -44,6 +45,11 @@ const routes = [ component: AdminBaseComponent, meta: { requiresAuth: true }, // Add meta field to indicate that authentication is required for admin routes children: [ + { + path: "profile", + name: "admin-profile", + component: AdminProfilePage, + }, { path: "", name: "admin",