Scanyonero/static/js/components/document-queue-entry-page.js
David Vogel 853a1bb58d Rework into FTP scanning server
- Rename to Scanyonero
- Add FTP server that ingests TIFF, PNG, JPEG or PDF files
- Add web interface to check and modify ingested files
- Rework how ocrmypdf is invoked

Basics are working, but the program is not in a usable state.
2025-05-14 12:08:38 +02:00

36 lines
708 B
JavaScript

import { API } from '../api.js';
import { LitElement, css, html, repeat } from '../vendor/lit-html/lit-all.min.js';
export class DocumentQueueEntryPage extends LitElement {
static properties = {
queueEntry: { type: Object },
api: { type: Object, state: true },
};
constructor() {
super();
/** @type {API} */
this.api;
/** @type {import('model').APIQueueEntry} */
this.document;
}
static styles = css`
img {
width: 128px;
}
`;
// @ts-ignore
render() {
return html`
<img id="image" src=${`/api/queue-entry-page/${this.document.id}/preview`}></img>
<span>This is a document</span>
`;
}
}
customElements.define("document-queue-entry-page", DocumentQueueEntryPage);