-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PWA functionality to app and notifications capabilities
Owners can set their notification preference. Notifications are sent when video encoding is complete. Co-authored-by: Éloi Rivard <[email protected]> Co-authored-by: Loan Robert <[email protected]>
- Loading branch information
Showing
38 changed files
with
546 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,13 @@ MIGRATION_MODULES = {'flatpages': 'pod.db_migrations'} | |
# pour avoir le maximum de log sur la console | ||
LOGGING = {} | ||
# PUSH NOTIFICATIONS | ||
# Les clés VAPID peuvent être générées avec https://web-push-codelab.glitch.me/ | ||
WEBPUSH_SETTINGS = { | ||
"VAPID_PUBLIC_KEY": "", | ||
"VAPID_PRIVATE_KEY": "", | ||
"VAPID_ADMIN_EMAIL": "[email protected]" | ||
} | ||
---- | ||
|
||
== Commandes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Pod\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-09-12 15:15+0000\n" | ||
"POT-Creation-Date: 2023-09-13 14:56+0000\n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: Pod Team [email protected]\n" | ||
|
@@ -100,6 +100,16 @@ msgstr "Commentaire" | |
msgid "Picture" | ||
msgstr "Image" | ||
|
||
#: pod/authentication/models.py | ||
msgid "Accept notifications" | ||
msgstr "Accepter les notifications" | ||
|
||
#: pod/authentication/models.py | ||
#, fuzzy | ||
#| msgid "Get push notifications from your devices." | ||
msgid "Receive push notifications on your devices." | ||
msgstr "Recevez des notifications push sur vos appareils" | ||
|
||
#: pod/authentication/models.py pod/live/models.py pod/meeting/models.py | ||
#: pod/podfile/models.py pod/video/admin.py pod/video/models.py | ||
#: pod/video_search/templates/search/search.html | ||
|
@@ -4729,6 +4739,10 @@ msgstr "Mes fichiers" | |
msgid "Claim a record" | ||
msgstr "Revendiquer un enregistrement" | ||
|
||
#: pod/main/templates/navbar.html pod/progressive_web_app/templates/debug.html | ||
msgid "Notifications settings" | ||
msgstr "Paramètres de notification" | ||
|
||
#: pod/main/templates/navbar.html | ||
msgid "Log out" | ||
msgstr "Déconnexion" | ||
|
@@ -6196,6 +6210,26 @@ msgstr "Vous ne pouvez pas voir ce dossier." | |
msgid "You cannot edit this file." | ||
msgstr "Vous ne pouvez pas éditer ce fichier." | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "Get application notifications" | ||
msgstr "Recevez les notifications de l'application" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "" | ||
"Get notified for specific events (when one of your video encoding is " | ||
"completed)." | ||
msgstr "" | ||
"Recevez des notifications pour des événements spécifiques (lorsque " | ||
"l'encodage d'une de vos vidéos est terminé)" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "Allow" | ||
msgstr "Autoriser" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "Deny on all devices" | ||
msgstr "Refuser sur tous les appareils" | ||
|
||
#: pod/recorder/admin.py | ||
msgid "Delete selected Recording file treatments + source files" | ||
msgstr "" | ||
|
@@ -6577,6 +6611,17 @@ msgstr "L’enregistrement a été supprimé." | |
msgid "Recorder for Studio not found." | ||
msgstr "Enregistreur studio non trouvé." | ||
|
||
#: pod/settings.py | ||
msgid "" | ||
"Podeduc is aimed at users of our institutions, by allowing the publication " | ||
"of videos in the fields of research (promotion of platforms, etc.), training " | ||
"(tutorials, distance training, student reports, etc.), institutional life " | ||
"(video of events), offering several days of content." | ||
msgstr "" | ||
"Podeduc a pour but de faciliter la mise à disposition de vidéo et de ce fait, " | ||
"d’encourager l’utilisation de celles-ci dans le cadre de l’enseignement et " | ||
"la recherche." | ||
|
||
#: pod/urls.py | ||
msgid "Pod Administration" | ||
msgstr "Administration de Pod" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Esup-Pod\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-09-01 13:56+0000\n" | ||
"POT-Creation-Date: 2023-09-13 14:56+0000\n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -557,6 +557,24 @@ msgstr "Voir plus" | |
msgid "This folder is empty" | ||
msgstr "Ce dossier est vide" | ||
|
||
#: pod/progressive_web_app/static/js/notification-toast.js | ||
#, fuzzy | ||
#| msgid "Error…" | ||
msgid "Error" | ||
msgstr "Erreur…" | ||
|
||
#: pod/progressive_web_app/static/js/notification-toast.js | ||
msgid "" | ||
"Don't forget to allow notifications from this website in your browser's " | ||
"settings!" | ||
msgstr "" | ||
"N'oubliez pas d'autoriser les notifications provenant de ce site web dans " | ||
"votre navigateur !" | ||
|
||
#: pod/progressive_web_app/static/js/notification-toast.js | ||
msgid "Error during unsubscription..." | ||
msgstr "Erreur durant la désinscription..." | ||
|
||
#: pod/video/static/js/ajax-display-channels.js | ||
msgid "Channels" | ||
msgstr "Chaînes" | ||
|
@@ -805,6 +823,10 @@ msgstr "Créer catégorie" | |
msgid "Select the general type of the video." | ||
msgstr "Sélectionnez le type général de vidéo." | ||
|
||
#: pod/video/static/js/video_edit.js | ||
msgid "Get notified when the video encoding is finished." | ||
msgstr "Recevez une notification lorsque l'encodage de la vidéo est terminé." | ||
|
||
#: pod/video/static/js/video_stats_view.js | ||
msgid "Title" | ||
msgstr "Titre" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Pod\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-09-12 15:15+0000\n" | ||
"POT-Creation-Date: 2023-09-13 14:56+0000\n" | ||
"PO-Revision-Date: 2023-06-08 14:37+0200\n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -100,6 +100,14 @@ msgstr "" | |
msgid "Picture" | ||
msgstr "" | ||
|
||
#: pod/authentication/models.py | ||
msgid "Accept notifications" | ||
msgstr "" | ||
|
||
#: pod/authentication/models.py | ||
msgid "Receive push notifications on your devices." | ||
msgstr "" | ||
|
||
#: pod/authentication/models.py pod/live/models.py pod/meeting/models.py | ||
#: pod/podfile/models.py pod/video/admin.py pod/video/models.py | ||
#: pod/video_search/templates/search/search.html | ||
|
@@ -4486,6 +4494,10 @@ msgstr "" | |
msgid "Claim a record" | ||
msgstr "" | ||
|
||
#: pod/main/templates/navbar.html pod/progressive_web_app/templates/debug.html | ||
msgid "Notifications settings" | ||
msgstr "" | ||
|
||
#: pod/main/templates/navbar.html | ||
msgid "Log out" | ||
msgstr "Uitloggen" | ||
|
@@ -5863,6 +5875,24 @@ msgstr "" | |
msgid "You cannot edit this file." | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "Get application notifications" | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "" | ||
"Get notified for specific events (when one of your video encoding is " | ||
"completed)." | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "Allow" | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/templates/notification_toast.html | ||
msgid "Deny on all devices" | ||
msgstr "" | ||
|
||
#: pod/recorder/admin.py | ||
msgid "Delete selected Recording file treatments + source files" | ||
msgstr "" | ||
|
@@ -6210,6 +6240,14 @@ msgstr "" | |
msgid "Recorder for Studio not found." | ||
msgstr "" | ||
|
||
#: pod/settings.py | ||
msgid "" | ||
"Podeduc is aimed at users of our institutions, by allowing the publication " | ||
"of videos in the fields of research (promotion of platforms, etc.), training " | ||
"(tutorials, distance training, student reports, etc.), institutional life " | ||
"(video of events), offering several days of content." | ||
msgstr "" | ||
|
||
#: pod/urls.py | ||
msgid "Pod Administration" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Esup-Pod\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-09-01 13:56+0000\n" | ||
"POT-Creation-Date: 2023-09-13 14:56+0000\n" | ||
"PO-Revision-Date: 2023-02-08 15:22+0100\n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -532,6 +532,20 @@ msgstr "" | |
msgid "This folder is empty" | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/static/js/notification-toast.js | ||
msgid "Error" | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/static/js/notification-toast.js | ||
msgid "" | ||
"Don't forget to allow notifications from this website in your browser's " | ||
"settings!" | ||
msgstr "" | ||
|
||
#: pod/progressive_web_app/static/js/notification-toast.js | ||
msgid "Error during unsubscription..." | ||
msgstr "" | ||
|
||
#: pod/video/static/js/ajax-display-channels.js | ||
msgid "Channels" | ||
msgstr "" | ||
|
@@ -779,6 +793,10 @@ msgstr "" | |
msgid "Select the general type of the video." | ||
msgstr "" | ||
|
||
#: pod/video/static/js/video_edit.js | ||
msgid "Get notified when the video encoding is finished." | ||
msgstr "" | ||
|
||
#: pod/video/static/js/video_stats_view.js | ||
msgid "Title" | ||
msgstr "Titel" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1714,6 +1714,28 @@ | |
"fr": "Configuration application podfile" | ||
} | ||
}, | ||
"progressive_web_app": { | ||
"description": {}, | ||
"settings": { | ||
"WEBPUSH_SETTINGS": { | ||
"default_value": "```python\n{\n 'VAPID_PUBLIC_KEY': '',\n 'VAPID_PRIVATE_KEY': '',\n 'VAPID_ADMIN_EMAIL': '[email protected]'\n}\n```", | ||
"description": { | ||
"en": [ | ||
"" | ||
], | ||
"fr": [ | ||
"Les clés VAPID sont nécessaires à la lib [django-webpush](https://github.com/safwanrahman/django-webpush). Elles peuvent être générées avec [https://web-push-codelab.glitch.me/]()" | ||
] | ||
}, | ||
"pod_version_end": "", | ||
"pod_version_init": "" | ||
} | ||
}, | ||
"title": { | ||
"en": "", | ||
"fr": "Configuration application progressive_web_app" | ||
} | ||
}, | ||
"recorder": { | ||
"description": {}, | ||
"settings": { | ||
|
@@ -4965,4 +4987,4 @@ | |
} | ||
} | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.