twelve-of-code-official / website

The source code for the Twelve of Code website
https://mesure.x10.mx/twelve-of-code
GNU General Public License v3.0
0 stars 0 forks source link

Twelve of Code data input doesn't work #15

Closed Mesure73L closed 8 months ago

Mesure73L commented 9 months ago

Mostly just a to-do but the Twelve of Code data input is disabled and needs to be programmed image

BeepBot99 commented 9 months ago

Why is that a problem? Can't you just make it not disabled?

Mesure73L commented 9 months ago

Why is that a problem? Can't you just make it not disabled?

The JS code doesn't work

BeepBot99 commented 9 months ago

Oh well that's your fault. You made it.

Mesure73L commented 9 months ago

ok i'll do it

BeepBot99 commented 9 months ago

Please don't do it yet. I need to rewrite the JavaScript first to use CookieManager, and we don't want to have to resolve complicated conflicts.

Mesure73L commented 9 months ago

in the future dont assign me until when it should be done

BeepBot99 commented 9 months ago

Well, I didn't know that I would be creating CookieManager when I assigned you.

Mesure73L commented 9 months ago

ok

BeepBot99 commented 9 months ago

So should the user be able to enter data into the <textarea>?

Mesure73L commented 9 months ago

Correct, but make sure to verify that it is valid data before changing the cookies

BeepBot99 commented 9 months ago

OK

BeepBot99 commented 9 months ago

Can I use this library to give an error message if the settings data is invalid?

Mesure73L commented 9 months ago

Can I use this library to give an error message if the settings data is invalid?

Yes, please also update the other settings inputs to use that library also for consistency purposes

BeepBot99 commented 9 months ago

OK, sure! Are there any rules about what the username and seed can be? For example, only numerical or only alphanumueric?

Mesure73L commented 9 months ago

OK, sure! Are there any rules about what the username and seed can be? For example, only numerical or only alphanumueric?

Username can be anything, seed has to be a number between 1000000000 and 9999999999 (any 10 digit number that does not start with a 0)

BeepBot99 commented 9 months ago

Ok, there's one slight problem, but it probably doesn't matter. The people who made SweetAlert2 really don't like Russia because of the war. So, they made their software "protestware." Whenever you use your website in Russia, it will block all navigation and play the national anthem of Ukraine.

Mesure73L commented 9 months ago

Ok, there's one slight problem, but it probably doesn't matter. The people who made SweetAlert2 really don't like Russia because of the war. So, they made their software "protestware." Whenever you use your website in Russia, it will block all navigation and play the national anthem of Ukraine.

okay, what?

BeepBot99 commented 9 months ago

What's your question?

BeepBot99 commented 9 months ago

If a user from Russia tries to access your website, they won't be able to. Because the person who made the library is Ukranian and so put that into the code.

BeepBot99 commented 9 months ago

All pointer events will be blocked and the Ukranian national anthem will be played.

Mesure73L commented 9 months ago

What's your question?

its not really a question

BeepBot99 commented 9 months ago

So are you fine with that or should I not use it? I don't care.

Mesure73L commented 9 months ago

Look for another library but if you can't find anything use it (or make your own)

BeepBot99 commented 9 months ago

All other libraries have one of the following:

On all blog posts about it, SweetAlert2 is the best. I don't think you'll have any users from Russia, so I'll just use it.

Mesure73L commented 9 months ago

Does React-Toastify have what you want?

Mesure73L commented 9 months ago

After looking at it, I think SweetAlert2 is actually the best

BeepBot99 commented 9 months ago

OK, I will use it then.

Mesure73L commented 9 months ago

When do you think this will be completed?

BeepBot99 commented 9 months ago

I haven't had a lot of time to work on it. I will have ~1.5 hours today. I probably will finish it today, but if not, then it will probably be done on Saturday.