完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions

18
frontend/node_modules/cytoscape/src/test.mjs generated vendored Normal file
View File

@@ -0,0 +1,18 @@
/*
This file tells the Mocha tests what build of Cytoscape to use.
*/
// For manual build tests, use the ESM build
// NB : Must do `npm run build` before `npm test`
let cytoscape;
if (process.env.TEST_BUILD) {
// Dynamically import the ESM build
cytoscape = await import('../build/cytoscape.esm.mjs'); // Assuming the ESM build uses `.esm.js`
} else {
// Dynamically import the unbundled, unbabelified raw source
cytoscape = await import('./index.mjs');
}
// Export the module (adjust based on whether you need default or named exports)
export default cytoscape.default || cytoscape;