From c990dc40172f5261ba075002b63f33e81d13e36e Mon Sep 17 00:00:00 2001 From: Tempe Techie <95053628+tempe-techie@users.noreply.github.com> Date: Thu, 30 May 2024 19:23:11 +0200 Subject: [PATCH] minor changes --- components/chat/ChatFeed.vue | 2 +- .../nft/collection/ChangeCollectionPreviewModal.vue | 12 ------------ components/storage/FileUploadModal.vue | 2 +- pages/nft/create.vue | 12 +----------- 4 files changed, 3 insertions(+), 25 deletions(-) diff --git a/components/chat/ChatFeed.vue b/components/chat/ChatFeed.vue index a0cf3005..1d7b4a96 100644 --- a/components/chat/ChatFeed.vue +++ b/components/chat/ChatFeed.vue @@ -59,7 +59,7 @@ @processFileUrl="insertImage" title="Upload image" infoText="Upload an image." - storageType="ipfs" + storageType="imagekit" :componentId="$.uid" :maxFileSize="$config.fileUploadSizeLimit" /> diff --git a/components/nft/collection/ChangeCollectionPreviewModal.vue b/components/nft/collection/ChangeCollectionPreviewModal.vue index 0e4ac8c8..af7e19ef 100644 --- a/components/nft/collection/ChangeCollectionPreviewModal.vue +++ b/components/nft/collection/ChangeCollectionPreviewModal.vue @@ -92,18 +92,6 @@ export default { this.componentId = this.$.uid }, - computed: { - parseImageLink() { - let parsedImage = this.imageUrl; - - if (parsedImage && parsedImage.includes("ipfs://")) { - parsedImage = parsedImage.replace("ipfs://", this.$config.ipfsGateway); - } - - return parsedImage; - } - }, - methods: { async updateImage() { this.waiting = true diff --git a/components/storage/FileUploadModal.vue b/components/storage/FileUploadModal.vue index 6db33a9f..e33c3721 100644 --- a/components/storage/FileUploadModal.vue +++ b/components/storage/FileUploadModal.vue @@ -54,7 +54,7 @@ diff --git a/pages/nft/create.vue b/pages/nft/create.vue index 87d64a26..746d5a6d 100644 --- a/pages/nft/create.vue +++ b/pages/nft/create.vue @@ -300,17 +300,7 @@ export default { } else { return false } - }, - - parseImageLink() { - let parsedImage = this.cImage; - - if (parsedImage && parsedImage.includes("ipfs://")) { - parsedImage = parsedImage.replace("ipfs://", this.$config.ipfsGateway); - } - - return parsedImage; - } + } }, methods: {