From 79b3f0948742ff5f476a1160fcf01b66883c538a Mon Sep 17 00:00:00 2001 From: Viterbo Date: Thu, 9 Jan 2025 21:25:07 -0300 Subject: [PATCH 1/8] adding section /accounts for paginated native balances --- src/App.vue | 9 +- src/boot/core.ts | 1 - src/components/Token/HolderList.vue | 40 +++++---- src/config/chains/telos-evm-testnet/index.ts | 4 + src/config/chains/telos-evm/index.ts | 4 + .../chains/telos-zkevm-testnet/index.ts | 4 + src/i18n/de-de/index.js | 2 + src/i18n/en-us/index.js | 2 + src/i18n/es-es/index.js | 2 + src/i18n/fr-fr/index.js | 2 + src/i18n/pt-br/index.js | 2 + src/pages/Holders.vue | 15 ---- src/pages/HoldersPage.vue | 82 +++++++++++++++++++ src/router/routes.js | 6 +- 14 files changed, 138 insertions(+), 37 deletions(-) delete mode 100644 src/pages/Holders.vue create mode 100644 src/pages/HoldersPage.vue diff --git a/src/App.vue b/src/App.vue index 69ec64ffa..43d59c3a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,7 +36,11 @@ const checkNetworkHealth = async () => { const background = theme?.primary || '#0099FF'; const color = theme?.color || 'white'; // print in console with background #8B3F98 and white text the following message: Using indexer {health.data.version} with {health.data.secondsBehind} seconds behind - console.debug(`%cUsing indexer ${health.data.version} for '${chainName}' with ${health.data.secondsBehind} seconds behind`, `background: ${background}; color: ${color};`); + console.debug( + `%cUsing indexer ${health.data.version} for '${chainName}' ` + + (health.data?.secondsBehind > 3 ? `%cwith ${health.data.secondsBehind} seconds behind` : ''), + `background: ${background}; color: ${color};`, + ); if (health.data?.secondsBehind > 3) { let behindBy = moment(health.data.secondsBehind * 1000).utc().format('HH:mm:ss'); @@ -64,7 +68,7 @@ const checkNetworkHealth = async () => { }; onMounted(async () => { - // await checkNetworkHealth(); + await checkNetworkHealth(); // On login we must set the address and record the provider getCore().events.onLoggedOut.subscribe(() => { @@ -97,6 +101,7 @@ watch( } }, ); +