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
|
|
@ -74,6 +74,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
// 4. Sync Syllabus
|
||||
if (btnSyncSyllabus) {
|
||||
btnSyncSyllabus.addEventListener('click', async () => {
|
||||
if (window.BeKulturPWA && window.BeKulturPWA.isOffline()) {
|
||||
showAlert('Çevrimdışı moddasınız. Senkronizasyon için internet bağlantısı gereklidir.', 'danger');
|
||||
return;
|
||||
}
|
||||
btnSyncSyllabus.disabled = true;
|
||||
btnSyncSyllabus.textContent = 'Syncing...';
|
||||
showAlert('Fetching weekly timetable across all 5 days...', 'info');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue