diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-10-03 15:06:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-03 15:06:04 +0900 |
| commit | 83db116c46e64ad6a9a479cbd00e96030821c1e9 (patch) | |
| tree | 3e076893b668d11bd6d3129e8eb3bd8a6fe22c8f /packages/sw/src/scripts | |
| parent | update deps (diff) | |
| download | misskey-83db116c46e64ad6a9a479cbd00e96030821c1e9.tar.gz misskey-83db116c46e64ad6a9a479cbd00e96030821c1e9.tar.bz2 misskey-83db116c46e64ad6a9a479cbd00e96030821c1e9.zip | |
enhance(backend): notify new login (#14673)
* wip
* Update CHANGELOG.md
* wip
* fix
* Update index.d.ts
* Update SigninService.ts
* Update MkNotification.vue
Diffstat (limited to 'packages/sw/src/scripts')
| -rw-r--r-- | packages/sw/src/scripts/create-notification.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 2b7dfd4f2d..364328d4b0 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -210,6 +210,12 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif tag: `achievement:${data.body.achievement}`, }]; + case 'login': + return [i18n.ts._notification.login, { + badge: iconUrl('login-2'), + data, + }]; + case 'exportCompleted': { const entityName = { antenna: i18n.ts.antennas, |