VChet / StyleBase

UserCSS theme sharing site
https://stylebase.cc
MIT License
20 stars 1 forks source link

Adding multiple styles from a single repository #4

Closed RiedleroD closed 3 years ago

RiedleroD commented 3 years ago

I'd really like to add every file as a seperate style, because I currently have all of my styles in https://github.com/RiedleroD/userstyles-riedler/, with the master branch serving as a kind of stable release hub, and the seperate branches as development versions.

So I'd really like to be able to just add a file or a branch and call it a day.

VChet commented 3 years ago

Thanks for your feedback! At the moment, all logic is based on the principle of one style - one repository. I'll see what can be done with this, but it will take a while. Most likely I'll make it possible to choose which file to add as a new style in the 'Add style' popup

RiedleroD commented 3 years ago

Thank you, man. We've waited so long for a proper userstyle host and you're doing just that!

VChet commented 3 years ago

Available now on https://staging.stylebase.cc. It still needs more testing and polishing, but file selection works, and I haven't encountered critical bugs while testing.

RiedleroD commented 3 years ago

idk why but I've gotten a 11000:Mongoerror.

Steps to reproduce:

What I think the error is: the filenames don't get escaped properly which makes mongodb lose its shit when it sees the whitespace. This may not be the case because I can't add any other styles from this repo. I can only add one style from this repo at a time which leads me to believe the repo link is still used somewhere in the identification and/or storaging process.

VChet commented 3 years ago

oops, I forgot to update the index in this database. It was disallowed to add non-unique repo URLs. Should be okay now

RiedleroD commented 3 years ago

aye, thanks. It works perfectly now.

VChet commented 3 years ago

Implemented in 3.0.0