From df6a20ee67c0bf113383c6531f61138775037966 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 30 Jul 2021 23:24:46 +0800 Subject: [PATCH] finish staking list --- .../VerticalNavMenuGroup.vue | 14 +- .../VerticalNavMenuLink.vue | 4 +- src/lang/locales/en.json | 16 +- src/layouts/components/Navbar.vue | 11 +- src/layouts/vertical/LayoutVertical.vue | 2 +- src/libs/data/data.js | 13 +- src/libs/data/deposit.js | 18 + src/libs/data/index.js | 5 + src/libs/data/proposal-tally.js | 29 +- src/libs/data/proposal.js | 42 ++- src/libs/data/proposer.js | 18 + src/libs/data/staking-pool.js | 11 +- src/libs/data/valdiator-description.js | 24 ++ src/libs/data/validator-commission.js | 22 ++ src/libs/data/validator.js | 35 ++ src/libs/data/votes.js | 18 + src/libs/fetch.js | 76 ++-- src/main.js | 4 +- src/navigation/vertical/index.js | 4 +- src/router/index.js | 58 ++- src/store/chains/crypto.json | 7 + src/store/chains/index.js | 8 +- src/views/Governance.vue | 110 +++--- src/views/Info.vue | 9 - src/views/ProposalView.vue | 357 ++++++++++++++++++ src/views/Staking.vue | 82 +++- 26 files changed, 839 insertions(+), 158 deletions(-) create mode 100644 src/libs/data/deposit.js create mode 100644 src/libs/data/proposer.js create mode 100644 src/libs/data/valdiator-description.js create mode 100644 src/libs/data/validator-commission.js create mode 100644 src/libs/data/validator.js create mode 100644 src/libs/data/votes.js create mode 100644 src/store/chains/crypto.json create mode 100644 src/views/ProposalView.vue diff --git a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-group/VerticalNavMenuGroup.vue b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-group/VerticalNavMenuGroup.vue index 06c951d7..256713b1 100644 --- a/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-group/VerticalNavMenuGroup.vue +++ b/src/@core/layouts/layout-vertical/components/vertical-nav-menu/components/vertical-nav-menu-group/VerticalNavMenuGroup.vue @@ -12,7 +12,14 @@ class="d-flex align-items-center" @click="() => updateGroupOpen(!isOpen)" > - + + {{ t(item.title) }} diff --git a/src/views/ProposalView.vue b/src/views/ProposalView.vue new file mode 100644 index 00000000..2b2bf3a2 --- /dev/null +++ b/src/views/ProposalView.vue @@ -0,0 +1,357 @@ + + + + + diff --git a/src/views/Staking.vue b/src/views/Staking.vue index cf970315..9fd929ca 100644 --- a/src/views/Staking.vue +++ b/src/views/Staking.vue @@ -6,7 +6,8 @@ > @@ -16,41 +17,90 @@ > + striped + :items="validators" + :fields="validator_fields" + :sort-desc="true" + sort-by="tokens" + > + + +