From 0b0bebf3aacb859b3adc6d441bd26b76bea26d61 Mon Sep 17 00:00:00 2001 From: PearsonFlyer Date: Tue, 13 Jul 2021 16:05:10 -0400 Subject: [PATCH] Fixed: Improved root folder setup page (cherry picked from commit eb4f55de85caaf4f5f5959d7eda5af83aa0ad4e3) --- .../src/Search/Common/AddAuthorOptionsForm.js | 2 +- .../RootFolder/EditRootFolderModalContent.js | 605 +++++++++--------- src/NzbDrone.Core/Localization/Core/en.json | 8 +- 3 files changed, 315 insertions(+), 300 deletions(-) diff --git a/frontend/src/Search/Common/AddAuthorOptionsForm.js b/frontend/src/Search/Common/AddAuthorOptionsForm.js index e97b2fa0d..4850c62f1 100644 --- a/frontend/src/Search/Common/AddAuthorOptionsForm.js +++ b/frontend/src/Search/Common/AddAuthorOptionsForm.js @@ -61,7 +61,7 @@ class AddAuthorOptionsForm extends Component { - Monitor + {translate('Monitor')} - - - {translate('Name')} - +
+ + + {translate('Name')} + - - - - - - {translate('Path')} - - - - - - - - Use Calibre - - } - title={translate('CalibreContentServer')} - body={'Using a Calibre content server allows Readarr to add books to your Calibre library and trigger conversions between formats'} - position={tooltipPositions.RIGHT} + - + - - + + + {translate('Path')} + - { - isCalibreLibrary !== undefined && isCalibreLibrary.value && -
- - - {translate('CalibreHost')} - + + +
- -
+
+ + + {translate('Monitor')} - - - {translate('CalibrePort')} - - - - - - - - {translate('CalibreUrlBase')} - - - - - - - - {translate('CalibreUsername')} - - - - - - - - {translate('CalibrePassword')} - - - - - - - - {translate('CalibreLibrary')} - - - - - - - - Convert to format - - } - title={translate('CalibreOutputFormat')} - body={'Specify the output format. Options are: MOBI, EPUB, AZW3, DOCX, FB2, HTMLZ, LIT, LRF, PDB, PDF, PMLZ, RB, RTF, SNB, TCR, TXT, TXTZ, ZIP'} - position={tooltipPositions.RIGHT} + - + } + title={translate('MonitoringOptions')} + body={} + position={tooltipPositions.RIGHT} + /> + - - + - - - Calibre Output Profile - - } - title={translate('CalibreOutputProfile')} - body={'Specify the output profile. The output profile tells the Calibre conversion system how to optimize the created document for the specified device (such as by resizing images for the device screen size). In some cases, an output profile can be used to optimize the output for a particular device, but this is rarely necessary.'} - position={tooltipPositions.RIGHT} + + + + + {translate('MonitorNewItems')} + - + } + title={translate('MonitorNewItems')} + body={} + position={tooltipPositions.RIGHT} + /> + - - - - - - {translate('UseSSL')} - - - - - - } - - - - {translate('Monitor')} - - - } - title={translate('MonitoringOptions')} - body={} - position={tooltipPositions.RIGHT} + - + - + + + {translate('QualityProfile')} + - - - - - {translate('MonitorNewItems')} - - } - title={translate('MonitorNewItems')} - body={} - position={tooltipPositions.RIGHT} + - + - - + + + {translate('MetadataProfile')} + + } + title={translate('MetadataProfile')} + body={} + position={tooltipPositions.RIGHT} + /> + - - - {translate('QualityProfile')} - - - - - - - - Metadata Profile - - } - title={translate('MetadataProfile')} - body={} - position={tooltipPositions.RIGHT} + - + - - + + + {translate('DefaultReadarrTags')} + - - - {translate('DefaultReadarrTags')} - + + +
- -
+
+ + {translate('CalibreNotCalibreWeb')} + + + + {translate('UseCalibreContentServer')} + + } + title={translate('CalibreContentServer')} + body={translate('CalibreContentServerText')} + position={tooltipPositions.RIGHT} + /> + + + + + + { + isCalibreLibrary !== undefined && isCalibreLibrary.value && +
+ + + {translate('CalibreHost')} + + + + + + + + {translate('CalibrePort')} + + + + + + + + {translate('CalibreUrlBase')} + + + + + + + + {translate('CalibreUsername')} + + + + + + + + {translate('CalibrePassword')} + + + + + + + + {translate('CalibreLibrary')} + + + + + + + + Convert to format + + } + title={translate('CalibreOutputFormat')} + body={'Specify the output format. Options are: MOBI, EPUB, AZW3, DOCX, FB2, HTMLZ, LIT, LRF, PDB, PDF, PMLZ, RB, RTF, SNB, TCR, TXT, TXTZ, ZIP'} + position={tooltipPositions.RIGHT} + /> + + + + + + + + Calibre Output Profile + + } + title={translate('CalibreOutputProfile')} + body={'Specify the output profile. The output profile tells the Calibre conversion system how to optimize the created document for the specified device (such as by resizing images for the device screen size). In some cases, an output profile can be used to optimize the output for a particular device, but this is rarely necessary.'} + position={tooltipPositions.RIGHT} + /> + + + + + + + + {translate('UseSSL')} + + + + +
+ } +
} diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 3e7b6df61..e8d411c0d 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -89,14 +89,17 @@ "BypassProxyForLocalAddresses": "Bypass Proxy for Local Addresses", "Calendar": "Calendar", "CalendarWeekColumnHeaderHelpText": "Shown above each column when week is the active view", - "CalibreContentServer": "Calibre content server", + "CalibreContentServer": "Calibre Content Server", + "CalibreContentServerText": "Using a Calibre Content Server (not Calibre Web) allows Readarr to add books to your Calibre library and trigger conversions between formats", "CalibreHost": "Calibre Host", "CalibreLibrary": "Calibre Library", "CalibreMetadata": "Calibre Metadata", + "CalibreNotCalibreWeb": "Readarr can interface with Calibre's Content Server. It cannot use Calibre-Web, which is unrelated software.", "CalibreOutputFormat": "Calibre output format", "CalibreOutputProfile": "Calibre output profile", "CalibrePassword": "Calibre Password", "CalibrePort": "Calibre Port", + "CalibreSettings": "Calibre Settings", "CalibreUrlBase": "Calibre Url Base", "CalibreUsername": "Calibre Username", "Cancel": "Cancel", @@ -308,7 +311,7 @@ "IndexerSettings": "Indexer Settings", "Interval": "Interval", "ISBN": "ISBN", - "IsCalibreLibraryHelpText": "Use Calibre content server to manipulate library", + "IsCalibreLibraryHelpText": "Use Calibre Content Server to manipulate library", "IsCutoffCutoff": "Cutoff", "IsCutoffUpgradeUntilThisQualityIsMetOrExceeded": "Upgrade until this quality is met or exceeded", "IsExpandedHideBooks": "Hide books", @@ -738,6 +741,7 @@ "URLBase": "URL Base", "UrlBaseHelpText": "Adds a prefix to the Calibre url, e.g. http://[host]:[port]/[urlBase]", "UrlBaseHelpTextWarning": "Requires restart to take effect", + "UseCalibreContentServer": "Use Calibre Content Server", "UseHardlinksInsteadOfCopy": "Use Hardlinks instead of Copy", "Usenet": "Usenet", "UsenetDelay": "Usenet Delay",