feat: add PWA and offline mode support with local caching and action safeguards
This commit is contained in:
parent
039b5ac483
commit
128a5f7553
15 changed files with 589 additions and 0 deletions
|
|
@ -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 || '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue