Renammed the queries folder to helpers
This commit is contained in:
		
							parent
							
								
									08170887b9
								
							
						
					
					
						commit
						b043e453c7
					
				| @ -4,13 +4,13 @@ import { UploadImageFragment } from "graphql/generated"; | |||||||
| import { useMediaMobile } from "hooks/useMediaQuery"; | import { useMediaMobile } from "hooks/useMediaQuery"; | ||||||
| import Head from "next/head"; | import Head from "next/head"; | ||||||
| import { useRouter } from "next/router"; | import { useRouter } from "next/router"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { | import { | ||||||
|   getOgImage, |   getOgImage, | ||||||
|   OgImage, |   OgImage, | ||||||
|   prettyLanguage, |   prettyLanguage, | ||||||
|   prettySlug, |   prettySlug, | ||||||
| } from "queries/helpers"; | } from "helpers/helpers"; | ||||||
| import { useEffect, useState } from "react"; | import { useEffect, useState } from "react"; | ||||||
| import { useSwipeable } from "react-swipeable"; | import { useSwipeable } from "react-swipeable"; | ||||||
| import { ImageQuality } from "./Img"; | import { ImageQuality } from "./Img"; | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettyLanguage } from "queries/helpers"; | import { prettyLanguage } from "helpers/helpers"; | ||||||
| import { Dispatch, SetStateAction } from "react"; | import { Dispatch, SetStateAction } from "react"; | ||||||
| import ToolTip from "../ToolTip"; | import ToolTip from "../ToolTip"; | ||||||
| import Button from "./Button"; | import Button from "./Button"; | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { arrayMove } from "queries/helpers"; | import { arrayMove } from "helpers/helpers"; | ||||||
| import { useEffect, useState } from "react"; | import { useEffect, useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|  | |||||||
| @ -1,8 +1,8 @@ | |||||||
| import Chip from "components/Chip"; | import Chip from "components/Chip"; | ||||||
| import Button from "components/Inputs/Button"; | import Button from "components/Inputs/Button"; | ||||||
| import { GetLibraryItemQuery } from "graphql/generated"; | import { GetLibraryItemQuery } from "graphql/generated"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettyinlineTitle, prettySlug } from "queries/helpers"; | import { prettyinlineTitle, prettySlug } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|  | |||||||
| @ -9,8 +9,8 @@ import RecorderChip from "components/RecorderChip"; | |||||||
| import ToolTip from "components/ToolTip"; | import ToolTip from "components/ToolTip"; | ||||||
| import { GetLibraryItemScansQuery } from "graphql/generated"; | import { GetLibraryItemScansQuery } from "graphql/generated"; | ||||||
| import useSmartLanguage from "hooks/useSmartLanguage"; | import useSmartLanguage from "hooks/useSmartLanguage"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getStatusDescription, isInteger } from "queries/helpers"; | import { getStatusDescription, isInteger } from "helpers/helpers"; | ||||||
| import { Dispatch, SetStateAction } from "react"; | import { Dispatch, SetStateAction } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|  | |||||||
| @ -7,8 +7,8 @@ import { | |||||||
|   UploadImageFragment, |   UploadImageFragment, | ||||||
| } from "graphql/generated"; | } from "graphql/generated"; | ||||||
| import useSmartLanguage from "hooks/useSmartLanguage"; | import useSmartLanguage from "hooks/useSmartLanguage"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getStatusDescription } from "queries/helpers"; | import { getStatusDescription } from "helpers/helpers"; | ||||||
| import { Dispatch, SetStateAction } from "react"; | import { Dispatch, SetStateAction } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ import ToolTip from "components/ToolTip"; | |||||||
| import { useAppLayout } from "contexts/AppLayoutContext"; | import { useAppLayout } from "contexts/AppLayoutContext"; | ||||||
| import Markdown from "markdown-to-jsx"; | import Markdown from "markdown-to-jsx"; | ||||||
| import { useRouter } from "next/router"; | import { useRouter } from "next/router"; | ||||||
| import { slugify } from "queries/helpers"; | import { slugify } from "helpers/helpers"; | ||||||
| import React, { useState } from "react"; | import React, { useState } from "react"; | ||||||
| import ReactDOMServer from "react-dom/server"; | import ReactDOMServer from "react-dom/server"; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| import { useRouter } from "next/router"; | import { useRouter } from "next/router"; | ||||||
| import { slugify } from "queries/helpers"; | import { slugify } from "helpers/helpers"; | ||||||
| import { preprocessMarkDawn } from "./Markdawn"; | import { preprocessMarkDawn } from "./Markdawn"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import HorizontalLine from "components/HorizontalLine"; | import HorizontalLine from "components/HorizontalLine"; | ||||||
| import Button from "components/Inputs/Button"; | import Button from "components/Inputs/Button"; | ||||||
| import { useAppLayout } from "contexts/AppLayoutContext"; | import { useAppLayout } from "contexts/AppLayoutContext"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|   href: string; |   href: string; | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ import { useAppLayout } from "contexts/AppLayoutContext"; | |||||||
| import { useMediaDesktop } from "hooks/useMediaQuery"; | import { useMediaDesktop } from "hooks/useMediaQuery"; | ||||||
| import Markdown from "markdown-to-jsx"; | import Markdown from "markdown-to-jsx"; | ||||||
| import Link from "next/link"; | import Link from "next/link"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|   langui: AppStaticProps["langui"]; |   langui: AppStaticProps["langui"]; | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import { GetPostQuery } from "graphql/generated"; | import { GetPostQuery } from "graphql/generated"; | ||||||
| import useSmartLanguage from "hooks/useSmartLanguage"; | import useSmartLanguage from "hooks/useSmartLanguage"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getStatusDescription, prettySlug } from "queries/helpers"; | import { getStatusDescription, prettySlug } from "helpers/helpers"; | ||||||
| import AppLayout from "./AppLayout"; | import AppLayout from "./AppLayout"; | ||||||
| import Chip from "./Chip"; | import Chip from "./Chip"; | ||||||
| import HorizontalLine from "./HorizontalLine"; | import HorizontalLine from "./HorizontalLine"; | ||||||
|  | |||||||
| @ -5,13 +5,13 @@ import { | |||||||
|   UploadImageFragment, |   UploadImageFragment, | ||||||
| } from "graphql/generated"; | } from "graphql/generated"; | ||||||
| import Link from "next/link"; | import Link from "next/link"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { | import { | ||||||
|   prettyDate, |   prettyDate, | ||||||
|   prettyDuration, |   prettyDuration, | ||||||
|   prettyPrice, |   prettyPrice, | ||||||
|   prettyShortenNumber, |   prettyShortenNumber, | ||||||
| } from "queries/helpers"; | } from "helpers/helpers"; | ||||||
| import Chip from "./Chip"; | import Chip from "./Chip"; | ||||||
| import Img, { ImageQuality } from "./Img"; | import Img, { ImageQuality } from "./Img"; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| import Chip from "components/Chip"; | import Chip from "components/Chip"; | ||||||
| import { RecorderChipFragment } from "graphql/generated"; | import { RecorderChipFragment } from "graphql/generated"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import Img, { ImageQuality } from "./Img"; | import Img, { ImageQuality } from "./Img"; | ||||||
| import Markdawn from "./Markdown/Markdawn"; | import Markdawn from "./Markdown/Markdawn"; | ||||||
| import ToolTip from "./ToolTip"; | import ToolTip from "./ToolTip"; | ||||||
|  | |||||||
| @ -3,8 +3,8 @@ import Img, { ImageQuality } from "components/Img"; | |||||||
| import InsetBox from "components/InsetBox"; | import InsetBox from "components/InsetBox"; | ||||||
| import Markdawn from "components/Markdown/Markdawn"; | import Markdawn from "components/Markdown/Markdawn"; | ||||||
| import { GetContentQuery, UploadImageFragment } from "graphql/generated"; | import { GetContentQuery, UploadImageFragment } from "graphql/generated"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettyinlineTitle, prettySlug, slugify } from "queries/helpers"; | import { prettyinlineTitle, prettySlug, slugify } from "helpers/helpers"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|   pre_title?: string | null | undefined; |   pre_title?: string | null | undefined; | ||||||
|  | |||||||
| @ -4,8 +4,8 @@ import { | |||||||
|   Enum_Componenttranslationschronologyitem_Status, |   Enum_Componenttranslationschronologyitem_Status, | ||||||
|   GetChronologyItemsQuery, |   GetChronologyItemsQuery, | ||||||
| } from "graphql/generated"; | } from "graphql/generated"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getStatusDescription } from "queries/helpers"; | import { getStatusDescription } from "helpers/helpers"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|   item: Exclude< |   item: Exclude< | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| import ChronologyItemComponent from "components/Wiki/Chronology/ChronologyItemComponent"; | import ChronologyItemComponent from "components/Wiki/Chronology/ChronologyItemComponent"; | ||||||
| import { GetChronologyItemsQuery } from "graphql/generated"; | import { GetChronologyItemsQuery } from "graphql/generated"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|   year: number; |   year: number; | ||||||
|  | |||||||
| @ -1,8 +1,8 @@ | |||||||
| import LanguageSwitcher from "components/Inputs/LanguageSwitcher"; | import LanguageSwitcher from "components/Inputs/LanguageSwitcher"; | ||||||
| import { useAppLayout } from "contexts/AppLayoutContext"; | import { useAppLayout } from "contexts/AppLayoutContext"; | ||||||
| import { useRouter } from "next/router"; | import { useRouter } from "next/router"; | ||||||
| import { AppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getPreferredLanguage } from "queries/helpers"; | import { getPreferredLanguage } from "helpers/helpers"; | ||||||
| import { useEffect, useMemo, useState } from "react"; | import { useEffect, useMemo, useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props<T> { | interface Props<T> { | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ import ReturnButton, { | |||||||
| } from "components/PanelComponents/ReturnButton"; | } from "components/PanelComponents/ReturnButton"; | ||||||
| import ContentPanel from "components/Panels/ContentPanel"; | import ContentPanel from "components/Panels/ContentPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ import ReturnButton, { | |||||||
| } from "components/PanelComponents/ReturnButton"; | } from "components/PanelComponents/ReturnButton"; | ||||||
| import ContentPanel from "components/Panels/ContentPanel"; | import ContentPanel from "components/Panels/ContentPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import PostPage, { Post } from "components/PostPage"; | import PostPage, { Post } from "components/PostPage"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   post: Post; |   post: Post; | ||||||
|  | |||||||
| @ -4,8 +4,8 @@ import { getReadySdk } from "graphql/sdk"; | |||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { useRouter } from "next/router"; | import { useRouter } from "next/router"; | ||||||
| import { RequestMailProps, ResponseMailProps } from "pages/api/mail"; | import { RequestMailProps, ResponseMailProps } from "pages/api/mail"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { randomInt } from "queries/helpers"; | import { randomInt } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -3,7 +3,7 @@ import NavOption from "components/PanelComponents/NavOption"; | |||||||
| import PanelHeader from "components/PanelComponents/PanelHeader"; | import PanelHeader from "components/PanelComponents/PanelHeader"; | ||||||
| import SubPanel from "components/Panels/SubPanel"; | import SubPanel from "components/Panels/SubPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import PostPage, { Post } from "components/PostPage"; | import PostPage, { Post } from "components/PostPage"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   post: Post; |   post: Post; | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import PostPage, { Post } from "components/PostPage"; | import PostPage, { Post } from "components/PostPage"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   post: Post; |   post: Post; | ||||||
|  | |||||||
| @ -3,7 +3,7 @@ import NavOption from "components/PanelComponents/NavOption"; | |||||||
| import PanelHeader from "components/PanelComponents/PanelHeader"; | import PanelHeader from "components/PanelComponents/PanelHeader"; | ||||||
| import SubPanel from "components/Panels/SubPanel"; | import SubPanel from "components/Panels/SubPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -16,8 +16,8 @@ import { | |||||||
|   GetStaticPathsResult, |   GetStaticPathsResult, | ||||||
|   GetStaticPropsContext, |   GetStaticPropsContext, | ||||||
| } from "next"; | } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getVideoThumbnailURL } from "queries/helpers"; | import { getVideoThumbnailURL } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -13,8 +13,8 @@ import ThumbnailPreview from "components/PreviewCard"; | |||||||
| import { GetVideosPreviewQuery } from "graphql/generated"; | import { GetVideosPreviewQuery } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getVideoThumbnailURL, prettyDate } from "queries/helpers"; | import { getVideoThumbnailURL, prettyDate } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -19,8 +19,8 @@ import { | |||||||
|   GetStaticPathsResult, |   GetStaticPathsResult, | ||||||
|   GetStaticPropsContext, |   GetStaticPropsContext, | ||||||
| } from "next"; | } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { getVideoFile, prettyDate, prettyShortenNumber } from "queries/helpers"; | import { getVideoFile, prettyDate, prettyShortenNumber } from "helpers/helpers"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   video: Exclude< |   video: Exclude< | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ import AppLayout from "components/AppLayout"; | |||||||
| import PanelHeader from "components/PanelComponents/PanelHeader"; | import PanelHeader from "components/PanelComponents/PanelHeader"; | ||||||
| import SubPanel from "components/Panels/SubPanel"; | import SubPanel from "components/Panels/SubPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -21,13 +21,13 @@ import { | |||||||
|   GetStaticPathsResult, |   GetStaticPathsResult, | ||||||
|   GetStaticPropsContext, |   GetStaticPropsContext, | ||||||
| } from "next"; | } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { | import { | ||||||
|   getStatusDescription, |   getStatusDescription, | ||||||
|   prettyinlineTitle, |   prettyinlineTitle, | ||||||
|   prettyLanguage, |   prettyLanguage, | ||||||
|   prettySlug, |   prettySlug, | ||||||
| } from "queries/helpers"; | } from "helpers/helpers"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   content: Exclude< |   content: Exclude< | ||||||
|  | |||||||
| @ -11,8 +11,8 @@ import ThumbnailPreview from "components/PreviewCard"; | |||||||
| import { GetContentsQuery } from "graphql/generated"; | import { GetContentsQuery } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettyinlineTitle, prettySlug } from "queries/helpers"; | import { prettyinlineTitle, prettySlug } from "helpers/helpers"; | ||||||
| import { useEffect, useState } from "react"; | import { useEffect, useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -11,7 +11,7 @@ import { | |||||||
| } from "graphql/generated"; | } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   contents: DevGetContentsQuery; |   contents: DevGetContentsQuery; | ||||||
|  | |||||||
| @ -11,7 +11,7 @@ import { | |||||||
| } from "graphql/generated"; | } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   libraryItems: DevGetLibraryItemsQuery; |   libraryItems: DevGetLibraryItemsQuery; | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ import ContentPanel, { | |||||||
| import Popup from "components/Popup"; | import Popup from "components/Popup"; | ||||||
| import ToolTip from "components/ToolTip"; | import ToolTip from "components/ToolTip"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { useCallback, useState } from "react"; | import { useCallback, useState } from "react"; | ||||||
| import TurndownService from "turndown"; | import TurndownService from "turndown"; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| import AppLayout from "components/AppLayout"; | import AppLayout from "components/AppLayout"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import PostPage, { Post } from "components/PostPage"; | import PostPage, { Post } from "components/PostPage"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   post: Post; |   post: Post; | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ import { | |||||||
|   GetStaticPathsResult, |   GetStaticPathsResult, | ||||||
|   GetStaticPropsContext, |   GetStaticPropsContext, | ||||||
| } from "next"; | } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { | import { | ||||||
|   convertMmToInch, |   convertMmToInch, | ||||||
|   prettyDate, |   prettyDate, | ||||||
| @ -37,7 +37,7 @@ import { | |||||||
|   prettyPrice, |   prettyPrice, | ||||||
|   prettyURL, |   prettyURL, | ||||||
|   sortContent, |   sortContent, | ||||||
| } from "queries/helpers"; | } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -18,8 +18,8 @@ import { | |||||||
|   GetStaticPathsResult, |   GetStaticPathsResult, | ||||||
|   GetStaticPropsContext, |   GetStaticPropsContext, | ||||||
| } from "next"; | } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettyinlineTitle, prettySlug, sortContent } from "queries/helpers"; | import { prettyinlineTitle, prettySlug, sortContent } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -11,13 +11,13 @@ import ThumbnailPreview from "components/PreviewCard"; | |||||||
| import { GetLibraryItemsPreviewQuery } from "graphql/generated"; | import { GetLibraryItemsPreviewQuery } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { | import { | ||||||
|   convertPrice, |   convertPrice, | ||||||
|   prettyDate, |   prettyDate, | ||||||
|   prettyinlineTitle, |   prettyinlineTitle, | ||||||
|   prettyItemSubType, |   prettyItemSubType, | ||||||
| } from "queries/helpers"; | } from "helpers/helpers"; | ||||||
| import { useEffect, useState } from "react"; | import { useEffect, useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ import AppLayout from "components/AppLayout"; | |||||||
| import PanelHeader from "components/PanelComponents/PanelHeader"; | import PanelHeader from "components/PanelComponents/PanelHeader"; | ||||||
| import SubPanel from "components/Panels/SubPanel"; | import SubPanel from "components/Panels/SubPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| export default function Merch(props: Props): JSX.Element { | export default function Merch(props: Props): JSX.Element { | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ import { | |||||||
|   GetStaticPathsResult, |   GetStaticPathsResult, | ||||||
|   GetStaticPropsContext, |   GetStaticPropsContext, | ||||||
| } from "next"; | } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   post: Post; |   post: Post; | ||||||
|  | |||||||
| @ -9,8 +9,8 @@ import ThumbnailPreview from "components/PreviewCard"; | |||||||
| import { GetPostsPreviewQuery } from "graphql/generated"; | import { GetPostsPreviewQuery } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettyDate, prettySlug } from "queries/helpers"; | import { prettyDate, prettySlug } from "helpers/helpers"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|  | |||||||
| @ -11,8 +11,8 @@ import { useAppLayout } from "contexts/AppLayoutContext"; | |||||||
| import { GetChronologyItemsQuery, GetErasQuery } from "graphql/generated"; | import { GetChronologyItemsQuery, GetErasQuery } from "graphql/generated"; | ||||||
| import { getReadySdk } from "graphql/sdk"; | import { getReadySdk } from "graphql/sdk"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| import { prettySlug } from "queries/helpers"; | import { prettySlug } from "helpers/helpers"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps { | interface Props extends AppStaticProps { | ||||||
|   chronologyItems: Exclude< |   chronologyItems: Exclude< | ||||||
|  | |||||||
| @ -3,7 +3,7 @@ import NavOption from "components/PanelComponents/NavOption"; | |||||||
| import PanelHeader from "components/PanelComponents/PanelHeader"; | import PanelHeader from "components/PanelComponents/PanelHeader"; | ||||||
| import SubPanel from "components/Panels/SubPanel"; | import SubPanel from "components/Panels/SubPanel"; | ||||||
| import { GetStaticPropsContext } from "next"; | import { GetStaticPropsContext } from "next"; | ||||||
| import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; | import { AppStaticProps, getAppStaticProps } from "helpers/getAppStaticProps"; | ||||||
| 
 | 
 | ||||||
| interface Props extends AppStaticProps {} | interface Props extends AppStaticProps {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 DrMint
						DrMint