From c894fde09f22a2e103bf0c1f893b6b2b88b8e9d6 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sat, 8 Jun 2024 17:15:25 +0800 Subject: [PATCH 1/2] perf: The map is not packaged into the code to reduce the server size --- .gitignore | 2 +- components/dashboard/metrics/Locations.vue | 15 +++++++++++++-- pages/dashboard/index.vue | 2 +- pages/dashboard/login.vue | 2 +- scripts/build-map.js | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bead600..585e78b 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,4 @@ logs .wrangler site cache -assets/location/world-topo.json +public/world.json diff --git a/components/dashboard/metrics/Locations.vue b/components/dashboard/metrics/Locations.vue index 4da8260..51cbc6f 100644 --- a/components/dashboard/metrics/Locations.vue +++ b/components/dashboard/metrics/Locations.vue @@ -1,14 +1,23 @@