From d3a7c6f176cdf32df7f121ba081a5cdd1cc60564 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 7 Apr 2023 10:11:48 +0800 Subject: [PATCH] add gov --- src/components/ProposalListItem.vue | 55 +++++++++++++++++++++ src/components/ProposalProcess.vue | 8 +-- src/components/dynamic/DynamicComponent.vue | 4 +- src/layouts/components/ChainProfile.vue | 5 ++ src/modules/[chain]/gov/index.vue | 37 ++++++++++++++ src/modules/[chain]/index.vue | 34 +------------ src/modules/[chain]/indexStore.ts | 14 ++---- src/modules/[chain]/test.vue | 3 -- src/modules/[chain]/tx/[hash].vue | 2 +- src/plugins/pinia/dashboardPlugin.ts | 10 ---- src/stores/useFormatter.ts | 5 +- src/stores/useGovStore.ts | 25 ++++++++-- src/types/common.ts | 6 +++ tsconfig.json | 2 +- 14 files changed, 142 insertions(+), 68 deletions(-) create mode 100644 src/components/ProposalListItem.vue create mode 100644 src/modules/[chain]/gov/index.vue delete mode 100644 src/modules/[chain]/test.vue delete mode 100644 src/plugins/pinia/dashboardPlugin.ts diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue new file mode 100644 index 00000000..da73c9de --- /dev/null +++ b/src/components/ProposalListItem.vue @@ -0,0 +1,55 @@ + + \ No newline at end of file diff --git a/src/components/ProposalProcess.vue b/src/components/ProposalProcess.vue index d3302756..82fd26e2 100644 --- a/src/components/ProposalProcess.vue +++ b/src/components/ProposalProcess.vue @@ -24,10 +24,10 @@ const veto = computed(() => (format.calculatePercent(props.tally?.no_with_veto,