index.php
- Pfad:
src/View/semantic-explorer/entitaeten/index.php - Namespace: -
- Zeilen: 91 | Größe: 3,046 Bytes
- Geändert: 2025-12-27 09:45:53 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Versionen 3
-
v3
2025-12-27 09:45 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v2
2025-12-27 09:44 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v1
2025-12-20 16:39 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Write-Operation
Code
<?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 Entitäten gefunden. Führen 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'; ?>