Skip to content

Commit

Permalink
📦 VERSION: 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Apr 10, 2024
1 parent 85de1ac commit 8b102fd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "metalet",
"private": true,
"version": "2.6.0",
"version": "2.7.0",
"type": "module",
"scripts": {
"dev": "vite --config ./vite-config/vite.dev.config.ts",
Expand Down Expand Up @@ -33,6 +33,7 @@
"@scure/bip39": "^1.2.2",
"@sentry/vue": "^7.81.1",
"@tanstack/vue-query": "^4.26.1",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^10.3.0",
"@vueuse/integrations": "^10.4.1",
"axios": "0.27.2",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Metalet",
"description": "A cross-chain crypto wallet extension",
"version": "2.6.0",
"version": "2.7.0",
"manifest_version": 3,
"action": {
"default_popup": "popup.html",
Expand Down
2 changes: 1 addition & 1 deletion src/data/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '2.6.0'
export const VERSION = '2.7.0'

export const FEEB = 1
export const P2PKH_UNLOCK_SIZE = 1 + 1 + 72 + 1 + 33
Expand Down
11 changes: 9 additions & 2 deletions src/pages/wallet/Token.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts" setup>
import { computed, ref } from 'vue'
import { UseImage } from '@vueuse/components'
import { isOfficialToken } from '@/lib/assets'
import { useRoute, useRouter } from 'vue-router'
import { useMVCTokenQuery } from '@/queries/tokens'
Expand All @@ -26,7 +27,7 @@ const { isLoading, data: asset } = useMVCTokenQuery(ref(address), ref(genesis),
const toSend = () => {
router.push({
name: 'send-token',
params: { symbol, genesis,address },
params: { symbol, genesis, address },
})
}
const toReceive = () => {
Expand All @@ -46,7 +47,13 @@ const copyGenesis = () => {

<template v-else-if="!!asset">
<!-- logo -->
<img v-if="asset?.logo" :src="asset.logo" alt="" class="h-20 w-20 rounded-full" />
<UseImage :src="asset.logo" v-if="asset.logo && asset.codeHash" class="h-20 w-20 rounded-xl">
<template #error>
<div style="line-height: 80px" class="h-20 w-20 text-center rounded-full text-white text-3xl bg-[#1E2BFF]">
{{ symbol[0].toLocaleUpperCase() }}
</div>
</template>
</UseImage>
<div v-else style="line-height: 80px" class="h-20 w-20 text-center rounded-full text-white text-3xl bg-[#1E2BFF]">
{{ symbol[0].toLocaleUpperCase() }}
</div>
Expand Down
9 changes: 8 additions & 1 deletion src/pages/wallet/components/AssetItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Decimal from 'decimal.js'
import { ref, computed, watch } from 'vue'
import { updateAsset } from '@/lib/balance'
import { UseImage } from '@vueuse/components'
import { isOfficialToken } from '@/lib/assets'
import { useBalanceQuery } from '@/queries/balance'
import { CheckBadgeIcon } from '@heroicons/vue/24/solid'
Expand Down Expand Up @@ -70,7 +71,13 @@ watch(
<div class="flex gap-2 cursor-pointer items-center justify-between rounded-md bg-gray-100 px-4 py-4">
<!-- left part -->
<div class="flex flex-shrink-0 items-center gap-x-3">
<img class="h-10 w-10" :src="asset.logo" v-if="asset.logo && asset.codeHash" />
<UseImage :src="asset.logo" v-if="asset.logo && asset.codeHash" class="h-10 w-10 rounded-md">
<template #error>
<div class="h-10 w-10 text-center leading-10 rounded-full text-white text-base bg-[#1E2BFF]">
{{ asset.symbol[0].toLocaleUpperCase() }}
</div>
</template>
</UseImage>
<img class="h-10 w-10 rounded-full" :src="asset.logo" v-else-if="asset.logo" />
<div v-else class="h-10 w-10 text-center leading-10 rounded-full text-white text-base bg-[#1E2BFF]">
{{ asset.symbol[0].toLocaleUpperCase() }}
Expand Down
2 changes: 1 addition & 1 deletion src/queries/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const Balance_QUERY_INTERVAL = 15000;
export const Balance_QUERY_INTERVAL = 30000;

0 comments on commit 8b102fd

Please sign in to comment.