diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 1104e10..d9a185f 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -2,7 +2,7 @@ import Button from "components/Inputs/Button"; import { useAppLayout } from "contexts/AppLayoutContext"; import { UploadImageFragment } from "graphql/generated"; import { prettyLanguage, prettySlug } from "helpers/formatters"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { getOgImage, ImageQuality, OgImage } from "helpers/img"; import { useMediaMobile } from "hooks/useMediaQuery"; import Head from "next/head"; diff --git a/src/components/Inputs/LanguageSwitcher.tsx b/src/components/Inputs/LanguageSwitcher.tsx index 85eb032..25c9fb4 100644 --- a/src/components/Inputs/LanguageSwitcher.tsx +++ b/src/components/Inputs/LanguageSwitcher.tsx @@ -1,5 +1,5 @@ import { prettyLanguage } from "helpers/formatters"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { Dispatch, SetStateAction } from "react"; import ToolTip from "../ToolTip"; import Button from "./Button"; diff --git a/src/components/Library/ContentLine.tsx b/src/components/Library/ContentLine.tsx index 414d892..cf04a60 100644 --- a/src/components/Library/ContentLine.tsx +++ b/src/components/Library/ContentLine.tsx @@ -2,7 +2,7 @@ import Chip from "components/Chip"; import Button from "components/Inputs/Button"; import { GetLibraryItemQuery } from "graphql/generated"; import { prettyinlineTitle, prettySlug } from "helpers/formatters"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { useState } from "react"; interface Props { diff --git a/src/components/Library/ScanSet.tsx b/src/components/Library/ScanSet.tsx index 38f1cbb..f1727c1 100644 --- a/src/components/Library/ScanSet.tsx +++ b/src/components/Library/ScanSet.tsx @@ -4,7 +4,7 @@ import Button from "components/Inputs/Button"; import RecorderChip from "components/RecorderChip"; import ToolTip from "components/ToolTip"; import { GetLibraryItemScansQuery } from "graphql/generated"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { getStatusDescription } from "helpers/others"; import { getAssetFilename, getAssetURL, ImageQuality } from "helpers/img"; import { isInteger } from "helpers/numbers"; diff --git a/src/components/Library/ScanSetCover.tsx b/src/components/Library/ScanSetCover.tsx index 40a2f3d..6fad839 100644 --- a/src/components/Library/ScanSetCover.tsx +++ b/src/components/Library/ScanSetCover.tsx @@ -6,7 +6,7 @@ import { GetLibraryItemScansQuery, UploadImageFragment, } from "graphql/generated"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { getStatusDescription } from "helpers/others"; import { getAssetURL, ImageQuality } from "helpers/img"; import useSmartLanguage from "hooks/useSmartLanguage"; diff --git a/src/components/PanelComponents/ReturnButton.tsx b/src/components/PanelComponents/ReturnButton.tsx index 42649d3..498279c 100644 --- a/src/components/PanelComponents/ReturnButton.tsx +++ b/src/components/PanelComponents/ReturnButton.tsx @@ -1,7 +1,7 @@ import HorizontalLine from "components/HorizontalLine"; import Button from "components/Inputs/Button"; import { useAppLayout } from "contexts/AppLayoutContext"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; interface Props { href: string; diff --git a/src/components/Panels/MainPanel.tsx b/src/components/Panels/MainPanel.tsx index 5c95204..4194c96 100644 --- a/src/components/Panels/MainPanel.tsx +++ b/src/components/Panels/MainPanel.tsx @@ -6,7 +6,7 @@ import { useAppLayout } from "contexts/AppLayoutContext"; import { useMediaDesktop } from "hooks/useMediaQuery"; import Markdown from "markdown-to-jsx"; import Link from "next/link"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; interface Props { langui: AppStaticProps["langui"]; diff --git a/src/components/PostPage.tsx b/src/components/PostPage.tsx index 841ebe8..e301928 100644 --- a/src/components/PostPage.tsx +++ b/src/components/PostPage.tsx @@ -1,5 +1,5 @@ import { prettySlug } from "helpers/formatters"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { getStatusDescription } from "helpers/others"; import { Post } from "helpers/types"; import useSmartLanguage from "hooks/useSmartLanguage"; diff --git a/src/components/PreviewCard.tsx b/src/components/PreviewCard.tsx index cea63d0..6b8681c 100644 --- a/src/components/PreviewCard.tsx +++ b/src/components/PreviewCard.tsx @@ -10,7 +10,7 @@ import { prettyPrice, prettyShortenNumber, } from "helpers/formatters"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { ImageQuality } from "helpers/img"; import Link from "next/link"; import Chip from "./Chip"; diff --git a/src/components/RecorderChip.tsx b/src/components/RecorderChip.tsx index ed1b734..8af3b6d 100644 --- a/src/components/RecorderChip.tsx +++ b/src/components/RecorderChip.tsx @@ -1,6 +1,6 @@ import Chip from "components/Chip"; import { RecorderChipFragment } from "graphql/generated"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { ImageQuality } from "helpers/img"; import Img from "./Img"; import Markdawn from "./Markdown/Markdawn"; diff --git a/src/components/ThumbnailHeader.tsx b/src/components/ThumbnailHeader.tsx index c36a8cd..0503973 100644 --- a/src/components/ThumbnailHeader.tsx +++ b/src/components/ThumbnailHeader.tsx @@ -4,7 +4,7 @@ import InsetBox from "components/InsetBox"; import Markdawn from "components/Markdown/Markdawn"; import { GetContentQuery, UploadImageFragment } from "graphql/generated"; import { prettyinlineTitle, prettySlug, slugify } from "helpers/formatters"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { ImageQuality } from "helpers/img"; interface Props { diff --git a/src/components/Wiki/Chronology/ChronologyItemComponent.tsx b/src/components/Wiki/Chronology/ChronologyItemComponent.tsx index 4d2723f..2b96935 100644 --- a/src/components/Wiki/Chronology/ChronologyItemComponent.tsx +++ b/src/components/Wiki/Chronology/ChronologyItemComponent.tsx @@ -4,7 +4,7 @@ import { Enum_Componenttranslationschronologyitem_Status, GetChronologyItemsQuery, } from "graphql/generated"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { getStatusDescription } from "helpers/others"; interface Props { diff --git a/src/components/Wiki/Chronology/ChronologyYearComponent.tsx b/src/components/Wiki/Chronology/ChronologyYearComponent.tsx index 534eacd..b69715e 100644 --- a/src/components/Wiki/Chronology/ChronologyYearComponent.tsx +++ b/src/components/Wiki/Chronology/ChronologyYearComponent.tsx @@ -1,6 +1,6 @@ import ChronologyItemComponent from "components/Wiki/Chronology/ChronologyItemComponent"; import { GetChronologyItemsQuery } from "graphql/generated"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; interface Props { year: number; diff --git a/src/helpers/getAppStaticProps.ts b/src/graphql/getAppStaticProps.ts similarity index 100% rename from src/helpers/getAppStaticProps.ts rename to src/graphql/getAppStaticProps.ts diff --git a/src/helpers/formatters.ts b/src/helpers/formatters.ts index b561415..dd04b2f 100644 --- a/src/helpers/formatters.ts +++ b/src/helpers/formatters.ts @@ -1,5 +1,5 @@ import { DatePickerFragment, PricePickerFragment } from "graphql/generated"; -import { AppStaticProps } from "./getAppStaticProps"; +import { AppStaticProps } from "../graphql/getAppStaticProps"; import { convertPrice } from "./numbers"; export function prettyDate(datePicker: DatePickerFragment): string { diff --git a/src/helpers/others.ts b/src/helpers/others.ts index c8313c8..ed50242 100644 --- a/src/helpers/others.ts +++ b/src/helpers/others.ts @@ -3,7 +3,7 @@ import { GetLibraryItemQuery, GetLibraryItemScansQuery, } from "graphql/generated"; -import { AppStaticProps } from "./getAppStaticProps"; +import { AppStaticProps } from "../graphql/getAppStaticProps"; export function sortContent( contents: diff --git a/src/hooks/useSmartLanguage.tsx b/src/hooks/useSmartLanguage.tsx index 59ab827..13af8dd 100644 --- a/src/hooks/useSmartLanguage.tsx +++ b/src/hooks/useSmartLanguage.tsx @@ -1,6 +1,6 @@ import LanguageSwitcher from "components/Inputs/LanguageSwitcher"; import { useAppLayout } from "contexts/AppLayoutContext"; -import { AppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps } from "graphql/getAppStaticProps"; import { useRouter } from "next/router"; import { useEffect, useMemo, useState } from "react"; diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 0ba10c1..9549334 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -4,7 +4,7 @@ import ReturnButton, { } from "components/PanelComponents/ReturnButton"; import ContentPanel from "components/Panels/ContentPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} diff --git a/src/pages/500.tsx b/src/pages/500.tsx index f04f458..2093c65 100644 --- a/src/pages/500.tsx +++ b/src/pages/500.tsx @@ -4,7 +4,7 @@ import ReturnButton, { } from "components/PanelComponents/ReturnButton"; import ContentPanel from "components/Panels/ContentPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} diff --git a/src/pages/about-us/accords-handbook.tsx b/src/pages/about-us/accords-handbook.tsx index 1fb8c7c..06b1a8c 100644 --- a/src/pages/about-us/accords-handbook.tsx +++ b/src/pages/about-us/accords-handbook.tsx @@ -1,6 +1,6 @@ import PostPage from "components/PostPage"; import { getReadySdk } from "graphql/sdk"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { Post } from "helpers/types"; import { GetStaticPropsContext } from "next"; diff --git a/src/pages/about-us/contact.tsx b/src/pages/about-us/contact.tsx index 7e8b956..1d1f278 100644 --- a/src/pages/about-us/contact.tsx +++ b/src/pages/about-us/contact.tsx @@ -2,7 +2,7 @@ import InsetBox from "components/InsetBox"; import PostPage from "components/PostPage"; import { randomInt } from "crypto"; import { getReadySdk } from "graphql/sdk"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { Post } from "helpers/types"; import { GetStaticPropsContext } from "next"; import { useRouter } from "next/router"; diff --git a/src/pages/about-us/index.tsx b/src/pages/about-us/index.tsx index bac403e..2a1538b 100644 --- a/src/pages/about-us/index.tsx +++ b/src/pages/about-us/index.tsx @@ -3,7 +3,7 @@ import NavOption from "components/PanelComponents/NavOption"; import PanelHeader from "components/PanelComponents/PanelHeader"; import SubPanel from "components/Panels/SubPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} diff --git a/src/pages/about-us/legality.tsx b/src/pages/about-us/legality.tsx index 53db47b..8149037 100644 --- a/src/pages/about-us/legality.tsx +++ b/src/pages/about-us/legality.tsx @@ -1,6 +1,6 @@ import PostPage from "components/PostPage"; import { getReadySdk } from "graphql/sdk"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { Post } from "helpers/types"; import { GetStaticPropsContext } from "next"; diff --git a/src/pages/about-us/sharing-policy.tsx b/src/pages/about-us/sharing-policy.tsx index 16a2436..f7b3c5c 100644 --- a/src/pages/about-us/sharing-policy.tsx +++ b/src/pages/about-us/sharing-policy.tsx @@ -1,6 +1,6 @@ import PostPage from "components/PostPage"; import { getReadySdk } from "graphql/sdk"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { Post } from "helpers/types"; import { GetStaticPropsContext } from "next"; diff --git a/src/pages/archives/index.tsx b/src/pages/archives/index.tsx index 906587e..dde0f10 100644 --- a/src/pages/archives/index.tsx +++ b/src/pages/archives/index.tsx @@ -3,7 +3,7 @@ import NavOption from "components/PanelComponents/NavOption"; import PanelHeader from "components/PanelComponents/PanelHeader"; import SubPanel from "components/Panels/SubPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} diff --git a/src/pages/archives/videos/c/[uid].tsx b/src/pages/archives/videos/c/[uid].tsx index e85f43d..969febc 100644 --- a/src/pages/archives/videos/c/[uid].tsx +++ b/src/pages/archives/videos/c/[uid].tsx @@ -11,7 +11,7 @@ import SubPanel from "components/Panels/SubPanel"; import ThumbnailPreview from "components/PreviewCard"; import { GetVideoChannelQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getVideoThumbnailURL } from "helpers/videos"; import { GetStaticPathsContext, diff --git a/src/pages/archives/videos/index.tsx b/src/pages/archives/videos/index.tsx index 53bb545..5d26e5d 100644 --- a/src/pages/archives/videos/index.tsx +++ b/src/pages/archives/videos/index.tsx @@ -13,7 +13,7 @@ import ThumbnailPreview from "components/PreviewCard"; import { GetVideosPreviewQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { prettyDate } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getVideoThumbnailURL } from "helpers/videos"; import { GetStaticPropsContext } from "next"; import { useState } from "react"; diff --git a/src/pages/archives/videos/v/[uid].tsx b/src/pages/archives/videos/v/[uid].tsx index a631a58..5561786 100644 --- a/src/pages/archives/videos/v/[uid].tsx +++ b/src/pages/archives/videos/v/[uid].tsx @@ -19,7 +19,7 @@ import { GetStaticPathsResult, GetStaticPropsContext, } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { prettyDate, prettyShortenNumber } from "helpers/formatters"; import { getVideoFile } from "helpers/videos"; diff --git a/src/pages/chronicles/index.tsx b/src/pages/chronicles/index.tsx index eb23755..ea6b0c0 100644 --- a/src/pages/chronicles/index.tsx +++ b/src/pages/chronicles/index.tsx @@ -2,7 +2,7 @@ import AppLayout from "components/AppLayout"; import PanelHeader from "components/PanelComponents/PanelHeader"; import SubPanel from "components/Panels/SubPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} diff --git a/src/pages/contents/[slug]/index.tsx b/src/pages/contents/[slug]/index.tsx index 3506fd8..9cb42ca 100644 --- a/src/pages/contents/[slug]/index.tsx +++ b/src/pages/contents/[slug]/index.tsx @@ -19,7 +19,7 @@ import { prettyLanguage, prettySlug, } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getStatusDescription } from "helpers/others"; import { useMediaMobile } from "hooks/useMediaQuery"; import useSmartLanguage from "hooks/useSmartLanguage"; diff --git a/src/pages/contents/index.tsx b/src/pages/contents/index.tsx index 9ba6ac4..54df12a 100644 --- a/src/pages/contents/index.tsx +++ b/src/pages/contents/index.tsx @@ -11,7 +11,7 @@ import ThumbnailPreview from "components/PreviewCard"; import { GetContentsQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { useEffect, useState } from "react"; import { prettySlug, prettyinlineTitle } from "helpers/formatters"; diff --git a/src/pages/dev/checkup/contents.tsx b/src/pages/dev/checkup/contents.tsx index e744b0b..392d063 100644 --- a/src/pages/dev/checkup/contents.tsx +++ b/src/pages/dev/checkup/contents.tsx @@ -11,7 +11,7 @@ import { } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps { contents: DevGetContentsQuery; diff --git a/src/pages/dev/checkup/libraryitems.tsx b/src/pages/dev/checkup/libraryitems.tsx index ffc1950..eb4ca2b 100644 --- a/src/pages/dev/checkup/libraryitems.tsx +++ b/src/pages/dev/checkup/libraryitems.tsx @@ -11,7 +11,7 @@ import { } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps { libraryItems: DevGetLibraryItemsQuery; diff --git a/src/pages/dev/editor.tsx b/src/pages/dev/editor.tsx index d873018..9faee01 100644 --- a/src/pages/dev/editor.tsx +++ b/src/pages/dev/editor.tsx @@ -7,7 +7,7 @@ import ContentPanel, { import Popup from "components/Popup"; import ToolTip from "components/ToolTip"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { useCallback, useState } from "react"; import TurndownService from "turndown"; diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index 305dbc5..925448f 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -1,6 +1,6 @@ import AppLayout from "components/AppLayout"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index c724c1d..c7a9b5b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,7 +1,7 @@ import PostPage from "components/PostPage"; import { getReadySdk } from "graphql/sdk"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { Post } from "helpers/types"; interface Props extends AppStaticProps { diff --git a/src/pages/library/[slug]/index.tsx b/src/pages/library/[slug]/index.tsx index 5a9f0bc..ac711e8 100644 --- a/src/pages/library/[slug]/index.tsx +++ b/src/pages/library/[slug]/index.tsx @@ -30,7 +30,7 @@ import { prettyPrice, prettyURL, } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { sortContent } from "helpers/others"; import { getAssetURL, ImageQuality } from "helpers/img"; import { convertMmToInch } from "helpers/numbers"; diff --git a/src/pages/library/[slug]/scans.tsx b/src/pages/library/[slug]/scans.tsx index 97f459e..3a92972 100644 --- a/src/pages/library/[slug]/scans.tsx +++ b/src/pages/library/[slug]/scans.tsx @@ -14,7 +14,7 @@ import { useAppLayout } from "contexts/AppLayoutContext"; import { GetLibraryItemScansQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { prettyinlineTitle, prettySlug } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { sortContent } from "helpers/others"; import { GetStaticPathsContext, diff --git a/src/pages/library/index.tsx b/src/pages/library/index.tsx index 3b9042a..cd7f7bf 100644 --- a/src/pages/library/index.tsx +++ b/src/pages/library/index.tsx @@ -15,7 +15,7 @@ import { prettyinlineTitle, prettyItemSubType, } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { convertPrice } from "helpers/numbers"; import { GetStaticPropsContext } from "next"; import { useEffect, useState } from "react"; diff --git a/src/pages/merch/index.tsx b/src/pages/merch/index.tsx index e1d950c..c791951 100644 --- a/src/pages/merch/index.tsx +++ b/src/pages/merch/index.tsx @@ -2,7 +2,7 @@ import AppLayout from "components/AppLayout"; import PanelHeader from "components/PanelComponents/PanelHeader"; import SubPanel from "components/Panels/SubPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {} export default function Merch(props: Props): JSX.Element { diff --git a/src/pages/news/[slug].tsx b/src/pages/news/[slug].tsx index 50906e5..2745e8d 100644 --- a/src/pages/news/[slug].tsx +++ b/src/pages/news/[slug].tsx @@ -1,7 +1,7 @@ import PostPage from "components/PostPage"; import { GetPostQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { Post } from "helpers/types"; import { GetStaticPathsContext, diff --git a/src/pages/news/index.tsx b/src/pages/news/index.tsx index d72a6af..a4b595b 100644 --- a/src/pages/news/index.tsx +++ b/src/pages/news/index.tsx @@ -9,7 +9,7 @@ import ThumbnailPreview from "components/PreviewCard"; import { GetPostsPreviewQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { prettyDate, prettySlug } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { GetStaticPropsContext } from "next"; import { useState } from "react"; diff --git a/src/pages/wiki/chronology.tsx b/src/pages/wiki/chronology.tsx index 7e608df..9806b2c 100644 --- a/src/pages/wiki/chronology.tsx +++ b/src/pages/wiki/chronology.tsx @@ -11,7 +11,7 @@ import { useAppLayout } from "contexts/AppLayoutContext"; import { GetChronologyItemsQuery, GetErasQuery } from "graphql/generated"; import { getReadySdk } from "graphql/sdk"; import { prettySlug } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { GetStaticPropsContext } from "next"; interface Props extends AppStaticProps { diff --git a/src/pages/wiki/index.tsx b/src/pages/wiki/index.tsx index f00ea29..a44d72b 100644 --- a/src/pages/wiki/index.tsx +++ b/src/pages/wiki/index.tsx @@ -3,7 +3,7 @@ import NavOption from "components/PanelComponents/NavOption"; import PanelHeader from "components/PanelComponents/PanelHeader"; import SubPanel from "components/Panels/SubPanel"; import { GetStaticPropsContext } from "next"; -import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; interface Props extends AppStaticProps {}