From 241f0c894a31cef8766b4077ca0dd5083cd787d3 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 3 Feb 2025 12:10:36 -0800 Subject: [PATCH] chore(webui): remove client cheats (#883) This has long been only a very small subset of what the bootstrapper offers. I think it's better that the bootstrapper itself provides the interface for it and we don't duplicate the logic so shallowly. Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/883 --- static/webui/index.html | 24 ++---------------------- static/webui/script.js | 28 ---------------------------- 2 files changed, 2 insertions(+), 50 deletions(-) diff --git a/static/webui/index.html b/static/webui/index.html index c1c34e39..ec0bee15 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -368,7 +368,7 @@
-
+
Server
@@ -479,7 +479,7 @@
-
+
Account
@@ -488,26 +488,6 @@
-
-
-
Client
-
- Client cheats are currently unavailable. This could be because your client is not running or using a DLL without an HTTP interface. -
-
-
- - -
-
- - -
-
-
-
diff --git a/static/webui/script.js b/static/webui/script.js index 6e331901..e6332e20 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -915,34 +915,6 @@ single.getRoute("/webui/cheats").on("beforeload", function () { }); } }, 10); - - fetch("http://localhost:61558/ping", { mode: "no-cors" }) - .then(() => { - $("#client-cheats-ok").removeClass("d-none"); - $("#client-cheats-nok").addClass("d-none"); - - fetch("http://localhost:61558/skip_mission_start_timer") - .then(res => res.text()) - .then(res => { - document.getElementById("skip_mission_start_timer").checked = res == "1"; - }); - document.getElementById("skip_mission_start_timer").onchange = function () { - fetch("http://localhost:61558/skip_mission_start_timer?" + this.checked); - }; - - fetch("http://localhost:61558/fov_override") - .then(res => res.text()) - .then(res => { - document.getElementById("fov_override").value = parseFloat(res) * 10000; - }); - document.getElementById("fov_override").oninput = function () { - fetch("http://localhost:61558/fov_override?" + this.value); - }; - }) - .catch(function () { - $("#client-cheats-nok").removeClass("d-none"); - $("#client-cheats-ok").addClass("d-none"); - }); }); function doUnlockAllFocusSchools() {