diff --git a/src/components/icons/IconWeb.vue b/src/components/icons/IconWeb.vue new file mode 100644 index 00000000..5e0cd0ca --- /dev/null +++ b/src/components/icons/IconWeb.vue @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/modules/[chain]/staking/[validator].vue b/src/modules/[chain]/staking/[validator].vue index d90a9823..179ab2a4 100644 --- a/src/modules/[chain]/staking/[validator].vue +++ b/src/modules/[chain]/staking/[validator].vue @@ -7,6 +7,7 @@ import { useStakingStore, } from '@/stores'; import { onMounted, computed, ref } from 'vue'; +import { Icon } from '@iconify/vue'; import ValidatorCommissionRate from '@/components/ValidatorCommissionRate.vue'; import { consensusPubkeyToHexAddress, @@ -132,31 +133,49 @@ onMounted(() => { - - - - - - + + + + + + + + + + - - - About Us - + + {{ v.description?.moniker }} + + {{ v.description?.identity || '-' }} + + Delegate + + + + About Us + Website: {{ v.description?.website || '-' }} @@ -166,9 +185,8 @@ onMounted(() => { > {{ v.description?.security_contact }} - - Validator Status - + Validator Status + Status: @@ -179,10 +197,10 @@ onMounted(() => { Jailed: {{ v.jailed || '-' }} - - - - + + + + { - - - - {{ v.description?.details }} - - + + + + {{ v.description?.details }} + diff --git a/src/modules/[chain]/staking/index.vue b/src/modules/[chain]/staking/index.vue index ce1fd79d..c6c30b32 100644 --- a/src/modules/[chain]/staking/index.vue +++ b/src/modules/[chain]/staking/index.vue @@ -3,7 +3,7 @@ import { useBaseStore, useFormatter, useStakingStore } from '@/stores'; import { toBase64, toHex } from '@cosmjs/encoding'; import { computed } from '@vue/reactivity'; import { onMounted, ref, type DebuggerEvent } from 'vue'; -import { consensusPubkeyToHexAddress } from '@/libs'; +import { Icon } from '@iconify/vue'; import type { Key, Validator } from '@/types'; const staking = useStakingStore(); const format = useFormatter(); @@ -43,11 +43,9 @@ function fetchChange(offset: number) { } const change24 = (key: Key) => { - // console.log('hex key:', consensusPubkeyToHexAddress(key)) const txt = key.key; const n: number = latest.value[txt]; const o: number = yesterday.value[txt]; - // console.log( txt, n, o) return n > 0 && o > 0 ? n - o : 0; }; @@ -181,24 +179,35 @@ const rank = function (position: number) { - + + {{ i + 1 }} - + - - + + + + + + + + {{ change24Text(v.consensus_pubkey) }} - Jailed + + + Jailed +
About Us
Validator Status