From c38c822dda141fffbf829ab20543b4acbda8e2d1 Mon Sep 17 00:00:00 2001 From: IshavSohal Date: Tue, 27 Aug 2024 15:12:12 -0400 Subject: [PATCH] dashboard redesign --- src/components/home.vue | 238 ++++++++++++++++++++++++++--- src/components/landing.vue | 2 +- src/components/metadata-editor.vue | 8 +- src/lang/lang.csv | 22 ++- src/stores/userStore.ts | 1 + tailwind.config.js | 2 +- 6 files changed, 249 insertions(+), 24 deletions(-) diff --git a/src/components/home.vue b/src/components/home.vue index 9b37632b..6730e219 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -1,38 +1,242 @@ diff --git a/src/components/landing.vue b/src/components/landing.vue index e7492de2..f9d53ac6 100644 --- a/src/components/landing.vue +++ b/src/components/landing.vue @@ -38,7 +38,7 @@ export default class LandingV extends Vue { get userName(): string { const userStore = useUserStore(); - return userStore.userProfile.userName || 'Guest'; + return userStore.userProfile?.userName || 'Guest'; } } diff --git a/src/components/metadata-editor.vue b/src/components/metadata-editor.vue index 873d1d42..986f12ec 100644 --- a/src/components/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -5,7 +5,7 @@
- {{ editExisting ? $t('editor.editProduct') : $t('editor.createProduct') }} + {{ editExisting ? $t('editor.loadProduct') : $t('editor.createProduct') }}
- +