Merge pull request #361 from sxlmnwb/v3-single
bumped into primary colors and created router link
This commit is contained in:
commit
f73bfc9d8c
@ -217,7 +217,7 @@ loadAccount(props.address)
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="v in delegations">
|
<tr v-for="v in delegations">
|
||||||
<td>{{ format.validatorFromBech32(v.delegation.validator_address) }} </td>
|
<td class="text-caption text-primary"><RouterLink :to="`/${chain}/staking/${v.delegation.validator_address}`">{{ format.validatorFromBech32(v.delegation.validator_address) }}</RouterLink></td>
|
||||||
<td>{{ format.formatToken(v.balance, true, "0,0.[00]") }} </td>
|
<td>{{ format.formatToken(v.balance, true, "0,0.[00]") }} </td>
|
||||||
<td>{{ format.formatTokens(rewards?.rewards?.find(x => x.validator_address ===v.delegation.validator_address)?.reward) }} </td>
|
<td>{{ format.formatTokens(rewards?.rewards?.find(x => x.validator_address ===v.delegation.validator_address)?.reward) }} </td>
|
||||||
<td>
|
<td>
|
||||||
@ -238,7 +238,7 @@ loadAccount(props.address)
|
|||||||
<tbody>
|
<tbody>
|
||||||
<div v-for="v in unbonding">
|
<div v-for="v in unbonding">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ format.validatorFromBech32(v.validator_address) }} </td>
|
<td class="text-caption text-primary"><RouterLink :to="`/${chain}/staking/${v.validator_address}`">{{ format.validatorFromBech32(v.validator_address) }}</RouterLink></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="entry in v.entries">
|
<tr v-for="entry in v.entries">
|
||||||
<td>{{ entry.creation_height }}</td>
|
<td>{{ entry.creation_height }}</td>
|
||||||
|
@ -24,12 +24,12 @@ const format = useFormatter()
|
|||||||
<VTable>
|
<VTable>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Height</th><th>Hash</th><th>Proposor</th><th>Txs</th><th>Time</th>
|
<th>Height</th><th>Hash</th><th>Proposer</th><th>Txs</th><th>Time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="item in store.recents">
|
<tr v-for="item in store.recents">
|
||||||
<td><RouterLink :to="`/${props.chain}/block/${item.block?.header?.height}`">{{ item.block?.header?.height }}</RouterLink></td>
|
<td class="text-sm text-primary"><RouterLink :to="`/${props.chain}/block/${item.block?.header?.height}`">{{ item.block?.header?.height }}</RouterLink></td>
|
||||||
<td>{{ item.block_id?.hash }}</td>
|
<td>{{ item.block_id?.hash }}</td>
|
||||||
<td>{{ format.validator(item.block?.header?.proposer_address) }}</td>
|
<td>{{ format.validator(item.block?.header?.proposer_address) }}</td>
|
||||||
<td>{{ item.block?.data?.txs.length }}</td>
|
<td>{{ item.block?.data?.txs.length }}</td>
|
||||||
|
@ -225,7 +225,7 @@ onMounted(()=> {
|
|||||||
<VList class="pt-0">
|
<VList class="pt-0">
|
||||||
<VListItem>
|
<VListItem>
|
||||||
<VListItemTitle>Account</VListItemTitle>
|
<VListItemTitle>Account</VListItemTitle>
|
||||||
<VListItemSubtitle class="text-caption"><RouterLink :to="`/${chain}/account/${addresses.account}`">{{ addresses.account }}</RouterLink></VListItemSubtitle>
|
<VListItemSubtitle class="text-caption text-primary"><RouterLink :to="`/${chain}/account/${addresses.account}`">{{ addresses.account }}</RouterLink></VListItemSubtitle>
|
||||||
</VListItem>
|
</VListItem>
|
||||||
<VListItem>
|
<VListItem>
|
||||||
<VListItemTitle>Operator Address</VListItemTitle>
|
<VListItemTitle>Operator Address</VListItemTitle>
|
||||||
@ -254,7 +254,7 @@ onMounted(()=> {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(item, i) in txs.tx_responses">
|
<tr v-for="(item, i) in txs.tx_responses">
|
||||||
<td>{{ item.height }}</td>
|
<td class="text-sm text-primary"><RouterLink :to="`/${props.chain}/block/${item.height}`">{{ item.height }}</RouterLink></td>
|
||||||
<td class="text-truncate" style="max-width: 200px;">{{ item.txhash }}</td>
|
<td class="text-truncate" style="max-width: 200px;">{{ item.txhash }}</td>
|
||||||
<td>{{ format.messages(item.tx.body.messages) }}</td>
|
<td>{{ format.messages(item.tx.body.messages) }}</td>
|
||||||
<td width="150">{{ format.toDay(item.timestamp,'from') }}</td>
|
<td width="150">{{ format.toDay(item.timestamp,'from') }}</td>
|
||||||
|
@ -184,7 +184,7 @@ const rank = function(position: number) {
|
|||||||
:image="logo(v.description?.identity)"
|
:image="logo(v.description?.identity)"
|
||||||
/>
|
/>
|
||||||
<div class="d-flex flex-column">
|
<div class="d-flex flex-column">
|
||||||
<h6 class="text-sm">
|
<h6 class="text-sm text-primary">
|
||||||
<RouterLink
|
<RouterLink
|
||||||
:to="{name: 'chain-staking-validator', params: {validator: v.operator_address}}"
|
:to="{name: 'chain-staking-validator', params: {validator: v.operator_address}}"
|
||||||
class="font-weight-medium user-list-name"
|
class="font-weight-medium user-list-name"
|
||||||
|
@ -10,6 +10,7 @@ module.exports = {
|
|||||||
no: '#ff5353',
|
no: '#ff5353',
|
||||||
info: '#00b2ff',
|
info: '#00b2ff',
|
||||||
textMain: '#333',
|
textMain: '#333',
|
||||||
|
primary: '#666cff',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user