summaryrefslogtreecommitdiff
path: root/data-viewer/data-viewer.html
diff options
context:
space:
mode:
authorSameera Sandakelum <[email protected]>2025-05-06 17:51:53 +0530
committerGitHub <[email protected]>2025-05-06 17:51:53 +0530
commitdb4a2034c470dec5793f3050ce460c355f4d39d8 (patch)
tree283d5f51bafb822ebc5a3e370eead7c26b75d488 /data-viewer/data-viewer.html
parente7f8b06ae2ed012a27e8d6d3af46e964b4275ede (diff)
parent3175a9659126b1d069739254a09a9e00cd03051f (diff)
Merge pull request #15 from sameerasw/backup
Backup and restore feature #13
Diffstat (limited to 'data-viewer/data-viewer.html')
-rw-r--r--data-viewer/data-viewer.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/data-viewer/data-viewer.html b/data-viewer/data-viewer.html
index 716942d..5336bfe 100644
--- a/data-viewer/data-viewer.html
+++ b/data-viewer/data-viewer.html
@@ -46,6 +46,30 @@
</div>
</div>
+ <!-- New section for backup/restore -->
+ <div class="data-section">
+ <h2 class="section-title">Backup & Restore</h2>
+ <div class="backup-restore-container">
+ <p class="backup-description">
+ Export your settings to a JSON file or import settings from a previously exported file.
+ <br><strong>Note:</strong> This includes global settings, website lists, and website-specific
+ feature toggles, but not the actual style data which will be re-fetched.
+ </p>
+ <div class="backup-actions">
+ <button id="export-settings" class="action-button primary">
+ <i class="fas fa-upload"></i> Export Settings
+ </button>
+ <div class="import-container">
+ <label for="import-file" class="action-button secondary import-label">
+ <i class="fas fa-download"></i> Import Settings
+ </label>
+ <input type="file" id="import-file" accept=".json" hidden>
+ </div>
+ </div>
+ <div id="import-status" class="import-status"></div>
+ </div>
+ </div>
+
<div class="data-section">
<h2 class="section-title">Global Settings</h2>
<div id="global-settings-data" class="data-container"></div>