Download src/js/state.ts from Leon4gr45/termix: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/src/js/state.ts
- Command line
-
hf download hf://spaces/Leon4gr45/termix/src/js/state.ts
-
curl -L -o state.ts https://huggingface.co/spaces/Leon4gr45/termix/resolve/main/src/js/state.ts
398 Bytes
| export const state = { | |
| activeTool: null, | |
| files: [], | |
| pdfDoc: null, | |
| pdfPages: [], | |
| currentPdfUrl: null, | |
| }; | |
| // Resets the state when switching views or completing an operation. | |
| export function resetState() { | |
| state.activeTool = null; | |
| state.files = []; | |
| state.pdfDoc = null; | |
| state.pdfPages = []; | |
| state.currentPdfUrl = null; | |
| document.getElementById('tool-content').innerHTML = ''; | |
| } | |