22 Commits

Author SHA1 Message Date
b812cec358 add sendWsBroadcastToWebui 2025-09-08 05:57:39 +02:00
9a144e17f7 simplify broadcastInventoryUpdate
All checks were successful
Build / build (pull_request) Successful in 2m15s
2025-09-08 05:53:50 +02:00
370b0c19ea add sendWsBroadcastToGame 2025-09-08 05:52:25 +02:00
1649c295ff NaN is not undefined 2025-09-08 05:41:37 +02:00
1b877eaf23 note 2025-09-08 05:26:24 +02:00
047b21d776 add broadcastInventoryUpdate 2025-09-08 05:16:06 +02:00
6fb9ae2366 add forEachClient 2025-09-08 05:11:42 +02:00
a0f7d3b793 change ws import 2025-09-08 05:09:39 +02:00
6df625e838 ignore drop after logout
All checks were successful
Build / build (pull_request) Successful in 1m10s
2025-09-08 04:13:01 +02:00
9c561dfb75 logging 2025-09-08 04:13:01 +02:00
d481b4b26d forcibly close game ws connections when nonce is invalidated 2025-09-08 04:13:01 +02:00
086a0c467c feat: support websocket connections from game client 2025-09-08 04:13:01 +02:00
1ead04ddc1 chore: switch to esm, support raw running via node (#2696)
Some checks failed
Build Docker image / docker-amd64 (push) Waiting to run
Build / build (push) Has been cancelled
Build Docker image / docker-arm64 (push) Has been cancelled
Using ESM so the `import` syntax we use is actually valid without compilation. Now, Node can run the TypeScript code directly, albeit without typechecking and requiring use of an experimental feature.

Reviewed-on: #2696
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-08-26 04:29:06 -07:00
c97c22b434 chore: use relative imports with .ts (#2694)
All checks were successful
Build Docker image / docker-arm64 (push) Successful in 1m15s
Build / build (push) Successful in 1m8s
Build Docker image / docker-amd64 (push) Successful in 1m1s
Reviewed-on: #2694
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-08-25 13:37:14 -07:00
d7a93463c0 chore: enforce consistent-type-imports (#2693)
All checks were successful
Build Docker image / docker-arm64 (push) Successful in 1m6s
Build / build (push) Successful in 1m8s
Build Docker image / docker-amd64 (push) Successful in 1m0s
Reviewed-on: #2693
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-08-24 21:41:20 -07:00
660c3f3ddf fix(webui): differentiate between nonce invalidation & forced logout (#2658)
Some checks failed
Build Docker image / docker-amd64 (push) Waiting to run
Build Docker image / docker-arm64 (push) Waiting to run
Build / build (push) Has been cancelled
Closes #2642

Reviewed-on: #2658
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-08-17 13:12:29 -07:00
a2a441ecb0 fix: getUsernameFromEmail returning wrong value (#2538)
Some checks failed
Build Docker image / docker-amd64 (push) Waiting to run
Build / build (push) Has been cancelled
Build Docker image / docker-arm64 (push) Has been cancelled
Closes #2537

Reviewed-on: #2538
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-07-23 07:51:22 -07:00
304af514e2 fix(webui): handle name already being taken (#2530)
Some checks failed
Build Docker image / docker-amd64 (push) Waiting to run
Build Docker image / docker-arm64 (push) Waiting to run
Build / build (push) Has been cancelled
Closes #2528

Reviewed-on: #2530
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-07-22 07:34:31 -07:00
c0ca9d9398 fix: add try/catch around websocket message event handler (#2529)
All checks were successful
Build Docker image / docker-arm64 (push) Successful in 1m0s
Build / build (push) Successful in 1m4s
Build Docker image / docker-amd64 (push) Successful in 1m13s
Re #2528

Reviewed-on: #2529
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-07-21 07:44:54 -07:00
90ab560620 chore(webui): don't refresh inventory for sell on the tab that issued it (#2506)
All checks were successful
Build Docker image / docker-arm64 (push) Successful in 1m0s
Build / build (push) Successful in 1m15s
Build Docker image / docker-amd64 (push) Successful in 1m5s
Reviewed-on: #2506
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-07-18 15:36:10 -07:00
c7c7fd4ea0 chore: enforce consistent imports (#2408)
All checks were successful
Build Docker image / docker-amd64 (push) Successful in 47s
Build / build (push) Successful in 51s
Build Docker image / docker-arm64 (push) Successful in 47s
Reviewed-on: #2408
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-07-04 17:40:06 -07:00
a75e6d6b95 chore: add warning coverage for cyclic includes (#2407)
All checks were successful
Build / build (push) Successful in 51s
Build Docker image / docker-amd64 (push) Successful in 52s
Build Docker image / docker-arm64 (push) Successful in 47s
and some initial refactoring to avoid it where possible

Reviewed-on: #2407
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-07-04 16:49:25 -07:00