349 Commits

Author SHA1 Message Date
Evan Goode
c3f019db7d msgmerge 2025-08-15 19:55:13 -04:00
Perdun Perdakovich
be4bdd6012 Translated using Weblate (Russian)
Currently translated at 57.7% (141 of 244 strings)

Translation: Unmojang/Drasl
Translate-URL: https://hosted.weblate.org/projects/unmojang/drasl/ru/
2025-08-15 19:42:11 -04:00
KoishiMoe
55c7901516 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.1% (242 of 244 strings)

Translation: Unmojang/Drasl
Translate-URL: https://hosted.weblate.org/projects/unmojang/drasl/zh_Hans/
2025-08-15 19:42:11 -04:00
KoishiMoe
be45c8e9ed Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.1% (242 of 244 strings)

Translation: Unmojang/Drasl
Translate-URL: https://hosted.weblate.org/projects/unmojang/drasl/zh_Hans/
2025-08-15 19:42:11 -04:00
KoishiMoe
6b1c68d941 Added translation using Weblate (Chinese (Simplified Han script)) 2025-08-15 19:42:11 -04:00
Gizmo
06a7f6c639 Translated using Weblate (Toki Pona)
Currently translated at 3.2% (8 of 244 strings)

Translation: Unmojang/Drasl
Translate-URL: https://hosted.weblate.org/projects/unmojang/drasl/tok/
2025-08-15 19:42:11 -04:00
Gizmo
7226eb5ee2 Added translation using Weblate (Toki Pona) 2025-08-15 19:42:11 -04:00
geleznov04
023c709fca Translated using Weblate (Russian)
Currently translated at 40.9% (100 of 244 strings)

Translation: Unmojang/Drasl
Translate-URL: https://hosted.weblate.org/projects/unmojang/drasl/ru/
2025-08-15 19:42:11 -04:00
geleznov04
f41e4a0ffb Translated using Weblate (Russian)
Currently translated at 7.3% (18 of 244 strings)

Translation: Unmojang/Drasl
Translate-URL: https://hosted.weblate.org/projects/unmojang/drasl/ru/
2025-08-15 19:42:11 -04:00
geleznov04
5e9f978bf5 Added translation using Weblate (Russian) 2025-08-15 19:42:11 -04:00
Evan Goode
dc91232063 Fix 'You are only allowed to have 1 player.' translation string 2025-08-15 19:16:11 -04:00
Evan Goode
06ae77f313 Move Translations section from CONTRIBUTING.md to README.md
This change makes it more visible and conforms to the guidelines for
Hosted Weblate's gratis Libre tier.
2025-08-01 12:47:56 -04:00
Evan Goode
f8eb5da15a Bump to 3.2.0 v3.2.0 2025-07-31 21:24:09 -04:00
Evan Goode
80d39a0649 Ignore when FallbackAPIServer returns no public keys 2025-07-31 20:16:27 -04:00
Evan Goode
c3cb43885f Add PlayerUUIDGeneration option 2025-07-27 11:49:08 -04:00
Evan Goode
9f940f666c Add CONTRIBUTING.md 2025-07-26 14:51:47 -04:00
Evan Goode
7acd073809 Fix es-US language code 2025-07-26 13:35:47 -04:00
Evan Goode
79428c5286 lint 2025-07-26 12:31:22 -04:00
Evan Goode
04d949667b i18n model.go, user.go 2025-07-26 12:31:22 -04:00
Evan Goode
fc38f38e48 cleanup 2025-07-26 12:31:22 -04:00
Evan Goode
57d98fb41c i18n player.go 2025-07-26 12:31:22 -04:00
Evan Goode
539ce4f92d AI-generated es-US translation 2025-07-26 12:31:22 -04:00
Evan Goode
dbe1b4c9b2 fix tests 2025-07-26 12:31:22 -04:00
Evan Goode
8a0651ded5 i18n front.go 2025-07-26 12:31:22 -04:00
Evan Goode
e520fc4498 i18n player.tmpl 2025-07-26 12:31:22 -04:00
Evan Goode
fd4e629d4b i18n user.tmpl 2025-07-26 12:31:22 -04:00
Evan Goode
dfab4da016 i18n admin.tmpl, safer HTML interpolation 2025-07-26 12:31:22 -04:00
Evan Goode
0117ad3c95 i18n challenge.tmpl 2025-07-26 12:31:22 -04:00
Evan Goode
ed3cf48a6b i18n complete-registration.tmpl 2025-07-26 12:31:22 -04:00
Evan Goode
f49086f5ae i18n registration.tmpl 2025-07-26 12:31:22 -04:00
Evan Goode
95ca36950e i18n root, footer 2025-07-26 12:31:22 -04:00
Evan Goode
e95280c8fd i18n header 2025-07-26 12:31:22 -04:00
Evan Goode
716fd854a4 nix flake update, dependency bumps 2025-07-26 12:31:22 -04:00
Evan Goode
38d533581b Initial i18n support 2025-07-26 12:31:22 -04:00
cat
ecd485cc1d Update OnlineModeFix command
only -Dminecraft.api.session.host is necessary, there's no need to
clutter the example launch command.

