diff --git a/src/components/CardParameter.vue b/src/components/CardParameter.vue index a301393a..a1c1f3d6 100644 --- a/src/components/CardParameter.vue +++ b/src/components/CardParameter.vue @@ -25,7 +25,7 @@ function calculateValue(value: any){ diff --git a/src/components/ThemeSwitcher.vue b/src/components/ThemeSwitcher.vue index 6df6214f..02f03e60 100644 --- a/src/components/ThemeSwitcher.vue +++ b/src/components/ThemeSwitcher.vue @@ -1,6 +1,7 @@ diff --git a/src/components/dynamic/ObjectElement.vue b/src/components/dynamic/ObjectElement.vue index 1f61ea98..2d92f453 100644 --- a/src/components/dynamic/ObjectElement.vue +++ b/src/components/dynamic/ObjectElement.vue @@ -6,14 +6,18 @@ const props = defineProps(["value"]); \ No newline at end of file diff --git a/src/layouts/components/Footer.vue b/src/layouts/components/Footer.vue deleted file mode 100644 index e47afd34..00000000 --- a/src/layouts/components/Footer.vue +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/src/layouts/components/NavbarThemeSwitcher.vue b/src/layouts/components/NavbarThemeSwitcher.vue index 1ff5e037..d0c4ab96 100644 --- a/src/layouts/components/NavbarThemeSwitcher.vue +++ b/src/layouts/components/NavbarThemeSwitcher.vue @@ -20,6 +20,5 @@ const themes: ThemeSwitcherTheme[] = [ diff --git a/src/modules/[chain]/block/[height].vue b/src/modules/[chain]/block/[height].vue index 4665d785..d15c3d7a 100644 --- a/src/modules/[chain]/block/[height].vue +++ b/src/modules/[chain]/block/[height].vue @@ -1,58 +1,66 @@ \ No newline at end of file + + diff --git a/src/modules/[chain]/block/index.vue b/src/modules/[chain]/block/index.vue index 7b2d9986..61bbbcf0 100644 --- a/src/modules/[chain]/block/index.vue +++ b/src/modules/[chain]/block/index.vue @@ -11,76 +11,82 @@ const tab = ref('blocks'); const format = useFormatter(); diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index eba73be0..8f3c2bfe 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -100,8 +100,11 @@ const total = computed(()=> { }) const turnout = computed(() => { + if (total.value > 0) { const bonded = useStakingStore().pool?.bonded_tokens || "1" return format.percent(total.value / Number(bonded)) + } + return 0 }) const yes = computed(()=> { @@ -135,75 +138,58 @@ const abstain = computed(()=> { } return 0 }) +const processList = computed(()=>{ + return [ + {name: 'Turnout', value : turnout.value, class: 'bg-info' }, + {name: 'Yes', value : yes.value, class: 'bg-success' }, + {name: 'No', value : no.value, class: 'bg-error' }, + {name: 'No With Veto', value : veto.value, class: 'bg-primary' }, + {name: 'Abstain', value : abstain.value, class: 'bg-warning' } + ] +}) diff --git a/src/modules/[chain]/gov/index.vue b/src/modules/[chain]/gov/index.vue index d39d524b..f53b9635 100644 --- a/src/modules/[chain]/gov/index.vue +++ b/src/modules/[chain]/gov/index.vue @@ -2,7 +2,7 @@ import { useGovStore } from '@/stores'; import ProposalListItem from '@/components/ProposalListItem.vue'; import { ref, onMounted } from 'vue'; -const tab = ref(''); +const tab = ref('2'); const store = useGovStore(); onMounted(() => { @@ -13,33 +13,41 @@ onMounted(() => { } }); }); + +const changeTab = (val: '2' | '3' | '4') => { + tab.value = val; + store.fetchProposals(val); +}; - { - meta: { - i18n: 'governance' - } + { + meta: { + i18n: 'governance' } - + } + diff --git a/src/modules/[chain]/params/index.vue b/src/modules/[chain]/params/index.vue index 51e49eef..7a67439e 100644 --- a/src/modules/[chain]/params/index.vue +++ b/src/modules/[chain]/params/index.vue @@ -14,7 +14,7 @@ onMounted(() => {