React18 #23
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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 {
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
@ -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"];
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -3,7 +3,7 @@ import {
|
||||
GetLibraryItemQuery,
|
||||
GetLibraryItemScansQuery,
|
||||
} from "graphql/generated";
|
||||
import { AppStaticProps } from "./getAppStaticProps";
|
||||
import { AppStaticProps } from "../graphql/getAppStaticProps";
|
||||
|
||||
export function sortContent(
|
||||
contents:
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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";
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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";
|
||||
|
@ -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,
|
||||
|
@ -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";
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user