feat(notifications): add Shoutrrr support (#1326)

This commit is contained in:
ze0s 2023-12-30 16:34:25 +01:00 committed by GitHub
parent 3dd1629a3f
commit 57a91bb99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 149 additions and 31 deletions

View file

@ -239,6 +239,34 @@ function FormFieldsNtfy() {
);
}
function FormFieldsShoutrrr() {
return (
<div className="border-t border-gray-200 dark:border-gray-700 py-4">
<div className="px-4 space-y-1">
<Dialog.Title className="text-lg font-medium text-gray-900 dark:text-white">Settings</Dialog.Title>
</div>
<TextFieldWide
name="host"
label="URL"
help="URL"
tooltip={
<div><p>See full documentation </p>
<ExternalLink
href="https://containrrr.dev/shoutrrr/services/overview/"
className="font-medium text-blue-500 underline underline-offset-1 hover:text-blue-400"
>
Services
</ExternalLink>
</div>
}
placeholder="smtp://username:password@host:port/?from=fromAddress&to=recipient1"
required={true}
/>
</div>
);
}
const componentMap: componentMapType = {
DISCORD: <FormFieldsDiscord />,
NOTIFIARR: <FormFieldsNotifiarr />,
@ -246,6 +274,7 @@ const componentMap: componentMapType = {
PUSHOVER: <FormFieldsPushover />,
GOTIFY: <FormFieldsGotify />,
NTFY: <FormFieldsNtfy />,
SHOUTRRR: <FormFieldsShoutrrr />,
LUNASEA: <FormFieldsLunaSea />
};