feat(notifications): add ntfy support (#1323)

* feat(notifications): add ntfy support

* fix(test): update

* fix: added missing semicolon
This commit is contained in:
ze0s 2023-12-30 13:49:06 +01:00 committed by GitHub
parent 3234f0d919
commit 3dd1629a3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 197 additions and 17 deletions

View file

@ -15,7 +15,7 @@ import toast from "react-hot-toast";
import { Section } from "./_components";
import { PlusIcon } from "@heroicons/react/24/solid";
import { Checkbox } from "@components/Checkbox";
import { DiscordIcon, GotifyIcon, LunaSeaIcon, NotifiarrIcon, PushoverIcon, TelegramIcon } from "./_components";
import { DiscordIcon, GotifyIcon, LunaSeaIcon, NotifiarrIcon, NtfyIcon, PushoverIcon, TelegramIcon } from "./_components";
export const notificationKeys = {
all: ["notifications"] as const,
@ -76,6 +76,7 @@ const iconComponentMap: componentMapType = {
TELEGRAM: <span className={iconStyle}><TelegramIcon /> Telegram</span>,
PUSHOVER: <span className={iconStyle}><PushoverIcon /> Pushover</span>,
GOTIFY: <span className={iconStyle}><GotifyIcon /> Gotify</span>,
NTFY: <span className={iconStyle}><NtfyIcon /> ntfy</span>,
LUNASEA: <span className={iconStyle}><LunaSeaIcon /> LunaSea</span>
};