Download src/js/workflow/sockets.ts from Leon4gr45/termix: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/src/js/workflow/sockets.ts
- Command line
-
hf download hf://spaces/Leon4gr45/termix/src/js/workflow/sockets.ts
-
curl -L -o sockets.ts https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/src/js/workflow/sockets.ts
603 Bytes
| import { ClassicPreset } from 'rete'; | |
| export class PDFSocket extends ClassicPreset.Socket { | |
| constructor() { | |
| super('PDF'); | |
| } | |
| } | |
| export class ImageSocket extends ClassicPreset.Socket { | |
| constructor() { | |
| super('Image'); | |
| } | |
| } | |
| export class MultiPDFSocket extends ClassicPreset.Socket { | |
| constructor() { | |
| super('MultiPDF'); | |
| } | |
| } | |
| export const pdfSocket = new PDFSocket(); | |
| export const imageSocket = new ImageSocket(); | |
| export const multiPdfSocket = new MultiPDFSocket(); | |
| export const socketColors: Record<string, string> = { | |
| PDF: '#6366f1', | |
| Image: '#10b981', | |
| MultiPDF: '#f59e0b', | |
| }; | |