diff --git a/src/layouts/components/ChainProfile.vue b/src/layouts/components/ChainProfile.vue index 6f747af8..24926b11 100644 --- a/src/layouts/components/ChainProfile.vue +++ b/src/layouts/components/ChainProfile.vue @@ -1,84 +1,89 @@ - - - + + + - - + - Rest Endpoint + #{{ + baseStore.latest?.block?.header?.height || + chainStore.chainName || + '' + }} - - - - - {{ item.provider }} - - - - - {{ item.address }} - - - - - - Information - - - - Chain Id: {{ baseStore.latest.block?.header.chain_id }} - - - Height: {{ baseStore.latest.block?.header.height }} - + {{ chainStore.connErr || chainStore.endpoint.address }} - - - + + + - #{{ - baseStore.latest?.block?.header?.height || chainStore.chainName || '' - }} + Rest Endpoint - {{ chainStore.connErr || chainStore.endpoint.address }} + + + + {{ item.provider }} + + + + + {{ item.address }} + + + + + + Information + + + Chain Id: {{ baseStore.latest.block?.header.chain_id }} + + + Height: {{ baseStore.latest.block?.header.height }} + diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 47b47604..e011bb62 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -20,10 +20,10 @@ const dashboard = useDashboard(); dashboard.initial(); const blockchain = useBlockchain(); -const current = ref("") +const current = ref(''); blockchain.$subscribe((m, s) => { - if(current.value != s.chainName) { - current.value = s.chainName + if (current.value != s.chainName) { + current.value = s.chainName; blockchain.initial(); } }); @@ -36,7 +36,7 @@ const changeOpen = (index: Number) => { sidebarOpen.value = !sidebarOpen.value; } }; -const showDiscord = window.location.host.search("ping.pub") > -1 +const showDiscord = window.location.host.search('ping.pub') > -1; @@ -51,7 +51,10 @@ const showDiscord = window.location.host.search("ping.pub") > -1 Ping.pub - + @@ -95,7 +98,8 @@ const showDiscord = window.location.host.search("ping.pub") > -1 {{ item?.badgeContent }} @@ -165,7 +169,8 @@ const showDiscord = window.location.host.search("ping.pub") > -1 {{ item?.badgeContent }} @@ -181,37 +186,67 @@ const showDiscord = window.location.host.search("ping.pub") > -1 Sponsors - - - + + + Osmosis - - - + + + Becole - - Links - - - - + Links + + + Twitter - - - + + + Discord - - - + + + FAQ @@ -237,9 +272,7 @@ const showDiscord = window.location.host.search("ping.pub") > -1 - + diff --git a/src/layouts/components/NavBarWallet.vue b/src/layouts/components/NavBarWallet.vue index 68e408e3..43b7e777 100644 --- a/src/layouts/components/NavBarWallet.vue +++ b/src/layouts/components/NavBarWallet.vue @@ -4,7 +4,7 @@ import { Icon } from '@iconify/vue'; import { ref, computed } from 'vue'; const walletStore = useWalletStore(); const chainStore = useBlockchain(); -const baseStore = useBaseStore() +const baseStore = useBaseStore(); // walletStore.$subscribe((m, s) => { // console.log(m, s); // }); @@ -31,29 +31,31 @@ const tipMsg = computed(() => { ? { class: 'error', msg: 'Copy Error!' } : { class: 'success', msg: 'Copy Success!' }; }); - - - - - + + + - {{ walletStore.shortAddress || "Wallet" }} + {{ walletStore.shortAddress || 'Wallet' }} - Connect Wallet + Connect Wallet {{ walletStore.connectedWallet?.wallet }} @@ -100,17 +102,14 @@ const tipMsg = computed(() => { - - - + + + \ No newline at end of file + diff --git a/vite.config.ts b/vite.config.ts index f28f684d..1e2dece5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,7 +15,18 @@ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ - vue(), + vue({ + template: { + compilerOptions: { + isCustomElement: (tag) => + [ + 'ping-connect-wallet', + 'ping-token-convert', + 'ping-tx-dialog', + ].includes(tag), + }, + }, + }), vueJsx(), vuetify({ styles: {