-
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
40 changed files
with
513 additions
and
15 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-04 09:43+0000\n" | ||
"POT-Creation-Date: 2023-09-04 12:50+0000\n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: Pod Team [email protected]\n" | ||
|
@@ -100,6 +100,14 @@ msgstr "Commentaire" | |
msgid "Picture" | ||
msgstr "Image" | ||
|
||
#: pod/authentication/models.py | ||
msgid "Accept notifications" | ||
msgstr "Accepter les notifications" | ||
|
||
#: pod/authentication/models.py | ||
msgid "Get push notifications from 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 | ||
|
@@ -4721,6 +4729,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" | ||
|
@@ -6188,6 +6200,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 "" | ||
|
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-04 13:15+0000\n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -565,6 +565,18 @@ msgstr "Chaînes" | |
msgid "Channel" | ||
msgstr "Chaîne" | ||
|
||
#: 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 "No channels found" | ||
msgstr "Aucun chaîne trouvée" | ||
|
@@ -805,6 +817,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-04 09:43+0000\n" | ||
"POT-Creation-Date: 2023-09-04 12:50+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 "Get push notifications from 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 | ||
|
@@ -3480,10 +3488,6 @@ msgstr "" | |
msgid "The video id is not valid." | ||
msgstr "" | ||
|
||
#: pod/main/admin.py pod/meeting/forms.py | ||
msgid "Advanced options" | ||
msgstr "" | ||
|
||
#: pod/main/apps.py | ||
msgid "Main configurations" | ||
msgstr "" | ||
|
@@ -4482,6 +4486,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" | ||
|
@@ -5859,6 +5867,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 "" | ||
|
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-04 13:15+0000\n" | ||
"PO-Revision-Date: 2023-02-08 15:22+0100\n" | ||
"Last-Translator: obado <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -532,6 +532,16 @@ msgstr "" | |
msgid "This folder is empty" | ||
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 +789,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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,3 +306,9 @@ | |
VIDEO_RECENT_VIEWCOUNT = 180 | ||
|
||
HONEYPOT_FIELD_NAME = "firstname" | ||
|
||
WEBPUSH_SETTINGS = { | ||
"VAPID_PUBLIC_KEY": "", | ||
"VAPID_PRIVATE_KEY": "", | ||
"VAPID_ADMIN_EMAIL": "[email protected]" | ||
} |
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.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class ProgressiveWebAppConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "pod.progressive_web_app" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.