From 89f86fad304680157932c492a20d8ce88b75e8aa Mon Sep 17 00:00:00 2001
From: "Lin, Hung-Shin"
Date: Wed, 22 Nov 2023 14:46:41 +0800
Subject: [PATCH] feat: add username to navbar, pass title by props
---
app/src/components/GameHeaderPart.vue | 30 ++++++++++++++++++++++++---
app/src/store/userProfile.js | 30 +++++++++++++++++++++++++++
app/src/views/GamePage.vue | 2 +-
app/src/views/QuestMapPage.vue | 8 +++----
4 files changed, 62 insertions(+), 8 deletions(-)
create mode 100644 app/src/store/userProfile.js
diff --git a/app/src/components/GameHeaderPart.vue b/app/src/components/GameHeaderPart.vue
index 60b7980..af8361f 100644
--- a/app/src/components/GameHeaderPart.vue
+++ b/app/src/components/GameHeaderPart.vue
@@ -1,9 +1,11 @@
@@ -51,9 +69,8 @@ const handleMap = async () => {
id="HeaderText"
class="text-text-primary inline-block font-bold whitespace-nowrap"
style="font-size: 2vh"
- v-if="sessionStore.quest"
>
- {{ sessionStore.quest.title }}
+ {{ title }}
@@ -75,6 +92,13 @@ const handleMap = async () => {
class="text-text-primary h-full w-full"
/>
-->
+
+ {{ userProfileStore.username }}
+