Backup #1625
| ID | 1625 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/dokumente/index.php |
| Version | 2 |
| Typ |
modified |
| Größe | 2.9 KB |
| Hash | 282a3fbadaec7afc4be6c569b1023bf432a74fd9c4b8fc2df4318da38bc74363 |
| Datum | 2025-12-27 09:44:52 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php ob_start(); ?>
<nav class="breadcrumb">
<a href="/">Home</a> » <a href="/explorer">Explorer</a> » <a href="/semantic-explorer">Semantic Explorer</a> » Dokumente
</nav>
<h1>Dokumente</h1>
<p>PDFs, DOCX, PPTX aus Nextcloud.</p>
<div class="filters">
<input type="search" id="documents-search" class="form-input" placeholder="Durchsuchen...">
<select id="filter-status" class="form-select--inline">
<option value="">Alle Status</option>
<option value="done">Verarbeitet</option>
<option value="processing">In Bearbeitung</option>
<option value="pending">Ausstehend</option>
<option value="error">Fehler</option>
</select>
</div>
<?php if (!empty($documents)): ?>
<table id="documents-table" data-sortable>
<thead>
<tr>
<th data-sort="filename">Datei</th>
<th data-sort="folder_path">Pfad</th>
<th data-sort="mime_type">Typ</th>
<th data-sort="file_size">Groesse</th>
<th data-sort="status">Status</th>
<th data-sort="chunk_count">Chunks</th>
<th data-sort="token_count">Tokens</th>
</tr>
</thead>
<tbody>
<?php foreach ($documents as $doc): ?>
<tr>
<td><a href="/semantic-explorer/dokumente/<?= $doc['id'] ?>"><?= htmlspecialchars($doc['filename']) ?></a></td>
<td><code><?= htmlspecialchars($doc['folder_path'] ?? '') ?></code></td>
<td><code><?= htmlspecialchars($doc['mime_type'] ?? '-') ?></code></td>
<td><?= number_format($doc['file_size'] / 1024, 0) ?> KB</td>
<td>
<span class="badge badge--<?= $doc['status'] ?>"><?= $doc['status'] ?></span>
<?php if ($doc['error_message']): ?>
<br><small class="text-danger"><?= htmlspecialchars(substr($doc['error_message'], 0, 50)) ?></small>
<?php endif; ?>
</td>
<td><?= $doc['chunk_count'] ?></td>
<td><?= number_format($doc['token_count']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<p class="empty-state">Keine Dokumente gefunden.</p>
<?php endif; ?>
<p class="links-bar">
<a href="/semantic-explorer">Zurueck zum Explorer</a>
</p>
<script type="module">
import { init } from '/js/components/data-table.js';
const dataTable = init({
clock: { now_epoch_ms_utc: () => Date.now() },
logger: console,
ui: {
showMessage: (msg) => { console.log(msg.type + ': ' + msg.text); },
disableFeature: (key) => { console.warn('Feature disabled: ' + key); },
offerRetry: () => Promise.resolve(false)
},
runId: crypto.randomUUID()
});
dataTable.create('documents-table', {
searchInput: 'documents-search',
pageSize: 20,
filters: {
'filter-status': 4
}
});
</script>
<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>
Vollständig herunterladen
Aktionen
Andere Versionen dieser Datei
| ID |
Version |
Typ |
Größe |
Datum |
| 1625 |
2 |
modified |
2.9 KB |
2025-12-27 09:44 |
| 17 |
1 |
modified |
2.8 KB |
2025-12-20 16:45 |
← Zurück zur Übersicht