From 58c594f7f1e9f6184ea821dd06c8bc53daddda6a Mon Sep 17 00:00:00 2001 From: samaradel Date: Tue, 1 Feb 2022 12:14:28 +0200 Subject: [PATCH] Update stats --- .../marketing/sections/cta-sections/Map.vue | 46 +++++++++---------- .../sections/cta-sections/StateMap.vue | 4 +- .../sections/stats-sections/SimpleInCard.vue | 2 +- 3 files changed, 24 insertions(+), 28 deletions(-) diff --git a/src/components/marketing/sections/cta-sections/Map.vue b/src/components/marketing/sections/cta-sections/Map.vue index a0266cff8..b0447adea 100644 --- a/src/components/marketing/sections/cta-sections/Map.vue +++ b/src/components/marketing/sections/cta-sections/Map.vue @@ -86,32 +86,28 @@ {{ stats[2] }} cores - - -
- {{ section.button }} -
+
+ {{ section.button }} +
@@ -138,7 +134,7 @@ export default { // "https://explorer.threefold.io/api/farms?network=all" // ); const results = await axios.get( - "https://explorer.threefold.io/api/stats?grid=grid2&network=all" + "https://explorer.threefold.io/api/stats" ); // let farms = getFarms.data.length; let nodes = results.data.onlinenodes; diff --git a/src/components/marketing/sections/cta-sections/StateMap.vue b/src/components/marketing/sections/cta-sections/StateMap.vue index fa96bb1de..a3b1a8fec 100644 --- a/src/components/marketing/sections/cta-sections/StateMap.vue +++ b/src/components/marketing/sections/cta-sections/StateMap.vue @@ -213,10 +213,10 @@ export default { async mounted() { try { const getFarms = await axios.get( - "https://explorer.threefold.io/api/farms?grid=grid2&network=all" + "https://explorer.threefold.io/api/farms?grid=all&network=all" ); const results = await axios.get( - "https://explorer.threefold.io/api/stats?grid=grid2&network=all" + "https://explorer.threefold.io/api/stats" ); let farms = getFarms.data.length; let hru = (results.data.hru / 1000).toFixed(); diff --git a/src/components/marketing/sections/stats-sections/SimpleInCard.vue b/src/components/marketing/sections/stats-sections/SimpleInCard.vue index 3119d796c..bf98c3b9b 100644 --- a/src/components/marketing/sections/stats-sections/SimpleInCard.vue +++ b/src/components/marketing/sections/stats-sections/SimpleInCard.vue @@ -238,7 +238,7 @@ export default { // "https://explorer.threefold.io/api/farms?network=all" // ); const results = await axios.get( - "https://explorer.threefold.io/api/stats?grid=grid2&network=all" + "https://explorer.threefold.io/api/stats" ); // let farms = getFarms.data.length; let nodes = results.data.onlinenodes;