Copying API keys to clipboard (resolves #37)
Created by: dancek
Add clipboard.js based "Copy" buttons next to API keys. Change the API key element to a readonly input, which is auto-selected on click.
I tried to follow the existing code style. Some things I considered but skipped:
- The key could be copied on click to the input, but that's intrusive.
- It would be easy to check for browser support, but the page is broken on "old" browsers anyway (
for..of
onHTMLCollection
) - Styles look similarly broken to the rest of the UI, so I didn't try to guess what the component should look like.