Coder Social home page Coder Social logo

Comments (5)

gabriel-dehan avatar gabriel-dehan commented on July 17, 2024

Now that's an original suggestion, never thought of this use case. Not sure how this could work or be integrated easily into the UX. The easiest would probably be to allow you to download all your favorites for instance, but not sure if that would solve your problem?

from dyson-sphere-blueprints.

davidakachaos avatar davidakachaos commented on July 17, 2024

I was thinking either on the search results page or on the collection page.

So you would have a "Download as ZIP" button on the collection page, which packs all the blueprints in a zip that has a [folder]/[blueprints] layout. The folder name would be the name of the collection.

On the search results there are some ways to make it work. There could be a checkbox next to each found blueprint with a button that allows a user to "Download selected as ZIP". Or there could be a button that just reads "Download results as ZIP".

from dyson-sphere-blueprints.

gabriel-dehan avatar gabriel-dehan commented on July 17, 2024

Hey @davidakachaos, your change is live, I had to make a few fixes because it failed when there were / in the blueprint name and some of the chinese blueprints names are very very very long, which made the heroku filesystem return an error.

There still is an issue with some blueprints somehow not having any content in the .txt file. Seems to only happen with some blueprints and I have only noticed it with this collection so far (haven't tried them all): https://www.dysonsphereblueprints.com/collections/basicbox

Not sure if it's a problem because of chinese characters or something like that. I tried to find the issue but before writing to the file the encoded_blueprint actually contains data.
If you have some time and want to check this, I can't spend my evening on it :)

from dyson-sphere-blueprints.

davidakachaos avatar davidakachaos commented on July 17, 2024

Hey @gabriel-dehan, I noticed it too. Not sure what is happening there, I'll try to have a look, is there a way I could get some test data maybe? I'll try to reproduce the issue locally without it first, but maybe you have an easy way to get some test data :-)

from dyson-sphere-blueprints.

davidakachaos avatar davidakachaos commented on July 17, 2024

Never mind, I found a blueprint that had the issue and submitted a fix

from dyson-sphere-blueprints.

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.