mirror of
https://github.com/docmost/docmost.git
synced 2026-08-29 18:14:58 +08:00
feat(webhooks): backend module, dispatcher, processor, controller
This commit is contained in:
+1
-1
Submodule apps/server/src/ee updated: 0e782be55d...5c4c9e9bf3
@@ -0,0 +1,38 @@
|
|||||||
|
import { Section, Text } from 'react-email';
|
||||||
|
import * as React from 'react';
|
||||||
|
import { content, paragraph } from '../css/styles';
|
||||||
|
import { EmailButton, MailBody, getGreetingName } from '../partials/partials';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
recipientName?: string;
|
||||||
|
webhookName: string;
|
||||||
|
webhookUrl: string;
|
||||||
|
settingsUrl: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const WebhookDisabledEmail = ({
|
||||||
|
recipientName,
|
||||||
|
webhookName,
|
||||||
|
webhookUrl,
|
||||||
|
settingsUrl,
|
||||||
|
}: Props) => {
|
||||||
|
return (
|
||||||
|
<MailBody>
|
||||||
|
<Section style={content}>
|
||||||
|
<Text style={paragraph}>Hi {getGreetingName(recipientName)},</Text>
|
||||||
|
<Text style={paragraph}>
|
||||||
|
Your webhook <strong>{webhookName}</strong> to{' '}
|
||||||
|
<strong>{webhookUrl}</strong> has been disabled after too many
|
||||||
|
consecutive delivery failures.
|
||||||
|
</Text>
|
||||||
|
<Text style={paragraph}>
|
||||||
|
Re-enable it in your workspace settings once the receiving endpoint
|
||||||
|
is healthy again.
|
||||||
|
</Text>
|
||||||
|
</Section>
|
||||||
|
<EmailButton href={settingsUrl}>Open webhook settings</EmailButton>
|
||||||
|
</MailBody>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default WebhookDisabledEmail;
|
||||||
Reference in New Issue
Block a user