binwiederhier
2d0c043dfd
Derp
2023-06-12 21:03:49 -04:00
binwiederhier
a8def0aed2
Make allowed endpoints a list of patterns
2023-06-12 21:01:43 -04:00
binwiederhier
58992fc795
Make DELETE endpoint, add different UI description
2023-06-10 21:09:01 -04:00
binwiederhier
1abcc88fce
Add subscription_topic table, change updated_at type to INT, split expire function
2023-06-09 23:17:48 -04:00
nimbleghost
4704b2a0e4
Set default TTL for web push to the cache duration
2023-06-09 11:32:44 +02:00
binwiederhier
966ffe1669
More refactor
2023-06-08 23:09:38 -04:00
binwiederhier
9d38aeb863
Docs in server.yml, schemaVersion table, refactoring
2023-06-08 21:45:52 -04:00
binwiederhier
d3ac976d05
Remove web-push-(enabled|duration*), change endpoint, other cosmetic changes
2023-06-08 14:30:19 -04:00
binwiederhier
75a4b5bd88
Small refactor
2023-06-08 12:20:12 -04:00
nimbleghost
46f34ca1e3
Add push service allowlist and topic limit
2023-06-07 21:09:13 +02:00
nimbleghost
0f0074cbab
Implement push subscription expiry
2023-06-07 21:09:13 +02:00
nimbleghost
47ad024ec7
Simplify web push UX and updates
...
- Use a single endpoint
- Use a declarative web push sync hook. This thus handles all edge cases
that had to be manually handled before: logout, login, account sync,
etc.
- Simplify UX: browser notifications are always enabled (unless denied),
web push toggle only shows up if permissions are already granted.
2023-06-07 20:38:21 +02:00
nimbleghost
0c25425346
Use readJSONWithLimit for web push sub/unsub
2023-06-07 20:38:21 +02:00
nimbleghost
4648f83669
Format emojis in the service worker directly
2023-06-07 20:38:21 +02:00
binwiederhier
9e0687e142
Random tiny changes
2023-06-07 20:38:21 +02:00
binwiederhier
7f3e4b5f47
Move stuff to server_web_push.go
2023-06-07 20:38:21 +02:00