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