mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(notifications): add ntfy support (#1323)
* feat(notifications): add ntfy support * fix(test): update * fix: added missing semicolon
This commit is contained in:
parent
3234f0d919
commit
3dd1629a3f
10 changed files with 197 additions and 17 deletions
|
@ -197,12 +197,55 @@ function FormFieldsGotify() {
|
|||
);
|
||||
}
|
||||
|
||||
function FormFieldsNtfy() {
|
||||
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="NTFY URL"
|
||||
help="NTFY URL"
|
||||
placeholder="https://ntfy.sh/mytopic"
|
||||
required={true}
|
||||
/>
|
||||
|
||||
<TextFieldWide
|
||||
name="username"
|
||||
label="Username"
|
||||
help="Username"
|
||||
/>
|
||||
|
||||
<PasswordFieldWide
|
||||
name="password"
|
||||
label="Password"
|
||||
help="Password"
|
||||
/>
|
||||
|
||||
<PasswordFieldWide
|
||||
name="token"
|
||||
label="Access token"
|
||||
help="Access token. Use this or Usernmae+password"
|
||||
/>
|
||||
|
||||
<NumberFieldWide
|
||||
name="priority"
|
||||
label="Priority"
|
||||
help="Max 5, 4, 3 (default), 2, 1 Min"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const componentMap: componentMapType = {
|
||||
DISCORD: <FormFieldsDiscord />,
|
||||
NOTIFIARR: <FormFieldsNotifiarr />,
|
||||
TELEGRAM: <FormFieldsTelegram />,
|
||||
PUSHOVER: <FormFieldsPushover />,
|
||||
GOTIFY: <FormFieldsGotify />,
|
||||
NTFY: <FormFieldsNtfy />,
|
||||
LUNASEA: <FormFieldsLunaSea />
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue