mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
feat(livestreamassist): add Chinese live dashboard with game icons
- Add a URL-driven Chinese overlay page rendering item rate tables, tech levels, current research, and Dyson sphere power for streams. - Add the offline GameIcons layer and generate_icons.py, which extracts every item and tech icon from a local DSP install into js/generated/dsp-icons.js. - Reuse the proto extraction in generate_text.py and cover the new page with test_dashboard.js.
This commit is contained in:
1 parent
63a6a6ec6c
commit
3e3e995d55
12 files changed
+787
-15
No files matched your search
@@ -6,7 +6,7 @@ const vm = require("node:vm");
|
||||
const { ROOT, createHarness } = require("./test_helpers");
|
||||
|
||||
test("the packed script matches its sources", () => {
|
||||
const names = ["header", "format", "client", "query", "text", "footer"];
|
||||
const names = ["header", "format", "client", "query", "text", "icons", "footer"];
|
||||
const sources = names.map(name => fs.readFileSync(path.join(ROOT, "src", name + ".js"), "utf8").replace(/\r\n/g, "\n")).join("");
|
||||
const packed = fs.readFileSync(path.join(ROOT, "livestream-assist.js"), "utf8").replace(/\r\n/g, "\n");
|
||||
assert.ok(packed === sources, "The bundle is stale; run python LiveStreamAssist/js/scripts/pack_js.py.");
|
||||
|
||||
Reference in new issue
Block a user