|
|
@ -20,11 +20,14 @@ function IndexerInfoModalContent(props) {
|
|
|
|
encoding,
|
|
|
|
encoding,
|
|
|
|
language,
|
|
|
|
language,
|
|
|
|
indexerUrls,
|
|
|
|
indexerUrls,
|
|
|
|
|
|
|
|
fields,
|
|
|
|
protocol,
|
|
|
|
protocol,
|
|
|
|
capabilities,
|
|
|
|
capabilities,
|
|
|
|
onModalClose
|
|
|
|
onModalClose
|
|
|
|
} = props;
|
|
|
|
} = props;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const baseUrl = fields.find((field) => field.name === 'baseUrl')?.value ?? indexerUrls[0];
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ModalContent onModalClose={onModalClose}>
|
|
|
|
<ModalContent onModalClose={onModalClose}>
|
|
|
|
<ModalHeader>
|
|
|
|
<ModalHeader>
|
|
|
@ -57,7 +60,7 @@ function IndexerInfoModalContent(props) {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<DescriptionListItemTitle>{translate('IndexerSite')}</DescriptionListItemTitle>
|
|
|
|
<DescriptionListItemTitle>{translate('IndexerSite')}</DescriptionListItemTitle>
|
|
|
|
<DescriptionListItemDescription>
|
|
|
|
<DescriptionListItemDescription>
|
|
|
|
<Link to={indexerUrls[0]}>{indexerUrls[0]}</Link>
|
|
|
|
<Link to={baseUrl}>{baseUrl}</Link>
|
|
|
|
</DescriptionListItemDescription>
|
|
|
|
</DescriptionListItemDescription>
|
|
|
|
<DescriptionListItemTitle>{`${protocol === 'usenet' ? 'Newznab' : 'Torznab'} Url`}</DescriptionListItemTitle>
|
|
|
|
<DescriptionListItemTitle>{`${protocol === 'usenet' ? 'Newznab' : 'Torznab'} Url`}</DescriptionListItemTitle>
|
|
|
|
<DescriptionListItemDescription>
|
|
|
|
<DescriptionListItemDescription>
|
|
|
@ -114,6 +117,7 @@ IndexerInfoModalContent.propTypes = {
|
|
|
|
encoding: PropTypes.string.isRequired,
|
|
|
|
encoding: PropTypes.string.isRequired,
|
|
|
|
language: PropTypes.string.isRequired,
|
|
|
|
language: PropTypes.string.isRequired,
|
|
|
|
indexerUrls: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
|
|
indexerUrls: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
|
|
|
|
|
|
fields: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
protocol: PropTypes.string.isRequired,
|
|
|
|
protocol: PropTypes.string.isRequired,
|
|
|
|
capabilities: PropTypes.object.isRequired,
|
|
|
|
capabilities: PropTypes.object.isRequired,
|
|
|
|
onModalClose: PropTypes.func.isRequired
|
|
|
|
onModalClose: PropTypes.func.isRequired
|
|
|
|