From 1bc87207b4a1e37868aab3216bb7693097acd22c Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Mon, 16 Aug 2021 23:03:32 +0800
Subject: [PATCH] Improve UI
---
src/views/GovernanceProposalView.vue | 103 +++++++++++---------
src/views/Home.vue | 2 +-
src/views/ObjectFieldComponent.vue | 105 +++++++++++----------
src/views/Transaction.vue | 135 ++++++++++++++-------------
4 files changed, 187 insertions(+), 158 deletions(-)
diff --git a/src/views/GovernanceProposalView.vue b/src/views/GovernanceProposalView.vue
index 8b89f8d4..3bc2ad40 100644
--- a/src/views/GovernanceProposalView.vue
+++ b/src/views/GovernanceProposalView.vue
@@ -1,6 +1,8 @@
-
+
-
-
-
- {{ $t('proposal_id') }}
- {{ proposal.id }}
-
-
-
- {{ $t('proposal_proposer') }}
- {{ formatAddress(proposer.proposer) }}
-
-
-
- {{ $t('proposal_total_deposit') }}
- {{ proposal.total_deposit }}
-
-
-
- {{ $t('proposal_submit_time') }}
- {{ proposal.submit_time }}
-
-
-
- {{ $t('proposal_voting_start_time') }}
- {{ proposal.voting_start_time }}
-
-
-
- {{ $t('proposal_voting_end_time') }}
- {{ proposal.voting_end_time }}
-
-
-
- {{ $t('proposal_type') }}
- {{ proposal.type }}
-
+
+
+
+
+ {{ $t('proposal_id') }}
+ {{ proposal.id }}
+
+
+
+ {{ $t('proposal_proposer') }}
+ {{ formatAddress(proposer.proposer) }}
+
+
+
+ {{ $t('proposal_total_deposit') }}
+ {{ proposal.total_deposit }}
+
+
+
+ {{ $t('proposal_submit_time') }}
+ {{ proposal.submit_time }}
+
+
+
+ {{ $t('proposal_voting_start_time') }}
+ {{ proposal.voting_start_time }}
+
+
+
+ {{ $t('proposal_voting_end_time') }}
+ {{ proposal.voting_end_time }}
+
+
+
+ {{ $t('proposal_type') }}
+
+ {{ proposal.type }}
+
+
+
-
+
+
@@ -99,7 +112,7 @@
-
+
Votes
@@ -158,12 +171,14 @@
{{ proposal.tally.abstain }}% voted Abstain
-
+
Deposits ({{ proposal.total_deposit }})
@@ -171,8 +186,10 @@
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 9f183556..2c875e40 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -132,7 +132,7 @@ export default {
},
created() {
this.chains = JSON.parse(localStorage.getItem('chains'))
- this.timer = setInterval(this.fetch, 12000)
+ this.timer = setInterval(this.fetch, 120000)
},
beforeDestroy() {
clearInterval(this.timer)
diff --git a/src/views/ObjectFieldComponent.vue b/src/views/ObjectFieldComponent.vue
index 54ea3668..ae61b989 100644
--- a/src/views/ObjectFieldComponent.vue
+++ b/src/views/ObjectFieldComponent.vue
@@ -4,63 +4,67 @@
hover
:small="small"
striped
- responsive
+ stacked="sm"
+ responsive="sm"
>
-
-
+
- {{ name }}
-
-
- {{ formatTokens( value ) }}
-
-
- {{ value.join(', ') }}
-
-
- {{ formatHexAddress(value) }}
-
-
-
-
-
-
-
-
-
- {{ formatText(value[key]) }}
-
-
-
-
- {{ value }}
-
-
+
+ {{ name }}
+
+
+ {{ formatTokens( value ) }}
+
+
+ {{ value.join(', ') }}
+
+
+ {{ formatHexAddress(value) }}
+
+
+
+
+
+
+
+
+
+ {{ formatText(value[key]) }}
+
+
+
+
+ {{ value }}
+
+
+