mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-11 17:16:50 -05:00
feat: PWA Support (#1488)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AtSymbolIcon } from '@heroicons/react/outline';
|
||||
import { LightningBoltIcon } from '@heroicons/react/solid';
|
||||
import { CloudIcon, LightningBoltIcon } from '@heroicons/react/solid';
|
||||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import DiscordLogo from '../../assets/extlogos/discord.svg';
|
||||
@@ -18,6 +18,7 @@ const messages = defineMessages({
|
||||
'Configure and enable notification agents.',
|
||||
email: 'Email',
|
||||
webhook: 'Webhook',
|
||||
webpush: 'Web Push',
|
||||
});
|
||||
|
||||
const SettingsNotifications: React.FC = ({ children }) => {
|
||||
@@ -90,6 +91,17 @@ const SettingsNotifications: React.FC = ({ children }) => {
|
||||
route: '/settings/notifications/telegram',
|
||||
regex: /^\/settings\/notifications\/telegram/,
|
||||
},
|
||||
{
|
||||
text: intl.formatMessage(messages.webpush),
|
||||
content: (
|
||||
<span className="flex items-center">
|
||||
<CloudIcon className="h-4 mr-2" />
|
||||
{intl.formatMessage(messages.webpush)}
|
||||
</span>
|
||||
),
|
||||
route: '/settings/notifications/webpush',
|
||||
regex: /^\/settings\/notifications\/webpush/,
|
||||
},
|
||||
{
|
||||
text: intl.formatMessage(messages.webhook),
|
||||
content: (
|
||||
|
||||
Reference in New Issue
Block a user