mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-27 11:29:53 +00:00
* Use npm to manage litegraph * Fix merge issues caused by BetaUI change * Switch to @comfyorg/litegraph * Fix various import * Fix css apply order bug * Fix package lock * Update litegraph * Update litegraph * Update browsertest expectations * Update test expectations [skip ci] * Fix default view screenshot --------- Co-authored-by: github-actions <github-actions@github.com>
31 lines
497 B
TypeScript
31 lines
497 B
TypeScript
import fs from "fs";
|
|
import path from "path";
|
|
import { nop } from "../utils/nopProxy";
|
|
|
|
function forEachKey(cb) {
|
|
for (const k of [
|
|
"LiteGraph",
|
|
"LGraph",
|
|
"LLink",
|
|
"LGraphNode",
|
|
"LGraphGroup",
|
|
"DragAndScale",
|
|
"LGraphCanvas",
|
|
"ContextMenu",
|
|
]) {
|
|
cb(k);
|
|
}
|
|
}
|
|
|
|
export default {
|
|
setup(ctx) {
|
|
|
|
},
|
|
|
|
teardown(ctx) {
|
|
// forEachKey((k) => delete ctx[k]);
|
|
|
|
// Clear document after each run
|
|
document.getElementsByTagName("html")[0].innerHTML = "";
|
|
}
|
|
}; |