mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 00:05:09 +01:00
Rename views folder to pages
This commit is contained in:
parent
ec3b96a399
commit
2e7b6f3338
@ -6,12 +6,12 @@ import { MWQuery } from "@/backend/metadata/types/mw";
|
||||
import { WideContainer } from "@/components/layout/WideContainer";
|
||||
import { useDebounce } from "@/hooks/useDebounce";
|
||||
import { useSearchQuery } from "@/hooks/useSearchQuery";
|
||||
import { HomeLayout } from "@/views/layouts/HomeLayout";
|
||||
import { BookmarksPart } from "@/views/parts/home/BookmarksPart";
|
||||
import { HeroPart } from "@/views/parts/home/HeroPart";
|
||||
import { WatchingPart } from "@/views/parts/home/WatchingPart";
|
||||
import { SearchListPart } from "@/views/parts/search/SearchListPart";
|
||||
import { SearchLoadingPart } from "@/views/parts/search/SearchLoadingPart";
|
||||
import { HomeLayout } from "@/pages/layouts/HomeLayout";
|
||||
import { BookmarksPart } from "@/pages/parts/home/BookmarksPart";
|
||||
import { HeroPart } from "@/pages/parts/home/HeroPart";
|
||||
import { WatchingPart } from "@/pages/parts/home/WatchingPart";
|
||||
import { SearchListPart } from "@/pages/parts/search/SearchListPart";
|
||||
import { SearchLoadingPart } from "@/pages/parts/search/SearchLoadingPart";
|
||||
|
||||
function useSearch(search: MWQuery) {
|
||||
const [searching, setSearching] = useState<boolean>(false);
|
@ -9,7 +9,7 @@ import { SectionHeading } from "@/components/layout/SectionHeading";
|
||||
import { MediaGrid } from "@/components/media/MediaGrid";
|
||||
import { WatchedMediaCard } from "@/components/media/WatchedMediaCard";
|
||||
import { useLoading } from "@/hooks/useLoading";
|
||||
import { SearchLoadingPart } from "@/views/parts/search/SearchLoadingPart";
|
||||
import { SearchLoadingPart } from "@/pages/parts/search/SearchLoadingPart";
|
||||
|
||||
function SearchSuffix(props: { failed?: boolean; results?: number }) {
|
||||
const { t } = useTranslation();
|
@ -4,7 +4,7 @@ import { IconPatch } from "@/components/buttons/IconPatch";
|
||||
import { Icons } from "@/components/Icon";
|
||||
import { ArrowLink } from "@/components/text/ArrowLink";
|
||||
import { Title } from "@/components/text/Title";
|
||||
import { ErrorWrapperPart } from "@/views/parts/errors/ErrorWrapperPart";
|
||||
import { ErrorWrapperPart } from "@/pages/parts/errors/ErrorWrapperPart";
|
||||
|
||||
export function NotFoundPage() {
|
||||
const { t } = useTranslation();
|
@ -16,6 +16,8 @@ import { Loading } from "@/components/layout/Loading";
|
||||
import { useGoBack } from "@/hooks/useGoBack";
|
||||
import { useLoading } from "@/hooks/useLoading";
|
||||
import { SelectedMediaData, useScrape } from "@/hooks/useScrape";
|
||||
import { ErrorWrapperPart } from "@/pages/parts/errors/ErrorWrapperPart";
|
||||
import { MediaNotFoundPart } from "@/pages/parts/errors/MediaNotFoundPart";
|
||||
import { useWatchedItem } from "@/state/watched";
|
||||
import { MetaController } from "@/video/components/controllers/MetaController";
|
||||
import { ProgressListenerController } from "@/video/components/controllers/ProgressListenerController";
|
||||
@ -24,8 +26,6 @@ import { SourceController } from "@/video/components/controllers/SourceControlle
|
||||
import { VideoPlayerHeader } from "@/video/components/parts/VideoPlayerHeader";
|
||||
import { VideoPlayer } from "@/video/components/VideoPlayer";
|
||||
import { VideoPlayerMeta } from "@/video/state/types";
|
||||
import { ErrorWrapperPart } from "@/views/parts/errors/ErrorWrapperPart";
|
||||
import { MediaNotFoundPart } from "@/views/parts/errors/MediaNotFoundPart";
|
||||
|
||||
import { MediaFetchErrorView } from "./MediaErrorView";
|
||||
import { MediaScrapeLog } from "./MediaScrapeLog";
|
@ -9,7 +9,7 @@ import { SectionHeading } from "@/components/layout/SectionHeading";
|
||||
import { MediaGrid } from "@/components/media/MediaGrid";
|
||||
import { WatchedMediaCard } from "@/components/media/WatchedMediaCard";
|
||||
import { useLoading } from "@/hooks/useLoading";
|
||||
import { SearchLoadingPart } from "@/views/parts/search/SearchLoadingPart";
|
||||
import { SearchLoadingPart } from "@/pages/parts/search/SearchLoadingPart";
|
||||
|
||||
function SearchSuffix(props: { failed?: boolean; results?: number }) {
|
||||
const { t } = useTranslation();
|
@ -11,13 +11,13 @@ import {
|
||||
import { convertLegacyUrl, isLegacyUrl } from "@/backend/metadata/getmeta";
|
||||
import { generateQuickSearchMediaUrl } from "@/backend/metadata/tmdb";
|
||||
import { BannerContextProvider } from "@/hooks/useBanner";
|
||||
import { NotFoundPage } from "@/pages/errors/NotFoundPage";
|
||||
import { HomePage } from "@/pages/HomePage";
|
||||
import { MediaView } from "@/pages/media/MediaView";
|
||||
import { Layout } from "@/setup/Layout";
|
||||
import { BookmarkContextProvider } from "@/state/bookmark";
|
||||
import { SettingsProvider } from "@/state/settings";
|
||||
import { WatchedContextProvider } from "@/state/watched";
|
||||
import { NotFoundPage } from "@/views/errors/NotFoundPage";
|
||||
import { HomePage } from "@/views/HomePage";
|
||||
import { MediaView } from "@/views/media/MediaView";
|
||||
|
||||
function LegacyUrlView({ children }: { children: ReactElement }) {
|
||||
const location = useLocation();
|
||||
@ -92,13 +92,13 @@ function App() {
|
||||
<Route
|
||||
exact
|
||||
path="/dev"
|
||||
component={lazy(() => import("@/views/DeveloperPage"))}
|
||||
component={lazy(() => import("@/pages/DeveloperPage"))}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path="/dev/video"
|
||||
component={lazy(
|
||||
() => import("@/views/developer/VideoTesterView")
|
||||
() => import("@/pages/developer/VideoTesterView")
|
||||
)}
|
||||
/>
|
||||
{/* developer routes that can abuse workers are disabled in production */}
|
||||
@ -108,7 +108,7 @@ function App() {
|
||||
exact
|
||||
path="/dev/test"
|
||||
component={lazy(
|
||||
() => import("@/views/developer/TestView")
|
||||
() => import("@/pages/developer/TestView")
|
||||
)}
|
||||
/>
|
||||
|
||||
@ -116,14 +116,14 @@ function App() {
|
||||
exact
|
||||
path="/dev/providers"
|
||||
component={lazy(
|
||||
() => import("@/views/developer/ProviderTesterView")
|
||||
() => import("@/pages/developer/ProviderTesterView")
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path="/dev/embeds"
|
||||
component={lazy(
|
||||
() => import("@/views/developer/EmbedTesterView")
|
||||
() => import("@/pages/developer/EmbedTesterView")
|
||||
)}
|
||||
/>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user