From f465108ab00ded66eb6fb65a5b5324272c3e90ac Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 5 Jun 2024 17:32:22 +0200 Subject: [PATCH] fix ui --- dashboard/components/dashboard/BarsCard.vue | 4 +- dashboard/components/dashboard/TopSection.vue | 20 +++++---- .../components/pricing/PricingDrawer.vue | 26 ++++++++--- dashboard/layouts/dashboard.vue | 2 +- dashboard/pages/index.vue | 2 +- dashboard/pages/plans.vue | 43 ++++++++++++------- dashboard/pages/project_selector.vue | 10 +++-- dashboard/pages/report.vue | 7 ++- 8 files changed, 71 insertions(+), 43 deletions(-) diff --git a/dashboard/components/dashboard/BarsCard.vue b/dashboard/components/dashboard/BarsCard.vue index 7023f86..c8a97b4 100644 --- a/dashboard/components/dashboard/BarsCard.vue +++ b/dashboard/components/dashboard/BarsCard.vue @@ -87,7 +87,7 @@ function showDetails(id: string) {
-
+
-
{{ formatNumberK(element.count) }}
+
{{ formatNumberK(element.count) }}
diff --git a/dashboard/components/dashboard/TopSection.vue b/dashboard/components/dashboard/TopSection.vue index 4df04bb..4b7ef50 100644 --- a/dashboard/components/dashboard/TopSection.vue +++ b/dashboard/components/dashboard/TopSection.vue @@ -2,7 +2,7 @@ const activeProject = useActiveProject(); const { onlineUsers, stopWatching, startWatching } = useOnlineUsers(); -onMounted(()=> startWatching()); +onMounted(() => startWatching()); onUnmounted(() => stopWatching()); @@ -18,24 +18,26 @@ function copyProjectId() {
-
+
{{ onlineUsers }} Online users
-
+
Project:
{{ activeProject?.name || 'Loading...' }}
-
+
Project id:
-
- {{ activeProject?._id || 'Loading...' }} -
-
- +
+
+ {{ activeProject?._id || 'Loading...' }} +
+
+ +
diff --git a/dashboard/components/pricing/PricingDrawer.vue b/dashboard/components/pricing/PricingDrawer.vue index ce6c46e..8ff0d0e 100644 --- a/dashboard/components/pricing/PricingDrawer.vue +++ b/dashboard/components/pricing/PricingDrawer.vue @@ -62,18 +62,28 @@ const expansionTierCardData = ref({ planId: 2 }); + +const emits = defineEmits<{ + (evt: 'onCloseClick'): void +}>(); +