Git Product home page Git Product logo

Comments (5)

cbrwizard avatar cbrwizard commented on June 16, 2024

You're right, it's an issue in this package design and it must be fixed.
We will be releasing a 1.1.X version of a package soon which uses an image's name + a shortened part of its id. Eg this Bin1 image will be available to import as @streamlinehq/streamlinehq/images/streamline-light/bin-1-n8OgWa.svg. This means it will be a breaking change unfortunately :\

from streamlinehq-npm.

pareeohnos avatar pareeohnos commented on June 16, 2024

ok great thanks, I can live with that 🙂

from streamlinehq-npm.

cbrwizard avatar cbrwizard commented on June 16, 2024

Done: this change is implemented in version 2.0.0 https://github.com/webalys-hq/streamlinehq-npm/releases/tag/2.0.0. Please note that it introduces a couple of other breaking changes as well.

Please check it out and tell if it solves your issue.

from streamlinehq-npm.

timc13 avatar timc13 commented on June 16, 2024

This doesn't seem very ergonomic. Is there somewhere that lists these ids so that we can easily import icons as needed ?

from streamlinehq-npm.

cbrwizard avatar cbrwizard commented on June 16, 2024

It's in the app itself: go to https://app.streamlinehq.com, select a family you're interested in, then select an icon you're interested in and see the import path in the sidebar
Screenshot 2021-03-31 at 10 38 30
Another option is to use an IDE which suggests you to autocomplete a path to an image:
Screenshot 2021-03-31 at 10 39 32

I've updated README with these instructions https://github.com/webalys-hq/streamlinehq-npm/blob/master/README.md

On a side note, we're considering adding plugins to popular IDEs: Visual Studio Code and Webstorm, where you would be able to select an image and paste it in code visually. Another thing we're adding soon is a desktop app with drag&drop support.

from streamlinehq-npm.

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.