Commit Graph

182 Commits

Author SHA1 Message Date
Elijah R
6fd6028a25 refactor display scaling again
- fix screen blanking bug
- turns out the timeout wasn't needed (only added it because I thought writing so many times was causing the above bug)
2024-04-10 21:28:58 -04:00
Elijah R
3b4d6ce6df minor bugfix in screen scaling 2024-04-10 19:03:17 -04:00
Elijah R
b87abde238 add emoji font because some systems dont have one 2024-04-10 18:51:24 -04:00
Ростислав Салабай
f6225e1159
Add Ukrainian (#26)
* Add files via upload

* Add files via upload

* Update uk-ua.json
2024-04-10 18:33:38 -04:00
Elijah R
49f1daa634 add display scaling 2024-04-10 18:24:40 -04:00
Elijah R
b908427292 make OSK responsive (no longer goes offscreen on mobile) 2024-04-10 17:48:25 -04:00
Elijah R
2b7153cc37 Make welcome modal localStorage key configurable 2024-04-10 17:08:13 -04:00
Elijah R
d83f1c8e13 loadList shouldn't be awaited here 2024-04-10 17:05:09 -04:00
Elijah R
da9342180a Add dompurify support 2024-04-10 16:53:55 -04:00
Elijah R
21825fbdee Add required features for UserVM
- Add ability to override site name, welcome modal
- Add ability to load a JSON file to get nodes from
- Make NSFW vms configurable
2024-04-10 16:49:04 -04:00
Elijah R
c78298345c Switch to using parcel json imports instead of Config.ts 2024-04-10 16:49:04 -04:00
MDMCK10
fd34df65ca
Actually add Hungarian to the list of available languages
...oops
2024-04-10 19:37:35 +02:00
MDMCK10
06bec0c18b
Add Hungarian translation 2024-04-10 19:30:40 +02:00
Elijah R
b0c4f505dd add finished russian translation by Undefishin
Co-authored-by: Undefishin <greenhorn111@yandex.com>
2024-04-10 12:37:07 -04:00
Elijah R
2a13bc7f4d add unfinished russian translation 2024-04-10 11:18:13 -04:00
IPTVman
de3660f2f0
Finish Spanish translation (#25)
* Update es-es.json

* Update languages.json
2024-04-10 00:15:26 -04:00
Elijah R
14504b5740 add finished polish translation by 6eamed 2024-04-09 22:53:57 -04:00
Elijah R
37e8509f3e add unfinished spanish translation from old webapp files 2024-04-09 22:42:43 -04:00
pap
563769457d
Add japanese translation (#24)
* i cant add flag

* japaanes

* add to languages.json and fix casing
2024-04-09 22:19:08 -04:00
Elijah R
44e850dfa3 detect dark theme from browser 2024-04-09 19:51:13 -04:00
Elijah R
8a7ec2732d detect the browser language and use that if possible 2024-04-09 19:42:37 -04:00
Elijah R
17afad3dcd update dynamic strings on language change 2024-04-09 19:22:54 -04:00
Elijah R
efc3865bd6 add partial polish translation based on translation files from old webapp 2024-04-09 18:52:38 -04:00
nephacks
2ee866b84c
Finish German translation (#23)
* Update de-de.json

* Update languages.json
2024-04-09 18:31:01 -04:00
Elijah R
9cd578e453 if language is not english, the rules button should re-open the modal instead of opening rules.html 2024-04-09 18:27:43 -04:00
Pikterra32
2377e4aceb
Add french (#22)
* Create fr-fr.json

* Update languages.json

* Update fr-fr.json

* Update fr-fr.json

* Update fr-fr.json

* Update fr-fr.json

* Update fr-fr.json

* Update fr-fr.json

* Update fr-fr.json
2024-04-09 18:17:54 -04:00
Elijah R
da202c549f add unfinished German translation using files from webapp v1 2024-04-09 17:27:51 -04:00
Elijah R
5ea1a67883 move @hcaptcha/types to devDependencies 2024-04-09 16:22:14 -04:00
Elijah R
dd01b84dd2 add link to contribute a language to the dropdown 2024-04-09 16:16:10 -04:00
Elijah R
6b4bf0de3d add language dropdown, remove pirate from list until we update it 2024-04-09 16:13:38 -04:00
Elijah R
9d60b44073 Fully implement i18n 2024-04-09 15:06:10 -04:00
Elijah R
24622e65eb fix localization typo 2024-04-09 11:52:33 -04:00
Elijah R
1a24bed775 add light mode toggle 2024-04-09 01:42:37 -04:00
Elijah R
ed35afba80
Merge pull request #21 from computernewb/account-auth
Add Account Authentication
2024-04-08 19:24:20 -04:00
Elijah R
ef93d5866f fix username colors 2024-04-08 00:31:57 -04:00
Elijah R
7c71bacef7 Merge branch 'master' into account-auth 2024-04-07 16:40:20 -04:00
Elijah R
53f75e5601 we don't need that anymore, parcel bug has been patched 2024-04-07 16:38:35 -04:00
Elijah R
70a2f9cc4e allow the client to request its preferred username even if webapp-wide auth is enabled since some VMs might not support auth 2024-04-07 14:39:38 -04:00
Elijah R
837a34d8cc implement password resets 2024-04-05 20:05:49 -04:00
Elijah R
29fcfbcc7c remove (bg|text)-* from account modal 2024-04-05 17:37:54 -04:00
Elijah R
c8b7b3e00a dogok banned for cause merge conflict 2024-04-05 17:32:16 -04:00
Elijah R
d2206ff547 implement date of birth 2024-04-05 17:26:24 -04:00
dakrk
e1b8bfcebb
Actually do bootstrap theme properly
why was it like this in the first place

(i ought to just complete the bootstrapless branch at this point)
2024-04-05 17:27:53 +01:00
dakrk
d3ad9a3585
Indent CSS
some things aren't. WHY
2024-04-05 17:20:30 +01:00
dakrk
52499b8c6e
Introduce editorconfig 2024-04-05 17:18:51 +01:00
dakrk
72d0cbb37b
Fix indentation (consistent formatting CHALLENGE)
You people have a prettierrc yet never run prettier

tabs or spaces. WHICH IS IT
2 width or 4 width WHICH IS IT

(i'd make index.html 4 width tab but there's more that uses space there)
2024-04-05 17:16:20 +01:00
Elijah R
54255cc118 implement account authentication (webapp) 2024-04-05 09:11:21 -04:00
modeco80
999bdd0809 format fixes and unittest additions, translated document title
We also actually use our format utilities to set the title.
2024-03-16 18:57:19 -04:00
modeco80
0cef7194ce More i18n related updates
- More string keys
- Reworked string keys entirely
- Moved formatting into seperate typescript module
- Write unit tests using `jest` for the format module
- README improvements

Pirate language needs to be reworked and it should be a bit less painful now to actually add more string keys later on (eventually making the whole webapp strings lie inside the stringkeys)
2024-03-15 04:01:40 -04:00
modeco80
3a7e590797 Make i18n more robust to failure
Now we actually format the fallback key if we can't find the language's translation of a string key.

In the rare case that the fallback language actually doesn't have a key, we just return the key name and a little notice that something's gone wrong.

Local storage stuff is now handled by our i18n impl (upon setting a language, if it's not the fallback language, we'll write it to localstorage automatically so we remember the user's decision), just to cleanup the initalization in main.ts (and also because it's a bit simpler that way).

Also moved initalization to a DOMContentLoaded event, since that can be made async.
2024-03-13 21:55:01 -04:00