feat: fix HSE simper 500 error, enhance PG rejection, P2H wizard, simper renewal, QMA table UI, and nginx upload timeouts

This commit is contained in:
Ray1111-aa
2026-11-01 21:26:22 +07:00
parent bc6213d864
commit b83a8fa843
12 changed files with 1020 additions and 170 deletions
@@ -1012,6 +1012,7 @@
const xhr = new XMLHttpRequest();
xhr.open('POST', form.action, true);
xhr.timeout = 600000; // 10 Menit timeout untuk berkas backup besar
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.upload.onprogress = function(e) {
@@ -1074,6 +1075,18 @@
document.getElementById('directRestoreError').classList.remove('hidden');
};
xhr.ontimeout = function() {
loading.classList.add('hidden');
document.getElementById('directRestoreDropzoneContainer').classList.remove('hidden');
if (btn) {
btn.disabled = false;
btn.classList.remove('opacity-75', 'cursor-not-allowed');
}
if (text) text.textContent = 'Mulai Pemulihan Sistem';
document.getElementById('directRestoreErrorMessage').textContent = 'Waktu pengunggahan habis (Timeout 10 Menit). Silakan periksa kestabilan jaringan internet Anda.';
document.getElementById('directRestoreError').classList.remove('hidden');
};
xhr.send(formData);
return false;
}
@@ -1239,6 +1252,7 @@
const xhr = new XMLHttpRequest();
xhr.open('POST', `{{ route('admin.backups.converter.inspect') }}`, true);
xhr.timeout = 600000; // 10 Menit timeout
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.setRequestHeader('Accept', 'application/json');
@@ -1314,6 +1328,12 @@
showConverterError('Koneksi terputus saat mengunggah berkas.');
};
xhr.ontimeout = function() {
loading.classList.add('hidden');
document.getElementById('panelConverterUpload').classList.remove('hidden');
showConverterError('Waktu pengunggahan habis (Timeout 10 Menit). Silakan periksa kestabilan jaringan internet Anda.');
};
xhr.send(formData);
}