blackthis 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +66 -2
- package/bin/blackthis.js +255 -0
- package/dsgvo_redactor/__init__.py +3 -0
- package/dsgvo_redactor/cli.py +214 -0
- package/dsgvo_redactor/csv_io.py +221 -0
- package/dsgvo_redactor/detectors.py +114 -0
- package/dsgvo_redactor/detectors_addresses.py +278 -0
- package/dsgvo_redactor/detectors_common.py +72 -0
- package/dsgvo_redactor/detectors_entities.py +818 -0
- package/dsgvo_redactor/detectors_structured.py +471 -0
- package/dsgvo_redactor/engine.py +810 -0
- package/dsgvo_redactor/german_dict.py +100 -0
- package/dsgvo_redactor/lexicons.py +690 -0
- package/dsgvo_redactor/models.py +247 -0
- package/dsgvo_redactor/ner_engine.py +377 -0
- package/dsgvo_redactor/pdf_export.py +393 -0
- package/dsgvo_redactor/pdf_redactor.py +356 -0
- package/dsgvo_redactor/report.py +269 -0
- package/dsgvo_redactor/session.py +518 -0
- package/dsgvo_redactor/validators.py +188 -0
- package/dsgvo_redactor/web_app.py +630 -0
- package/dsgvo_redactor/whitelist.py +273 -0
- package/package.json +52 -4
- package/redact_csv.py +7 -0
- package/requirements.txt +8 -0
- package/static/app.js +1670 -0
- package/static/styles.css +1067 -0
- package/templates/index.html +344 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="de">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<title>BLACKTHIS – like its a secret from area51</title>
|
|
8
|
+
<link rel="stylesheet" href="/static/styles.css">
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<header>
|
|
13
|
+
<div>
|
|
14
|
+
<div class="brand-title-row">
|
|
15
|
+
<span class="brand-mark" aria-hidden="true"><span></span><span></span><span></span></span>
|
|
16
|
+
<h1>BLACKTHIS</h1>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="brand-subline" aria-label="like its a secret from area51 — approved">
|
|
19
|
+
<span class="redact-anim-pill">
|
|
20
|
+
<span class="redact-anim-text">like its a secret from area51</span>
|
|
21
|
+
<span class="redact-anim-bar" aria-hidden="true"></span>
|
|
22
|
+
</span>
|
|
23
|
+
<span class="approved-badge" aria-hidden="true">
|
|
24
|
+
<span class="approved-box">
|
|
25
|
+
<svg viewBox="0 0 16 16" width="12" height="12" fill="none">
|
|
26
|
+
<path class="approved-check" d="M3 8.5L6.5 12L13 4.5" stroke="currentColor" stroke-width="2.4"
|
|
27
|
+
stroke-linecap="round" stroke-linejoin="round" />
|
|
28
|
+
</svg>
|
|
29
|
+
</span>
|
|
30
|
+
<span>APPROVED</span>
|
|
31
|
+
</span>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</header>
|
|
35
|
+
|
|
36
|
+
<main>
|
|
37
|
+
<!-- SCHRITT 1: CSV / EXCEL / PDF HOCHLADEN -->
|
|
38
|
+
<section class="card">
|
|
39
|
+
<h2><span class="step-num">1</span> CSV-, Excel- oder PDF-Datei auswählen</h2>
|
|
40
|
+
<div class="dropzone" id="dropzone">
|
|
41
|
+
<strong>CSV-, Excel- oder PDF-Datei (.csv / .xlsx / .pdf) hier ablegen oder anklicken</strong>
|
|
42
|
+
<span>Unterstützt CSV, Excel (.xlsx) & Text-PDFs (echte Schwärzung im Original-Layout) · deutsche Umlaute · 100 % lokal</span>
|
|
43
|
+
<input type="file" id="fileInput" accept=".csv,.txt,.xlsx,.pdf" style="display:none">
|
|
44
|
+
</div>
|
|
45
|
+
<div class="file-info" id="fileInfo"></div>
|
|
46
|
+
<div class="warn-banner" id="pdfScanWarning"></div>
|
|
47
|
+
<div class="error-box" id="errorBox"></div>
|
|
48
|
+
|
|
49
|
+
<div id="columnPickerWrap" style="display:none; margin-top:16px;">
|
|
50
|
+
<label class="field">Welche Spalten sollen nach sensiblen Daten durchsucht werden?</label>
|
|
51
|
+
<div class="chip-group" id="columnCheckboxes"></div>
|
|
52
|
+
<div class="warn-banner" id="piiColWarning"></div>
|
|
53
|
+
<div class="hint">Textspalten (z. B. „Notiz“) und offensichtliche Personen-Spalten (z. B. Vorname, E-Mail, Telefon, IBAN) werden automatisch vorausgewählt.</div>
|
|
54
|
+
|
|
55
|
+
<div id="inspectPreviewWrap" class="preview-table-wrap" style="display:none; margin-top:14px;">
|
|
56
|
+
<div class="preview-table-head">Vorschau aller Spalten (erste 3 Zeilen inkl. Spaltenkopf):</div>
|
|
57
|
+
<div class="table-shell">
|
|
58
|
+
<table class="full-csv-table">
|
|
59
|
+
<thead id="inspectPreviewHead"></thead>
|
|
60
|
+
<tbody id="inspectPreviewBody"></tbody>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</section>
|
|
66
|
+
|
|
67
|
+
<!-- SCHRITT 2: SCHWÄRZUNGSEINSTELLUNGEN -->
|
|
68
|
+
<section class="card">
|
|
69
|
+
<h2><span class="step-num">2</span> Schwärzungseinstellungen</h2>
|
|
70
|
+
|
|
71
|
+
<div class="grid-2">
|
|
72
|
+
<div>
|
|
73
|
+
<label class="field" for="firstName">Vorname des Antragstellers (Ex-Mitarbeiter)</label>
|
|
74
|
+
<input type="text" id="firstName" placeholder="z. B. Max">
|
|
75
|
+
<div class="hint">Wird NICHT geschwärzt (außer wenn ein anderer Nachname folgt).</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div>
|
|
78
|
+
<label class="field" for="lastName">Nachname des Antragstellers (Ex-Mitarbeiter)</label>
|
|
79
|
+
<input type="text" id="lastName" placeholder="z. B. Mustermann">
|
|
80
|
+
<div class="hint">Schützt automatisch auch „Herr/Frau Nachname“ und „M. Nachname“.</div>
|
|
81
|
+
</div>
|
|
82
|
+
<div>
|
|
83
|
+
<label class="field" for="replacement">Schwärzungs-Text</label>
|
|
84
|
+
<input type="text" id="replacement" value="██████" oninput="onReplacementInput(this.value)">
|
|
85
|
+
<div class="preset-btns">
|
|
86
|
+
<button type="button" class="btn-mini preset-btn" data-preset="bar" onclick="setReplacement('██████', false)">██████</button>
|
|
87
|
+
<button type="button" class="btn-mini preset-btn" data-preset="geschwaerzt" onclick="setReplacement('[GESCHWÄRZT]', false)"><strong>[GESCHWÄRZT]</strong></button>
|
|
88
|
+
<button type="button" class="btn-mini preset-btn" data-preset="secret" onclick="setReplacement('[SECRET]', false)"><strong>[SECRET]</strong></button>
|
|
89
|
+
<button type="button" class="btn-mini preset-btn" data-preset="typed" onclick="setReplacement('██████', true)">Kategorie ([NAME], [IBAN])</button>
|
|
90
|
+
</div>
|
|
91
|
+
<input type="checkbox" id="useTyped" style="display:none">
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<div class="divider"></div>
|
|
96
|
+
|
|
97
|
+
<div class="profile-bar">
|
|
98
|
+
<label class="field" style="margin:0;">Was soll geschwärzt werden?</label>
|
|
99
|
+
<button type="button" class="btn-mini" onclick="applyProfile('art15')">Profil: Art.-15-Auskunft</button>
|
|
100
|
+
<button type="button" class="btn-mini" onclick="applyProfile('max')">Profil: Maximal schwärzen</button>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="chip-group">
|
|
103
|
+
<label class="check-chip"><input type="checkbox" id="cat_names" checked> Klarnamen (Dritte)</label>
|
|
104
|
+
<label class="check-chip"><input type="checkbox" id="cat_addresses" checked> Adressen / Straßen</label>
|
|
105
|
+
<label class="check-chip"><input type="checkbox" id="cat_house_numbers" checked> Hausnummern</label>
|
|
106
|
+
<label class="check-chip"><input type="checkbox" id="cat_postal_codes" checked> Postleitzahlen (DE/AT/CH)</label>
|
|
107
|
+
<label class="check-chip"><input type="checkbox" id="cat_locations" checked> Ortschaften / Städte</label>
|
|
108
|
+
<label class="check-chip"><input type="checkbox" id="cat_bank" checked> Kontodaten (IBAN/BIC/BLZ)</label>
|
|
109
|
+
<label class="check-chip"><input type="checkbox" id="cat_job_titles" checked> Job-Position / Beruf</label>
|
|
110
|
+
<label class="check-chip"><input type="checkbox" id="cat_amounts" checked> Geldbeträge</label>
|
|
111
|
+
<label class="check-chip"><input type="checkbox" id="cat_phones" checked> Telefonnummern</label>
|
|
112
|
+
<label class="check-chip"><input type="checkbox" id="cat_emails" checked> E-Mail-Adressen</label>
|
|
113
|
+
<label class="check-chip"><input type="checkbox" id="cat_websites" checked> Webseiten / URLs</label>
|
|
114
|
+
<label class="check-chip"><input type="checkbox" id="cat_ip_addresses" checked> IP-Adressen</label>
|
|
115
|
+
<label class="check-chip"><input type="checkbox" id="cat_birthdates" checked> Geburtsdaten</label>
|
|
116
|
+
<label class="check-chip"><input type="checkbox" id="cat_license_plates" checked> Kfz-Kennzeichen</label>
|
|
117
|
+
<label class="check-chip"><input type="checkbox" id="cat_tax_ids" checked> Steuer- / Ausweis-IDs</label>
|
|
118
|
+
<label class="check-chip optional"><input type="checkbox" id="cat_companies"> Firmennamen (optional)</label>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div style="margin-top:14px; display:flex; flex-wrap:wrap; gap:14px; align-items:center;">
|
|
122
|
+
<label class="check-chip" style="background:#fef3c7; border-color:#f59e0b;">
|
|
123
|
+
<input type="checkbox" id="redactUncertain" checked>
|
|
124
|
+
<strong>DSGVO-Sicherheitsmodus:</strong> Unsichere Fälle im Zweifel automatisch schwärzen (gelb markiert)
|
|
125
|
+
</label>
|
|
126
|
+
<label class="check-chip">
|
|
127
|
+
<input type="checkbox" id="useNer" checked>
|
|
128
|
+
Lokale deutsche Sprach-KI (spaCy) zusätzlich aktivieren
|
|
129
|
+
</label>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div style="margin-top:14px;">
|
|
133
|
+
<button type="button" class="collapsible-toggle" onclick="toggleAdvanced()">▸ Erweiterte Listen (eigene Ausnahmen / immer schwärzen)</button>
|
|
134
|
+
<div id="advancedWrap" style="display:none; margin-top:12px;" class="grid-2">
|
|
135
|
+
<div>
|
|
136
|
+
<label class="field" for="extraWhitelist">Zusätzliche Ausnahmen (NIEMALS schwärzen)</label>
|
|
137
|
+
<textarea id="extraWhitelist" rows="2" placeholder="Kommagetrennt, z. B. eigene E-Mail, Telefon, IBAN des Antragstellers, Geburtsname, Kürzel"></textarea>
|
|
138
|
+
</div>
|
|
139
|
+
<div>
|
|
140
|
+
<label class="field" for="extraBlacklist">Zusätzliche Sperrliste (IMMER schwärzen)</label>
|
|
141
|
+
<textarea id="extraBlacklist" rows="2" placeholder="Kommagetrennt, z. B. bestimmte Kunden- oder Projektnamen"></textarea>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<div style="margin-top:20px; display:flex; flex-wrap:wrap; gap:10px; align-items:center;">
|
|
147
|
+
<button type="button" class="btn-primary" id="scanBtn" onclick="startScan()" disabled>Jetzt lokal scannen & prüfen</button>
|
|
148
|
+
<button type="button" class="btn-secondary" id="resetBtn" onclick="resetApp()">↺ Zurücksetzen</button>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<div class="scan-work-panel" id="scanWorkPanel" aria-live="polite">
|
|
152
|
+
<div class="scan-work-top">
|
|
153
|
+
<div class="scan-work-brand">
|
|
154
|
+
<div class="mini-doc-scanner" aria-hidden="true">
|
|
155
|
+
<div class="mini-doc-line"></div>
|
|
156
|
+
<div class="mini-doc-line"></div>
|
|
157
|
+
<div class="mini-doc-line"></div>
|
|
158
|
+
<div class="mini-doc-line"></div>
|
|
159
|
+
<div class="mini-doc-beam"></div>
|
|
160
|
+
</div>
|
|
161
|
+
<div>
|
|
162
|
+
<div class="scan-work-title">
|
|
163
|
+
<span class="scan-live-dot"></span>
|
|
164
|
+
<span id="workPhaseLabel">Initialisiere lokalen Offline-Scan…</span>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="scan-work-sub" id="workDetail">100 % lokal auf deinem Gerät · keine Daten verlassen diesen Rechner</div>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="scan-work-pct">
|
|
170
|
+
<div class="big-pct" id="workPercent">0 %</div>
|
|
171
|
+
<div class="elapsed" id="workElapsed">00:00.0</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<div class="progress-track">
|
|
176
|
+
<div class="progress-fill" id="workProgressFill"></div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
<div class="phase-stepper">
|
|
180
|
+
<div class="phase-step" id="step_loading"><span class="phase-icon">1</span> Datei einlesen</div>
|
|
181
|
+
<div class="phase-step" id="step_ner"><span class="phase-icon">2</span> Lokale Sprach-KI</div>
|
|
182
|
+
<div class="phase-step" id="step_rules"><span class="phase-icon">3</span> Regeln & Schutz</div>
|
|
183
|
+
<div class="phase-step" id="step_finalizing"><span class="phase-icon">4</span> Vorschau & Export</div>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<div class="work-telemetry">
|
|
187
|
+
<span class="tele-pill">Status: <strong id="teleProcessed">Starte…</strong></span>
|
|
188
|
+
<span class="tele-pill">Bisher erkannt: <strong id="teleRedactions">0 Schwärzungen</strong></span>
|
|
189
|
+
<span class="tele-pill">Restzeit: <strong id="teleEta">wird berechnet…</strong></span>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</section>
|
|
193
|
+
|
|
194
|
+
<!-- SCHRITT 3: PRÜFEN & HERUNTERLADEN -->
|
|
195
|
+
<section class="card" id="resultsSection">
|
|
196
|
+
<h2><span class="step-num">3</span> Ergebnis prüfen & herunterladen</h2>
|
|
197
|
+
|
|
198
|
+
<div class="stats-grid" id="statsGrid"></div>
|
|
199
|
+
<div class="warn-banner" id="pdfResultWarning" style="margin-top:0; margin-bottom:14px;"></div>
|
|
200
|
+
<div class="residual-banner" id="residualCheckBox"></div>
|
|
201
|
+
<div class="cat-pills" id="catPills"></div>
|
|
202
|
+
|
|
203
|
+
<div class="export-bar">
|
|
204
|
+
<button class="btn-primary btn-success" onclick="openExportModal()">⬇ Geschwärzte Version exportieren</button>
|
|
205
|
+
|
|
206
|
+
<span class="btn-with-tip">
|
|
207
|
+
<button class="btn-secondary" onclick="downloadExport('audit-anon')">⬇ Audit ohne Originale (CSV)</button>
|
|
208
|
+
<span class="info-tip" tabindex="0" aria-label="Info zu Audit ohne Originale">?<span class="info-tip-box"><strong>Datensparsames Protokoll (CSV):</strong> Listet Zeile, Spalte, Status, Kategorie & Regel auf – komplett <strong>ohne</strong> ungeschwärzte Originaldaten. Ideal für Nachweise & Datenschutz-Dokumentation.</span></span>
|
|
209
|
+
</span>
|
|
210
|
+
|
|
211
|
+
<span class="btn-with-tip">
|
|
212
|
+
<button class="btn-secondary" onclick="downloadExport('report')">🔒 Interner Prüfbericht (HTML)</button>
|
|
213
|
+
<span class="info-tip info-tip-warn" tabindex="0" aria-label="Info zu Interner Prüfbericht">?<span class="info-tip-box"><strong>Interne Vorher-Nachher-Übersicht (HTML):</strong> Zeigt alle Fundstellen farbig im Original neben der geschwärzten Ausgabe zur Endkontrolle. <strong>Vertraulich – enthält Originaldaten, niemals versenden!</strong></span></span>
|
|
214
|
+
</span>
|
|
215
|
+
|
|
216
|
+
<span class="btn-with-tip">
|
|
217
|
+
<button class="btn-secondary" onclick="downloadExport('audit')">🔒 Internes Audit-Log (CSV)</button>
|
|
218
|
+
<span class="info-tip info-tip-warn" tabindex="0" aria-label="Info zu Internes Audit-Log">?<span class="info-tip-box"><strong>Vollständiges internes Prüfprotokoll (CSV):</strong> Enthält zu jeder Stelle Zeile, Spalte, Status, Kategorie, Regel und den ungeschwärzten Originaltext. <strong>Vertraulich – nur für interne Ablage!</strong></span></span>
|
|
219
|
+
</span>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
<div class="divider"></div>
|
|
223
|
+
|
|
224
|
+
<div class="bulk-bar">
|
|
225
|
+
<strong style="font-size:13px;" id="bulkBarLabel">Schnell-Korrektur für ganze Datei:</strong>
|
|
226
|
+
<input type="text" id="bulkWordInput" placeholder="1 oder mehrere Wörter (kommagetrennt, z. B. Wort1, Wort2)">
|
|
227
|
+
<button class="btn-secondary btn-blue" onclick="bulkWord('redact')">🔒 Überall schwärzen</button>
|
|
228
|
+
<button class="btn-secondary btn-release-all" onclick="bulkWord('release')">✓ Überall freigeben</button>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<div class="toolbar">
|
|
232
|
+
<div class="tabs">
|
|
233
|
+
<button class="tab active" id="tabReview" onclick="setFilter('review')">⚠️ Nur unsichere Fälle</button>
|
|
234
|
+
<button class="tab" id="tabFindings" onclick="setFilter('findings')">Alle Zellen mit Treffern</button>
|
|
235
|
+
<button class="tab" id="tabAll" onclick="setFilter('all')">Alle Zeilen</button>
|
|
236
|
+
<button class="tab" id="tabTable" onclick="setFilter('table')">📊 Alle Spalten (Tabelle)</button>
|
|
237
|
+
<button class="tab" id="tabPdfPreview" onclick="setFilter('pdf-preview')" style="display:none;">📄 PDF-Vorschau (Layout)</button>
|
|
238
|
+
</div>
|
|
239
|
+
<input type="text" id="searchInput" placeholder="In Zeilen / Fundstellen suchen…" style="max-width:280px;" oninput="onSearchInput()">
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
<div id="pdfPreviewBar" class="table-mode-bar" style="display:none;">
|
|
243
|
+
<span class="table-mode-label">Original-PDF Layout-Vorschau:</span>
|
|
244
|
+
<div class="tabs">
|
|
245
|
+
<button type="button" class="tab active" id="pdfModeRedacted" onclick="setPdfPreviewMode('redacted')">Geschwärztes PDF</button>
|
|
246
|
+
<button type="button" class="tab" id="pdfModeSplit" onclick="setPdfPreviewMode('split')">Original vs. Geschwärzt</button>
|
|
247
|
+
</div>
|
|
248
|
+
<span class="hint" style="margin:0;">Zeigt exakt das geschwärzte Original-Layout – Änderungen in den Text-Tabs werden hier sofort übernommen.</span>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
<div id="tableModeBar" class="table-mode-bar" style="display:none;">
|
|
252
|
+
<span class="table-mode-label">Tabellen-Ansicht über alle Spalten:</span>
|
|
253
|
+
<div class="tabs">
|
|
254
|
+
<button type="button" class="tab active" id="tblModeRedacted" onclick="setTableViewMode('redacted')">Geschwärzte Ausgabe (Export)</button>
|
|
255
|
+
<button type="button" class="tab" id="tblModeOriginal" onclick="setTableViewMode('original')">Original (mit Markierungen)</button>
|
|
256
|
+
</div>
|
|
257
|
+
<span class="hint" style="margin:0;">Spalten mit 🔒 werden gescannt · alle übrigen Spalten bleiben im Original sichtbar.</span>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<div class="legend" id="reviewLegend">
|
|
261
|
+
<strong>Bedienung:</strong> Markierung anklicken zum Umschalten · <strong>Beliebigen Text links mit der Maus markieren</strong> zum nachträglichen Schwärzen.
|
|
262
|
+
<span class="legend-item"><mark class="hl hl-high">Rot</mark> Sicher geschwärzt</span>
|
|
263
|
+
<span class="legend-item"><mark class="hl hl-review">Gelb</mark> Unsicher (im Zweifel geschwärzt)</span>
|
|
264
|
+
<span class="legend-item"><mark class="hl hl-manual-global">Blau</mark> Manuelle Regel überall</span>
|
|
265
|
+
<span class="legend-item"><mark class="hl hl-manual">Lila</mark> Nur hier geschwärzt</span>
|
|
266
|
+
<span class="legend-item"><mark class="hl hl-protected">👤 Türkis</mark> Antragsteller (bleibt sichtbar)</span>
|
|
267
|
+
<span class="legend-item"><mark class="hl hl-released">Grau</mark> Manuell freigegeben</span>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div class="table-shell" id="diffTableShell">
|
|
271
|
+
<table class="review-table">
|
|
272
|
+
<thead>
|
|
273
|
+
<tr>
|
|
274
|
+
<th class="col-meta">Zeile / Info</th>
|
|
275
|
+
<th class="col-orig">Original (anklicken oder Text mit Maus markieren)</th>
|
|
276
|
+
<th class="col-red">Geschwärzte Ausgabe (Live-Vorschau)</th>
|
|
277
|
+
</tr>
|
|
278
|
+
</thead>
|
|
279
|
+
<tbody id="reviewBody"></tbody>
|
|
280
|
+
</table>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div class="table-shell" id="fullTableShell" style="display:none;">
|
|
284
|
+
<table class="full-csv-table">
|
|
285
|
+
<thead id="fullTableHead"></thead>
|
|
286
|
+
<tbody id="fullTableBody"></tbody>
|
|
287
|
+
</table>
|
|
288
|
+
</div>
|
|
289
|
+
<div id="pdfPreviewShell" class="pdf-preview-shell" style="display:none;"></div>
|
|
290
|
+
<div class="load-more-wrap" id="loadMoreWrap">
|
|
291
|
+
<button type="button" class="btn-secondary" id="loadMoreBtn" onclick="loadMoreRows()">Weitere Zeilen laden</button>
|
|
292
|
+
</div>
|
|
293
|
+
</section>
|
|
294
|
+
</main>
|
|
295
|
+
|
|
296
|
+
<div class="selection-popover" id="selectionPopover" role="toolbar" aria-label="Text-Auswahl Aktionen">
|
|
297
|
+
<button type="button" class="pop-btn pop-local" id="popLocalBtn" onmousedown="event.preventDefault()" onclick="applyPopoverLocal()">🔒 Nur hier schwärzen</button>
|
|
298
|
+
<button type="button" class="pop-btn pop-all" id="popAllBtn" onmousedown="event.preventDefault()" onclick="applyPopoverBulk('redact')">🔒 Überall schwärzen</button>
|
|
299
|
+
<button type="button" class="pop-btn pop-release" id="popReleaseBtn" onmousedown="event.preventDefault()" onclick="applyPopoverBulk('release')">✓ Überall freigeben</button>
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
<div class="modal-backdrop" id="exportModal" role="dialog" aria-modal="true" aria-labelledby="exportModalTitle" onclick="if (event.target === this) closeExportModal()">
|
|
303
|
+
<div class="export-modal">
|
|
304
|
+
<div class="export-modal-head">
|
|
305
|
+
<div>
|
|
306
|
+
<h3 id="exportModalTitle">Geschwärzte Version exportieren</h3>
|
|
307
|
+
<p>Wähle das gewünschte Format – alle automatischen & manuellen Schwärzungen sind enthalten.</p>
|
|
308
|
+
</div>
|
|
309
|
+
<button type="button" class="modal-close" aria-label="Schließen" onclick="closeExportModal()">×</button>
|
|
310
|
+
</div>
|
|
311
|
+
<div class="export-choice-grid">
|
|
312
|
+
<button type="button" class="export-choice" id="exportChoicePdf" onclick="confirmExport('pdf')">
|
|
313
|
+
<span class="export-choice-icon">📄</span>
|
|
314
|
+
<span class="export-choice-title" id="exportPdfTitle">Als PDF (.pdf)</span>
|
|
315
|
+
<span class="export-choice-desc" id="exportPdfDesc">Druckfertiges DIN-A4-Dokument mit echten schwarzen Schwärzungsbalken – ideal zum Versenden.</span>
|
|
316
|
+
</button>
|
|
317
|
+
<button type="button" class="export-choice" onclick="confirmExport('csv')">
|
|
318
|
+
<span class="export-choice-icon">📊</span>
|
|
319
|
+
<span class="export-choice-title">Als CSV (.csv)</span>
|
|
320
|
+
<span class="export-choice-desc" id="exportCsvDesc">Tabellendatei (UTF-8 mit BOM) für Excel, Numbers & weitere Datenverarbeitung.</span>
|
|
321
|
+
</button>
|
|
322
|
+
<button type="button" class="export-choice" onclick="confirmExport('xlsx')">
|
|
323
|
+
<span class="export-choice-icon">📗</span>
|
|
324
|
+
<span class="export-choice-title">Als Excel (.xlsx)</span>
|
|
325
|
+
<span class="export-choice-desc" id="exportXlsxDesc">Sauber formatierte Excel-Arbeitsmappe mit fixierter Kopfzeile & optimalen Spaltenbreiten.</span>
|
|
326
|
+
</button>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
|
|
331
|
+
<div class="review-dock" id="reviewDock" role="toolbar" aria-label="Gelbe Prüffälle durchspringen">
|
|
332
|
+
<button type="button" class="review-dock-count" id="reviewDockCount" onclick="jumpToCurrentReview()" title="Direkt zum aktuellen Prüffall springen">⚠️ Prüffall 1 / 1</button>
|
|
333
|
+
<button type="button" class="rnav-btn" onclick="stepReview(-1)" title="Vorheriger Prüffall">← Zurück</button>
|
|
334
|
+
<button type="button" class="rnav-btn rnav-check" onclick="startReviewCheck()" title="Zum 1. Prüffall springen">Check</button>
|
|
335
|
+
<button type="button" class="rnav-btn" onclick="stepReview(1)" title="Nächster Prüffall">Vor →</button>
|
|
336
|
+
<button type="button" class="rnav-btn rnav-release" onclick="releaseCurrentReviewEverywhere()" title="Alle identischen Vorkommen dieses Prüffalls in der gesamten CSV freigeben">✓ Alle gleichen freigeben</button>
|
|
337
|
+
<button type="button" class="review-dock-close" onclick="hideReviewDock()" title="Leiste ausblenden" aria-label="Schließen">×</button>
|
|
338
|
+
</div>
|
|
339
|
+
|
|
340
|
+
<div class="toast" id="toast"></div>
|
|
341
|
+
<script src="/static/app.js" defer></script>
|
|
342
|
+
</body>
|
|
343
|
+
|
|
344
|
+
</html>
|