Files
locally-uncensored/e2e/document-import-proof.html
David 525b582e5e Patch desktop dependency advisories with parser regression proof
Update affected dependency ranges without changing application permissions. Add bounded ZIP64 and XML probes plus real browser DOCX extraction coverage. Replace the earlier trainer fixture any cast so the full lint gate passes.
2026-09-09 11:37:03 -07:00

18 lines
640 B
HTML

<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>Document extraction proof</title></head>
<body>
<label>Document <input id="document" type="file"></label>
<output id="result" aria-live="polite"></output>
<script type="module">
import { extractText } from '/src/api/rag.ts';
document.querySelector('#document').addEventListener('change', async (event) => {
const file = event.target.files?.[0];
if (!file) return;
try { document.querySelector('#result').textContent = await extractText(file); }
catch { document.querySelector('#result').textContent = 'Document extraction failed.'; }
});
</script>
</body>
</html>