Update ashboard, tools (~2)

This commit is contained in:
Echo
2026-02-11 16:17:19 +00:00
parent a74d4bbc21
commit 3adc7751ae
2 changed files with 34 additions and 6 deletions

View File

@@ -1604,10 +1604,26 @@
const msg = status.anaf.ok !== false ? 'Nicio modificare' : (status.anaf.message || 'Modificări!');
subtitle.textContent = `${msg} · ${lastCheck}`;
if (status.anaf.lastCheck) {
document.getElementById('anafLastCheck').textContent =
'Ultima verificare: ' + status.anaf.lastCheck;
// Construiește detaliile
const detailsDiv = document.getElementById('anafDetails');
let html = '<div class="status-detail-item"><i data-lucide="clock"></i><span>Ultima verificare: ' +
(status.anaf.lastCheck || '-') + '</span></div>';
// Adaugă modificările dacă există
if (status.anaf.details && status.anaf.details.length > 0) {
status.anaf.details.forEach(detail => {
html += '<div class="status-detail-item" style="flex-direction: column; align-items: flex-start; padding: 12px 16px; background: rgba(234, 179, 8, 0.1); border-radius: 8px; margin-top: 8px;">';
html += '<div style="font-weight: 600; color: var(--text-primary); margin-bottom: 4px;">' + detail.name + '</div>';
detail.changes.forEach(change => {
html += '<div style="font-size: 13px; color: var(--text-secondary); margin-left: 16px;">• ' + change + '</div>';
});
html += '<a href="' + detail.url + '" target="_blank" style="font-size: 12px; color: #3b82f6; margin-top: 4px; text-decoration: none;">Vezi pagina →</a>';
html += '</div>';
});
}
detailsDiv.innerHTML = html;
lucide.createIcons(); // Reinitializează icon-urile
}
return status;