feat: add PWA and offline mode support with local caching and action safeguards

This commit is contained in:
tyuXX 2026-10-21 20:26:24 +00:00
parent 039b5ac483
commit 128a5f7553
15 changed files with 589 additions and 0 deletions

View file

@ -123,6 +123,11 @@ document.addEventListener('DOMContentLoaded', () => {
e.preventDefault();
hideFeedback();
if (window.BeKulturPWA && window.BeKulturPWA.isOffline()) {
showFeedback('Çevrimdışı moddasınız. Yeni özel ders başvurusu yapmak için internet bağlantısı gereklidir.', 'error');
return;
}
const ogrenciDonemId = document.getElementById('ogrenciDonemId')?.value || '';
const okulId = document.getElementById('okulId')?.value || '';
const sinifId = document.getElementById('sinifId')?.value || '';