mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00

* feat(notifications): adds gotify notifications adds new settings screen for gotify notifications including url, token and types settings fix #2183 * feat(notif): add Gotify agent addresses PR comments, runs i18n:extract fix #2183 * reword validationTokenRequired change wording to indicate presence, not validity Co-authored-by: TheCatLady <52870424+TheCatLady@users.noreply.github.com> * feat(notifications): gotify notifications fix applies changes from #2077 in which Yup validation was failing for types fix #2183 * feat(notifications): adds gotify notifications adds new settings screen for gotify notifications including url, token and types settings fix #2183 * feat(notif): add Gotify agent addresses PR comments, runs i18n:extract fix #2183 * reword validationTokenRequired change wording to indicate presence, not validity Co-authored-by: TheCatLady <52870424+TheCatLady@users.noreply.github.com> * feat(notifications): gotify notifications fix applies changes from #2077 in which Yup validation was failing for types fix #2183 * feat(notifications): incorporate issue feature into gotify notifications * feat(notifications): adds gotify notifications adds new settings screen for gotify notifications including url, token and types settings fix #2183 * feat(notif): add Gotify agent addresses PR comments, runs i18n:extract fix #2183 * reword validationTokenRequired change wording to indicate presence, not validity Co-authored-by: TheCatLady <52870424+TheCatLady@users.noreply.github.com> * feat: add missing ts field include notifyAdmin in test notification endpoint * feat: apply formatting/line break items add addition line break before conditional, change ordering of notifyAdmin/notifyUser in test endpoint * feat: remove duplicated endpoints during rebase, notification endpoints were duplicated upon rebasing. remove duplicate routes * feat: correct linting quirks * feat: formatting improvements * feat(gotify): refactor axios post to leverage 'getNotificationPayload' Co-authored-by: TheCatLady <52870424+TheCatLady@users.noreply.github.com>
21 lines
711 B
TypeScript
21 lines
711 B
TypeScript
import { NextPage } from 'next';
|
|
import React from 'react';
|
|
import NotificationsGotify from '../../../components/Settings/Notifications/NotificationsGotify';
|
|
import SettingsLayout from '../../../components/Settings/SettingsLayout';
|
|
import SettingsNotifications from '../../../components/Settings/SettingsNotifications';
|
|
import useRouteGuard from '../../../hooks/useRouteGuard';
|
|
import { Permission } from '../../../hooks/useUser';
|
|
|
|
const NotificationsPage: NextPage = () => {
|
|
useRouteGuard(Permission.MANAGE_SETTINGS);
|
|
return (
|
|
<SettingsLayout>
|
|
<SettingsNotifications>
|
|
<NotificationsGotify />
|
|
</SettingsNotifications>
|
|
</SettingsLayout>
|
|
);
|
|
};
|
|
|
|
export default NotificationsPage;
|