From a0cdad3af5849b9c5da3da97c530212bb14649cf Mon Sep 17 00:00:00 2001
From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com>
Date: Tue, 9 Apr 2024 18:28:02 +0200
Subject: [PATCH] blockExplorerLink config
---
www/app/templates/account/payouts.hbs | 2 +-
www/app/templates/blocks/block.hbs | 4 ++--
www/app/templates/blocks/pending.hbs | 2 +-
www/app/templates/payments.hbs | 4 ++--
www/config/environment.js | 6 ++++++
www/translations/en-us.yaml | 9 ---------
6 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/www/app/templates/account/payouts.hbs b/www/app/templates/account/payouts.hbs
index 2c38a66..7dca4c1 100644
--- a/www/app/templates/account/payouts.hbs
+++ b/www/app/templates/account/payouts.hbs
@@ -16,7 +16,7 @@
| {{format-date-locale tx.timestamp}} |
- {{tx.tx}}
+ {{tx.tx}}
|
{{format-balance tx.amount}} |
diff --git a/www/app/templates/blocks/block.hbs b/www/app/templates/blocks/block.hbs
index f102cd1..562316a 100644
--- a/www/app/templates/blocks/block.hbs
+++ b/www/app/templates/blocks/block.hbs
@@ -1,10 +1,10 @@
|
{{#if block.uncle}}
- {{format-number
+ {{format-number
block.height}}
{{else}}
- {{format-number
+ {{format-number
block.height}}
{{/if}}
|
diff --git a/www/app/templates/blocks/pending.hbs b/www/app/templates/blocks/pending.hbs
index f62a807..aa481a8 100644
--- a/www/app/templates/blocks/pending.hbs
+++ b/www/app/templates/blocks/pending.hbs
@@ -15,7 +15,7 @@
{{#each model.candidates as |block|}}
- | {{format-number
+ | {{format-number
block.height}} |
{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}} |
{{format-date-locale block.timestamp}} |
diff --git a/www/app/templates/payments.hbs b/www/app/templates/payments.hbs
index 4702008..efdf950 100644
--- a/www/app/templates/payments.hbs
+++ b/www/app/templates/payments.hbs
@@ -23,11 +23,11 @@
{{format-date-locale tx.timestamp}} |
{{format-number tx.formatAmount}} |
- {{wallet tx.address}}
|
- {{format-tx
+ {{format-tx
tx.tx}}
|
diff --git a/www/config/environment.js b/www/config/environment.js
index c5f86fa..cb7a0b8 100644
--- a/www/config/environment.js
+++ b/www/config/environment.js
@@ -25,6 +25,12 @@ module.exports = function (environment) {
StratumHost: '192.168.178.41',
StratumPort: 8008,
+ blockExplorerLink: 'https://explorer.test.network/',
+ blockExplorerLink_tx: 'https://explorer.test.network/tx/',
+ blockExplorerLink_uncle: 'https://explorer.test.network/uncles/',
+ blockExplorerLink_block: 'https://etc.explorer.com/block/',
+ blockExplorerLink_address: 'https://explorer.test.network/address/',
+
// The ETC network
Unit: 'ETC',
Mining: 'SOLO',
diff --git a/www/translations/en-us.yaml b/www/translations/en-us.yaml
index be0b63f..8d7a308 100644
--- a/www/translations/en-us.yaml
+++ b/www/translations/en-us.yaml
@@ -1,12 +1,3 @@
-links:
- blockExplorerLink: 'https://explorer.test.network/'
- blockExplorerLink_tx: 'https://explorer.test.network/tx/'
- blockExplorerLink_uncle: 'https://explorer.test.network/uncles/'
- blockExplorerLink_block: 'https://etc.blockscout.com/block/'
- blockExplorerLink_address: 'https://explorer.test.network/address/'
- wallet:
- dapp_html: https://test.io/nautilus-wallet/#download
- online_html: https://wallet.test.io official online test wallet
errors:
header: Stats API Temporarily Down