Giter Site home page Giter Site logo

Running and respacks about 0x40-web HOT 14 OPEN

mon avatar mon commented on July 21, 2024
Running and respacks

from 0x40-web.

Comments (14)

mon avatar mon commented on July 21, 2024 1

Hey! If you don't want to mess around with the build system, just use a pre-compiled release. Download the zip file, not the source code.

There is documentation about creating respacks here.

I have deliberately left directory listing on for my site, so you can download some example respacks here.

There are also a bunch more on the Hues Portal.

Good luck!

from 0x40-web.

dascar5 avatar dascar5 commented on July 21, 2024

Thanks for your detailed response! I've downloaded both the source and and pre-compiled release - I just don't know how to run it :)

gulp seems to compile it, and I'm used to npm start, which doesn't work here. What's the command you use to run it on localhost?

from 0x40-web.

mon avatar mon commented on July 21, 2024

I just use python -m http.server to locally host, but you can use literally any local-hosting server to do it for you. I know that npm has some packages.

See more:
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server

from 0x40-web.

dascar5 avatar dascar5 commented on July 21, 2024

Thanks for your answer. Finally got it to run. I'm guessing if I wanted to mess with the software, I'd have to use the source code instead of minified release? I'd personally remove all the hues and make some other tweaks for a hobby project of mine. Just checking if that can be done in minified version as well.

from 0x40-web.

mon avatar mon commented on July 21, 2024

If you've already set up everything and gulp creates a .js.min, I'd recommend modifying the source and building minified bundles that way. Modifying the .min directly is quite a painful experience.

from 0x40-web.

dascar5 avatar dascar5 commented on July 21, 2024

Got it. So I made my own respack, and I've edited index.html to point to it instead of DefaultHues, however, it still plays default. Yes, I used gulped before running the web app. I'm not sure what I'm missing tbh. Lol, I even deleted default respacks from my folder and they still played as usual.

from 0x40-web.

mon avatar mon commented on July 21, 2024

As a sanity check - modify the <title> in index.html. Does it change? Perhaps your local server is not pointing at the right place?

from 0x40-web.

dascar5 avatar dascar5 commented on July 21, 2024

Yeah, that changed something alright. Even though I changed defaults to my own respack, I get this
Error: 404: Could not fetch respack at ./respacks/Defaults_v5.0.zip

I'm also using python python -m http.server. I didn't mess with any other files except index.

from 0x40-web.

mon avatar mon commented on July 21, 2024

What does your index.html look like? Specifically, what is the defaults object?

from 0x40-web.

dascar5 avatar dascar5 commented on July 21, 2024

var defaults = { workersPath : "lib/workers/", respacks : ["./respacks/myrespack.zip"], firstSong : "mysong", };

from 0x40-web.

mon avatar mon commented on July 21, 2024

That is quite curious - if you'd like, you can zip up your entire custom build and I can take a look. Feel free to send it via email.

Failing that - does it still happen with the original hues.min.js? I wonder if you edited the defaults object in the .js before compiling.

from 0x40-web.

dascar5 avatar dascar5 commented on July 21, 2024

Never mind, for some reason, it started loading now. And it works. Now I just got one more question, sorry. The pictures I'm using are varying in size, some I can see properly, some are stretched beyond web app borders. Also, the purple hue is there. How would I go about making all the pics "sit" in the center of the screen, keeping their original resolution, and how would I completely disable hues? Honestly, I just want to use this as an image gallery with music playing in the background haha

from 0x40-web.

mon avatar mon commented on July 21, 2024

Also @dascar5 I hope you're not too bothered by these extra emails, I've just realised I never responded to your most recent question.

Hues is pretty much locked to the concept of "image always fill full height, width is scaled to fit". It's not really designed to be a slideshow. That being said, I can see a lot of value in having special modes (through the options object, not anything visible) to both enable "scale to fit" behaviour and "no colour overlay" behaviour. Would that be sufficient, or has your project fallen by the wayside in the past 2 years 😅

from 0x40-web.

mon avatar mon commented on July 21, 2024

I've cleaned up the comments of this issue, @thisfardi please move to #80

from 0x40-web.

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.