Skip to content

Commit

Permalink
fix: Fix 0.15.0 release (#920)
Browse files Browse the repository at this point in the history
(cherry picked from commit 971b5ba)
  • Loading branch information
janmichek committed Sep 10, 2024
1 parent 0b29201 commit 784f359
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/assets/ae-token.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/components/ContractDetailsPanel.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<app-panel class="contract-details-panel">
<app-panel
v-if="contractDetails"
class="contract-details-panel">
<table>
<tbody>
<tr class="contract-details-panel__row">
Expand Down
67 changes: 67 additions & 0 deletions src/components/MinersStatistics.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<template>
<div class="transaction-statistics">
<app-panel class="transaction-statistics__panel">
<h5>MINERS COUNT</h5>
<div class="transaction-statistics__value">
{{ minersCount }}
</div>
</app-panel>
<app-panel class="transaction-statistics__panel">
<h5>REWARD</h5>
<div class="transaction-statistics__value">
<!-- <price-label :price="formatAePrice(blockReward)"/>-->
<price-label :price="formatAettosToAe(blockReward, null)"/>
</div>
</app-panel>
<app-panel class="transaction-statistics__panel">
<h5>DIFFICULTY</h5>
<div class="transaction-statistics__value">
{{ formatNumber(difficulty, 0, 0, 4) }} G
</div>
</app-panel>
</div>
</template>
<script setup>
import { useMinersStore } from '@/stores/miners'
import { formatAettosToAe } from '~/utils/format'
const { fetchMiners } = useMinersStore()
const { minersCount, blockReward, difficulty } = storeToRefs(useMinersStore())
if (process.client) {
await fetchMiners()
}
</script>

<style scoped>
.transaction-statistics {
display: flex;
flex-direction: column;
gap: var(--space-2);
width: 100%;
margin-bottom: var(--space-2);
@media (--desktop) {
flex-direction: row;
}
&__panel {
padding: var(--space-4);
width: 100%;
@media (--desktop) {
width: 50%;
}
}
&__value {
display: inline-flex;
justify-content: space-between;
width: 100%;
font-size: 36px;
font-family: var(--font-monospaced);
font-weight: 400;
margin-top: var(--space-3);
}
}
</style>
19 changes: 9 additions & 10 deletions src/components/NodesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,19 @@
v-for="(node, index) in nodes"
:key="node.networkId">
<td class="nodes-table__hash">
{{ index }}
</td>
<td>
{{ node.host }}
<value-hash-ellipsed :hash="index"/>
</td>
<td>{{ node.host }}</td>
<td>{{ node.port }}</td>
<td>{{ formatNullable(node.networkId) }}</td>
<td>{{ formatNullable(node.nodeVersion) }}</td>
<td class="nodes-table__hash">
{{ formatNullable(node.nodeRevision) }}
<td>
<value-hash-ellipsed
v-if="node.nodeRevision"
:hash="node.nodeRevision"/>
<template v-else>
---
</template>
</td>
<td>{{ formatNullable(node.nodeVendor) }}</td>
<td>{{ formatNullable(node.nodeOs) }}</td>
Expand All @@ -84,10 +87,6 @@ defineProps({

<style scoped>
.nodes-table {
&__hash {
word-break: break-all;
}
&__header {
white-space: nowrap;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchNamesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<th>
Status
<hint-tooltip>
{{ namesHints.status }}
{{ namesHints.state }}
</hint-tooltip>
</th>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchNamesTableCondensed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<app-tooltip>
Status
<template #tooltip>
{{ namesHints.status }}
{{ namesHints.state }}
</template>
</app-tooltip>
</th>
Expand Down
5 changes: 5 additions & 0 deletions src/components/TokenDetailsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ const fiatPrice = computed(() =>
}
}
&__container {
display: flex;
gap: var(--space-2) var(--space-1);
}
&__extensions {
display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit 784f359

Please sign in to comment.