Web app (browse, search, dashboard, custom fields, family read-only links), Android capture app with offline upload queue and QR pairing, and an MCP server so an AI subscription can identify, value and list items.
33 lines
1.9 KiB
HTML
33 lines
1.9 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>Labels · IndexiPro</title>
|
||
<style>
|
||
body { font-family: system-ui, sans-serif; margin: 0; padding: 10mm; background: #fff; color: #000; }
|
||
.bar { margin-bottom: 8mm; display: flex; gap: 10px; align-items: center; }
|
||
.sheet { display: grid; grid-template-columns: repeat(auto-fill, 62mm); gap: 4mm; }
|
||
.label { width: 62mm; height: 29mm; border: 1px dashed #999; border-radius: 2mm; display: flex; align-items: center; gap: 2mm; padding: 2mm; box-sizing: border-box; overflow: hidden; break-inside: avoid; }
|
||
.label img { width: 25mm; height: 25mm; flex: 0 0 25mm; }
|
||
.num { font: 800 22pt ui-monospace, monospace; line-height: 1; }
|
||
.t { font-size: 7.5pt; line-height: 1.2; max-height: 3.6em; overflow: hidden; margin-top: 1mm; }
|
||
.loc { font-size: 7pt; color: #444; margin-top: 1mm; }
|
||
@media print { .bar { display: none; } body { padding: 5mm; } .label { border-color: #ccc; } }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="bar"><button onclick="print()">🖨 Print</button><span id="n"></span></div>
|
||
<div class="sheet" id="sheet"></div>
|
||
<script type="module">
|
||
import { api, esc } from '/common.js';
|
||
const ids = new URLSearchParams(location.search).get('ids') || '';
|
||
const info = await api('/info');
|
||
const r = await api(`/items?ids=${encodeURIComponent(ids)}&limit=500&sort=oldest`);
|
||
document.getElementById('n').textContent = `${r.items.length} label(s) — 62×29 mm, fits common label printers or A4 sticker sheets`;
|
||
document.getElementById('sheet').innerHTML = r.items.map((it) => `<div class="label">
|
||
<img src="/api/qr?data=${encodeURIComponent(`${info.base_url}/#/item/${it.id}`)}" alt="">
|
||
<div><div class="num">#${it.id}</div><div class="t">${esc(it.title || '')}</div><div class="loc">${esc(it.location || '')}</div></div></div>`).join('');
|
||
</script>
|
||
</body>
|
||
</html>
|