From f76f325ef3840473bcd11fe3571aca3249fb908c Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Sat, 8 Feb 2025 23:48:43 +0330 Subject: [PATCH] added profile side bar --- .../components/profile/ProfileSidebar.vue | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/frontend/components/profile/ProfileSidebar.vue b/frontend/components/profile/ProfileSidebar.vue index 5bebcda..8985059 100644 --- a/frontend/components/profile/ProfileSidebar.vue +++ b/frontend/components/profile/ProfileSidebar.vue @@ -3,6 +3,33 @@ import useGetAccount from "~/composables/api/account/useGetAccount"; +// state + +const route = useRoute(); + +const profileLinks = ref([ + { + icon: "bi:person-vcard", + title: "پروفایل", + path: { name: "profile" }, + }, + { + icon: "bi:map", + title: "آدرس ها", + path: { name: "profile-addresses" }, + }, + { + icon: "bi:cart", + title: "خرید ها و سفارش ها", + path: { name: "profile-purchases-and-orders" }, + }, + { + icon: "bi:ticket", + title: "تیکت ها", + path: { name: "profile-tickets" }, + }, +]); + // queries const { data: account, suspense } = useGetAccount(); @@ -30,6 +57,31 @@ await suspense(); /> + +
+ + +
+ +
+ {{ link.title }} +
+ + +
+