Copy install command to clipboard
Dhaulagiri opened this issue · comments
When I'm browsing the site I often care a lot more about visiting the addon's github repo than I do the npm page. If this is a common feeling I was going to add some sort of link to the github repo, maybe next to the Travis status badge? If we were to add this link, we could use one of the github buttons, or I could just build more simple links.
Thoughts?
The thing is that not all packages are on GitHub because it's not a requirement. I also worry about overcrowding the UI.
In a past conversation we talked about maybe having a details pane for each module, something the user could toggle to reveal more information.
What other details were you thinking of surfacing on the details pane?
Some ideas to discuss:
- Travis Badge
- Version number
- License
- Categories with links (see #2)
- Readme file
- Repo url (Github, Bitbucket, others)
- Install command
npm install --save-dev ember-cli-showdown
maybe all the optional things like travis + gh belong in a "more" section
Making the install command that @gcollazo had mentioned a button to copy to clipboard would be a timesaver.
@sivakumar-kailasam I've been playing with that recently (using ember-cli-zero-clipboard) and noticed that the solution needs to take into account users without flash player installed. That means detecting Flash (swfobject) and having some sort of alternate UI for when the user doesn't have flash. I found two examples of how people are dealing with this.
I'm starting to think that we should take the Bit.ly without Flash Player approach.
Yep the non-flash approach sounds great.
Proposed icon for feature https://github.com/github/octicons/blob/master/svg/clippy.svg
@eluciano11 Will be working on this soon. Here's the current design.
Just noticed this feature while writing my issue. 👍
Thanks @eluciano11 for the contribution.
No problem.