+
+
+
+
+
+
Ping.pub
+
+
+
+
+
+
+
+
+
+
+
+ {{ item?.title }}
+
+
+ {{ item?.badgeContent }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ item?.title }}
+
+
+ {{ item?.badgeContent }}
+
+
+
+ {{ item?.heading }}
+
+
+
+
+
+
-
+
@@ -71,56 +180,15 @@ blockchain.$subscribe((m, s) => {
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
-
-
diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue
index afeb9680..50dce86e 100644
--- a/src/modules/[chain]/index.vue
+++ b/src/modules/[chain]/index.vue
@@ -3,7 +3,12 @@ import MdEditor from 'md-editor-v3';
import PriceMarketChart from '@/components/charts/PriceMarketChart.vue';
import { Icon } from '@iconify/vue';
-import { useBlockchain, useFormatter, useTxDialog, useWalletStore } from '@/stores';
+import {
+ useBlockchain,
+ useFormatter,
+ useTxDialog,
+ useWalletStore,
+} from '@/stores';
import { onMounted, ref } from 'vue';
import { useIndexModule } from './indexStore';
import { computed } from '@vue/reactivity';
@@ -13,9 +18,9 @@ import ProposalListItem from '@/components/ProposalListItem.vue';
const blockchain = useBlockchain();
const store = useIndexModule();
-const walletStore = useWalletStore()
-const format = useFormatter()
-const dialog = useTxDialog()
+const walletStore = useWalletStore();
+const format = useFormatter();
+const dialog = useTxDialog();
const coinInfo = computed(() => {
return store.coinInfo;
@@ -23,7 +28,7 @@ const coinInfo = computed(() => {
onMounted(() => {
store.loadDashboard();
- walletStore.loadMyAsset()
+ walletStore.loadMyAsset();
});
const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]);
@@ -34,7 +39,7 @@ blockchain.$subscribe((m, s) => {
['chainName', 'endpoint'].includes(m.events.key)
) {
store.loadDashboard();
- walletStore.loadMyAsset()
+ walletStore.loadMyAsset();
}
});
function shortName(name: string, id: string) {
@@ -69,19 +74,19 @@ const comLinks = [
// wallet box
const change = computed(() => {
- const token = walletStore.balanceOfStakingToken
- return token? format.priceChanges(token.denom) : 0
-})
-const color= computed(() => {
- switch(true) {
- case change.value > 0:
- return "text-green-600"
+ const token = walletStore.balanceOfStakingToken;
+ return token ? format.priceChanges(token.denom) : 0;
+});
+const color = computed(() => {
+ switch (true) {
+ case change.value > 0:
+ return 'text-green-600';
case change.value === 0:
- return "text-grey-500"
+ return 'text-grey-500';
case change.value < 0:
- return "text-red-600"
+ return 'text-red-600';
}
-})
+});
@@ -236,18 +241,59 @@ const color= computed(() => {
-