Signed-off-by: cat <cat@plan9.rocks>
2025-06-22 22:30:44 -04:00
cat
5a0deebf89 Add CORS for texture routes
Fixes #173

Signed-off-by: cat <cat@plan9.rocks>
2025-06-22 22:04:14 -04:00
Evan Goode
8ff0a07efc Bump to 3.1.1 v3.1.1 2025-04-25 13:07:53 -04:00
Evan Goode
dd346df889 Misc CSS fixes 2025-04-16 03:04:33 +00:00
Evan Goode
6231951026 Fix new render loop on resize
Fixes a bug where a new render loop is created every time the page is
resized (oops). This would cause performance problems if the
page is resized a lot.

Fixes the background not filling the screen on mobile Firefox when
zoomed out or scrolling into overflow.
2025-04-16 03:04:33 +00:00
cat
abc8d1e9b8 CSS: Use font-family variable, apply font-family to h1 tag 2025-04-13 23:51:45 +00:00
Evan Goode
21aca475d5 OIDC: increase allowed clock skew from 5s to 1m
Other systems [1] allow a skew of 5 minutes, so 1 minute doesn't seem
unreasonable.

[1] https://blog.logto.io/troubleshooting-invalid-issued-at-time-error

For https://github.com/unmojang/drasl/issues/166
2025-04-13 22:09:54 +00:00
Evan Goode
3c5a3b59ed Log OIDC code exchange error 2025-04-13 22:09:54 +00:00
Evan Goode
415bff18c0 fix: AllowChoosingUUID belongs under CreateNewPlayer, not RegistrationNewPlayer 2025-04-13 20:21:54 +00:00
Evan Goode
e82e6f7117 systemd: wants network-online.target, nss-lookup.target 2025-04-06 21:46:09 -04:00
Evan Goode
33d4d91ab3 systemd: wait for network-online.target, nss-lookup.target 2025-04-06 21:42:30 -04:00
Evan Goode
556b42806a Bump version to 3.1.0 2025-04-06 21:25:31 -04:00
Evan Goode
d4f1d28b2e Option to disable auth from FallbackAPIServers
Resolves https://github.com/unmojang/drasl/issues/146
2025-04-06 23:48:36 +00:00
Evan Goode
4b1d9d420b Defaults for array-of-tables config settings
Due to https://github.com/BurntSushi/toml/issues/169, we can't simply
use IsDefined to check whether a user supplied a config value in an
array of tables, as in:

[[FallbackAPIServers]]
    CacheTTLSeconds = 123

We can work around this by using *T instead of T in the config
file schema. If the TOML key is not set, it will be parsed as nil.
2025-04-06 23:48:36 +00:00
Evan Goode
30ba03adf4 Implement GET /minecraft/profile/lookup/:id
New route on api.minecraftservices.com, see
https://minecraft.wiki/w/Mojang_API#Query_player's_username
2025-04-04 21:00:08 -04:00
Evan Goode
bf62ef54eb CachedGet: wait for lock on the URL, then check cache 2025-04-04 21:00:08 -04:00