Git Product home page Git Product logo

Comments (13)

mandrolic avatar mandrolic commented on August 18, 2024 8

At the risk of adding a 'Me Too' reply here - I just noticed this - it seems conspicuous by it's absence. NPM, Nuget, Docker, etc all have this snippet, it's kinda expected now. There is a little bit of a risk that a user will currently reach an Elm package page and end up thinking "That's nice.... now what?"

from package.elm-lang.org.

ffigiel avatar ffigiel commented on August 18, 2024 5

Is anyone working on this? I could try to prepare a PR.

IMO there doesn't even have to be a copy-to-clipboard button, all I would care about is having the full package name in a valid format (author + name, without spaces around the slash, etc)

from package.elm-lang.org.

Zinggi avatar Zinggi commented on August 18, 2024 1

So I started implementing this, as I also found it lacking.
It currently looks like this:
screenshot from 2015-11-23 11-58-00

There is a small hack there because I don't think this is currently possible in elm-html.
I used:

attribute "onClick" "this.select()"

Is this hack acceptable?
Would be cool if I could do this in elm-html with something like

selected model.selected

instead.

If you're ok with the design and if this hack is acceptable, I'm gonna send a pull request.
Let me know.

from package.elm-lang.org.

Apanatshka avatar Apanatshka commented on August 18, 2024

I think it's elm package install elm-lang/core as of 0.15. Where would you expect this information to be? That is, where is it missing?

from package.elm-lang.org.

nogweii avatar nogweii commented on August 18, 2024

Ah, sorry, should've been more descriptive. It would be useful on each package's page. For instance, on elm-lang/core's page, there would be a code block for easy copy & paste to a user's shell to install the package, like Rubygems has (see the sidebar).

It had taken me a bit to realize what the exact command I was supposed to use to install packages is.

from package.elm-lang.org.

Apanatshka avatar Apanatshka commented on August 18, 2024

That's a good idea. Like most version control hosting websites have a clone box. Sounds like a simple addition to the page. Maybe something you can try to add yourself and submit as a PR? It's a nice small thing to start contributing with :)

from package.elm-lang.org.

pete-a avatar pete-a commented on August 18, 2024

IMO, NPM's solution is simple and effective:
npm install helper

E.g just like @Zinggi 's solution though no need for auto copy functionality, plus a simple link to show beginners how to use elm package

from package.elm-lang.org.

drathier avatar drathier commented on August 18, 2024

@megapctr it doesn't seem like anyone is working on this, no. And the header is very hard to copy, since trying to select the words just grabs the link instead, and it's very easy to select the version.

from package.elm-lang.org.

ffigiel avatar ffigiel commented on August 18, 2024

@drathier there's a MR fixing the header, but for some reason it seems it's being ignored? #209

from package.elm-lang.org.

drathier avatar drathier commented on August 18, 2024

@megapctr ah. I would still like a copy/pastable command in a textbox, like git clone here on github. It's not that simple to figure out you can copy/paste the text in the header, and it does take a few extra seconds each time.

from package.elm-lang.org.

razzeee avatar razzeee commented on August 18, 2024

Just looked over a colleagues shoulder last friday, he just recently started to explore elm. And exactly this was what he was looking for, so I had to say, you can copy the header.

He then pasted into iTerm2 and it got separated over three lines :/

from package.elm-lang.org.

rlefevre avatar rlefevre commented on August 18, 2024

Each package now has an "About" page that includes the install command for last elm version.

from package.elm-lang.org.

evancz avatar evancz commented on August 18, 2024

Thank you to @rlefevre for thinking of having an About page to show this information in a nice way!

from package.elm-lang.org.

Related Issues (20)

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.