mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-06 13:49:59 -05:00
Compare commits
1 Commits
sync-updat
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9437ff9498 |
@@ -1,18 +1,14 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import Label from 'Components/Label';
|
||||
import Button from 'Components/Link/Button';
|
||||
import Link from 'Components/Link/Link';
|
||||
import Menu from 'Components/Menu/Menu';
|
||||
import MenuContent from 'Components/Menu/MenuContent';
|
||||
import { kinds, sizes } from 'Helpers/Props';
|
||||
import { sizes } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import AddApplicationPresetMenuItem from './AddApplicationPresetMenuItem';
|
||||
import styles from './AddApplicationItem.css';
|
||||
|
||||
const DEPRECATED_APPLICATIONS = ['Readarr'];
|
||||
const OBSOLETE_APPLICATIONS = [];
|
||||
|
||||
class AddApplicationItem extends Component {
|
||||
|
||||
//
|
||||
@@ -40,8 +36,6 @@ class AddApplicationItem extends Component {
|
||||
} = this.props;
|
||||
|
||||
const hasPresets = !!presets && !!presets.length;
|
||||
const isDeprecated = DEPRECATED_APPLICATIONS.includes(implementation);
|
||||
const isObsolete = OBSOLETE_APPLICATIONS.includes(implementation);
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -55,24 +49,6 @@ class AddApplicationItem extends Component {
|
||||
<div className={styles.overlay}>
|
||||
<div className={styles.name}>
|
||||
{implementationName}
|
||||
{
|
||||
isDeprecated &&
|
||||
<Label
|
||||
kind={kinds.WARNING}
|
||||
title={translate('DeprecatedApplicationMessage', { applicationName: implementationName })}
|
||||
>
|
||||
{translate('Deprecated')}
|
||||
</Label>
|
||||
}
|
||||
{
|
||||
isObsolete &&
|
||||
<Label
|
||||
kind={kinds.DANGER}
|
||||
title={translate('ObsoleteApplicationMessage', { applicationName: implementationName })}
|
||||
>
|
||||
{translate('Obsolete')}
|
||||
</Label>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div className={styles.actions}>
|
||||
|
||||
@@ -10,9 +10,6 @@ import translate from 'Utilities/String/translate';
|
||||
import EditApplicationModalConnector from './EditApplicationModalConnector';
|
||||
import styles from './Application.css';
|
||||
|
||||
const DEPRECATED_APPLICATIONS = ['Readarr'];
|
||||
const OBSOLETE_APPLICATIONS = [];
|
||||
|
||||
class Application extends Component {
|
||||
|
||||
//
|
||||
@@ -64,13 +61,10 @@ class Application extends Component {
|
||||
syncLevel,
|
||||
fields,
|
||||
tags,
|
||||
tagList,
|
||||
implementation
|
||||
tagList
|
||||
} = this.props;
|
||||
|
||||
const applicationUrl = fields.find((field) => field.name === 'baseUrl')?.value;
|
||||
const isDeprecated = DEPRECATED_APPLICATIONS.includes(implementation);
|
||||
const isObsolete = OBSOLETE_APPLICATIONS.includes(implementation);
|
||||
|
||||
return (
|
||||
<Card
|
||||
@@ -94,26 +88,6 @@ class Application extends Component {
|
||||
}
|
||||
</div>
|
||||
|
||||
{
|
||||
isDeprecated &&
|
||||
<Label
|
||||
kind={kinds.WARNING}
|
||||
title={translate('DeprecatedApplicationMessage', { applicationName: implementation })}
|
||||
>
|
||||
{translate('Deprecated')}
|
||||
</Label>
|
||||
}
|
||||
|
||||
{
|
||||
isObsolete &&
|
||||
<Label
|
||||
kind={kinds.DANGER}
|
||||
title={translate('ObsoleteApplicationMessage', { applicationName: implementation })}
|
||||
>
|
||||
{translate('Obsolete')}
|
||||
</Label>
|
||||
}
|
||||
|
||||
{
|
||||
syncLevel === 'addOnly' &&
|
||||
<Label kind={kinds.WARNING}>
|
||||
@@ -167,7 +141,6 @@ class Application extends Component {
|
||||
Application.propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
name: PropTypes.string.isRequired,
|
||||
implementation: PropTypes.string.isRequired,
|
||||
enable: PropTypes.bool.isRequired,
|
||||
syncLevel: PropTypes.string.isRequired,
|
||||
fields: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
|
||||
@@ -39,9 +39,6 @@ const syncLevelOptions = [
|
||||
}
|
||||
];
|
||||
|
||||
const DEPRECATED_APPLICATIONS = ['Readarr'];
|
||||
const OBSOLETE_APPLICATIONS = [];
|
||||
|
||||
function EditApplicationModalContent(props) {
|
||||
const {
|
||||
advancedSettings,
|
||||
@@ -63,7 +60,6 @@ function EditApplicationModalContent(props) {
|
||||
|
||||
const {
|
||||
id,
|
||||
implementation,
|
||||
implementationName,
|
||||
name,
|
||||
syncLevel,
|
||||
@@ -72,9 +68,6 @@ function EditApplicationModalContent(props) {
|
||||
message
|
||||
} = item;
|
||||
|
||||
const isDeprecated = DEPRECATED_APPLICATIONS.includes(implementation);
|
||||
const isObsolete = OBSOLETE_APPLICATIONS.includes(implementation);
|
||||
|
||||
return (
|
||||
<ModalContent onModalClose={onModalClose}>
|
||||
<ModalHeader>
|
||||
@@ -97,28 +90,6 @@ function EditApplicationModalContent(props) {
|
||||
{
|
||||
!isFetching && !error &&
|
||||
<Form {...otherProps}>
|
||||
{
|
||||
isDeprecated &&
|
||||
<Alert
|
||||
className={styles.message}
|
||||
kind={kinds.WARNING}
|
||||
>
|
||||
<div>{translate('DeprecatedApplicationTitle', { applicationName: implementationName })}</div>
|
||||
<div>{translate('DeprecatedApplicationMessage', { applicationName: implementationName })}</div>
|
||||
</Alert>
|
||||
}
|
||||
|
||||
{
|
||||
isObsolete &&
|
||||
<Alert
|
||||
className={styles.message}
|
||||
kind={kinds.DANGER}
|
||||
>
|
||||
<div>{translate('ObsoleteApplicationTitle', { applicationName: implementationName })}</div>
|
||||
<div>{translate('ObsoleteApplicationMessage', { applicationName: implementationName })}</div>
|
||||
</Alert>
|
||||
}
|
||||
|
||||
{
|
||||
!!message &&
|
||||
<Alert
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace NzbDrone.Core.Applications.Lidarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace NzbDrone.Core.Applications.Radarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ using NzbDrone.Core.Indexers;
|
||||
|
||||
namespace NzbDrone.Core.Applications.Readarr
|
||||
{
|
||||
[Obsolete("Readarr is deprecated and will be removed in a future version")]
|
||||
public class Readarr : ApplicationBase<ReadarrSettings>
|
||||
{
|
||||
public override string Name => "Readarr";
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace NzbDrone.Core.Applications.Readarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace NzbDrone.Core.Applications.Sonarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace NzbDrone.Core.Applications.Whisparr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -538,12 +538,6 @@
|
||||
"NotificationsTelegramSettingsIncludeAppName": "Include {appName} in Title",
|
||||
"NotificationsTelegramSettingsIncludeAppNameHelpText": "Optionally prefix message title with {appName} to differentiate notifications from different applications",
|
||||
"OAuthPopupMessage": "Pop-ups are being blocked by your browser",
|
||||
"Obsolete": "Obsolete",
|
||||
"ObsoleteApplicationMessage": "{applicationName} is obsolete and has been removed",
|
||||
"ObsoleteApplicationTitle": "{applicationName} is Obsolete",
|
||||
"Deprecated": "Deprecated",
|
||||
"DeprecatedApplicationMessage": "{applicationName} is deprecated and will be removed in a future version",
|
||||
"DeprecatedApplicationTitle": "{applicationName} is Deprecated",
|
||||
"Ok": "Ok",
|
||||
"OnApplicationUpdate": "On Application Update",
|
||||
"OnApplicationUpdateHelpText": "On Application Update",
|
||||
|
||||
@@ -64,6 +64,8 @@ namespace NzbDrone.Host
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("10.0.0.0"), 8));
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("172.16.0.0"), 12));
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("192.168.0.0"), 16));
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("fc00::"), 7));
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("fe80::"), 10));
|
||||
});
|
||||
|
||||
services.AddRouting(options => options.LowercaseUrls = true);
|
||||
|
||||
Reference in New Issue
Block a user