Download docs/live/scripts/app.js from sandpies/ComfyUI-Hand-Tie-Clips: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/sandpies/ComfyUI-Hand-Tie-Clips/resolve/main/docs/live/scripts/app.js
- Command line
-
hf download hf://sandpies/ComfyUI-Hand-Tie-Clips/docs/live/scripts/app.js
-
curl -L -o app.js https://huggingface.co/sandpies/ComfyUI-Hand-Tie-Clips/resolve/main/docs/live/scripts/app.js
1.06 kB
| // Demo stand-in for ComfyUI's app.js: records what the node registers. | |
| const rec = (window.__appStub ||= { extensions: [] }); | |
| export const app = { | |
| registerExtension(ext) { rec.extensions.push(ext); return ext; }, | |
| graph: { | |
| _nodes: [], links: {}, | |
| setDirtyCanvas() {}, getNodeById(id) { return this._nodes.find((n) => n.id == id) || null; }, | |
| getNodesByType() { return []; }, serialize() { return { nodes: [] }; }, add(n) { this._nodes.push(n); }, | |
| }, | |
| canvas: { setDirty() {}, draw() {}, ds: { scale: 1, offset: [0, 0] }, canvas: document.createElement("canvas") }, | |
| extensionManager: { | |
| registerSidebarTab() {}, setting: { get() { return undefined; }, set() {} }, | |
| toast: { add(t) { window.__demoToast?.(t?.detail || t?.summary || ""); } }, | |
| }, | |
| ui: { settings: { getSettingValue() { return undefined; }, setSettingValue() {} } }, | |
| async queuePrompt() { window.__demoToast?.("Queue needs ComfyUI running: this page is a demo of the editor."); }, | |
| async graphToPrompt() { return { output: {}, workflow: {} }; }, | |
| }; | |
| export default app; | |