feat(scum-plugin): move feature page module

This commit is contained in:
npc0-hue
2026-07-29 10:40:06 +08:00
parent c9494abc48
commit d791b1de8e
11 changed files with 186 additions and 29 deletions
@@ -1,5 +1,6 @@
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it } from "vitest";
import hostSource from "./PluginPageHostPage.tsx?raw";
import type { GamePluginResponse } from "../api/types";
import type { PageComponentProps } from "../contracts/page";
@@ -89,4 +90,9 @@ describe("PluginPageHostPage", () => {
expect(html).toContain("未绑定服务器");
expect(html).toContain("正在校验并加载插件页面 bundle");
});
it("remains a manifest-driven host without SCUM component imports or game branches", () => {
expect(hostSource).toContain("loadPluginPageBundle");
expect(hostSource).not.toMatch(/ScumFileConfigWorkbench|GamePlayerIntelligencePanel|GameGiftCatalogPanel|ScumMapTrajectoryPanel|game\.scum/);
});
});