From a29398fae664188f816cb98145f8b64e5e1f08ed Mon Sep 17 00:00:00 2001 From: Corvus Date: Thu, 31 Jul 2025 07:46:01 -0700 Subject: [PATCH 1/4] chore(webui): update Chinese translation (#2577) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2577 Co-authored-by: Corvus Co-committed-by: Corvus --- static/webui/translations/zh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/webui/translations/zh.js b/static/webui/translations/zh.js index 5b9b6e55..3c2522ca 100644 --- a/static/webui/translations/zh.js +++ b/static/webui/translations/zh.js @@ -242,8 +242,8 @@ dict = { worldState_creditBoost: `现金加成`, worldState_affinityBoost: `经验加成`, worldState_resourceBoost: `资源加成`, - worldState_tennoLiveRelay: `TennoLive 中继站`, - worldState_baroTennoConRelay: `[UNTRANSLATED] Baro's TennoCon Relay`, + worldState_tennoLiveRelay: `TennoLive中继站`, + worldState_baroTennoConRelay: `Baro的TennoCon中继站`, worldState_starDays: `活动:星日`, worldState_galleonOfGhouls: `战术警报:尸鬼的帆船战舰`, enabled: `启用`, From 7e618539fa2e8aa5dfaf80ee4421760b470233ed Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 1 Aug 2025 03:47:14 -0700 Subject: [PATCH 2/4] fix(webui): explicitly specify websocket protocol (#2578) apparently some browsers (e.g. 2 year old chrome) need this to establish a connection. can't hurt, anyway. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2578 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- static/webui/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/webui/script.js b/static/webui/script.js index 1625216c..57da8a51 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -28,7 +28,8 @@ const sendAuth = isRegister => { }; function openWebSocket() { - window.ws = new WebSocket("/custom/ws"); + const wsProto = location.protocol === "https:" ? "wss://" : "ws://"; + window.ws = new WebSocket(wsProto + location.host + "/custom/ws"); window.ws.onopen = () => { ws_is_open = true; sendAuth(false); From b15a635e11f13bbebfee5da12f305acc27033eb9 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 2 Aug 2025 04:57:08 -0700 Subject: [PATCH 3/4] fix(webui): exclude zaw strike pvp variants (#2579) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2579 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- .../custom/getItemListsController.ts | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/controllers/custom/getItemListsController.ts b/src/controllers/custom/getItemListsController.ts index 6fe5b0db..ba5be15e 100644 --- a/src/controllers/custom/getItemListsController.ts +++ b/src/controllers/custom/getItemListsController.ts @@ -153,18 +153,21 @@ const getItemListsController: RequestHandler = (req, response) => { } for (const [uniqueName, item] of Object.entries(ExportWeapons)) { if (item.partType) { - if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) { - res.ModularParts.push({ - uniqueName, - name: getString(item.name, lang), - partType: item.partType - }); - } - if (uniqueName.split("/")[5] != "SentTrainingAmplifier") { - res.miscitems.push({ - uniqueName: uniqueName, - name: getString(item.name, lang) - }); + if (!item.excludeFromCodex) { + // not a pvp variant + if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) { + res.ModularParts.push({ + uniqueName, + name: getString(item.name, lang), + partType: item.partType + }); + } + if (uniqueName.split("/")[5] != "SentTrainingAmplifier") { + res.miscitems.push({ + uniqueName: uniqueName, + name: getString(item.name, lang) + }); + } } } else if (item.totalDamage !== 0) { if ( From c00967931e8d44514946f789b025614ca9bc8f02 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 2 Aug 2025 04:57:16 -0700 Subject: [PATCH 4/4] fix(webui): add k-drive (#2581) Closes #2580 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2581 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- static/webui/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/webui/index.html b/static/webui/index.html index 0c0bd3c6..b827fc45 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -388,11 +388,11 @@
-
- - - - + + + + +