enhance(backend): notify new login (#14673)

* wip

* Update CHANGELOG.md

* wip

* fix

* Update index.d.ts

* Update SigninService.ts

* Update MkNotification.vue
This commit is contained in:
syuilo
2024-10-03 15:06:04 +09:00
committed by GitHub
parent d3e2b59f53
commit 83db116c46
13 changed files with 77 additions and 13 deletions

View File

@@ -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,

View File

@@ -50,4 +50,5 @@ export type BadgeNames =
| 'quote'
| 'repeat'
| 'user-plus'
| 'users';
| 'users'
| 'login-2';