Step 6 migration: add JSON backup and restore flows

This commit is contained in:
Ponte
2026-02-11 15:16:12 +01:00
parent e58ee18936
commit 110a6c4a1b
5 changed files with 376 additions and 0 deletions

View File

@@ -53,6 +53,12 @@
<button id="migrateBtn" type="button" class="btn-secondary hidden">
Migrer localStorage vers DB
</button>
<div id="backupControls" class="backup-controls hidden">
<button id="backupBtn" type="button" class="btn-secondary">Sauvegarder JSON</button>
<button id="restoreMergeBtn" type="button" class="btn-secondary">Restaurer (fusion)</button>
<button id="restoreReplaceBtn" type="button" class="btn-secondary">Restaurer (remplacement)</button>
<input id="restoreFileInput" type="file" accept="application/json" class="hidden" />
</div>
</div>
<form id="gameForm" class="grid-form game-form">