Feature: Backup- und Import-Funktion hinzugefügt

- Backup-Button zum Herunterladen aller Daten als JSON
- Import-Funktion zum Wiederherstellen aus JSON-Backup
- Neue Backup-Sektion in der UI
- Keine Optional-Chaining-Operatoren verwendet

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
wralto-user-1
2026-11-22 12:10:19 +01:00
parent 918406fb91
commit e0cc7c4491
4 changed files with 1047 additions and 0 deletions

View File

@ -144,6 +144,17 @@
</div>
<div id="historyList" class="history-list"></div>
</section>
<!-- Backup Section -->
<section class="backup-section">
<h2>💾 Backup & Wiederherstellung</h2>
<div class="backup-controls">
<button id="btnBackup" class="btn btn-primary">📥 Backup herunterladen (JSON)</button>
<label class="btn btn-secondary" for="fileImport">📤 Backup wiederherstellen
<input type="file" id="fileImport" accept=".json" style="display:none">
</label>
<span id="backupStatus" class="backup-status"></span>
</div>
</section>
</main>
<footer class="footer">