XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

feat(webui): add per-route titles & favicon (#245)

ef96946f
Sainan <sainan@calamity.gg>
提交于

代码差异

3 个文件 +8 -3
Modified src/routes/webui.ts +5 -0
@@ -28,4 +28,9 @@ webuiRouter.get("/webui/mods", (_req, res) => {
28 28 // Serve static files
29 29 webuiRouter.use("/webui", express.static(path.join(rootDir, "static/webui")));
30 30
31 // Serve favicon
32 webuiRouter.get("/favicon.ico", (_req, res) => {
33 res.sendFile(path.join(rootDir, "static/fixed_responses/favicon.ico"));
34 });
35
31 36 export { webuiRouter };
Added static/fixed_responses/favicon.ico +0 -0
二进制文件已变更,无法进行逐行预览。
Modified static/webui/index.html +3 -3
@@ -65,7 +65,7 @@
65 65 Note: Changes made here will only be reflected in-game when the game re-downloads your inventory.
66 66 Visiting the navigation should be the easiest way to trigger that.
67 67 </p>
68 <div data-route="/webui/">
68 <div data-route="/webui/" data-title="Login | OpenWF WebUI">
69 69 <p>Login using your OpenWF account credentials.</p>
70 70 <form onsubmit="doLogin();return false;">
71 71 <label for="email">Email address</label>
@@ -77,7 +77,7 @@
77 77 <button class="btn btn-primary" type="submit">Login</button>
78 78 </form>
79 79 </div>
80 <div data-route="/webui/inventory">
80 <div data-route="/webui/inventory" data-title="Inventory | OpenWF WebUI">
81 81 <div class="card mb-4">
82 82 <h5 class="card-header">Add Items</h5>
83 83 <form class="card-body input-group" onsubmit="doAcquireMiscItems();return false;">
@@ -121,7 +121,7 @@
121 121 </div>
122 122 </div>
123 123 </div>
124 <div data-route="/webui/mods">
124 <div data-route="/webui/mods" data-title="Mods | OpenWF WebUI">
125 125 <div class="card mb-4">
126 126 <h5 class="card-header">Add Riven</h5>
127 127 <form class="card-body" onsubmit="doAcquireRiven();return false;">