Giter VIP home page Giter VIP logo

embeddable-nfts's People

Contributors

alexanderatallah avatar dfinzer avatar fafrd avatar sunwrobert avatar taylorjdawson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embeddable-nfts's Issues

claim is not a crime

<script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

I want to random the tokenId, Is there a way to do it?

<nft-card contractAddress="0x1301566b3cb584e550a02d09562041ddc4989b91"
tokenId = "4" <-- Random this number >
<script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js">
</script>

So I want to put the embed to the website but I want it to random the tokenId every time enter the site. is it have a way to do it?

Using this web component breaks the usage of web3.utils

I am trying to use this web component in my DApp, and after including it, web3.utils is undefined.
image

I understand that you are loading web3, it would be great if you could encapsulate it or have the application decide to bring its own (e.g. by setting a parameter to the component data-own-web3-provider)

I am using web3 from this provider (at the time of writing)
https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js

And connect it in this way:
window.web3 = new Web3(window.ethereum);

Hiding collections and NFTs

Is there a way to hide these things since I can’t delete them? It only lets me hide the ones that where air dropped. What’s the best program on GitHub to mess with and make cool nft stuff

TypeError: Cannot read property 'WyvernExchange' of undefined

I have this other issue present with mainnet NFTs:

image

it infinitely loads with the following error:

image

This is using this asset

0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0
token id: 5536
network: mainnet

Obviously I've tried with other mainnet nfts and it won't work.

However, rinkeby items seem to work:

image

Here is the code I used for both cards.

<nft-card tokenAddress="0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0"
              tokenId="5536"
              network="mainnet"
              width="15rem">
            </nft-card>

I have tried using both
<script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

and
<script src="https://unpkg.com/[email protected]/dist/nft-card.min.js"></script>

Price

It only shows price in Eth, is there a way to display the price in USD like the opensea.io website does?

Ability to refresh if there's a "problem loading asset"

Is there any way to add a refresh button to the error 'page' of "problem loading asset"? If I have more than 4 on a page, at least one will always error out. I've added delays before the script executes in order to try to alleviate the loading pressure, but that doesn't seem to fix it. It would be nice to have a refresh button that could re-execute the script so the user could manually reload only the content that failed to load.

Nft



<script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

Embed Links Not Working

Hi,

It appears that the embed links are not working for NFTs on the Matic/Polygon network. I am consistently getting an error trying to load them. Is it possible to get a fix soon, I have a front end waiting to be populated?

Works fine with NFTs on the main ETH chain

Thanks

orientationMode="auto"

This input doesn't work responsively: orientationMode="auto"
It only converts to vertical view on a hard refresh after breaking width of 600px. Would be great to make this more responsive

License?

What license is the embeddable-nfts code published under?

Node version

I have tried to install the project but it does not work with my current version of node, I have 15.11.0, how can I run the project?

Support for MATIC network needed.

So, seems there is a ton of love to matic network on opensea, but no love for embedding.

I understand and have seen Matic is currently now supported... But is there a way to force support, or something that could be done on the back end to allow support?

'width' component input not working

I've added a custom width to the code:

<nft-card
contractAddress="0x495f947276749ce646f68ac8c248420045cb7b5e"
tokenId="3010427797529961947245158371114284343915982742756858378164285684396071059457">
width="100%"
</nft-card>

but it has no impact on the container. I'm trying to make it fit inside a responsive <div> as the default height and width settings don't allow this to work properly.

The card styling in the rendered iframe is embedded here:

<div class="card " style="width: 80vw; height: 210px; min-height: 200px; max-width: 670px;">

and my component input just shows up down below the card like this:

`<!-------->

width="100%"`

Which makes no difference to the width of the container.

TypeError: this.provider.on is not a function

Screen Shot 2022-04-28 at 7 37 35 AM

Every time an OpenSea embedded NFT loads (using <nft-card/>) it throws this error:

Uncaught (in promise) TypeError: this.provider.on is not a function
    at HTMLElement.connectedCallback (nft-card.ts:203:19)

As you can see from the screenshot this happens multiple times for a single NFT.

Does anyone monitor or maintain this repo?

View setting and select what metadata to show

Hey, I've been playing around with the embeddable-NFT as I think it's a cool feature.
I've added it in a tiny space and this is what happens:

image

That made me think and I think it would be cool to have an option that allows us to choose what metadata to display at the back of the card.
It would also be cool to have an attribute "img-only" that would only show the image at the front of the card.

Loving it though, cheers team,

I can't list the embed stored in an array or external API

I can't list the embed stored in an array or external API

<nft-card contractAddress='{{date.contract}}' tokenId='{{data.token}}'> </nft-card>

[
   {
      "objectId":"M7jZ8OjC8j",
      "Nome":"Everthon",
      "contrato":"0x495f947276749ce646f68ac8c248420045cb7b5e",
      "token":"78495829787498492412723056243079961224868456392339058028291878295268482875393",
      "status":true,
      "rede":"opensea",
      "createdAt":"2021-08-23T11:54:17.248Z",
      "updatedAt":"2021-08-23T11:54:17.248Z"
   },
   {
      "objectId":"ltLbr24JCk",
      "Nome":"Paulinho",
      "contrato":"0x629a673a8242c2ac4b7b8c5d8735fbeac21a6205",
      "token":"16649640577943836210073419105215064703381732888531537205139611154943039406321",
      "rede":"opensea",
      "status":true,
      "createdAt":"2021-08-23T13:10:17.138Z",
      "updatedAt":"2021-08-23T13:10:17.138Z"
   }
]

localhost_8100_payments(Pixel 2 XL) (3)

Support for Solana network coming?

I've seen posts that say embedding Matic NFTs isn't supported. Assume it's a similar issue for Solana. Would be great to know if this is in the pipeline or if I should plan for another route.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.