Update dashboard, memory, tools (~3)
This commit is contained in:
@@ -1071,10 +1071,6 @@
|
||||
<i data-lucide="file-text"></i>
|
||||
<span>KB</span>
|
||||
</a>
|
||||
<a href="/echo/habits.html" class="nav-item">
|
||||
<i data-lucide="dumbbell"></i>
|
||||
<span>Habits</span>
|
||||
</a>
|
||||
<a href="/echo/files.html" class="nav-item">
|
||||
<i data-lucide="folder"></i>
|
||||
<span>Files</span>
|
||||
@@ -1604,26 +1600,34 @@
|
||||
const msg = status.anaf.ok !== false ? 'Nicio modificare' : (status.anaf.message || 'Modificări!');
|
||||
subtitle.textContent = `${msg} · ${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>';
|
||||
// Actualizează detaliile
|
||||
const details = document.getElementById('anafDetails');
|
||||
let html = '';
|
||||
|
||||
// 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>';
|
||||
// Adaugă detaliile modificărilor dacă există
|
||||
if (status.anaf.changes && status.anaf.changes.length > 0) {
|
||||
status.anaf.changes.forEach(change => {
|
||||
const summaryText = change.summary && change.summary.length > 0
|
||||
? ' - ' + change.summary.join(', ')
|
||||
: '';
|
||||
html += `
|
||||
<div class="status-detail-item uncommitted">
|
||||
<i data-lucide="alert-circle"></i>
|
||||
<span><a href="${change.url}" target="_blank" style="color:var(--warning)">${change.name}</a>${summaryText}</span>
|
||||
</div>
|
||||
`;
|
||||
});
|
||||
} else {
|
||||
html = `
|
||||
<div class="status-detail-item">
|
||||
<i data-lucide="check-circle"></i>
|
||||
<span>Toate paginile sunt la zi</span>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
detailsDiv.innerHTML = html;
|
||||
lucide.createIcons(); // Reinitializează icon-urile
|
||||
details.innerHTML = html;
|
||||
lucide.createIcons();
|
||||
}
|
||||
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user