Download custom_nodes/comfy_mtb/web/mtb_sidebar.js from fotographerai/Zen-Style-Shape: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/c0e10ba394d17bfa21ed8e0eaaceacb3913487fe/custom_nodes/comfy_mtb/web/mtb_sidebar.js
- Command line
-
hf download hf://spaces/fotographerai/Zen-Style-Shape@c0e10ba394d17bfa21ed8e0eaaceacb3913487fe/custom_nodes/comfy_mtb/web/mtb_sidebar.js
-
curl -L -o mtb_sidebar.js https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/c0e10ba394d17bfa21ed8e0eaaceacb3913487fe/custom_nodes/comfy_mtb/web/mtb_sidebar.js
786 Bytes
| import { app } from '../../scripts/app.js' | |
| // import { api } from '../../scripts/api.js' | |
| import * as shared from './comfy_shared.js' | |
| import { createOutliner } from './dist/mtb_inspector.js' | |
| if (window?.__COMFYUI_FRONTEND_VERSION__) { | |
| const version = window?.__COMFYUI_FRONTEND_VERSION__ | |
| console.log(`%c ${version}`, 'background: orange; color: white;') | |
| const panel = app.extensionManager.registerSidebarTab({ | |
| id: 'mtb-nodes', | |
| icon: 'pi pi-bolt', | |
| title: 'MTB', | |
| tooltip: 'MTB: API outliner', | |
| type: 'custom', | |
| // this is run everytime the tab's diplay is toggled on. | |
| render: (el) => { | |
| const outliner = createOutliner(el) | |
| const inputs = shared.getAPIInputs() | |
| console.log('INPUTS', inputs) | |
| outliner.$$set({ inputs }) | |
| }, | |
| }) | |
| } | |