1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Rename views folder to pages

This commit is contained in:
mrjvs 2023-08-20 18:46:13 +02:00
parent ec3b96a399
commit 2e7b6f3338
22 changed files with 19 additions and 19 deletions

View file

@ -6,12 +6,12 @@ import { MWQuery } from "@/backend/metadata/types/mw";
import { WideContainer } from "@/components/layout/WideContainer"; import { WideContainer } from "@/components/layout/WideContainer";
import { useDebounce } from "@/hooks/useDebounce"; import { useDebounce } from "@/hooks/useDebounce";
import { useSearchQuery } from "@/hooks/useSearchQuery"; import { useSearchQuery } from "@/hooks/useSearchQuery";
import { HomeLayout } from "@/views/layouts/HomeLayout"; import { HomeLayout } from "@/pages/layouts/HomeLayout";
import { BookmarksPart } from "@/views/parts/home/BookmarksPart"; import { BookmarksPart } from "@/pages/parts/home/BookmarksPart";
import { HeroPart } from "@/views/parts/home/HeroPart"; import { HeroPart } from "@/pages/parts/home/HeroPart";
import { WatchingPart } from "@/views/parts/home/WatchingPart"; import { WatchingPart } from "@/pages/parts/home/WatchingPart";
import { SearchListPart } from "@/views/parts/search/SearchListPart"; import { SearchListPart } from "@/pages/parts/search/SearchListPart";
import { SearchLoadingPart } from "@/views/parts/search/SearchLoadingPart"; import { SearchLoadingPart } from "@/pages/parts/search/SearchLoadingPart";
function useSearch(search: MWQuery) { function useSearch(search: MWQuery) {
const [searching, setSearching] = useState<boolean>(false); const [searching, setSearching] = useState<boolean>(false);

View file

@ -9,7 +9,7 @@ import { SectionHeading } from "@/components/layout/SectionHeading";
import { MediaGrid } from "@/components/media/MediaGrid"; import { MediaGrid } from "@/components/media/MediaGrid";
import { WatchedMediaCard } from "@/components/media/WatchedMediaCard"; import { WatchedMediaCard } from "@/components/media/WatchedMediaCard";
import { useLoading } from "@/hooks/useLoading"; 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 }) { function SearchSuffix(props: { failed?: boolean; results?: number }) {
const { t } = useTranslation(); const { t } = useTranslation();

View file

@ -4,7 +4,7 @@ import { IconPatch } from "@/components/buttons/IconPatch";
import { Icons } from "@/components/Icon"; import { Icons } from "@/components/Icon";
import { ArrowLink } from "@/components/text/ArrowLink"; import { ArrowLink } from "@/components/text/ArrowLink";
import { Title } from "@/components/text/Title"; import { Title } from "@/components/text/Title";
import { ErrorWrapperPart } from "@/views/parts/errors/ErrorWrapperPart"; import { ErrorWrapperPart } from "@/pages/parts/errors/ErrorWrapperPart";
export function NotFoundPage() { export function NotFoundPage() {
const { t } = useTranslation(); const { t } = useTranslation();

View file

@ -16,6 +16,8 @@ import { Loading } from "@/components/layout/Loading";
import { useGoBack } from "@/hooks/useGoBack"; import { useGoBack } from "@/hooks/useGoBack";
import { useLoading } from "@/hooks/useLoading"; import { useLoading } from "@/hooks/useLoading";
import { SelectedMediaData, useScrape } from "@/hooks/useScrape"; 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 { useWatchedItem } from "@/state/watched";
import { MetaController } from "@/video/components/controllers/MetaController"; import { MetaController } from "@/video/components/controllers/MetaController";
import { ProgressListenerController } from "@/video/components/controllers/ProgressListenerController"; 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 { VideoPlayerHeader } from "@/video/components/parts/VideoPlayerHeader";
import { VideoPlayer } from "@/video/components/VideoPlayer"; import { VideoPlayer } from "@/video/components/VideoPlayer";
import { VideoPlayerMeta } from "@/video/state/types"; 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 { MediaFetchErrorView } from "./MediaErrorView";
import { MediaScrapeLog } from "./MediaScrapeLog"; import { MediaScrapeLog } from "./MediaScrapeLog";

View file

@ -9,7 +9,7 @@ import { SectionHeading } from "@/components/layout/SectionHeading";
import { MediaGrid } from "@/components/media/MediaGrid"; import { MediaGrid } from "@/components/media/MediaGrid";
import { WatchedMediaCard } from "@/components/media/WatchedMediaCard"; import { WatchedMediaCard } from "@/components/media/WatchedMediaCard";
import { useLoading } from "@/hooks/useLoading"; 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 }) { function SearchSuffix(props: { failed?: boolean; results?: number }) {
const { t } = useTranslation(); const { t } = useTranslation();

View file

@ -11,13 +11,13 @@ import {
import { convertLegacyUrl, isLegacyUrl } from "@/backend/metadata/getmeta"; import { convertLegacyUrl, isLegacyUrl } from "@/backend/metadata/getmeta";
import { generateQuickSearchMediaUrl } from "@/backend/metadata/tmdb"; import { generateQuickSearchMediaUrl } from "@/backend/metadata/tmdb";
import { BannerContextProvider } from "@/hooks/useBanner"; 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 { Layout } from "@/setup/Layout";
import { BookmarkContextProvider } from "@/state/bookmark"; import { BookmarkContextProvider } from "@/state/bookmark";
import { SettingsProvider } from "@/state/settings"; import { SettingsProvider } from "@/state/settings";
import { WatchedContextProvider } from "@/state/watched"; 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 }) { function LegacyUrlView({ children }: { children: ReactElement }) {
const location = useLocation(); const location = useLocation();
@ -92,13 +92,13 @@ function App() {
<Route <Route
exact exact
path="/dev" path="/dev"
component={lazy(() => import("@/views/DeveloperPage"))} component={lazy(() => import("@/pages/DeveloperPage"))}
/> />
<Route <Route
exact exact
path="/dev/video" path="/dev/video"
component={lazy( component={lazy(
() => import("@/views/developer/VideoTesterView") () => import("@/pages/developer/VideoTesterView")
)} )}
/> />
{/* developer routes that can abuse workers are disabled in production */} {/* developer routes that can abuse workers are disabled in production */}
@ -108,7 +108,7 @@ function App() {
exact exact
path="/dev/test" path="/dev/test"
component={lazy( component={lazy(
() => import("@/views/developer/TestView") () => import("@/pages/developer/TestView")
)} )}
/> />
@ -116,14 +116,14 @@ function App() {
exact exact
path="/dev/providers" path="/dev/providers"
component={lazy( component={lazy(
() => import("@/views/developer/ProviderTesterView") () => import("@/pages/developer/ProviderTesterView")
)} )}
/> />
<Route <Route
exact exact
path="/dev/embeds" path="/dev/embeds"
component={lazy( component={lazy(
() => import("@/views/developer/EmbedTesterView") () => import("@/pages/developer/EmbedTesterView")
)} )}
/> />
</> </>