From d580a9f8825ece65dea28c63acc8f80701dc4858 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sun, 11 May 2025 14:17:57 +0800 Subject: [PATCH] chore: Adjust the directory structure in preparation for real-time. --- app/components/dashboard/Nav.vue | 3 + .../dashboard/{ => analysis}/Counters.vue | 0 .../dashboard/{ => analysis}/Index.vue | 6 +- .../dashboard/{ => analysis}/Views.vue | 0 .../{ => analysis}/metrics/Group.vue | 2 +- .../{ => analysis}/metrics/Index.vue | 12 +- .../dashboard/{ => analysis}/metrics/List.vue | 2 +- .../{ => analysis}/metrics/Locations.vue | 0 .../{ => analysis}/metrics/Metric.vue | 4 +- .../{ => analysis}/metrics/name/Icon.vue | 0 .../{ => analysis}/metrics/name/Index.vue | 6 +- .../{ => analysis}/metrics/name/Referer.vue | 0 .../{ => analysis}/metrics/name/Slug.vue | 0 app/components/dashboard/realtime/Index.vue | 10 + app/pages/dashboard/analysis.vue | 2 +- app/pages/dashboard/realtime.vue | 6 + i18n/locales/en-US.json | 3 +- i18n/locales/fr-FR.json | 3 +- i18n/locales/vi-VN.json | 3 +- i18n/locales/zh-CN.json | 3 +- i18n/locales/zh-TW.json | 318 +++++++++--------- nuxt.config.ts | 1 + 22 files changed, 204 insertions(+), 180 deletions(-) rename app/components/dashboard/{ => analysis}/Counters.vue (100%) rename app/components/dashboard/{ => analysis}/Index.vue (94%) rename app/components/dashboard/{ => analysis}/Views.vue (100%) rename app/components/dashboard/{ => analysis}/metrics/Group.vue (94%) rename app/components/dashboard/{ => analysis}/metrics/Index.vue (82%) rename app/components/dashboard/{ => analysis}/metrics/List.vue (97%) rename app/components/dashboard/{ => analysis}/metrics/Locations.vue (100%) rename app/components/dashboard/{ => analysis}/metrics/Metric.vue (97%) rename app/components/dashboard/{ => analysis}/metrics/name/Icon.vue (100%) rename app/components/dashboard/{ => analysis}/metrics/name/Index.vue (91%) rename app/components/dashboard/{ => analysis}/metrics/name/Referer.vue (100%) rename app/components/dashboard/{ => analysis}/metrics/name/Slug.vue (100%) create mode 100644 app/components/dashboard/realtime/Index.vue create mode 100644 app/pages/dashboard/realtime.vue diff --git a/app/components/dashboard/Nav.vue b/app/components/dashboard/Nav.vue index ee11d6d..1f74333 100644 --- a/app/components/dashboard/Nav.vue +++ b/app/components/dashboard/Nav.vue @@ -18,6 +18,9 @@ const route = useRoute() {{ $t('nav.analysis') }} + + {{ $t('nav.realtime') }} + diff --git a/app/components/dashboard/Counters.vue b/app/components/dashboard/analysis/Counters.vue similarity index 100% rename from app/components/dashboard/Counters.vue rename to app/components/dashboard/analysis/Counters.vue diff --git a/app/components/dashboard/Index.vue b/app/components/dashboard/analysis/Index.vue similarity index 94% rename from app/components/dashboard/Index.vue rename to app/components/dashboard/analysis/Index.vue index a974031..8a21306 100644 --- a/app/components/dashboard/Index.vue +++ b/app/components/dashboard/analysis/Index.vue @@ -74,8 +74,8 @@ onBeforeMount(() => { - - - + + + diff --git a/app/components/dashboard/Views.vue b/app/components/dashboard/analysis/Views.vue similarity index 100% rename from app/components/dashboard/Views.vue rename to app/components/dashboard/analysis/Views.vue diff --git a/app/components/dashboard/metrics/Group.vue b/app/components/dashboard/analysis/metrics/Group.vue similarity index 94% rename from app/components/dashboard/metrics/Group.vue rename to app/components/dashboard/analysis/metrics/Group.vue index 8e96155..e15b823 100644 --- a/app/components/dashboard/metrics/Group.vue +++ b/app/components/dashboard/analysis/metrics/Group.vue @@ -31,7 +31,7 @@ defineProps({ :value="rawTabs[index]" class="flex-1" > - ({