diff --git a/new-web/pages/account/_id.vue b/new-web/pages/account/_id.vue
index 3a6ecb2..fb902aa 100644
--- a/new-web/pages/account/_id.vue
+++ b/new-web/pages/account/_id.vue
@@ -8,9 +8,7 @@
mdi-cloud-outline
- {{
- $t('pages.account.immatureBal')
- }}
+ {{ $t('pages.account.immatureBal') }}
{{ formatEther(data.stats.immature) }} {{ config.symbol }}
@@ -21,9 +19,7 @@
mdi-bank
- {{
- $t('pages.account.pendingBal')
- }}
+ {{ $t('pages.account.pendingBal') }}
{{ formatEther(data.stats.balance) }} {{ config.symbol }}
@@ -34,13 +30,10 @@
mdi-cash
- {{
- $t('pages.account.totalPaid')
- }}
- {{ formatEther(data.stats.paid) }}
- {{ config.symbol }}
+ {{ $t('pages.account.totalPaid') }}
+
+ {{ formatEther(data.stats.paid) }} {{ config.symbol }}
+
@@ -52,12 +45,8 @@
mdi-cube-send
- {{
- $t('pages.account.lastShare')
- }}
- {{
- formatTimeSince(data.stats.lastShare)
- }}
+ {{ $t('pages.account.lastShare') }}
+ {{ formatTimeSince(data.stats.lastShare) }}
@@ -65,12 +54,8 @@
mdi-gauge-full
- {{
- $t('pages.account.hashrate30min')
- }}
- {{ formatHashrate(data.currentHashrate, true) }}
-
+ {{ $t('pages.account.hashrate30min') }}
+ {{ formatHashrate(data.currentHashrate, true) }}
@@ -78,12 +63,8 @@
mdi-gauge-full
- {{
- $t('pages.account.hashrate3hour')
- }}
- {{ formatHashrate(data.hashrate, true) }}
-
+ {{ $t('pages.account.hashrate3hour') }}
+ {{ formatHashrate(data.hashrate, true) }}
@@ -95,12 +76,8 @@
mdi-cube-scan
- {{
- $t('pages.account.blocksFound')
- }}
- {{
- nf.format(data.stats.blocksFound)
- }}
+ {{ $t('pages.account.blocksFound') }}
+ {{ nf.format(data.stats.blocksFound) }}
@@ -108,12 +85,8 @@
mdi-pickaxe
- {{
- $t('pages.account.workersOnline')
- }}
- {{
- data.workersOnline
- }}
+ {{ $t('pages.account.workersOnline') }}
+ {{ data.workersOnline }}
@@ -121,12 +94,8 @@
mdi-clock-outline
- {{
- $t('pages.account.roundShare')
- }}
- {{ data.roundShares }}%
-
+ {{ $t('pages.account.roundShare') }}
+ {{ data.roundShares }}%
@@ -137,26 +106,16 @@
{{ $t('pages.account.jsonApi') }}
-
- {{
- config.api + '/accounts/0xda904bc07fd95e39661941b3f6daded1b8a38c71'
- }}
+
+ {{ config.api + '/accounts/0xda904bc07fd95e39661941b3f6daded1b8a38c71' }}
- {{ $t('pages.account.workers')
- }}{{ data.workersTotal }}
+ {{ $t('pages.account.workers') }}{{ data.workersTotal }}
- {{ $t('pages.account.payments')
- }}{{ data.paymentsTotal }}
+ {{ $t('pages.account.payments') }}{{ data.paymentsTotal }}
@@ -166,15 +125,9 @@
| {{ $t('pages.account.worker.id') }} |
-
- {{ $t('pages.account.worker.hashrateShort') }}
- |
-
- {{ $t('pages.account.worker.hashrateLong') }}
- |
-
- {{ $t('pages.account.worker.lastShare') }}
- |
+ {{ $t('pages.account.worker.hashrateShort') }} |
+ {{ $t('pages.account.worker.hashrateLong') }} |
+ {{ $t('pages.account.worker.lastShare') }} |
@@ -261,14 +214,15 @@ export default {
},
},
created() {
- this.fetchData(this.id)
+ this.fetchData(this.id);
+ setInterval(() => {
+ this.fetchData(this.id);
+ }, 1000);
},
methods: {
async fetchData(address) {
try {
- const { data } = await axios.get(
- this.config.api + '/accounts/' + address
- )
+ const { data } = await axios.get(this.config.api + '/accounts/' + address)
if (data) {
this.data = data
}