From 0128dca5ac1e26e6d04b26b3f492aa1db8530c96 Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Sat, 2 Sep 2023 13:47:13 +0200 Subject: [PATCH] Fix relative imports for Components and Utilities --- frontend/src/App/AppUpdatedModalContent.js | 2 +- frontend/src/App/State/InteractiveImportAppState.ts | 4 ++-- frontend/src/Calendar/Events/CalendarEventGroup.js | 2 +- .../src/Components/FileBrowser/FileBrowserModalContent.js | 2 +- frontend/src/Episode/Summary/EpisodeAiring.js | 2 +- .../Specifications/EditSpecificationModalContent.js | 2 +- frontend/src/Settings/MediaManagement/Naming/NamingModal.js | 2 +- frontend/src/Settings/MetadataSource/TheTvdb.js | 2 +- .../Settings/Profiles/Quality/QualityProfileFormatItems.js | 2 +- frontend/src/System/Logs/Files/LogFiles.js | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/App/AppUpdatedModalContent.js b/frontend/src/App/AppUpdatedModalContent.js index 5b849de7b..1f81e1660 100644 --- a/frontend/src/App/AppUpdatedModalContent.js +++ b/frontend/src/App/AppUpdatedModalContent.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; @@ -9,7 +10,6 @@ import ModalHeader from 'Components/Modal/ModalHeader'; import { kinds } from 'Helpers/Props'; import UpdateChanges from 'System/Updates/UpdateChanges'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../Components/Markdown/InlineMarkdown'; import styles from './AppUpdatedModalContent.css'; function mergeUpdates(items, version, prevVersion) { diff --git a/frontend/src/App/State/InteractiveImportAppState.ts b/frontend/src/App/State/InteractiveImportAppState.ts index c65c4abb4..cf86f620d 100644 --- a/frontend/src/App/State/InteractiveImportAppState.ts +++ b/frontend/src/App/State/InteractiveImportAppState.ts @@ -1,7 +1,7 @@ import AppSectionState from 'App/State/AppSectionState'; import RecentFolder from 'InteractiveImport/Folder/RecentFolder'; -import ImportMode from '../../InteractiveImport/ImportMode'; -import InteractiveImport from '../../InteractiveImport/InteractiveImport'; +import ImportMode from 'InteractiveImport/ImportMode'; +import InteractiveImport from 'InteractiveImport/InteractiveImport'; interface InteractiveImportAppState extends AppSectionState { originalItems: InteractiveImport[]; diff --git a/frontend/src/Calendar/Events/CalendarEventGroup.js b/frontend/src/Calendar/Events/CalendarEventGroup.js index d79b803db..ea54c8237 100644 --- a/frontend/src/Calendar/Events/CalendarEventGroup.js +++ b/frontend/src/Calendar/Events/CalendarEventGroup.js @@ -10,7 +10,7 @@ import getFinaleTypeName from 'Episode/getFinaleTypeName'; import { icons, kinds } from 'Helpers/Props'; import formatTime from 'Utilities/Date/formatTime'; import padNumber from 'Utilities/Number/padNumber'; -import translate from '../../Utilities/String/translate'; +import translate from 'Utilities/String/translate'; import styles from './CalendarEventGroup.css'; function getEventsInfo(series, events) { diff --git a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js index 56b364b56..f517b4d1b 100644 --- a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js +++ b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js @@ -4,6 +4,7 @@ import Alert from 'Components/Alert'; import PathInput from 'Components/Form/PathInput'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; @@ -13,7 +14,6 @@ import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; import { kinds, scrollDirections } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../Markdown/InlineMarkdown'; import FileBrowserRow from './FileBrowserRow'; import styles from './FileBrowserModalContent.css'; diff --git a/frontend/src/Episode/Summary/EpisodeAiring.js b/frontend/src/Episode/Summary/EpisodeAiring.js index 82e037d15..7a6f84e57 100644 --- a/frontend/src/Episode/Summary/EpisodeAiring.js +++ b/frontend/src/Episode/Summary/EpisodeAiring.js @@ -7,7 +7,7 @@ import formatTime from 'Utilities/Date/formatTime'; import isInNextWeek from 'Utilities/Date/isInNextWeek'; import isToday from 'Utilities/Date/isToday'; import isTomorrow from 'Utilities/Date/isTomorrow'; -import translate from '../../Utilities/String/translate'; +import translate from 'Utilities/String/translate'; function EpisodeAiring(props) { const { diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js index 9d062285b..90e2bd142 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js @@ -8,13 +8,13 @@ import FormLabel from 'Components/Form/FormLabel'; import ProviderFieldFormGroup from 'Components/Form/ProviderFieldFormGroup'; import Button from 'Components/Link/Button'; import SpinnerErrorButton from 'Components/Link/SpinnerErrorButton'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; import ModalHeader from 'Components/Modal/ModalHeader'; import { inputTypes, kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../../../../Components/Markdown/InlineMarkdown'; import styles from './EditSpecificationModalContent.css'; function EditSpecificationModalContent(props) { diff --git a/frontend/src/Settings/MediaManagement/Naming/NamingModal.js b/frontend/src/Settings/MediaManagement/Naming/NamingModal.js index 1da20467f..60d6a8854 100644 --- a/frontend/src/Settings/MediaManagement/Naming/NamingModal.js +++ b/frontend/src/Settings/MediaManagement/Naming/NamingModal.js @@ -5,6 +5,7 @@ import SelectInput from 'Components/Form/SelectInput'; import TextInput from 'Components/Form/TextInput'; import Icon from 'Components/Icon'; import Button from 'Components/Link/Button'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import Modal from 'Components/Modal/Modal'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; @@ -12,7 +13,6 @@ import ModalFooter from 'Components/Modal/ModalFooter'; import ModalHeader from 'Components/Modal/ModalHeader'; import { icons, sizes } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../../../Components/Markdown/InlineMarkdown'; import NamingOption from './NamingOption'; import styles from './NamingModal.css'; diff --git a/frontend/src/Settings/MetadataSource/TheTvdb.js b/frontend/src/Settings/MetadataSource/TheTvdb.js index 152a02cae..d1a51d67a 100644 --- a/frontend/src/Settings/MetadataSource/TheTvdb.js +++ b/frontend/src/Settings/MetadataSource/TheTvdb.js @@ -1,6 +1,6 @@ import React from 'react'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../../Components/Markdown/InlineMarkdown'; import styles from './TheTvdb.css'; function TheTvdb(props) { diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileFormatItems.js b/frontend/src/Settings/Profiles/Quality/QualityProfileFormatItems.js index f2bc1bfe6..7b90dec6c 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileFormatItems.js +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileFormatItems.js @@ -4,9 +4,9 @@ import React, { Component } from 'react'; import FormGroup from 'Components/Form/FormGroup'; import FormInputHelpText from 'Components/Form/FormInputHelpText'; import FormLabel from 'Components/Form/FormLabel'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import { sizes } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../../../Components/Markdown/InlineMarkdown'; import QualityProfileFormatItem from './QualityProfileFormatItem'; import styles from './QualityProfileFormatItems.css'; diff --git a/frontend/src/System/Logs/Files/LogFiles.js b/frontend/src/System/Logs/Files/LogFiles.js index 281a2960c..e185e03cb 100644 --- a/frontend/src/System/Logs/Files/LogFiles.js +++ b/frontend/src/System/Logs/Files/LogFiles.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; import PageToolbar from 'Components/Page/Toolbar/PageToolbar'; @@ -12,7 +13,6 @@ import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; import { icons, kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; -import InlineMarkdown from '../../../Components/Markdown/InlineMarkdown'; import LogsNavMenu from '../LogsNavMenu'; import LogFilesTableRow from './LogFilesTableRow';