mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 01:10:00 +00:00
- 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.
36 lines
708 B
JavaScript
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);
|