+
+ Your current configuration is shown below as JSON. Select and copy this text to back up or share your configuration.
+ ${canUseClipboard ? '' : ' Clipboard access requires an HTTPS connection, so manual copying is required.'}
+
+
+ ${canUseClipboard ? `
+
+
+
` : ''}
+
+ `;
+ }
+
+ function buildManageImportPanelHtml() {
+ return `
+ No backups found.
`;
+ }
+ const rows = backups.map((b) => `
+ Backup helpers unavailable.
`;
+ return;
+ }
+ const backups = await listFn();
+ host.innerHTML = renderBackupsTableRows(backups);
+ }
+
+ function confirmDeleteBackup(name) {
+ return confirmDeleteBackups([name]);
+ }
+
+ function confirmDeleteBackups(names) {
+ const list = (Array.isArray(names) ? names : []).filter(Boolean);
+ return new Promise((resolve) => {
+ if (!list.length) {
+ resolve(false);
+ return;
+ }
+ const title = list.length === 1 ? 'Delete Backup' : `Delete ${list.length} Backups`;
+ const body = list.length === 1
+ ? `
+
+
+
+
+
+
+
+ ${buildManageBackupsPanelHtml(settings)}
+
+
+ ${buildManageExportPanelHtml(canUseClipboard)}
+
+
+ ${buildManageImportPanelHtml()}
+
+
+
+ `,
+ footer: `
+