From 7cfef6294b2826af6b4719512bc99778865a1cee Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 27 Jun 2024 23:08:59 +0200 Subject: [PATCH] feat(webui): add client cheats and new account cheat "Unlock All Focus Schools" (#406) Co-authored-by: Sainan --- .prettierignore | 1 + src/routes/webui.ts | 9 +- static/webui/index.html | 503 +++++++++++++++++++--------------------- static/webui/script.js | 80 +++++++ 4 files changed, 330 insertions(+), 263 deletions(-) diff --git a/.prettierignore b/.prettierignore index 7b977582..ab38eac9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ static/webui/libs/ +*.html diff --git a/src/routes/webui.ts b/src/routes/webui.ts index 93005f34..27ac95e5 100644 --- a/src/routes/webui.ts +++ b/src/routes/webui.ts @@ -19,15 +19,18 @@ webuiRouter.use("/webui", (req, res, next) => { }); // Serve virtual routes -webuiRouter.get("/webui/settings", (_req, res) => { - res.sendFile(path.join(rootDir, "static/webui/index.html")); -}); webuiRouter.get("/webui/inventory", (_req, res) => { res.sendFile(path.join(rootDir, "static/webui/index.html")); }); webuiRouter.get("/webui/mods", (_req, res) => { res.sendFile(path.join(rootDir, "static/webui/index.html")); }); +webuiRouter.get("/webui/settings", (_req, res) => { + res.sendFile(path.join(rootDir, "static/webui/index.html")); +}); +webuiRouter.get("/webui/cheats", (_req, res) => { + res.sendFile(path.join(rootDir, "static/webui/index.html")); +}); // Serve static files webuiRouter.use("/webui", express.static(path.join(rootDir, "static/webui"))); diff --git a/static/webui/index.html b/static/webui/index.html index 037c5280..423c51a1 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -1,286 +1,269 @@ - - OpenWF WebUI - - - - - - -
-