From ae07a8c53d12a5b83c4f2676e602334b75e19ce3 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 12 Aug 2024 15:31:14 +0530 Subject: [PATCH 1/5] Improved: user card so as to allow user jump directly to the details page (#91) --- .env.example | 4 +- src/components/Image.vue | 74 +++++++++++++++++++++++++++ src/components/UserActionsPopover.vue | 65 +++++++++++++++++++++++ src/views/Home.vue | 31 +++++++++-- 4 files changed, 168 insertions(+), 6 deletions(-) create mode 100644 src/components/Image.vue create mode 100644 src/components/UserActionsPopover.vue diff --git a/.env.example b/.env.example index 0721cdd..afb02d1 100644 --- a/.env.example +++ b/.env.example @@ -4,4 +4,6 @@ VUE_APP_I18N_FALLBACK_LOCALE=en VUE_APP_LOCALES={"en": "English", "ja": "日本語", "es": "Español"} VUE_APP_CURRENCY_FORMATS={"en": {"currency": {"style": "currency","currency": "USD"}}, "ja": {"currency": {"style": "currency", "currency": "JPY"}}, "es": {"currency": {"style": "currency","currency": "ESP"}}} VUE_APP_DEFAULT_ALIAS= -VUE_APP_MAARG_LOGIN=["atp", "company", "order-routing", "inventorycount-dev", "inventorycount-uat"] \ No newline at end of file +VUE_APP_MAARG_LOGIN=["atp", "company", "order-routing", "inventorycount-dev", "inventorycount-uat"] +VUE_APP_USERS_LOGIN_URL="http://users.hotwax.io/login" +VUE_APP_RESOURCE_URL= \ No newline at end of file diff --git a/src/components/Image.vue b/src/components/Image.vue new file mode 100644 index 0000000..92b9157 --- /dev/null +++ b/src/components/Image.vue @@ -0,0 +1,74 @@ + + + diff --git a/src/components/UserActionsPopover.vue b/src/components/UserActionsPopover.vue new file mode 100644 index 0000000..e69d59d --- /dev/null +++ b/src/components/UserActionsPopover.vue @@ -0,0 +1,65 @@ + + + \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index b0b73b9..72c8d30 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -10,10 +10,14 @@ - - {{ authStore.current?.partyName ? authStore.current?.partyName : authStore.current.userLoginId }} - - {{ $t('Logout') }} + + + + +

{{ authStore.current?.partyName ? authStore.current?.partyName : authStore.current.userLoginId }}

+
+ +
@@ -66,6 +70,7 @@