diff --git a/.gitignore b/.gitignore index a45972a..86f3088 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,8 @@ tools/art/tex_*.png __pycache__/ *.pyc - # The built handset page. Each release builds it into its zip (.github/workflows/release.yml); to -# run a clone, `npm run build` in web/. +# run a clone, `npm run build` in `web/`. web/build/ + +web/bun.lock diff --git a/server/trapphone/phones.lua b/server/trapphone/phones.lua index 6393379..87163be 100644 --- a/server/trapphone/phones.lua +++ b/server/trapphone/phones.lua @@ -737,7 +737,7 @@ end) lib.callback.register('sd-trapphone:server:submitScore', function(src, game, score) local phone = phones.current(src) - if not phone or type(game) ~= 'string' or #game > 16 or type(score) ~= 'number' then return false end + if not phone or game ~= 'worm' or type(score) ~= 'number' or score ~= score then return false end score = math.floor(math.max(0, math.min(999999, score))) diff --git a/web/src/apps/Messages.tsx b/web/src/apps/Messages.tsx index cdf9ee5..d6249b8 100644 --- a/web/src/apps/Messages.tsx +++ b/web/src/apps/Messages.tsx @@ -48,7 +48,9 @@ export function Messages() { return ( - { nav.setIndex(i); open(i); }} empty={t('ui.messages.empty')} /> +
+ { nav.setIndex(i); open(i); }} empty={t('ui.messages.empty')} /> +
); } diff --git a/web/src/device/Handset.tsx b/web/src/device/Handset.tsx index 2fe8c62..0e6675a 100644 --- a/web/src/device/Handset.tsx +++ b/web/src/device/Handset.tsx @@ -22,8 +22,8 @@ function KeyButton({ k, className, label, children }: { k: Key; className: strin } const Arrow = ({ turn }: { turn: number }) => ( -