Backup #1641
| ID | 1641 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/entitaeten/index.php |
| Version | 3 |
| Typ |
modified |
| Größe | 3.0 KB |
| Hash | f6587a1746083ae3f39505a758040fafa192e8a38ce19388678900e7b7a6778c |
| Datum | 2025-12-27 09:45:53 |
| 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="/">Campus KI</a> » <a href="/semantic-explorer">Semantic Explorer</a> » Entitäten
</nav>
<h1>Entitäten</h1>
<p>Extrahierte Personen, Organisationen, Konzepte und mehr.</p>
<div class="stats-grid">
<?php foreach ($stats as $s): ?>
<div class="stat-card">
<span class="stat-card__value"><?= $s['count'] ?></span>
<span class="stat-card__label"><?= htmlspecialchars($s['type']) ?></span>
</div>
<?php endforeach; ?>
</div>
<div class="filters">
<input type="search" id="entities-search" class="form-input" placeholder="Durchsuchen...">
<select id="filter-type" class="form-select--inline">
<option value="">Alle Typen</option>
<option value="person">Person</option>
<option value="organization">Organisation</option>
<option value="location">Ort</option>
<option value="concept">Konzept</option>
<option value="method">Methode</option>
<option value="tool">Tool</option>
<option value="event">Event</option>
<option value="other">Sonstige</option>
</select>
</div>
<?php if (!empty($entities)): ?>
<table id="entities-table" data-sortable>
<thead>
<tr>
<th data-sort="name">Name</th>
<th data-sort="type">Typ</th>
<th data-sort="chunk_count">Chunks</th>
<th data-sort="relation_count">Relationen</th>
<th data-sort="description">Beschreibung</th>
</tr>
</thead>
<tbody>
<?php foreach ($entities as $e): ?>
<tr>
<td><a href="/semantic-explorer/entitaeten/<?= $e['id'] ?>"><?= htmlspecialchars($e['name']) ?></a></td>
<td><span class="badge"><?= htmlspecialchars($e['type']) ?></span></td>
<td><?= $e['chunk_count'] ?></td>
<td><?= $e['relation_count'] ?></td>
<td><?= htmlspecialchars(substr($e['description'] ?? '', 0, 80)) ?><?= strlen($e['description'] ?? '') > 80 ? '...' : '' ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<p class="empty-state">Keine Entitaeten gefunden. Fuehren Sie die semantische Analyse aus.</p>
<?php endif; ?>
<p class="links-bar">
<a href="/semantic-explorer">Zurueck zum Explorer</a> |
<a href="/semantic-explorer/relationen">Relationen</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('entities-table', {
searchInput: 'entities-search',
pageSize: 20,
filters: {
'filter-type': 1
}
});
</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 |
| 1641 |
3 |
modified |
3.0 KB |
2025-12-27 09:45 |
| 1620 |
2 |
modified |
3.0 KB |
2025-12-27 09:44 |
| 12 |
1 |
modified |
3.0 KB |
2025-12-20 16:39 |
← Zurück zur Übersicht