-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
665 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<template> | ||
<app-panel class="ae-coin-transactions-panel"> | ||
<loader-indicator v-if="isLoading"/> | ||
<template v-else> | ||
<ae-coin-markets-table | ||
class="u-hidden-mobile" | ||
:gate="gate" | ||
:mexc="mexc" | ||
:hot-coin="hotCoin" | ||
:coin-store="coinStore" | ||
:coin-w="coinW"/> | ||
<ae-coin-markets-table-condensed | ||
class="u-hidden-desktop" | ||
:gate="gate" | ||
:mexc="mexc" | ||
:hot-coin="hotCoin" | ||
:coin-store="coinStore" | ||
:coin-w="coinW"/> | ||
</template> | ||
</app-panel> | ||
</template> | ||
|
||
<script setup> | ||
import { storeToRefs } from 'pinia' | ||
import { useAeCoinStore } from '@/stores/aeCoin' | ||
const aeCoinStore = useAeCoinStore() | ||
const { fetchMarketStats } = aeCoinStore | ||
const { | ||
gate, | ||
mexc, | ||
hotCoin, | ||
coinStore, | ||
coinW, | ||
isLoading, | ||
} = storeToRefs(aeCoinStore) | ||
await useAsyncData(async() => { | ||
await fetchMarketStats() | ||
return true | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<template> | ||
<table> | ||
<tr> | ||
<th> | ||
Name | ||
<hint-tooltip> | ||
{{ aeCoinHints.marketName }} | ||
</hint-tooltip> | ||
</th> | ||
<th> | ||
Token Pair | ||
<hint-tooltip> | ||
{{ aeCoinHints.pair }} | ||
</hint-tooltip> | ||
</th> | ||
<th> | ||
Price | ||
<hint-tooltip> | ||
{{ aeCoinHints.marketPrice }} | ||
</hint-tooltip> | ||
</th> | ||
<th> | ||
Volume (24h) | ||
<hint-tooltip> | ||
{{ aeCoinHints.volume }} | ||
</hint-tooltip> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td>Gate.io</td> | ||
<td>AE / USDT</td> | ||
<td>$ {{ formatNullable(formatNumber(gate?.price)) }}</td> | ||
<td>$ {{ formatNullable(formatNumber(gate?.volume)) }}</td> | ||
</tr> | ||
<tr> | ||
<td>Mexc</td> | ||
<td>AE / USDT</td> | ||
<td>$ {{ formatNullable(formatNumber(mexc?.price)) }}</td> | ||
<td>$ {{ formatNullable(formatNumber(mexc?.volume)) }}</td> | ||
</tr> | ||
<tr> | ||
<td>HotCoin</td> | ||
<td>AE / USDT</td> | ||
<td>$ {{ formatNullable(formatNumber(hotCoin?.price)) }}</td> | ||
<td>$ {{ formatNullable(formatNumber(hotCoin?.volume)) }}</td> | ||
</tr> | ||
<tr> | ||
<td>CoinStore</td> | ||
<td>AE / USDT</td> | ||
<td>$ {{ formatNullable(formatNumber(coinStore?.price)) }}</td> | ||
<td>$ {{ formatNullable(formatNumber(coinStore?.volume)) }}</td> | ||
</tr> | ||
<tr> | ||
<td>CoinW</td> | ||
<td>AE / USDT</td> | ||
<td>$ {{ formatNullable(formatNumber(coinW?.price)) }}</td> | ||
<td>$ {{ formatNullable(formatNumber(coinW?.volume)) }}</td> | ||
</tr> | ||
</table> | ||
</template> | ||
|
||
<script setup> | ||
import { aeCoinHints } from '@/utils/hints/aeCoinHints' | ||
defineProps({ | ||
gate: { | ||
type: Object, | ||
required: true, | ||
}, | ||
mexc: { | ||
type: Object, | ||
required: true, | ||
}, | ||
hotCoin: { | ||
type: Object, | ||
required: true, | ||
}, | ||
coinStore: { | ||
type: Object, | ||
required: true, | ||
}, | ||
coinW: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}) | ||
</script> |
Oops, something went wrong.