From fae014c8beda516b6a8acbe2aa890e99a8dd933d Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 15 Apr 2025 15:09:45 +0300 Subject: [PATCH] Fix various typos --- frontend/src/Components/Form/FormInputGroup.tsx | 2 +- .../src/Components/Form/ProviderFieldFormGroup.tsx | 2 +- .../src/Components/Page/Header/SeriesSearchInput.tsx | 2 +- .../Series/Index/Overview/SeriesIndexOverviews.css | 11 ----------- .../Series/Index/Overview/SeriesIndexOverviews.tsx | 8 ++++---- .../Settings/Profiles/Quality/QualityProfileItem.css | 2 +- .../Profiles/Quality/QualityProfileItemDragSource.tsx | 10 +++++----- .../Profiles/Quality/QualityProfileItemGroup.css | 2 +- .../Profiles/Quality/QualityProfileItemSize.tsx | 6 +++--- frontend/src/Store/Actions/releaseActions.js | 2 +- .../Store/Selectors/createCommandExecutingSelector.ts | 4 ++-- frontend/src/Store/Selectors/createCommandSelector.ts | 4 ++-- frontend/src/polyfills.js | 4 ++-- src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs | 2 +- .../057_convert_episode_file_path_to_relative.cs | 2 +- src/NzbDrone.Core/MediaCover/MediaCoverService.cs | 2 +- .../Notifications/Mailgun/MailgunProxy.cs | 2 +- src/NzbDrone.Core/Organizer/FileNameBuilder.cs | 4 ++-- .../Profiles/Qualities/QualityProfileService.cs | 4 ++-- .../UpdateProviderStartFixture.cs | 4 ++-- .../Qualities/QualityDefinitionController.cs | 4 ++-- 21 files changed, 36 insertions(+), 47 deletions(-) delete mode 100644 frontend/src/Series/Index/Overview/SeriesIndexOverviews.css diff --git a/frontend/src/Components/Form/FormInputGroup.tsx b/frontend/src/Components/Form/FormInputGroup.tsx index 0d443ee64..1dc97da73 100644 --- a/frontend/src/Components/Form/FormInputGroup.tsx +++ b/frontend/src/Components/Form/FormInputGroup.tsx @@ -222,7 +222,7 @@ function FormInputGroup(
- {/* @ts-expect-error - tpyes are validated already */} + {/* @ts-expect-error - types are validated already */} ({ helpTextWarning={helpTextWarning} helpLink={helpLink} placeholder={placeholder} - // @ts-expect-error - this isn;'t available on all types + // @ts-expect-error - this isn't available on all types selectOptionsProviderAction={selectOptionsProviderAction} value={value} values={selectValues} diff --git a/frontend/src/Components/Page/Header/SeriesSearchInput.tsx b/frontend/src/Components/Page/Header/SeriesSearchInput.tsx index c10fcf740..16d3f8f5a 100644 --- a/frontend/src/Components/Page/Header/SeriesSearchInput.tsx +++ b/frontend/src/Components/Page/Header/SeriesSearchInput.tsx @@ -316,7 +316,7 @@ function SeriesSearchInput() { return; } - // If an suggestion is not selected go to the first series, + // If a suggestion is not selected go to the first series, // otherwise go to the selected series. const selectedSuggestion = diff --git a/frontend/src/Series/Index/Overview/SeriesIndexOverviews.css b/frontend/src/Series/Index/Overview/SeriesIndexOverviews.css deleted file mode 100644 index f393dcbb0..000000000 --- a/frontend/src/Series/Index/Overview/SeriesIndexOverviews.css +++ /dev/null @@ -1,11 +0,0 @@ -.grid { - flex: 1 0 auto; -} - -.container { - &:hover { - .content { - background-color: var(--tableRowHoverBackgroundColor); - } - } -} diff --git a/frontend/src/Series/Index/Overview/SeriesIndexOverviews.tsx b/frontend/src/Series/Index/Overview/SeriesIndexOverviews.tsx index f4e05014b..dc84043de 100644 --- a/frontend/src/Series/Index/Overview/SeriesIndexOverviews.tsx +++ b/frontend/src/Series/Index/Overview/SeriesIndexOverviews.tsx @@ -80,17 +80,17 @@ function SeriesIndexOverviews(props: SeriesIndexOverviewsProps) { const [size, setSize] = useState({ width: 0, height: 0 }); const posterWidth = useMemo(() => { - const maxiumPosterWidth = isSmallScreen ? 152 : 162; + const maximumPosterWidth = isSmallScreen ? 152 : 162; if (posterSize === 'large') { - return maxiumPosterWidth; + return maximumPosterWidth; } if (posterSize === 'medium') { - return Math.floor(maxiumPosterWidth * 0.75); + return Math.floor(maximumPosterWidth * 0.75); } - return Math.floor(maxiumPosterWidth * 0.5); + return Math.floor(maximumPosterWidth * 0.5); }, [posterSize, isSmallScreen]); const posterHeight = useMemo(() => { diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css b/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css index d19139674..568a01b23 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItem.css @@ -54,7 +54,7 @@ } .createGroupButton { - composes: buton from '~Components/Link/IconButton.css'; + composes: button from '~Components/Link/IconButton.css'; display: flex; align-items: center; diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.tsx b/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.tsx index e7a0483dc..66670ac9c 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.tsx +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.tsx @@ -36,7 +36,7 @@ interface ItemProps { preferredSize: number | null; isInGroup?: boolean; onCreateGroupPress?: (qualityId: number) => void; - onItemAllowedChange: (id: number, allowd: boolean) => void; + onItemAllowedChange: (id: number, allowed: boolean) => void; } interface GroupProps { @@ -45,8 +45,8 @@ interface GroupProps { items: QualityProfileQualityItem[]; qualityIndex: string; onDeleteGroupPress: (groupId: number) => void; - onItemAllowedChange: (id: number, allowd: boolean) => void; - onGroupAllowedChange: (id: number, allowd: boolean) => void; + onItemAllowedChange: (id: number, allowed: boolean) => void; + onGroupAllowedChange: (id: number, allowed: boolean) => void; onItemGroupNameChange: (groupId: number, name: string) => void; } @@ -67,9 +67,9 @@ export type QualityProfileItemDragSourceProps = CommonProps & export interface QualityProfileItemDragSourceActionProps { onCreateGroupPress?: (qualityId: number) => void; - onItemAllowedChange: (id: number, allowd: boolean) => void; + onItemAllowedChange: (id: number, allowed: boolean) => void; onDeleteGroupPress: (groupId: number) => void; - onGroupAllowedChange: (id: number, allowd: boolean) => void; + onGroupAllowedChange: (id: number, allowed: boolean) => void; onItemGroupNameChange: (groupId: number, name: string) => void; onDragMove: (move: DragMoveState) => void; onDragEnd: (didDrop: boolean) => void; diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css b/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css index 6f13db6d5..7b82a3c67 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.css @@ -79,7 +79,7 @@ } .deleteGroupButton { - composes: buton from '~Components/Link/IconButton.css'; + composes: button from '~Components/Link/IconButton.css'; display: flex; align-items: center; diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemSize.tsx b/frontend/src/Settings/Profiles/Quality/QualityProfileItemSize.tsx index 10c88c96b..4c46529cf 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemSize.tsx +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemSize.tsx @@ -243,7 +243,7 @@ export default function QualityProfileItemSize({ max={preferredSize ? preferredSize - 5 : MAX - 5} step={0.1} isFloat={true} - // @ts-expect-error - Typngs are too loose + // @ts-expect-error - Typings are too loose onChange={handleMinSizeChange} />