From fd0ff4bd5fcb61a8dd783024892c3d9d75c71484 Mon Sep 17 00:00:00 2001 From: Danshil Kokil Mungur Date: Fri, 19 Aug 2022 14:59:27 +0400 Subject: [PATCH] chore: remove empty lines from imports section (#2951) [skip ci] --- src/components/CollectionDetails/index.tsx | 1 - src/components/Common/CachedImage/index.tsx | 1 - src/components/Common/SensitiveInput/index.tsx | 1 - src/components/Common/SettingsTabs/index.tsx | 1 - src/components/Common/SlideOver/index.tsx | 1 - src/components/Discover/MovieGenreSlider/index.tsx | 1 - src/components/Discover/TvGenreSlider/index.tsx | 1 - src/components/Discover/index.tsx | 1 - src/components/IssueBlock/index.tsx | 1 - src/components/IssueList/IssueItem/index.tsx | 1 - src/components/IssueList/index.tsx | 1 - src/components/IssueModal/CreateIssueModal/index.tsx | 1 - src/components/JSONEditor/index.tsx | 1 - src/components/Layout/SearchInput/index.tsx | 1 - src/components/Layout/VersionStatus/index.tsx | 1 - src/components/Layout/index.tsx | 1 - src/components/ManageSlideOver/index.tsx | 1 - src/components/MovieDetails/MovieCast/index.tsx | 1 - src/components/MovieDetails/MovieCrew/index.tsx | 1 - src/components/MovieDetails/MovieRecommendations.tsx | 1 - src/components/MovieDetails/MovieSimilar.tsx | 1 - src/components/MovieDetails/index.tsx | 1 - src/components/RequestButton/index.tsx | 1 - src/components/RequestList/index.tsx | 1 - src/components/RequestModal/CollectionRequestModal.tsx | 1 - src/components/RequestModal/MovieRequestModal.tsx | 1 - src/components/RequestModal/QuotaDisplay/index.tsx | 1 - src/components/RequestModal/SearchByNameModal/index.tsx | 1 - src/components/RequestModal/TvRequestModal.tsx | 1 - src/components/Settings/Notifications/NotificationsDiscord.tsx | 1 - src/components/Settings/Notifications/NotificationsEmail.tsx | 1 - .../Settings/Notifications/NotificationsLunaSea/index.tsx | 1 - .../Settings/Notifications/NotificationsPushbullet/index.tsx | 1 - .../Settings/Notifications/NotificationsPushover/index.tsx | 1 - .../Settings/Notifications/NotificationsSlack/index.tsx | 1 - src/components/Settings/Notifications/NotificationsTelegram.tsx | 1 - src/components/Settings/RadarrModal/index.tsx | 1 - src/components/Settings/SettingsAbout/index.tsx | 1 - src/components/Settings/SettingsLogs/index.tsx | 1 - src/components/Settings/SettingsMain.tsx | 1 - src/components/Settings/SettingsNotifications.tsx | 1 - src/components/Settings/SettingsPlex.tsx | 1 - src/components/Settings/SettingsServices.tsx | 1 - src/components/Settings/SettingsUsers/index.tsx | 1 - src/components/Settings/SonarrModal/index.tsx | 1 - src/components/Toast/index.tsx | 1 - src/components/TvDetails/TvCast/index.tsx | 1 - src/components/TvDetails/TvCrew/index.tsx | 1 - src/components/TvDetails/TvRecommendations.tsx | 1 - src/components/TvDetails/TvSimilar.tsx | 1 - src/components/TvDetails/index.tsx | 1 - src/components/UserList/PlexImportModal.tsx | 1 - src/components/UserList/index.tsx | 1 - src/components/UserProfile/ProfileHeader/index.tsx | 1 - .../UserProfile/UserSettings/UserGeneralSettings/index.tsx | 1 - .../UserNotificationSettings/UserNotificationsDiscord.tsx | 1 - .../UserNotificationSettings/UserNotificationsEmail.tsx | 1 - .../UserNotificationSettings/UserNotificationsPushbullet.tsx | 1 - .../UserNotificationSettings/UserNotificationsPushover.tsx | 1 - .../UserNotificationSettings/UserNotificationsTelegram.tsx | 1 - .../UserNotificationSettings/UserNotificationsWebPush.tsx | 1 - .../UserProfile/UserSettings/UserNotificationSettings/index.tsx | 1 - .../UserProfile/UserSettings/UserPasswordChange/index.tsx | 1 - .../UserProfile/UserSettings/UserPermissions/index.tsx | 1 - src/components/UserProfile/UserSettings/index.tsx | 1 - src/context/UserContext.tsx | 1 - src/pages/404.tsx | 1 - src/pages/_app.tsx | 1 - src/pages/_error.tsx | 1 - src/pages/collection/[collectionId]/index.tsx | 1 - src/pages/issues/[issueId]/index.tsx | 1 - src/pages/issues/index.tsx | 1 - src/pages/movie/[movieId]/cast.tsx | 1 - src/pages/movie/[movieId]/crew.tsx | 1 - src/pages/movie/[movieId]/index.tsx | 1 - src/pages/profile/index.tsx | 1 - src/pages/profile/settings/index.tsx | 1 - src/pages/profile/settings/main.tsx | 1 - src/pages/profile/settings/notifications/discord.tsx | 1 - src/pages/profile/settings/notifications/email.tsx | 1 - src/pages/profile/settings/notifications/pushbullet.tsx | 1 - src/pages/profile/settings/notifications/pushover.tsx | 1 - src/pages/profile/settings/notifications/telegram.tsx | 1 - src/pages/profile/settings/notifications/webpush.tsx | 1 - src/pages/profile/settings/password.tsx | 1 - src/pages/profile/settings/permissions.tsx | 1 - src/pages/settings/about.tsx | 1 - src/pages/settings/jobs.tsx | 1 - src/pages/settings/logs.tsx | 1 - src/pages/settings/notifications/discord.tsx | 1 - src/pages/settings/notifications/email.tsx | 1 - src/pages/settings/notifications/gotify.tsx | 1 - src/pages/settings/notifications/lunasea.tsx | 1 - src/pages/settings/notifications/pushbullet.tsx | 1 - src/pages/settings/notifications/pushover.tsx | 1 - src/pages/settings/notifications/slack.tsx | 1 - src/pages/settings/notifications/telegram.tsx | 1 - src/pages/settings/notifications/webhook.tsx | 1 - src/pages/settings/notifications/webpush.tsx | 1 - src/pages/settings/plex.tsx | 1 - src/pages/settings/services.tsx | 1 - src/pages/tv/[tvId]/cast.tsx | 1 - src/pages/tv/[tvId]/crew.tsx | 1 - src/pages/tv/[tvId]/index.tsx | 1 - src/pages/users/[userId]/index.tsx | 1 - src/pages/users/[userId]/requests.tsx | 1 - src/pages/users/[userId]/settings/index.tsx | 1 - src/pages/users/[userId]/settings/main.tsx | 1 - src/pages/users/[userId]/settings/notifications/discord.tsx | 1 - src/pages/users/[userId]/settings/notifications/email.tsx | 1 - src/pages/users/[userId]/settings/notifications/pushbullet.tsx | 1 - src/pages/users/[userId]/settings/notifications/pushover.tsx | 1 - src/pages/users/[userId]/settings/notifications/telegram.tsx | 1 - src/pages/users/[userId]/settings/notifications/webpush.tsx | 1 - src/pages/users/[userId]/settings/password.tsx | 1 - src/pages/users/[userId]/settings/permissions.tsx | 1 - 116 files changed, 116 deletions(-) diff --git a/src/components/CollectionDetails/index.tsx b/src/components/CollectionDetails/index.tsx index cf5990fc..8cfbf48c 100644 --- a/src/components/CollectionDetails/index.tsx +++ b/src/components/CollectionDetails/index.tsx @@ -2,7 +2,6 @@ import { DownloadIcon } from '@heroicons/react/outline'; import { uniq } from 'lodash'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/Common/CachedImage/index.tsx b/src/components/Common/CachedImage/index.tsx index 8372caba..5bc93dd7 100644 --- a/src/components/Common/CachedImage/index.tsx +++ b/src/components/Common/CachedImage/index.tsx @@ -1,6 +1,5 @@ import type { ImageProps } from 'next/image'; import Image from 'next/image'; - import useSettings from '../../../hooks/useSettings'; /** diff --git a/src/components/Common/SensitiveInput/index.tsx b/src/components/Common/SensitiveInput/index.tsx index 78cdcacc..6652f551 100644 --- a/src/components/Common/SensitiveInput/index.tsx +++ b/src/components/Common/SensitiveInput/index.tsx @@ -1,6 +1,5 @@ import { EyeIcon, EyeOffIcon } from '@heroicons/react/solid'; import { Field } from 'formik'; - import { useState } from 'react'; interface CustomInputProps extends React.ComponentProps<'input'> { diff --git a/src/components/Common/SettingsTabs/index.tsx b/src/components/Common/SettingsTabs/index.tsx index da69feda..060aef77 100644 --- a/src/components/Common/SettingsTabs/index.tsx +++ b/src/components/Common/SettingsTabs/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import type { Permission } from '../../../../server/lib/permissions'; import { hasPermission } from '../../../../server/lib/permissions'; import { useUser } from '../../../hooks/useUser'; diff --git a/src/components/Common/SlideOver/index.tsx b/src/components/Common/SlideOver/index.tsx index 05fa3174..542ea8df 100644 --- a/src/components/Common/SlideOver/index.tsx +++ b/src/components/Common/SlideOver/index.tsx @@ -1,6 +1,5 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ import { XIcon } from '@heroicons/react/outline'; - import { useEffect, useRef, useState } from 'react'; import ReactDOM from 'react-dom'; import { useLockBodyScroll } from '../../../hooks/useLockBodyScroll'; diff --git a/src/components/Discover/MovieGenreSlider/index.tsx b/src/components/Discover/MovieGenreSlider/index.tsx index 29234635..4623efb0 100644 --- a/src/components/Discover/MovieGenreSlider/index.tsx +++ b/src/components/Discover/MovieGenreSlider/index.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { GenreSliderItem } from '../../../../server/interfaces/api/discoverInterfaces'; diff --git a/src/components/Discover/TvGenreSlider/index.tsx b/src/components/Discover/TvGenreSlider/index.tsx index e2bdd169..a0e93ab3 100644 --- a/src/components/Discover/TvGenreSlider/index.tsx +++ b/src/components/Discover/TvGenreSlider/index.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { GenreSliderItem } from '../../../../server/interfaces/api/discoverInterfaces'; diff --git a/src/components/Discover/index.tsx b/src/components/Discover/index.tsx index 46979609..d732871b 100644 --- a/src/components/Discover/index.tsx +++ b/src/components/Discover/index.tsx @@ -1,6 +1,5 @@ import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MediaResultsResponse } from '../../../server/interfaces/api/mediaInterfaces'; diff --git a/src/components/IssueBlock/index.tsx b/src/components/IssueBlock/index.tsx index 151523b8..b33fdeae 100644 --- a/src/components/IssueBlock/index.tsx +++ b/src/components/IssueBlock/index.tsx @@ -5,7 +5,6 @@ import { UserIcon, } from '@heroicons/react/solid'; import Link from 'next/link'; - import { useIntl } from 'react-intl'; import type Issue from '../../../server/entity/Issue'; import { useUser } from '../../hooks/useUser'; diff --git a/src/components/IssueList/IssueItem/index.tsx b/src/components/IssueList/IssueItem/index.tsx index 2847deec..d24193f4 100644 --- a/src/components/IssueList/IssueItem/index.tsx +++ b/src/components/IssueList/IssueItem/index.tsx @@ -1,6 +1,5 @@ import { EyeIcon } from '@heroicons/react/solid'; import Link from 'next/link'; - import { useInView } from 'react-intersection-observer'; import { defineMessages, FormattedRelativeTime, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/IssueList/index.tsx b/src/components/IssueList/index.tsx index 816ebf1f..d171dd9a 100644 --- a/src/components/IssueList/index.tsx +++ b/src/components/IssueList/index.tsx @@ -5,7 +5,6 @@ import { SortDescendingIcon, } from '@heroicons/react/solid'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/IssueModal/CreateIssueModal/index.tsx b/src/components/IssueModal/CreateIssueModal/index.tsx index f8757714..a746514a 100644 --- a/src/components/IssueModal/CreateIssueModal/index.tsx +++ b/src/components/IssueModal/CreateIssueModal/index.tsx @@ -4,7 +4,6 @@ import { ArrowCircleRightIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/JSONEditor/index.tsx b/src/components/JSONEditor/index.tsx index 6999c92a..4278f93e 100644 --- a/src/components/JSONEditor/index.tsx +++ b/src/components/JSONEditor/index.tsx @@ -1,5 +1,4 @@ import type { HTMLAttributes } from 'react'; - import AceEditor from 'react-ace'; import 'ace-builds/src-noconflict/mode-json'; import 'ace-builds/src-noconflict/theme-dracula'; diff --git a/src/components/Layout/SearchInput/index.tsx b/src/components/Layout/SearchInput/index.tsx index fb2628ea..a569d4c9 100644 --- a/src/components/Layout/SearchInput/index.tsx +++ b/src/components/Layout/SearchInput/index.tsx @@ -1,6 +1,5 @@ import { XCircleIcon } from '@heroicons/react/outline'; import { SearchIcon } from '@heroicons/react/solid'; - import { defineMessages, useIntl } from 'react-intl'; import useSearchInput from '../../../hooks/useSearchInput'; diff --git a/src/components/Layout/VersionStatus/index.tsx b/src/components/Layout/VersionStatus/index.tsx index 5a609707..1bdc6e47 100644 --- a/src/components/Layout/VersionStatus/index.tsx +++ b/src/components/Layout/VersionStatus/index.tsx @@ -5,7 +5,6 @@ import { ServerIcon, } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { StatusResponse } from '../../../../server/interfaces/api/settingsInterfaces'; diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index fc8422b4..60e0b5a4 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -1,7 +1,6 @@ import { MenuAlt2Icon } from '@heroicons/react/outline'; import { ArrowLeftIcon } from '@heroicons/react/solid'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import type { AvailableLocale } from '../../context/LanguageContext'; import useLocale from '../../hooks/useLocale'; diff --git a/src/components/ManageSlideOver/index.tsx b/src/components/ManageSlideOver/index.tsx index ba3cce68..f8347f4c 100644 --- a/src/components/ManageSlideOver/index.tsx +++ b/src/components/ManageSlideOver/index.tsx @@ -2,7 +2,6 @@ import { ServerIcon, ViewListIcon } from '@heroicons/react/outline'; import { CheckCircleIcon, DocumentRemoveIcon } from '@heroicons/react/solid'; import axios from 'axios'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import { IssueStatus } from '../../../server/constants/issue'; diff --git a/src/components/MovieDetails/MovieCast/index.tsx b/src/components/MovieDetails/MovieCast/index.tsx index e096b598..539f7c61 100644 --- a/src/components/MovieDetails/MovieCast/index.tsx +++ b/src/components/MovieDetails/MovieCast/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../../server/models/Movie'; diff --git a/src/components/MovieDetails/MovieCrew/index.tsx b/src/components/MovieDetails/MovieCrew/index.tsx index 8d0e2d8c..941bfb50 100644 --- a/src/components/MovieDetails/MovieCrew/index.tsx +++ b/src/components/MovieDetails/MovieCrew/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../../server/models/Movie'; diff --git a/src/components/MovieDetails/MovieRecommendations.tsx b/src/components/MovieDetails/MovieRecommendations.tsx index aa79971e..70441232 100644 --- a/src/components/MovieDetails/MovieRecommendations.tsx +++ b/src/components/MovieDetails/MovieRecommendations.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../server/models/Movie'; diff --git a/src/components/MovieDetails/MovieSimilar.tsx b/src/components/MovieDetails/MovieSimilar.tsx index 5b49530e..d96ff4d4 100644 --- a/src/components/MovieDetails/MovieSimilar.tsx +++ b/src/components/MovieDetails/MovieSimilar.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../server/models/Movie'; diff --git a/src/components/MovieDetails/index.tsx b/src/components/MovieDetails/index.tsx index 9b705bcd..54b7a0c7 100644 --- a/src/components/MovieDetails/index.tsx +++ b/src/components/MovieDetails/index.tsx @@ -16,7 +16,6 @@ import 'country-flag-icons/3x2/flags.css'; import { uniqBy } from 'lodash'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/RequestButton/index.tsx b/src/components/RequestButton/index.tsx index 22327859..72b95f07 100644 --- a/src/components/RequestButton/index.tsx +++ b/src/components/RequestButton/index.tsx @@ -5,7 +5,6 @@ import { XIcon, } from '@heroicons/react/solid'; import axios from 'axios'; - import { useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { diff --git a/src/components/RequestList/index.tsx b/src/components/RequestList/index.tsx index 2815d1e6..5ca4307d 100644 --- a/src/components/RequestList/index.tsx +++ b/src/components/RequestList/index.tsx @@ -6,7 +6,6 @@ import { } from '@heroicons/react/solid'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/RequestModal/CollectionRequestModal.tsx b/src/components/RequestModal/CollectionRequestModal.tsx index 290b9df1..e5bc7cb8 100644 --- a/src/components/RequestModal/CollectionRequestModal.tsx +++ b/src/components/RequestModal/CollectionRequestModal.tsx @@ -1,6 +1,5 @@ import { DownloadIcon } from '@heroicons/react/outline'; import axios from 'axios'; - import { useCallback, useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/RequestModal/MovieRequestModal.tsx b/src/components/RequestModal/MovieRequestModal.tsx index cee5fa68..4e0ad1b0 100644 --- a/src/components/RequestModal/MovieRequestModal.tsx +++ b/src/components/RequestModal/MovieRequestModal.tsx @@ -1,6 +1,5 @@ import { DownloadIcon } from '@heroicons/react/outline'; import axios from 'axios'; - import { useCallback, useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/RequestModal/QuotaDisplay/index.tsx b/src/components/RequestModal/QuotaDisplay/index.tsx index fb9e93b1..9ee6af14 100644 --- a/src/components/RequestModal/QuotaDisplay/index.tsx +++ b/src/components/RequestModal/QuotaDisplay/index.tsx @@ -1,6 +1,5 @@ import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid'; import Link from 'next/link'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import type { QuotaStatus } from '../../../../server/interfaces/api/userInterfaces'; diff --git a/src/components/RequestModal/SearchByNameModal/index.tsx b/src/components/RequestModal/SearchByNameModal/index.tsx index 856239ba..4bfb9631 100644 --- a/src/components/RequestModal/SearchByNameModal/index.tsx +++ b/src/components/RequestModal/SearchByNameModal/index.tsx @@ -1,5 +1,4 @@ import { DownloadIcon } from '@heroicons/react/outline'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { SonarrSeries } from '../../../../server/api/servarr/sonarr'; diff --git a/src/components/RequestModal/TvRequestModal.tsx b/src/components/RequestModal/TvRequestModal.tsx index 7bc1103f..8878af95 100644 --- a/src/components/RequestModal/TvRequestModal.tsx +++ b/src/components/RequestModal/TvRequestModal.tsx @@ -1,6 +1,5 @@ import { DownloadIcon } from '@heroicons/react/outline'; import axios from 'axios'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsDiscord.tsx b/src/components/Settings/Notifications/NotificationsDiscord.tsx index 3c1bb96f..20db80cc 100644 --- a/src/components/Settings/Notifications/NotificationsDiscord.tsx +++ b/src/components/Settings/Notifications/NotificationsDiscord.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsEmail.tsx b/src/components/Settings/Notifications/NotificationsEmail.tsx index fac6dd66..244b5b82 100644 --- a/src/components/Settings/Notifications/NotificationsEmail.tsx +++ b/src/components/Settings/Notifications/NotificationsEmail.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx b/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx index 33fd9e89..22fff42d 100644 --- a/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx +++ b/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx b/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx index 31b47125..78012e66 100644 --- a/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx +++ b/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsPushover/index.tsx b/src/components/Settings/Notifications/NotificationsPushover/index.tsx index a8b07e5f..d1e164e3 100644 --- a/src/components/Settings/Notifications/NotificationsPushover/index.tsx +++ b/src/components/Settings/Notifications/NotificationsPushover/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsSlack/index.tsx b/src/components/Settings/Notifications/NotificationsSlack/index.tsx index 868973bc..e6437f32 100644 --- a/src/components/Settings/Notifications/NotificationsSlack/index.tsx +++ b/src/components/Settings/Notifications/NotificationsSlack/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsTelegram.tsx b/src/components/Settings/Notifications/NotificationsTelegram.tsx index da6deecb..319cd177 100644 --- a/src/components/Settings/Notifications/NotificationsTelegram.tsx +++ b/src/components/Settings/Notifications/NotificationsTelegram.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/RadarrModal/index.tsx b/src/components/Settings/RadarrModal/index.tsx index 76a1c311..1cfaf4cf 100644 --- a/src/components/Settings/RadarrModal/index.tsx +++ b/src/components/Settings/RadarrModal/index.tsx @@ -1,7 +1,6 @@ import { PencilIcon, PlusIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; - import { useCallback, useEffect, useRef, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import Select from 'react-select'; diff --git a/src/components/Settings/SettingsAbout/index.tsx b/src/components/Settings/SettingsAbout/index.tsx index 3274f720..00aaa5ae 100644 --- a/src/components/Settings/SettingsAbout/index.tsx +++ b/src/components/Settings/SettingsAbout/index.tsx @@ -1,5 +1,4 @@ import { InformationCircleIcon } from '@heroicons/react/solid'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { diff --git a/src/components/Settings/SettingsLogs/index.tsx b/src/components/Settings/SettingsLogs/index.tsx index 8263dbc5..f70beb6e 100644 --- a/src/components/Settings/SettingsLogs/index.tsx +++ b/src/components/Settings/SettingsLogs/index.tsx @@ -9,7 +9,6 @@ import { } from '@heroicons/react/solid'; import copy from 'copy-to-clipboard'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/SettingsMain.tsx b/src/components/Settings/SettingsMain.tsx index 4a8b69a1..57b69931 100644 --- a/src/components/Settings/SettingsMain.tsx +++ b/src/components/Settings/SettingsMain.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import { RefreshIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/Settings/SettingsNotifications.tsx b/src/components/Settings/SettingsNotifications.tsx index 82bb7074..43d47c6d 100644 --- a/src/components/Settings/SettingsNotifications.tsx +++ b/src/components/Settings/SettingsNotifications.tsx @@ -1,5 +1,4 @@ import { CloudIcon, LightningBoltIcon, MailIcon } from '@heroicons/react/solid'; - import { defineMessages, useIntl } from 'react-intl'; import DiscordLogo from '../../assets/extlogos/discord.svg'; import GotifyLogo from '../../assets/extlogos/gotify.svg'; diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index 1387c351..319997a2 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -3,7 +3,6 @@ import { RefreshIcon, SearchIcon, XIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; import { orderBy } from 'lodash'; - import { useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/SettingsServices.tsx b/src/components/Settings/SettingsServices.tsx index f460bb1d..c618f7ba 100644 --- a/src/components/Settings/SettingsServices.tsx +++ b/src/components/Settings/SettingsServices.tsx @@ -1,6 +1,5 @@ import { PencilIcon, PlusIcon, TrashIcon } from '@heroicons/react/solid'; import axios from 'axios'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/Settings/SettingsUsers/index.tsx b/src/components/Settings/SettingsUsers/index.tsx index bb3a8d89..e78a97f6 100644 --- a/src/components/Settings/SettingsUsers/index.tsx +++ b/src/components/Settings/SettingsUsers/index.tsx @@ -1,7 +1,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/Settings/SonarrModal/index.tsx b/src/components/Settings/SonarrModal/index.tsx index 71282dcb..719ca4ea 100644 --- a/src/components/Settings/SonarrModal/index.tsx +++ b/src/components/Settings/SonarrModal/index.tsx @@ -1,7 +1,6 @@ import { PencilIcon, PlusIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; - import { useCallback, useEffect, useRef, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import type { OnChangeValue } from 'react-select'; diff --git a/src/components/Toast/index.tsx b/src/components/Toast/index.tsx index 57ffbdba..23e202d1 100644 --- a/src/components/Toast/index.tsx +++ b/src/components/Toast/index.tsx @@ -5,7 +5,6 @@ import { InformationCircleIcon, } from '@heroicons/react/outline'; import { XIcon } from '@heroicons/react/solid'; - import type { ToastProps } from 'react-toast-notifications'; import Transition from '../Transition'; diff --git a/src/components/TvDetails/TvCast/index.tsx b/src/components/TvDetails/TvCast/index.tsx index 09e4a8be..d30ec71b 100644 --- a/src/components/TvDetails/TvCast/index.tsx +++ b/src/components/TvDetails/TvCast/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvDetails } from '../../../../server/models/Tv'; diff --git a/src/components/TvDetails/TvCrew/index.tsx b/src/components/TvDetails/TvCrew/index.tsx index 2f6890b2..7dff59db 100644 --- a/src/components/TvDetails/TvCrew/index.tsx +++ b/src/components/TvDetails/TvCrew/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvDetails } from '../../../../server/models/Tv'; diff --git a/src/components/TvDetails/TvRecommendations.tsx b/src/components/TvDetails/TvRecommendations.tsx index db00c070..d5563350 100644 --- a/src/components/TvDetails/TvRecommendations.tsx +++ b/src/components/TvDetails/TvRecommendations.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvResult } from '../../../server/models/Search'; diff --git a/src/components/TvDetails/TvSimilar.tsx b/src/components/TvDetails/TvSimilar.tsx index d9b07a9c..74a2c7d9 100644 --- a/src/components/TvDetails/TvSimilar.tsx +++ b/src/components/TvDetails/TvSimilar.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvResult } from '../../../server/models/Search'; diff --git a/src/components/TvDetails/index.tsx b/src/components/TvDetails/index.tsx index bad8bb58..0a24a888 100644 --- a/src/components/TvDetails/index.tsx +++ b/src/components/TvDetails/index.tsx @@ -9,7 +9,6 @@ import { hasFlag } from 'country-flag-icons'; import 'country-flag-icons/3x2/flags.css'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/UserList/PlexImportModal.tsx b/src/components/UserList/PlexImportModal.tsx index 5473d1cf..48b074e7 100644 --- a/src/components/UserList/PlexImportModal.tsx +++ b/src/components/UserList/PlexImportModal.tsx @@ -1,6 +1,5 @@ import { InboxInIcon } from '@heroicons/react/solid'; import axios from 'axios'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/UserList/index.tsx b/src/components/UserList/index.tsx index e07824ce..9e19ab7e 100644 --- a/src/components/UserList/index.tsx +++ b/src/components/UserList/index.tsx @@ -11,7 +11,6 @@ import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/UserProfile/ProfileHeader/index.tsx b/src/components/UserProfile/ProfileHeader/index.tsx index 7fd98093..1a60200a 100644 --- a/src/components/UserProfile/ProfileHeader/index.tsx +++ b/src/components/UserProfile/ProfileHeader/index.tsx @@ -1,6 +1,5 @@ import { CogIcon, UserIcon } from '@heroicons/react/solid'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import type { User } from '../../../hooks/useUser'; import { Permission, useUser } from '../../../hooks/useUser'; diff --git a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx index a68a2d88..dd348ce7 100644 --- a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx index 26f28041..07f6867e 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx index 6c662033..30dd1795 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx index c28ed656..eabaf941 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx @@ -1,7 +1,6 @@ import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx index 8435bdf2..aea86fc5 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx @@ -1,7 +1,6 @@ import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx index f7f66481..7295237c 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx index de44818b..9987a9b8 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx index bfdb33b2..b7af6fbc 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx @@ -1,6 +1,5 @@ import { CloudIcon, MailIcon } from '@heroicons/react/solid'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { UserSettingsNotificationsResponse } from '../../../../../server/interfaces/api/userSettingsInterfaces'; diff --git a/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx b/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx index b28a4240..d25d97d3 100644 --- a/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx +++ b/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserPermissions/index.tsx b/src/components/UserProfile/UserSettings/UserPermissions/index.tsx index 77610c63..23434d0a 100644 --- a/src/components/UserProfile/UserSettings/UserPermissions/index.tsx +++ b/src/components/UserProfile/UserSettings/UserPermissions/index.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/index.tsx b/src/components/UserProfile/UserSettings/index.tsx index 972f4e77..e0a36fdc 100644 --- a/src/components/UserProfile/UserSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/index.tsx @@ -1,5 +1,4 @@ import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { UserSettingsNotificationsResponse } from '../../../../server/interfaces/api/userSettingsInterfaces'; diff --git a/src/context/UserContext.tsx b/src/context/UserContext.tsx index 3413df46..67ebe135 100644 --- a/src/context/UserContext.tsx +++ b/src/context/UserContext.tsx @@ -1,5 +1,4 @@ import { useRouter } from 'next/dist/client/router'; - import { useEffect, useRef } from 'react'; import type { User } from '../hooks/useUser'; import { useUser } from '../hooks/useUser'; diff --git a/src/pages/404.tsx b/src/pages/404.tsx index da74cfe8..7f3e88df 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,6 +1,5 @@ import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import PageTitle from '../components/Common/PageTitle'; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index aeef14c0..3b3112d3 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -2,7 +2,6 @@ import axios from 'axios'; import type { AppInitialProps, AppProps } from 'next/app'; import App from 'next/app'; import Head from 'next/head'; - import { useEffect, useState } from 'react'; import { IntlProvider } from 'react-intl'; import { ToastProvider } from 'react-toast-notifications'; diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx index cf84a918..5b534b2d 100644 --- a/src/pages/_error.tsx +++ b/src/pages/_error.tsx @@ -1,7 +1,6 @@ import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import type { NextPage } from 'next'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import PageTitle from '../components/Common/PageTitle'; import type { Undefinable } from '../utils/typeHelpers'; diff --git a/src/pages/collection/[collectionId]/index.tsx b/src/pages/collection/[collectionId]/index.tsx index 7a0848dc..b58f4eae 100644 --- a/src/pages/collection/[collectionId]/index.tsx +++ b/src/pages/collection/[collectionId]/index.tsx @@ -1,6 +1,5 @@ import axios from 'axios'; import type { GetServerSideProps, NextPage } from 'next'; - import type { Collection } from '../../../../server/models/Collection'; import CollectionDetails from '../../../components/CollectionDetails'; diff --git a/src/pages/issues/[issueId]/index.tsx b/src/pages/issues/[issueId]/index.tsx index 5d9c1811..f0a6c6dc 100644 --- a/src/pages/issues/[issueId]/index.tsx +++ b/src/pages/issues/[issueId]/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import IssueDetails from '../../../components/IssueDetails'; import useRouteGuard from '../../../hooks/useRouteGuard'; import { Permission } from '../../../hooks/useUser'; diff --git a/src/pages/issues/index.tsx b/src/pages/issues/index.tsx index 4dc6e888..36be8158 100644 --- a/src/pages/issues/index.tsx +++ b/src/pages/issues/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import IssueList from '../../components/IssueList'; import useRouteGuard from '../../hooks/useRouteGuard'; import { Permission } from '../../hooks/useUser'; diff --git a/src/pages/movie/[movieId]/cast.tsx b/src/pages/movie/[movieId]/cast.tsx index f2ee8f25..671f205b 100644 --- a/src/pages/movie/[movieId]/cast.tsx +++ b/src/pages/movie/[movieId]/cast.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import MovieCast from '../../../components/MovieDetails/MovieCast'; const MovieCastPage: NextPage = () => { diff --git a/src/pages/movie/[movieId]/crew.tsx b/src/pages/movie/[movieId]/crew.tsx index f62f258d..de026d14 100644 --- a/src/pages/movie/[movieId]/crew.tsx +++ b/src/pages/movie/[movieId]/crew.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import MovieCrew from '../../../components/MovieDetails/MovieCrew'; const MovieCrewPage: NextPage = () => { diff --git a/src/pages/movie/[movieId]/index.tsx b/src/pages/movie/[movieId]/index.tsx index 9951dc86..f42c4974 100644 --- a/src/pages/movie/[movieId]/index.tsx +++ b/src/pages/movie/[movieId]/index.tsx @@ -1,6 +1,5 @@ import axios from 'axios'; import type { NextPage } from 'next'; - import type { MovieDetails as MovieDetailsType } from '../../../../server/models/Movie'; import MovieDetails from '../../../components/MovieDetails'; diff --git a/src/pages/profile/index.tsx b/src/pages/profile/index.tsx index 21c3a260..3b4ce426 100644 --- a/src/pages/profile/index.tsx +++ b/src/pages/profile/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserProfile from '../../components/UserProfile'; const UserPage: NextPage = () => { diff --git a/src/pages/profile/settings/index.tsx b/src/pages/profile/settings/index.tsx index ddc6881c..0d2de65d 100644 --- a/src/pages/profile/settings/index.tsx +++ b/src/pages/profile/settings/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../components/UserProfile/UserSettings/UserGeneralSettings'; diff --git a/src/pages/profile/settings/main.tsx b/src/pages/profile/settings/main.tsx index 7363ad6b..8cd5b2cf 100644 --- a/src/pages/profile/settings/main.tsx +++ b/src/pages/profile/settings/main.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../components/UserProfile/UserSettings/UserGeneralSettings'; diff --git a/src/pages/profile/settings/notifications/discord.tsx b/src/pages/profile/settings/notifications/discord.tsx index cabc7894..5339a766 100644 --- a/src/pages/profile/settings/notifications/discord.tsx +++ b/src/pages/profile/settings/notifications/discord.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsDiscord from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord'; diff --git a/src/pages/profile/settings/notifications/email.tsx b/src/pages/profile/settings/notifications/email.tsx index ebbd1935..c8c0129d 100644 --- a/src/pages/profile/settings/notifications/email.tsx +++ b/src/pages/profile/settings/notifications/email.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsEmail from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail'; diff --git a/src/pages/profile/settings/notifications/pushbullet.tsx b/src/pages/profile/settings/notifications/pushbullet.tsx index fe262b10..41b17345 100644 --- a/src/pages/profile/settings/notifications/pushbullet.tsx +++ b/src/pages/profile/settings/notifications/pushbullet.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushbullet from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet'; diff --git a/src/pages/profile/settings/notifications/pushover.tsx b/src/pages/profile/settings/notifications/pushover.tsx index 8ee1e4c4..8ca5bd4b 100644 --- a/src/pages/profile/settings/notifications/pushover.tsx +++ b/src/pages/profile/settings/notifications/pushover.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushover from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover'; diff --git a/src/pages/profile/settings/notifications/telegram.tsx b/src/pages/profile/settings/notifications/telegram.tsx index e7459cca..c4d13e7b 100644 --- a/src/pages/profile/settings/notifications/telegram.tsx +++ b/src/pages/profile/settings/notifications/telegram.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsTelegram from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram'; diff --git a/src/pages/profile/settings/notifications/webpush.tsx b/src/pages/profile/settings/notifications/webpush.tsx index 3a4a7272..54a400b5 100644 --- a/src/pages/profile/settings/notifications/webpush.tsx +++ b/src/pages/profile/settings/notifications/webpush.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserWebPushSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush'; diff --git a/src/pages/profile/settings/password.tsx b/src/pages/profile/settings/password.tsx index 12ea2765..6e777e27 100644 --- a/src/pages/profile/settings/password.tsx +++ b/src/pages/profile/settings/password.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserPasswordChange from '../../../components/UserProfile/UserSettings/UserPasswordChange'; diff --git a/src/pages/profile/settings/permissions.tsx b/src/pages/profile/settings/permissions.tsx index a3b66c6e..c228437a 100644 --- a/src/pages/profile/settings/permissions.tsx +++ b/src/pages/profile/settings/permissions.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserPermissions from '../../../components/UserProfile/UserSettings/UserPermissions'; diff --git a/src/pages/settings/about.tsx b/src/pages/settings/about.tsx index 5f735f04..8fa6d29c 100644 --- a/src/pages/settings/about.tsx +++ b/src/pages/settings/about.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsAbout from '../../components/Settings/SettingsAbout'; import SettingsLayout from '../../components/Settings/SettingsLayout'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/jobs.tsx b/src/pages/settings/jobs.tsx index d59d0e26..60deb0cd 100644 --- a/src/pages/settings/jobs.tsx +++ b/src/pages/settings/jobs.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsJobs from '../../components/Settings/SettingsJobsCache'; import SettingsLayout from '../../components/Settings/SettingsLayout'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/logs.tsx b/src/pages/settings/logs.tsx index d670d76b..93eb8b8e 100644 --- a/src/pages/settings/logs.tsx +++ b/src/pages/settings/logs.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsLayout from '../../components/Settings/SettingsLayout'; import SettingsLogs from '../../components/Settings/SettingsLogs'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/notifications/discord.tsx b/src/pages/settings/notifications/discord.tsx index e087941f..10540b4b 100644 --- a/src/pages/settings/notifications/discord.tsx +++ b/src/pages/settings/notifications/discord.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsDiscord from '../../../components/Settings/Notifications/NotificationsDiscord'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/email.tsx b/src/pages/settings/notifications/email.tsx index 66d33640..2ec4fbd5 100644 --- a/src/pages/settings/notifications/email.tsx +++ b/src/pages/settings/notifications/email.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsEmail from '../../../components/Settings/Notifications/NotificationsEmail'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/gotify.tsx b/src/pages/settings/notifications/gotify.tsx index 83f48025..86a83e73 100644 --- a/src/pages/settings/notifications/gotify.tsx +++ b/src/pages/settings/notifications/gotify.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsGotify from '../../../components/Settings/Notifications/NotificationsGotify'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/lunasea.tsx b/src/pages/settings/notifications/lunasea.tsx index 7ddef083..00a7a0a7 100644 --- a/src/pages/settings/notifications/lunasea.tsx +++ b/src/pages/settings/notifications/lunasea.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsLunaSea from '../../../components/Settings/Notifications/NotificationsLunaSea'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/pushbullet.tsx b/src/pages/settings/notifications/pushbullet.tsx index d09a529c..9002d66a 100644 --- a/src/pages/settings/notifications/pushbullet.tsx +++ b/src/pages/settings/notifications/pushbullet.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsPushbullet from '../../../components/Settings/Notifications/NotificationsPushbullet'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/pushover.tsx b/src/pages/settings/notifications/pushover.tsx index d9018255..b3262ab2 100644 --- a/src/pages/settings/notifications/pushover.tsx +++ b/src/pages/settings/notifications/pushover.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsPushover from '../../../components/Settings/Notifications/NotificationsPushover'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/slack.tsx b/src/pages/settings/notifications/slack.tsx index 0230a621..98340f57 100644 --- a/src/pages/settings/notifications/slack.tsx +++ b/src/pages/settings/notifications/slack.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsSlack from '../../../components/Settings/Notifications/NotificationsSlack'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/telegram.tsx b/src/pages/settings/notifications/telegram.tsx index 6de159a8..e3b096c9 100644 --- a/src/pages/settings/notifications/telegram.tsx +++ b/src/pages/settings/notifications/telegram.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsTelegram from '../../../components/Settings/Notifications/NotificationsTelegram'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/webhook.tsx b/src/pages/settings/notifications/webhook.tsx index 7556b847..d06c1b65 100644 --- a/src/pages/settings/notifications/webhook.tsx +++ b/src/pages/settings/notifications/webhook.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsWebhook from '../../../components/Settings/Notifications/NotificationsWebhook'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/webpush.tsx b/src/pages/settings/notifications/webpush.tsx index 2ebb47a2..c517c704 100644 --- a/src/pages/settings/notifications/webpush.tsx +++ b/src/pages/settings/notifications/webpush.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsWebPush from '../../../components/Settings/Notifications/NotificationsWebPush'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/plex.tsx b/src/pages/settings/plex.tsx index 18da3d13..589851b3 100644 --- a/src/pages/settings/plex.tsx +++ b/src/pages/settings/plex.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsLayout from '../../components/Settings/SettingsLayout'; import SettingsPlex from '../../components/Settings/SettingsPlex'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/services.tsx b/src/pages/settings/services.tsx index af9f6d2a..c061c82a 100644 --- a/src/pages/settings/services.tsx +++ b/src/pages/settings/services.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsLayout from '../../components/Settings/SettingsLayout'; import SettingsServices from '../../components/Settings/SettingsServices'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/tv/[tvId]/cast.tsx b/src/pages/tv/[tvId]/cast.tsx index 26dfa11b..3843b512 100644 --- a/src/pages/tv/[tvId]/cast.tsx +++ b/src/pages/tv/[tvId]/cast.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import TvCast from '../../../components/TvDetails/TvCast'; const TvCastPage: NextPage = () => { diff --git a/src/pages/tv/[tvId]/crew.tsx b/src/pages/tv/[tvId]/crew.tsx index 014efe11..23f8b926 100644 --- a/src/pages/tv/[tvId]/crew.tsx +++ b/src/pages/tv/[tvId]/crew.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import TvCrew from '../../../components/TvDetails/TvCrew'; const TvCrewPage: NextPage = () => { diff --git a/src/pages/tv/[tvId]/index.tsx b/src/pages/tv/[tvId]/index.tsx index 4b83b3c2..ef89825b 100644 --- a/src/pages/tv/[tvId]/index.tsx +++ b/src/pages/tv/[tvId]/index.tsx @@ -1,6 +1,5 @@ import axios from 'axios'; import type { NextPage } from 'next'; - import type { TvDetails as TvDetailsType } from '../../../../server/models/Tv'; import TvDetails from '../../../components/TvDetails'; diff --git a/src/pages/users/[userId]/index.tsx b/src/pages/users/[userId]/index.tsx index 04c0e460..740727e0 100644 --- a/src/pages/users/[userId]/index.tsx +++ b/src/pages/users/[userId]/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserProfile from '../../../components/UserProfile'; const UserPage: NextPage = () => { diff --git a/src/pages/users/[userId]/requests.tsx b/src/pages/users/[userId]/requests.tsx index 4ffb0e55..2a4e3c30 100644 --- a/src/pages/users/[userId]/requests.tsx +++ b/src/pages/users/[userId]/requests.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import RequestList from '../../../components/RequestList'; import useRouteGuard from '../../../hooks/useRouteGuard'; import { Permission } from '../../../hooks/useUser'; diff --git a/src/pages/users/[userId]/settings/index.tsx b/src/pages/users/[userId]/settings/index.tsx index 862ad7b2..67e70cba 100644 --- a/src/pages/users/[userId]/settings/index.tsx +++ b/src/pages/users/[userId]/settings/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../../components/UserProfile/UserSettings/UserGeneralSettings'; import useRouteGuard from '../../../../hooks/useRouteGuard'; diff --git a/src/pages/users/[userId]/settings/main.tsx b/src/pages/users/[userId]/settings/main.tsx index e0764fed..40d2f9cb 100644 --- a/src/pages/users/[userId]/settings/main.tsx +++ b/src/pages/users/[userId]/settings/main.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../../components/UserProfile/UserSettings/UserGeneralSettings'; import useRouteGuard from '../../../../hooks/useRouteGuard'; diff --git a/src/pages/users/[userId]/settings/notifications/discord.tsx b/src/pages/users/[userId]/settings/notifications/discord.tsx index 837d88f9..d051f006 100644 --- a/src/pages/users/[userId]/settings/notifications/discord.tsx +++ b/src/pages/users/[userId]/settings/notifications/discord.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsDiscord from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord'; diff --git a/src/pages/users/[userId]/settings/notifications/email.tsx b/src/pages/users/[userId]/settings/notifications/email.tsx index bda08b3a..15eb8681 100644 --- a/src/pages/users/[userId]/settings/notifications/email.tsx +++ b/src/pages/users/[userId]/settings/notifications/email.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsEmail from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail'; diff --git a/src/pages/users/[userId]/settings/notifications/pushbullet.tsx b/src/pages/users/[userId]/settings/notifications/pushbullet.tsx index 30e17e05..62856285 100644 --- a/src/pages/users/[userId]/settings/notifications/pushbullet.tsx +++ b/src/pages/users/[userId]/settings/notifications/pushbullet.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushbullet from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet'; diff --git a/src/pages/users/[userId]/settings/notifications/pushover.tsx b/src/pages/users/[userId]/settings/notifications/pushover.tsx index 18dd034f..84231060 100644 --- a/src/pages/users/[userId]/settings/notifications/pushover.tsx +++ b/src/pages/users/[userId]/settings/notifications/pushover.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushover from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover'; diff --git a/src/pages/users/[userId]/settings/notifications/telegram.tsx b/src/pages/users/[userId]/settings/notifications/telegram.tsx index 4f6e1684..f81cebc0 100644 --- a/src/pages/users/[userId]/settings/notifications/telegram.tsx +++ b/src/pages/users/[userId]/settings/notifications/telegram.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsTelegram from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram'; diff --git a/src/pages/users/[userId]/settings/notifications/webpush.tsx b/src/pages/users/[userId]/settings/notifications/webpush.tsx index 4a58ed22..22b0cc5b 100644 --- a/src/pages/users/[userId]/settings/notifications/webpush.tsx +++ b/src/pages/users/[userId]/settings/notifications/webpush.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserWebPushSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush'; diff --git a/src/pages/users/[userId]/settings/password.tsx b/src/pages/users/[userId]/settings/password.tsx index b14cd4c2..7021ac49 100644 --- a/src/pages/users/[userId]/settings/password.tsx +++ b/src/pages/users/[userId]/settings/password.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserPasswordChange from '../../../../components/UserProfile/UserSettings/UserPasswordChange'; import useRouteGuard from '../../../../hooks/useRouteGuard'; diff --git a/src/pages/users/[userId]/settings/permissions.tsx b/src/pages/users/[userId]/settings/permissions.tsx index 00557349..4161cd1c 100644 --- a/src/pages/users/[userId]/settings/permissions.tsx +++ b/src/pages/users/[userId]/settings/permissions.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserPermissions from '../../../../components/UserProfile/UserSettings/UserPermissions'; import useRouteGuard from '../../../../hooks/useRouteGuard';