mod-osint / engine /templates /report.html
moddux's picture
deploy: HF sanitized GUI snapshot
b75c637
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MOD-OSINT Report — {{ run_id }}</title>
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
--border: #30363d;
--text: #c9d1d9;
--accent: #58a6ff;
--success: #3fb950;
--error: #f85149;
--warn: #d29922;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
padding: 2rem;
line-height: 1.6;
}
h1, h2, h3 { color: var(--accent); margin-bottom: 0.5rem; }
h1 { font-size: 1.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
.meta { color: #8b949e; font-size: 0.9rem; margin-bottom: 1.5rem; }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1rem 1.2rem;
margin-bottom: 1rem;
}
.badge {
display: inline-block;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 600;
}
.badge-success { background: var(--success); color: #000; }
.badge-failed { background: var(--error); color: #fff; }
.badge-skipped { background: var(--warn); color: #000; }
table {
width: 100%;
border-collapse: collapse;
margin-top: 0.5rem;
font-size: 0.85rem;
}
th, td {
text-align: left;
padding: 6px 10px;
border-bottom: 1px solid var(--border);
}
th { color: var(--accent); font-weight: 600; }
tr:hover { background: rgba(88,166,255,0.05); }
.truncate { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.downloads { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.dl-btn {
display: inline-block;
padding: 8px 16px;
background: var(--accent);
color: #000;
border-radius: 6px;
font-weight: 600;
font-size: 0.85rem;
}
.dl-btn:hover { opacity: 0.85; text-decoration: none; }
</style>
</head>
<body>
<h1>🕵️ MOD-OSINT Pipeline Report</h1>
<p class="meta">
Run ID: <strong>{{ run_id }}</strong> &nbsp;|&nbsp;
Generated: <strong>{{ generated_at }}</strong> &nbsp;|&nbsp;
Records: <strong>{{ total_records }}</strong> &nbsp;|&nbsp;
Input files: <strong>{{ input_file_count }}</strong>
</p>
<!-- Stage Results -->
<h2>Pipeline Stages</h2>
{% for stage in stages %}
<div class="card">
<strong>{{ stage.stage }}</strong>
{% if stage.status == "success" %}
<span class="badge badge-success">✓ success</span>
{% elif stage.status == "failed" %}
<span class="badge badge-failed">✗ failed</span>
{% else %}
<span class="badge badge-skipped">⊘ {{ stage.status }}</span>
{% endif %}
{% if stage.summary %}
<p style="margin-top:0.4rem; font-size:0.9rem;">{{ stage.summary }}</p>
{% endif %}
{% if stage.error %}
<p style="margin-top:0.4rem; color:var(--error); font-size:0.85rem;">Error: {{ stage.error }}</p>
{% endif %}
</div>
{% endfor %}
<!-- Input Files -->
<h2>Input Files</h2>
<div class="card">
<table>
<thead><tr><th>File</th><th>Type</th><th>Size</th><th>SHA-256</th></tr></thead>
<tbody>
{% for f in input_files %}
<tr>
<td>{{ f.name }}</td>
<td>{{ f.file_type }}</td>
<td>{{ f.size_bytes }} B</td>
<td class="truncate" title="{{ f.sha256 }}">{{ f.sha256[:16] }}…</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<!-- Records Preview -->
<h2>Normalized Records (first {{ preview_limit }})</h2>
<div class="card" style="overflow-x:auto;">
<table>
<thead>
<tr>
<th>row_id</th>
<th>source</th>
<th>type</th>
<th>name</th>
<th>phone</th>
<th>email</th>
<th>ip</th>
<th>domain</th>
<th>raw_text</th>
</tr>
</thead>
<tbody>
{% for r in records_preview %}
<tr>
<td><code>{{ r.row_id }}</code></td>
<td>{{ r.source_file }}</td>
<td>{{ r.source_type }}</td>
<td>{{ r.entity_name or '' }}</td>
<td>{{ r.entity_phone or '' }}</td>
<td>{{ r.entity_email or '' }}</td>
<td>{{ r.entity_ip or '' }}</td>
<td>{{ r.entity_domain or '' }}</td>
<td class="truncate" title="{{ r.raw_text }}">{{ r.raw_text[:80] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<!-- Downloads -->
<h2>Downloadable Artifacts</h2>
<div class="downloads">
{% for a in artifacts %}
<a class="dl-btn" href="{{ a.rel_path }}" download>⬇ {{ a.name }}</a>
{% endfor %}
</div>
<p class="meta" style="margin-top:3rem;">
Generated by <strong>MOD-OSINT Engine v0.1.0</strong>
</p>
</body>
</html>