Coder Social home page Coder Social logo

Comments (6)

vednoc avatar vednoc commented on July 17, 2024

The Description Section don't keep the original text formatting (but that's good in the Notes section):

That's a bug. I'll fix it for the next release.

https://raw.githubusercontent.com/33kk/uso-archive/flomaster/data/screenshots/56792_after.gif

It's because GIF format is not allowed. You can use jpg, jpeg, png, and WebP formats.

It's too a problem to save a change (i wanted enable the "Mirror code updates"):

That's by design. Technically we could put every input field as a separate form, but that would be end up being too messy and result in the same outcome. UX would also be questionable.

It don't want save my choice, due this invalid image (the one which is present when i imported it...)

Looks like I didn't take into account that this could happen. I'll add logic to check if an image has GIF extension and ignore it if it does, so we don't end up with animated images.

It's possible to support to BBcode too ?

Maybe, but I would rather keep it in Markdown. USo-archive stores HTML output, and USo also allowed some HTML tags. You can use tools like https://codebeautify.org/html-to-markdown to convert one format to another.

from userstyles.world.

decembre avatar decembre commented on July 17, 2024

1 - GIF format is not allowed ?
Why not... ?

2 - Sniff... BBcode is fine for me....
Less complicated and i don't want one other manipulation with an external tool.
On greasyfork by example they are both supported.

3 - " It's too a problem to save a change (i wanted enable the "Mirror code updates")"
That's by design?
I don't understand...

from userstyles.world.

vednoc avatar vednoc commented on July 17, 2024

Why not... ?

There are many reasons: poor compression, fast-swapping colors/images can trigger various migraines and photosensitive epilepsy, easy to abuse in a handful of malicious ways.

On greasyfork by example they are both supported.

I can look into finding a parser for it, but I can't promise anything.

We might be able to convert HTML to Markdown, but at the same time I think it's best if the user does that themselves. It's not exactly 1:1 conversion for some things, and thus we would rather not break a system that is already working.

I don't understand...

Invalid fields make it so that we don't end up with "garbage" data. If you can't press save button because one of the input fields is invalid, your data doesn't even reach the server. That's client-side validation that's supposed to give you an idea of what data should go through and what will fail (in which case you'll see red border/shadow around inputs when that happens).

When you press save button on edit page, all fields are validated on server-side to prevent various attacks and garbage data, then they're inserted into database if the validation passes, or you'll get an error on the edit page that says what went wrong. For example, if your userstyle is missing one of the mandatory fields you'll get such error.

from userstyles.world.

vednoc avatar vednoc commented on July 17, 2024

Fixed all of the reported bugs and added BBcode to our public roadmap.

As for the invalid GIF image, you can replace it with another one from https://33kk.github.io/uso-archive/?style=56792. In the future, all GIF images will be automatically removed while importing.

Thank you for reporting all of the bugs. It's a huge help for making USw better! 🎉

from userstyles.world.

decembre avatar decembre commented on July 17, 2024

Thanks!
Just a note:
The first scrennshot show an .gif extension, yes, but it's not a gif...
It's a normal screenshot (not animated screenshot).
In fact it is a .gif too on Userstyles.org...

I test to update it with the good .jpg extension to see if the update work fine on UW

from userstyles.world.

vednoc avatar vednoc commented on July 17, 2024

The first scrennshot show an .gif extension, yes, but it's not a gif...

It's invalid as long as it has the .gif extension. No clue why it's a singe-frame GIF; perhaps you saved it as GIF when you originally added it to USo.

By the way, feel free to ping me when you edit a comment because I probably won't see your edits, or just make a new comment and it will show up in my inbox.

from userstyles.world.

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.