nimbleghost
03aa67ed68
Remove `webPushDefaultEnabled`
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
4944e3ae4b
Remove webPushEndpoint from indexeddb
...
Rely directly on getting it from the browser
2023-06-07 20:38:21 +02:00
nimbleghost
7aa3d8f59b
Hide web push toggles if disabled on server
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
e8139ad655
Move web-push-config endpoint to config.js
2023-06-07 20:38:21 +02:00
nimbleghost
a9fef387fa
Add web push tests
2023-06-07 20:38:21 +02:00
nimbleghost
ff5c854192
Add PWA, service worker and Web Push
...
- Use new notification request/opt-in flow for push
- Implement unsubscribing
- Implement muting
- Implement emojis in title
- Add iOS specific PWA warning
- Don’t use websockets when web push is enabled
- Fix duplicate notifications
- Implement default web push setting
- Implement changing subscription type
- Implement web push subscription refresh
- Implement web push notification click
2023-06-07 20:38:20 +02:00
binwiederhier
733ef4664b
Deps
2023-06-07 13:24:41 -04:00
binwiederhier
e89c62174d
Merge branch 'main' of github.com:binwiederhier/ntfy
2023-06-07 13:24:26 -04:00
binwiederhier
78e437057c
Update deps
2023-06-07 13:24:15 -04:00
binwiederhier
7cdd86c99f
Merge branch 'main' of https://hosted.weblate.org/git/ntfy/web
2023-06-07 13:22:19 -04:00
Shoshin Akamine
2b2753be21
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (382 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/ja/
2023-06-06 09:51:44 +02:00
dependabot[bot]
fe3db1375a
Bump vite from 4.3.8 to 4.3.9 in /web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 4.3.8 to 4.3.9.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v4.3.9/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 02:43:04 +00:00
JULIANE LEITE
2e9eff69d7
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 50.2% (192 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/pt_BR/
2023-06-04 03:51:46 +02:00
binwiederhier
44d189179d
Merge branch 'main' of github.com:binwiederhier/ntfy
2023-05-31 15:36:21 -04:00
nimbleghost
453bf435b0
Fix account sync race condition
2023-05-31 19:37:29 +02:00
arjan-s
ca25b80bfb
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (382 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/nl/
2023-05-31 09:52:20 +02:00
Shjosan
afb585e6fd
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (382 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/sv/
2023-05-29 00:51:22 +02:00
Andrew
2e7f474775
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (382 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/uk/
2023-05-29 00:51:21 +02:00
gallegonovato
bd39072596
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (382 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/es/
2023-05-29 00:51:20 +02:00
iTentalce
578ccf1643
Translated using Weblate (Czech)
...
Currently translated at 96.0% (367 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/cs/
2023-05-27 00:51:08 +02:00
Linerly
217c660ba0
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (382 of 382 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/id/
2023-05-27 00:51:08 +02:00
Kalil Maciel
02524ca101
Translated using Weblate (Portuguese)
...
Currently translated at 59.8% (228 of 381 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/pt/
2023-05-25 15:24:44 +02:00
Rogelio Dominguez
38bd4f3ce3
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (381 of 381 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/es/
2023-05-25 15:24:44 +02:00
nimbleghost
da17e4ee8a
Make small code style improvements
2023-05-25 07:17:05 +02:00
nimbleghost
d178be7576
Fix param reassignment issue
2023-05-25 07:17:05 +02:00
nimbleghost
4d90e32fe9
Use es6 destructuring swap for shuffling
2023-05-25 07:17:05 +02:00
nimbleghost
9056d68fc9
Make async for loops performant using Promise.all
2023-05-25 07:17:05 +02:00
binwiederhier
c50633d990
Deps
2023-05-24 22:18:10 -04:00
binwiederhier
517341b5d7
Re-add @emotion due to build errors
2023-05-24 22:15:46 -04:00
binwiederhier
a90bd4cd06
Formatting, npm update
2023-05-24 21:44:12 -04:00
binwiederhier
d1e59fe08c
Merge branch 'main' into switch-to-vite
2023-05-24 21:37:28 -04:00
binwiederhier
b7c121e78e
Revert inputProps things
2023-05-24 21:32:15 -04:00
binwiederhier
1251a4adab
Merge branch 'main' into add-eslint
2023-05-24 21:31:53 -04:00
binwiederhier
4cacc02520
Merge branch 'main' of https://hosted.weblate.org/git/ntfy/web
2023-05-24 20:37:47 -04:00
nimbleghost
d625a003b8
Use esm mui imports for Vite compatibility
...
See: https://github.com/mui/material-ui/issues/31835#issuecomment-1153393901
2023-05-24 22:16:10 +02:00
nimbleghost
e21327cec5
Add vite
...
Changes according to Vite defaults:
- Move index.html to root
- Replace `%PUBLIC_URL%` with plain `/`
2023-05-24 22:16:10 +02:00
nimbleghost
7ccc5be9b4
Fix jsx key issue
2023-05-24 21:10:09 +02:00
nimbleghost
9ebeb7f12f
Fix mui inputProps
2023-05-24 21:08:33 +02:00
Andrew
d3be1fa359
Translated using Weblate (Ukrainian)
...
Currently translated at 92.9% (354 of 381 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/uk/
2023-05-24 16:49:12 +02:00
Enzo Salson
e3d530cb90
Translated using Weblate (French)
...
Currently translated at 97.3% (371 of 381 strings)
Translation: ntfy/Web app
Translate-URL: https://hosted.weblate.org/projects/ntfy/web/fr/
2023-05-24 16:49:11 +02:00
nimbleghost
59011c8a32
Make manual eslint fixes
...
These are safe fixes, more complicated fixes can be done separately
(just disabled those errors for now).
- Reorder declarations to fix `no-use-before-define`
- Rename parameters for `no-shadow`
- Remove unused parameters, functions, imports
- Switch from `++` and `—` to `+= 1` and `-= 1` for `no-unary`
- Use object spreading instead of parameter reassignment in auth utils
- Use `window.location` instead of `location` global
- Use inline JSX strings instead of unescaped values
-
2023-05-24 12:58:48 +02:00
nimbleghost
8319f1cf26
Run eslint autofixes
2023-05-24 12:51:53 +02:00
nimbleghost
f558b4dbe9
Add `.jsx` filename extension
...
(This is also required for Vite later)
2023-05-24 12:51:53 +02:00
nimbleghost
d7eb1206fe
Add eslint with eslint-config-airbnb
2023-05-24 12:51:52 +02:00
binwiederhier
c87549e71a
Width, again
2023-05-23 20:16:29 -04:00
binwiederhier
ca5d736a71
Line width
2023-05-23 19:29:47 -04:00
nimbleghost
6f6a2d1f69
Run prettier
2023-05-23 21:13:17 +02:00