File size: 6,066 Bytes
b75c637 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | <!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> |
Generated: <strong>{{ generated_at }}</strong> |
Records: <strong>{{ total_records }}</strong> |
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>
|