This commit is contained in:
ilkeral
2025-08-08 07:24:25 +03:00
parent 342f1314c7
commit f4ee7a2d0b
29 changed files with 5189 additions and 1140 deletions

View File

@ -371,7 +371,7 @@ function refreshAllHosts() {
// Tüm siteleri kontrol et
function checkAllSites() {
showToast('Tüm siteler kontrol ediliyor...', 'info');
showToast('Tüm siteler ve disk kullanımları kontrol ediliyor...', 'info');
fetch('/check-all-sites/', {
method: 'POST',
@ -383,14 +383,27 @@ function checkAllSites() {
.then(response => response.json())
.then(data => {
if (data.success) {
showToast(data.message, 'success');
// Sonuçları göster
const activeCount = data.results.filter(r => r.status).length;
const totalCount = data.results.length;
// Özet mesaj oluştur
const summaryMessage = `
<div>
<div><strong>Site Kontrolü Tamamlandı</strong></div>
<div class="mt-2">${activeCount}/${totalCount} site aktif</div>
<div class="small text-muted mt-1">Disk kullanımları güncellendi</div>
</div>
`;
showToast(summaryMessage, 'success', 5000);
setTimeout(() => location.reload(), 2000);
} else {
showToast(data.message, 'error');
}
})
.catch(error => {
showToast('Site kontrol hatası', 'error');
showToast('Site ve disk kontrolü hatası', 'error');
});
}