From 8f94bbab3de928cccaea029c83a6aaf10084c6f4 Mon Sep 17 00:00:00 2001 From: roiLeo Date: Mon, 29 May 2023 14:24:33 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=96=20remove=20b-image=20component=20(#58?= =?UTF-8?q?54)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jarsen <31397967+Jarsen136@users.noreply.github.com> Co-authored-by: Viki Val --- components/collection/CollectionCard.vue | 25 ++++--- .../common/ConnectWallet/WalletMenuItem.vue | 7 +- components/generative/CongratsView.vue | 18 ++--- components/series/SeriesTable.vue | 9 +-- components/shared/view/BasicImage.vue | 67 +++++++++++++------ components/shared/view/SelectableImage.vue | 8 +-- .../unique/Collection/Item/CollectionItem.vue | 8 +-- .../Item/TransferCollectionModal.vue | 6 +- .../unique/Gallery/Item/DangerModal.vue | 8 +-- components/unique/graphqlResponseTypes.ts | 1 - 10 files changed, 85 insertions(+), 72 deletions(-) diff --git a/components/collection/CollectionCard.vue b/components/collection/CollectionCard.vue index 2d0137d131..773b646bce 100644 --- a/components/collection/CollectionCard.vue +++ b/components/collection/CollectionCard.vue @@ -3,20 +3,22 @@ - - - + @@ -32,6 +34,7 @@ import CollectionDetail from './CollectionDetail.vue' import type { Metadata } from '@/components/rmrk/service/scheme' const { urlPrefix } = usePrefix() +const isLoadingMeta = ref(false) interface Props { isLoading?: boolean @@ -46,11 +49,13 @@ onMounted(async () => { return } + isLoadingMeta.value = true const metadata = (await processSingleMetadata( props.collection.metadata )) as Metadata image.value = sanitizeIpfsUrl( metadata.image || metadata.thumbnailUri || metadata.mediaUri || '' ) + isLoadingMeta.value = false }) diff --git a/components/common/ConnectWallet/WalletMenuItem.vue b/components/common/ConnectWallet/WalletMenuItem.vue index bf34d120d1..b09f6499e6 100644 --- a/components/common/ConnectWallet/WalletMenuItem.vue +++ b/components/common/ConnectWallet/WalletMenuItem.vue @@ -8,10 +8,11 @@
- + :alt="wallet.extensionName" + width="32" + style="vertical-align: middle" /> {{ wallet.name }} diff --git a/components/generative/CongratsView.vue b/components/generative/CongratsView.vue index 0e0bcb3201..21759420d9 100644 --- a/components/generative/CongratsView.vue +++ b/components/generative/CongratsView.vue @@ -1,15 +1,14 @@