feat(notifications): add pushover integration (#574)

* feat(notifications): add pushover integration

* refactor(pushover): group i18n translations
This commit is contained in:
Jakob Ankarhem
2021-01-05 05:19:25 +01:00
committed by GitHub
parent 67f2b57f00
commit ee5d0181fc
10 changed files with 558 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import { defineMessages, useIntl } from 'react-intl';
import DiscordLogo from '../../assets/extlogos/discord_white.svg';
import SlackLogo from '../../assets/extlogos/slack.svg';
import TelegramLogo from '../../assets/extlogos/telegram.svg';
import PushoverLogo from '../../assets/extlogos/pushover.svg';
const messages = defineMessages({
notificationsettings: 'Notification Settings',
@@ -77,6 +78,17 @@ const settingsRoutes: SettingsRoute[] = [
route: '/settings/notifications/telegram',
regex: /^\/settings\/notifications\/telegram/,
},
{
text: 'Pushover',
content: (
<span className="flex items-center">
<PushoverLogo className="h-4 mr-2" />
Pushover
</span>
),
route: '/settings/notifications/pushover',
regex: /^\/settings\/notifications\/pushover/,
},
];
const SettingsNotifications: React.FC = ({ children }) => {