Spaces:
Paused
Paused
Download ComfyUI/web/scripts/ui/menu/viewHistory.js from flatcherlee/jorag: direct link, hf CLI and curl.
- Browser
- Download file 671 Bytes
-
https://huggingface.co/spaces/flatcherlee/jorag/resolve/main/ComfyUI/web/scripts/ui/menu/viewHistory.js
- Command line
-
hf download hf://spaces/flatcherlee/jorag/ComfyUI/web/scripts/ui/menu/viewHistory.js
-
curl -L -o viewHistory.js https://huggingface.co/spaces/flatcherlee/jorag/resolve/main/ComfyUI/web/scripts/ui/menu/viewHistory.js
671 Bytes
| // @ts-check | |
| import { ComfyButton } from "../components/button.js"; | |
| import { ComfyViewList, ComfyViewListButton } from "./viewList.js"; | |
| export class ComfyViewHistoryButton extends ComfyViewListButton { | |
| constructor(app) { | |
| super(app, { | |
| button: new ComfyButton({ | |
| content: "View History", | |
| icon: "history", | |
| tooltip: "View history", | |
| classList: "comfyui-button comfyui-history-button", | |
| }), | |
| list: ComfyViewHistoryList, | |
| mode: "History", | |
| }); | |
| } | |
| } | |
| export class ComfyViewHistoryList extends ComfyViewList { | |
| async loadItems() { | |
| const items = await super.loadItems(); | |
| items["History"].reverse(); | |
| return items; | |
| } | |
| } | |