Skip to content

Commit

Permalink
jeeves NFT marketplace link added
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Jul 17, 2024
1 parent 261b59d commit 1c42877
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions pages/nft/collection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@
<span v-else>See all NFTs in the collection</span>
</span>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item cursor-pointer" target="_blank" :href="collectionJeevesLink">
<i class="bi bi-box-arrow-up-right me-1"></i>
See all NFTs on Jeeves NFT marketplace
</a>
<a class="dropdown-item cursor-pointer" target="_blank" :href="collectionZapperLink">
<i class="bi bi-box-arrow-up-right me-1"></i>
See all NFTs on Zapper
Expand Down Expand Up @@ -414,6 +418,11 @@ export default {
return this.$config.blockExplorerBaseUrl+"/token/"+this.cAddress;
},
collectionJeevesLink() {
//https://www.jeeves.market/degen/collection/0x63b24abd4f3fa11c44be58fc867dd326e90aa59e
return `https://www.jeeves.market/degen/collection/${this.cAddress}`;
},
collectionZapperLink() {
return `https://zapper.xyz/nft/degen/${this.cAddress}?tab=explore`;
},
Expand Down
12 changes: 10 additions & 2 deletions utils/ipfsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ export async function getIpfsUrl(url) {
cid = url.split("pinata.cloud/ipfs/")[1];
}

return String("ipfs://" + cid);
if (cid) {
return String("ipfs://" + cid);
}

return null;
}

export async function getWorkingUrl(url) {
Expand All @@ -58,6 +62,10 @@ export async function getWorkingUrl(url) {
}
}

if (!ipfsUrl) {
return url
}

const ipfsGateways = [
'https://ipfs.io/ipfs/',
'https://nftdegeniggy.myfilebase.com/ipfs/',
Expand Down Expand Up @@ -86,6 +94,6 @@ export async function getWorkingUrl(url) {
}
}

return null
return url

}

0 comments on commit 1c42877

Please sign in to comment.