feat(ntfy): add native ntfy notification support (#1599)

* feat(ntfy): add native ntfy notification

fix #499

* feat(ntfy): update translation keys

* feat(ntfy): append ntfy to cypress settings

* feat(ntfy): adjust ntfy agent shouldSend

* feat(ntfy): simplify ntfy post routes

* feat(ntfy): refactor ntfy agent from fetch to axios

* feat(ntfy): refactor ntfy frontend from fetch to axios
This commit is contained in:
Schrottfresser
2025-05-06 19:30:32 +02:00
committed by GitHub
parent 48dea32bd0
commit fc4db7fa00
11 changed files with 717 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import NotificationsNtfy from '@app/components/Settings/Notifications/NotificationsNtfy';
import SettingsLayout from '@app/components/Settings/SettingsLayout';
import SettingsNotifications from '@app/components/Settings/SettingsNotifications';
import useRouteGuard from '@app/hooks/useRouteGuard';
import { Permission } from '@app/hooks/useUser';
import type { NextPage } from 'next';
const NotificationsPage: NextPage = () => {
useRouteGuard(Permission.ADMIN);
return (
<SettingsLayout>
<SettingsNotifications>
<NotificationsNtfy />
</SettingsNotifications>
</SettingsLayout>
);
};
export default NotificationsPage;