From cb410660832b2af3c48fc87073b048421808e98f Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 3 Jul 2022 14:18:19 +0200 Subject: [PATCH] update explorer api --- src/components/marketing/sections/cta-sections/Map.vue | 2 +- src/components/marketing/sections/cta-sections/StateMap.vue | 4 ++-- .../marketing/sections/stats-sections/SimpleInCard.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/marketing/sections/cta-sections/Map.vue b/src/components/marketing/sections/cta-sections/Map.vue index 45b380d5e..b0447adea 100644 --- a/src/components/marketing/sections/cta-sections/Map.vue +++ b/src/components/marketing/sections/cta-sections/Map.vue @@ -134,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=grid3&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 dac567504..14bfcba70 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=grid3&network=all" + "https://explorer.threefold.io/api/farms" ); const results = await axios.get( - "https://explorer.threefold.io/api/stats?grid=grid3&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 32b1fcef0..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=grid3&network=all" + "https://explorer.threefold.io/api/stats" ); // let farms = getFarms.data.length; let nodes = results.data.onlinenodes;