Notifications push (Web Push) et indicateur hors-ligne / synchro en attente
- Réglages → Notifications : interrupteur « Notifications sur cet appareil » (permission demandée au clic uniquement, iOS : explication « installe l'app », permission refusée, navigateur non compatible). Désinscription à la déconnexion. - Service worker : push-sw.js chargé via workbox.importScripts (affichage + clic qui ouvre/focalise l'app sur le bon écran via « /?open=… »). - Serveur : table push_subscriptions (RLS, anti-SSRF, 10 appareils max), déclencheur pg_net + secret dans Vault, fonction send-push (aes128gcm + VAPID ES256 en WebCrypto, testée sur le vecteur RFC 8291), regroupement des épisodes, préférences notifPrefs, ménage des abonnements expirés. - scripts/gen-vapid.mjs et supabase/PUSH_SETUP.md (étapes manuelles). - Pastille discrète hors-ligne / « N modifications en attente » (mobile au-dessus de la barre de nav, ordinateur dans la barre latérale), basée sur l'état du moteur de synchro existant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
35 files changed
+1779
No files matched your search
@@ -897,6 +897,18 @@ const dict: Translations = {
|
||||
'sync.pending_one': "변경 {count}개 대기 중",
|
||||
'sync.pending_other': "변경 {count}개 대기 중",
|
||||
'sync.now': "지금 동기화",
|
||||
// — Notifications push & indicateur hors-ligne —
|
||||
'push.device': "이 기기의 알림",
|
||||
'push.deviceHint': "앱이 닫혀 있어도 받아요. 아래 선택 사항도 적용돼요.",
|
||||
'push.iosInstall': "iPhone과 iPad에서는 먼저 AzuuCine을 홈 화면에 추가한 뒤(iOS 16.4 이상) 아이콘으로 앱을 열어 알림을 켜 주세요.",
|
||||
'push.unsupported': "이 브라우저는 푸시 알림을 지원하지 않아요.",
|
||||
'push.denied': "이 사이트의 알림이 차단되어 있어요. 브라우저 설정에서 허용한 뒤 다시 시도해 주세요.",
|
||||
'push.notReady': "서버에서 아직 푸시 알림을 사용할 수 없어요.",
|
||||
'push.error': "알림을 켜지 못했어요. 연결을 확인하고 다시 시도해 주세요.",
|
||||
'netPill.offlineSync': "오프라인 — 변경 사항은 나중에 동기화돼요",
|
||||
'netPill.offlineLocal': "오프라인 — 모든 내용이 이 기기에 저장돼 있어요",
|
||||
'netPill.synced': "동기화됨",
|
||||
'netPill.hide': "숨기기",
|
||||
}
|
||||
|
||||
export default dict
|
||||
Reference in new issue
Block a user