feat(notifications): Webhook Notifications (#632)

This commit is contained in:
sct
2021-01-12 18:28:42 +09:00
committed by GitHub
parent 1aa0005b42
commit a7cc7c5975
14 changed files with 928 additions and 191 deletions

View File

@@ -6,6 +6,7 @@ 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';
import Bolt from '../../assets/bolt.svg';
const messages = defineMessages({
notificationsettings: 'Notification Settings',
@@ -89,6 +90,17 @@ const settingsRoutes: SettingsRoute[] = [
route: '/settings/notifications/pushover',
regex: /^\/settings\/notifications\/pushover/,
},
{
text: 'Webhook',
content: (
<span className="flex items-center">
<Bolt className="h-4 mr-2" />
Webhook
</span>
),
route: '/settings/notifications/webhook',
regex: /^\/settings\/notifications\/webhook/,
},
];
const SettingsNotifications: React.FC = ({ children }) => {