feat: backup and restore (#288)

This commit is contained in:
Miguel Ribeiro
2024-04-26 17:41:19 +02:00
committed by GitHub
parent 65cc376dff
commit 7b509d2b3d
31 changed files with 717 additions and 95 deletions
+16 -4
View File
@@ -681,11 +681,23 @@
<section class="account-section">
<header>
<h2><?= translate('export_subscriptions', $i18n) ?></h2>
<h2><?= translate('backup_and_restore', $i18n) ?></h2>
</header>
<div>
<input type="button" class="button thin" value="<?= translate('export_to_json', $i18n) ?>" id="exportToJson" onClick="exportToJson()"/>
<div>
<div class="form-group-inline">
<div>
<input type="button" class="button thin" value="<?= translate('backup', $i18n) ?>" id="backupDB" onClick="backupDB()"/>
</div>
<div>
<input type="button" class="secondary-button thin" value="<?= translate('restore', $i18n) ?>" id="restoreDB" onClick="openRestoreDBFileSelect()" />
<input type="file" name="restoreDBFile" id="restoreDBFile" style="display: none;" onChange="restoreDB()" accept=".zip">
</div>
</div>
<div class="settings-notes">
<p>
<i class="fa-solid fa-circle-info"></i>
<?= translate('restore_info', $i18n) ?>
</p>
</div>
</section>
</section>