Update antfarm, ashboard, dashboard +3 more (+3 ~6)
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"habits": [],
|
||||
"lastUpdated": "2026-02-10T12:39:00Z"
|
||||
}
|
||||
"habits": [
|
||||
{
|
||||
"id": "habit-test1",
|
||||
"name": "Test Habit",
|
||||
"frequency": "daily",
|
||||
"createdAt": "2026-02-01T10:00:00Z",
|
||||
"completions": [
|
||||
"2026-02-10"
|
||||
]
|
||||
}
|
||||
],
|
||||
"lastUpdated": "2026-02-10T10:00:00Z"
|
||||
}
|
||||
@@ -1600,10 +1600,34 @@
|
||||
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;
|
||||
// Actualizează detaliile
|
||||
const details = document.getElementById('anafDetails');
|
||||
let html = '';
|
||||
|
||||
// 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>
|
||||
`;
|
||||
}
|
||||
|
||||
details.innerHTML = html;
|
||||
lucide.createIcons();
|
||||
}
|
||||
|
||||
return status;
|
||||
|
||||
@@ -13,7 +13,16 @@
|
||||
"ok": false,
|
||||
"status": "MODIFICĂRI",
|
||||
"message": "1 modificări detectate",
|
||||
"lastCheck": "09 Feb 2026, 14:00",
|
||||
"changesCount": 1
|
||||
"lastCheck": "10 Feb 2026, 12:39",
|
||||
"changesCount": 1,
|
||||
"changes": [
|
||||
{
|
||||
"name": "Declarația 100 - Obligații de plată la bugetul de stat",
|
||||
"url": "https://static.anaf.ro/static/10/Anaf/Declaratii_R/100.html",
|
||||
"summary": [
|
||||
"Soft A: 09.02.2026 → 10.02.2026"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user