fix(backup): dynamic backup versioning and full Disaster Recovery pre-update backup (v1.6.2)
This commit is contained in:
1 parent
469112d6ee
commit
986e8e2e3c
4 files changed
+62
-22
No files matched your search
@@ -4922,7 +4922,13 @@ function renderBackups() {
|
||||
? `<span class="px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-500/20 text-emerald-300 border border-emerald-500/30">Local</span>`
|
||||
: `<span class="px-2 py-0.5 rounded-full text-[10px] font-bold bg-purple-500/20 text-purple-300 border border-purple-500/30">Distant (SSH)</span>`;
|
||||
|
||||
const versionBadge = `<span class="px-1.5 py-0.2 rounded text-[10px] font-mono font-bold bg-indigo-500/20 text-indigo-300 border border-indigo-500/30">v${escapeHtml(b.version || '1.2.0')}</span>`;
|
||||
const versionBadge = `<span class="px-1.5 py-0.2 rounded text-[10px] font-mono font-bold bg-indigo-500/20 text-indigo-300 border border-indigo-500/30">v${escapeHtml(b.version || '1.6.2')}</span>`;
|
||||
let srcBadge = '';
|
||||
if (b.source === 'pre-update') {
|
||||
srcBadge = `<span class="px-1.5 py-0.2 rounded text-[10px] font-bold bg-amber-500/20 text-amber-300 border border-amber-500/30" title="Sauvegarde automatique pré-mise à jour">Pré-MàJ</span>`;
|
||||
} else if (b.source === 'scheduled') {
|
||||
srcBadge = `<span class="px-1.5 py-0.2 rounded text-[10px] font-bold bg-cyan-500/20 text-cyan-300 border border-cyan-500/30" title="Sauvegarde planifiée automatique">Auto</span>`;
|
||||
}
|
||||
|
||||
return `
|
||||
<tr class="hover:bg-anthracite-750 transition">
|
||||
@@ -4933,6 +4939,7 @@ function renderBackups() {
|
||||
</svg>
|
||||
<span class="truncate max-w-xs sm:max-w-md">${escapeHtml(b.filename)}</span>
|
||||
${versionBadge}
|
||||
${srcBadge}
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4 py-3 text-slate-300 whitespace-nowrap">${escapeHtml(b.date_formatted)}</td>
|
||||
|
||||
Reference in new issue
Block a user