PokeAPI / pokeapi.co

The PokéAPI documentation website
https://pokeapi.co
BSD 3-Clause "New" or "Revised" License
136 stars 52 forks source link

Added feature: Copy URL to Clipboard #113

Closed emw3 closed 2 years ago

emw3 commented 2 years ago

Hello,

Added a button into the API Explorer to copy the full URL to the clipboard, this addition could improve the UX when you are exploring the available endpoints.

In the following case, the text https://pokeapi.co/api/v2/pokemon/ditto will be copied to the clipboard.

Copy to Clipboard

Naramsim commented 2 years ago

Super cool addition, I'll test it and report back

Naramsim commented 2 years ago

@emw3, thanks so much for the contribution. Everything looks good but the package-lock.json. Could you please update your node and npm and regenerate it?

emw3 commented 2 years ago

@Naramsim I've regenerated the package-lock.json using the latest node LTS version 16.3.2. Let me know if anything else is needed.

Naramsim commented 2 years ago

I merged the PR in the staging branch