Spaces:
Paused
Paused
Download agent_zero_framework/webui/js/initFw.js from Oldmangrizzz/Agent-Node: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/webui/js/initFw.js
- Command line
-
hf download hf://spaces/Oldmangrizzz/Agent-Node/agent_zero_framework/webui/js/initFw.js
-
curl -L -o initFw.js https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/webui/js/initFw.js
663 Bytes
| import * as initializer from "./initializer.js"; | |
| import * as _modals from "./modals.js"; | |
| import * as _components from "./components.js"; | |
| // initialize required elements | |
| await initializer.initialize(); | |
| // import alpine library | |
| await import("../vendor/alpine/alpine.min.js"); | |
| // add x-destroy directive to alpine | |
| Alpine.directive( | |
| "destroy", | |
| (el, { expression }, { evaluateLater, cleanup }) => { | |
| const onDestroy = evaluateLater(expression); | |
| cleanup(() => onDestroy()); | |
| } | |
| ); | |
| // add x-create directive to alpine | |
| Alpine.directive("create", (_el, { expression }, { evaluateLater }) => { | |
| const onCreate = evaluateLater(expression); | |
| onCreate(); | |
| }); | |