Files

13 lines
783 B
TypeScript

import * as React from "react";
import { createRoot } from "react-dom/client";
import { createScumMapFixture, scumMapContext, scumMapPage } from "./fixtures/scum-map";
import { loadPluginPageBundle } from "../utils/pluginPageBundles";
import { applyThemePalette } from "../theme/tokens";
import "../theme/base.css";
globalThis.__PLUGIN_PAGE_REACT__ = React;
applyThemePalette("mecha-black");
const MapPage = await loadPluginPageBundle(scumMapPage);
const { actions } = createScumMapFixture();
createRoot(document.getElementById("root")!).render(<main style={{ padding: 24 }}><h1>SCUM 地图交互验证</h1><p>固定测试数据,用于检查回放、缩放和详情。</p><MapPage context={scumMapContext} workspaceActions={actions} availability={{ available: true }} /></main>);