Download ComfyUI-Crystools/web/progressBarUIBase.ts from MarkLilly/mis-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 912 Bytes
-
https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/ComfyUI-Crystools/web/progressBarUIBase.ts
- Command line
-
hf download hf://MarkLilly/mis-custom-nodes/ComfyUI-Crystools/web/progressBarUIBase.ts
-
curl -L -o progressBarUIBase.ts https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/ComfyUI-Crystools/web/progressBarUIBase.ts
912 Bytes
| export enum EStatus { | |
| executing = 'Executing', | |
| executed = 'Executed', | |
| execution_error = 'Execution error', | |
| } | |
| export const ComfyKeyMenuDisplayOption = 'Comfy.UseNewMenu'; | |
| export enum MenuDisplayOptions { | |
| 'Disabled' = 'Disabled', | |
| 'Top' = 'Top', | |
| 'Bottom' = 'Bottom', | |
| } | |
| export abstract class ProgressBarUIBase { | |
| protected htmlClassMonitor = 'crystools-monitors-container'; | |
| protected constructor( | |
| public rootId: string, | |
| public rootElement: HTMLElement | null | undefined, | |
| ) { | |
| // IMPORTANT duplicate on crystools-save | |
| if (this.rootElement && this.rootElement.children.length === 0) { | |
| this.rootElement.setAttribute('id', this.rootId); | |
| this.rootElement.classList.add(this.htmlClassMonitor); | |
| this.rootElement.classList.add(this.constructor.name); | |
| } else { | |
| // it was created before | |
| } | |
| } | |
| abstract createDOM(): void; | |
| } | |