Added import prettrier and ran it

This commit is contained in:
DrMint 2022-03-26 17:09:42 +01:00
parent 757dab3e81
commit 38543ae3dd
30 changed files with 201 additions and 165 deletions

41
package-lock.json generated
View File

@ -28,6 +28,7 @@
"@types/react-dom": "^17.0.13", "@types/react-dom": "^17.0.13",
"eslint": "8.10.0", "eslint": "8.10.0",
"eslint-config-next": "12.1.0", "eslint-config-next": "12.1.0",
"prettier-plugin-organize-imports": "^2.3.4",
"tailwindcss": "^3.0.23", "tailwindcss": "^3.0.23",
"typescript": "4.6.2" "typescript": "4.6.2"
} }
@ -3003,6 +3004,32 @@
"node": ">= 0.8.0" "node": ">= 0.8.0"
} }
}, },
"node_modules/prettier": {
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.1.tgz",
"integrity": "sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A==",
"dev": true,
"peer": true,
"bin": {
"prettier": "bin-prettier.js"
},
"engines": {
"node": ">=10.13.0"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prettier-plugin-organize-imports": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-2.3.4.tgz",
"integrity": "sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==",
"dev": true,
"peerDependencies": {
"prettier": ">=2.0",
"typescript": ">=2.9"
}
},
"node_modules/prop-types": { "node_modules/prop-types": {
"version": "15.8.1", "version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
@ -5843,6 +5870,20 @@
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
"dev": true "dev": true
}, },
"prettier": {
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.1.tgz",
"integrity": "sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A==",
"dev": true,
"peer": true
},
"prettier-plugin-organize-imports": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-2.3.4.tgz",
"integrity": "sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==",
"dev": true,
"requires": {}
},
"prop-types": { "prop-types": {
"version": "15.8.1", "version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",

View File

@ -30,6 +30,7 @@
"@types/react-dom": "^17.0.13", "@types/react-dom": "^17.0.13",
"eslint": "8.10.0", "eslint": "8.10.0",
"eslint-config-next": "12.1.0", "eslint-config-next": "12.1.0",
"prettier-plugin-organize-imports": "^2.3.4",
"tailwindcss": "^3.0.23", "tailwindcss": "^3.0.23",
"typescript": "4.6.2" "typescript": "4.6.2"
} }

View File

@ -1,17 +1,17 @@
import { StrapiImage } from "graphql/operations-types";
import MainPanel from "./Panels/MainPanel";
import Head from "next/head";
import { useSwipeable } from "react-swipeable";
import { useRouter } from "next/router";
import Button from "components/Button"; import Button from "components/Button";
import { getOgImage, OgImage } from "queries/helpers";
import { useMediaCoarse, useMediaMobile } from "hooks/useMediaQuery";
import { useAppLayout } from "contexts/AppLayoutContext"; import { useAppLayout } from "contexts/AppLayoutContext";
import { ImageQuality } from "./Img"; import { StrapiImage } from "graphql/operations-types";
import Popup from "./Popup"; import { useMediaCoarse, useMediaMobile } from "hooks/useMediaQuery";
import { useEffect, useState } from "react"; import Head from "next/head";
import Select from "./Select"; import { useRouter } from "next/router";
import { AppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps } from "queries/getAppStaticProps";
import { getOgImage, OgImage } from "queries/helpers";
import { useEffect, useState } from "react";
import { useSwipeable } from "react-swipeable";
import { ImageQuality } from "./Img";
import MainPanel from "./Panels/MainPanel";
import Popup from "./Popup";
import Select from "./Select";
interface AppLayoutProps extends AppStaticProps { interface AppLayoutProps extends AppStaticProps {
subPanel?: React.ReactNode; subPanel?: React.ReactNode;

View File

@ -1,5 +1,3 @@
import { MouseEventHandler } from "react";
type ChipProps = { type ChipProps = {
className?: string; className?: string;
children: React.ReactNode; children: React.ReactNode;

View File

@ -1,11 +1,11 @@
import Chip from "components/Chip";
import Img, { ImageQuality } from "components/Img";
import InsetBox from "components/InsetBox";
import { import {
GetContentQuery, GetContentQuery,
GetWebsiteInterfaceQuery, GetWebsiteInterfaceQuery,
} from "graphql/operations-types"; } from "graphql/operations-types";
import { prettyinlineTitle, prettySlug, slugify } from "queries/helpers"; import { prettyinlineTitle, prettySlug, slugify } from "queries/helpers";
import Img, { ImageQuality } from "components/Img";
import InsetBox from "components/InsetBox";
import Chip from "components/Chip";
export type ThumbnailHeaderProps = { export type ThumbnailHeaderProps = {
pre_title?: string; pre_title?: string;

View File

@ -1,6 +1,5 @@
import { StrapiImage } from "graphql/operations-types"; import { StrapiImage } from "graphql/operations-types";
import { ImageProps } from "next/image"; import Image, { ImageProps } from "next/image";
import Image from "next/image";
export enum ImageQuality { export enum ImageQuality {
Small = "small", Small = "small",

View File

@ -1,8 +1,8 @@
import Link from "next/link";
import { GetContentsQuery } from "graphql/operations-types";
import { prettySlug } from "queries/helpers";
import Chip from "components/Chip"; import Chip from "components/Chip";
import Img, { ImageQuality } from "components/Img"; import Img, { ImageQuality } from "components/Img";
import { GetContentsQuery } from "graphql/operations-types";
import Link from "next/link";
import { prettySlug } from "queries/helpers";
export type LibraryContentPreviewProps = { export type LibraryContentPreviewProps = {
item: { item: {

View File

@ -1,12 +1,12 @@
import Link from "next/link"; import Chip from "components/Chip";
import Img, { ImageQuality } from "components/Img";
import { useAppLayout } from "contexts/AppLayoutContext";
import { import {
GetCurrenciesQuery, GetCurrenciesQuery,
GetLibraryItemsPreviewQuery, GetLibraryItemsPreviewQuery,
} from "graphql/operations-types"; } from "graphql/operations-types";
import { prettyDate, prettyPrice, prettyItemSubType } from "queries/helpers"; import Link from "next/link";
import Chip from "components/Chip"; import { prettyDate, prettyItemSubType, prettyPrice } from "queries/helpers";
import Img, { ImageQuality } from "components/Img";
import { useAppLayout } from "contexts/AppLayoutContext";
export type LibraryItemsPreviewProps = { export type LibraryItemsPreviewProps = {
className?: string; className?: string;

View File

@ -1,8 +1,8 @@
import Link from "next/link";
import { prettyDate, prettySlug } from "queries/helpers";
import Chip from "components/Chip"; import Chip from "components/Chip";
import Img, { ImageQuality } from "components/Img"; import Img, { ImageQuality } from "components/Img";
import { GetPostsPreviewQuery } from "graphql/operations-types"; import { GetPostsPreviewQuery } from "graphql/operations-types";
import Link from "next/link";
import { prettyDate, prettySlug } from "queries/helpers";
export type PostPreviewProps = { export type PostPreviewProps = {
post: { post: {

View File

@ -1,7 +1,7 @@
import { useRouter } from "next/router";
import Link from "next/link";
import { MouseEventHandler } from "react";
import ToolTip from "components/ToolTip"; import ToolTip from "components/ToolTip";
import Link from "next/link";
import { useRouter } from "next/router";
import { MouseEventHandler } from "react";
type NavOptionProps = { type NavOptionProps = {
url: string; url: string;

View File

@ -1,13 +1,13 @@
import Link from "next/link";
import NavOption from "components/PanelComponents/NavOption";
import { useRouter } from "next/router";
import Button from "components/Button"; import Button from "components/Button";
import HorizontalLine from "components/HorizontalLine"; import HorizontalLine from "components/HorizontalLine";
import { GetWebsiteInterfaceQuery } from "graphql/operations-types"; import NavOption from "components/PanelComponents/NavOption";
import Markdown from "markdown-to-jsx";
import { useMediaDesktop } from "hooks/useMediaQuery";
import { useAppLayout } from "contexts/AppLayoutContext";
import ToolTip from "components/ToolTip"; import ToolTip from "components/ToolTip";
import { useAppLayout } from "contexts/AppLayoutContext";
import { GetWebsiteInterfaceQuery } from "graphql/operations-types";
import { useMediaDesktop } from "hooks/useMediaQuery";
import Markdown from "markdown-to-jsx";
import Link from "next/link";
import { useRouter } from "next/router";
type MainPanelProps = { type MainPanelProps = {
langui: GetWebsiteInterfaceQuery["websiteInterfaces"]["data"][number]["attributes"]; langui: GetWebsiteInterfaceQuery["websiteInterfaces"]["data"][number]["attributes"];

View File

@ -1,5 +1,4 @@
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import { import {
GetChronologyItemsQuery, GetChronologyItemsQuery,
GetChronologyItemsQueryVariables, GetChronologyItemsQueryVariables,

View File

@ -1,9 +1,9 @@
import ContentPanel from "components/Panels/ContentPanel";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import ReturnButton, { import ReturnButton, {
ReturnButtonType, ReturnButtonType,
} from "components/PanelComponents/ReturnButton"; } from "components/PanelComponents/ReturnButton";
import ContentPanel from "components/Panels/ContentPanel";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface FourOhFourProps extends AppStaticProps {} interface FourOhFourProps extends AppStaticProps {}

View File

@ -1,13 +1,12 @@
import type { AppProps } from "next/app"; import "@fontsource/material-icons";
import "tailwind.css";
import "@fontsource/zen-maru-gothic/500.css";
import "@fontsource/zen-maru-gothic/900.css";
import "@fontsource/vollkorn/700.css";
import "@fontsource/opendyslexic/400.css"; import "@fontsource/opendyslexic/400.css";
import "@fontsource/opendyslexic/700.css"; import "@fontsource/opendyslexic/700.css";
import "@fontsource/material-icons"; import "@fontsource/vollkorn/700.css";
import "@fontsource/zen-maru-gothic/500.css";
import "@fontsource/zen-maru-gothic/900.css";
import { AppContextProvider } from "contexts/AppLayoutContext"; import { AppContextProvider } from "contexts/AppLayoutContext";
import type { AppProps } from "next/app";
import "tailwind.css";
export default function AccordsLibraryApp(props: AppProps) { export default function AccordsLibraryApp(props: AppProps) {
return ( return (

View File

@ -1,9 +1,9 @@
import Document, { import Document, {
Html, DocumentContext,
Head, Head,
Html,
Main, Main,
NextScript, NextScript,
DocumentContext,
} from "next/document"; } from "next/document";
class MyDocument extends Document { class MyDocument extends Document {

View File

@ -1,21 +1,21 @@
import SubPanel from "components/Panels/SubPanel"; import AppLayout from "components/AppLayout";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import InsetBox from "components/InsetBox";
import LanguageSwitcher from "components/LanguageSwitcher";
import Markdawn from "components/Markdown/Markdawn";
import TOC from "components/Markdown/TOC";
import ReturnButton, { import ReturnButton, {
ReturnButtonType, ReturnButtonType,
} from "components/PanelComponents/ReturnButton"; } from "components/PanelComponents/ReturnButton";
import AppLayout from "components/AppLayout";
import ContentPanel from "components/Panels/ContentPanel"; import ContentPanel from "components/Panels/ContentPanel";
import { GetStaticProps } from "next"; import SubPanel from "components/Panels/SubPanel";
import { getPost, getPostLanguages } from "graphql/operations"; import { getPost, getPostLanguages } from "graphql/operations";
import { GetPostQuery } from "graphql/operations-types"; import { GetPostQuery } from "graphql/operations-types";
import { GetStaticProps } from "next";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import LanguageSwitcher from "components/LanguageSwitcher";
import Markdawn from "components/Markdown/Markdawn";
import { RequestMailProps, ResponseMailProps } from "pages/api/mail"; import { RequestMailProps, ResponseMailProps } from "pages/api/mail";
import { useState } from "react"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import InsetBox from "components/InsetBox";
import { randomInt } from "queries/helpers"; import { randomInt } from "queries/helpers";
import TOC from "components/Markdown/TOC"; import { useState } from "react";
interface ContactProps extends AppStaticProps { interface ContactProps extends AppStaticProps {
post: GetPostQuery["posts"]["data"][number]["attributes"]; post: GetPostQuery["posts"]["data"][number]["attributes"];

View File

@ -1,9 +1,9 @@
import SubPanel from "components/Panels/SubPanel";
import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import NavOption from "components/PanelComponents/NavOption"; import NavOption from "components/PanelComponents/NavOption";
import PanelHeader from "components/PanelComponents/PanelHeader";
import SubPanel from "components/Panels/SubPanel";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface AboutUsProps extends AppStaticProps {} interface AboutUsProps extends AppStaticProps {}

View File

@ -1,7 +1,7 @@
import SubPanel from "components/Panels/SubPanel";
import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import PanelHeader from "components/PanelComponents/PanelHeader";
import SubPanel from "components/Panels/SubPanel";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface ArchivesProps extends AppStaticProps {} interface ArchivesProps extends AppStaticProps {}

View File

@ -1,7 +1,7 @@
import SubPanel from "components/Panels/SubPanel";
import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import PanelHeader from "components/PanelComponents/PanelHeader";
import SubPanel from "components/Panels/SubPanel";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface ChroniclesProps extends AppStaticProps {} interface ChroniclesProps extends AppStaticProps {}

View File

@ -1,17 +1,17 @@
import { GetStaticPaths, GetStaticProps } from "next";
import { getContent, getContentsSlugs } from "graphql/operations";
import { GetContentQuery } from "graphql/operations-types";
import ContentPanel from "components/Panels/ContentPanel";
import Button from "components/Button";
import HorizontalLine from "components/HorizontalLine";
import ThumbnailHeader from "components/Content/ThumbnailHeader";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import SubPanel from "components/Panels/SubPanel"; import Button from "components/Button";
import ThumbnailHeader from "components/Content/ThumbnailHeader";
import HorizontalLine from "components/HorizontalLine";
import ReturnButton, { import ReturnButton, {
ReturnButtonType, ReturnButtonType,
} from "components/PanelComponents/ReturnButton"; } from "components/PanelComponents/ReturnButton";
import { prettyinlineTitle, prettySlug } from "queries/helpers"; import ContentPanel from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import { getContent, getContentsSlugs } from "graphql/operations";
import { GetContentQuery } from "graphql/operations-types";
import { GetStaticPaths, GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import { prettyinlineTitle, prettySlug } from "queries/helpers";
interface ContentIndexProps extends AppStaticProps { interface ContentIndexProps extends AppStaticProps {
content: GetContentQuery["contents"]["data"][number]["attributes"]; content: GetContentQuery["contents"]["data"][number]["attributes"];

View File

@ -1,19 +1,27 @@
import { GetStaticPaths, GetStaticProps } from "next"; import AppLayout from "components/AppLayout";
import Button from "components/Button";
import Chip from "components/Chip";
import ThumbnailHeader from "components/Content/ThumbnailHeader";
import HorizontalLine from "components/HorizontalLine";
import LanguageSwitcher from "components/LanguageSwitcher";
import Markdawn from "components/Markdown/Markdawn";
import TOC from "components/Markdown/TOC";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
import ContentPanel from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import RecorderChip from "components/RecorderChip";
import ToolTip from "components/ToolTip";
import { import {
getContentLanguages, getContentLanguages,
getContentsSlugs, getContentsSlugs,
getContentText, getContentText,
} from "graphql/operations"; } from "graphql/operations";
import { GetContentTextQuery } from "graphql/operations-types"; import { GetContentTextQuery } from "graphql/operations-types";
import ContentPanel from "components/Panels/ContentPanel"; import { GetStaticPaths, GetStaticProps } from "next";
import HorizontalLine from "components/HorizontalLine"; import { useRouter } from "next/router";
import SubPanel from "components/Panels/SubPanel"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
import ThumbnailHeader from "components/Content/ThumbnailHeader";
import AppLayout from "components/AppLayout";
import Markdawn from "components/Markdown/Markdawn";
import { import {
getStatusDescription, getStatusDescription,
prettyinlineTitle, prettyinlineTitle,
@ -22,14 +30,6 @@ import {
prettyTestError, prettyTestError,
prettyTestWarning, prettyTestWarning,
} from "queries/helpers"; } from "queries/helpers";
import Button from "components/Button";
import { useRouter } from "next/router";
import Chip from "components/Chip";
import RecorderChip from "components/RecorderChip";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import TOC from "components/Markdown/TOC";
import ToolTip from "components/ToolTip";
import LanguageSwitcher from "components/LanguageSwitcher";
interface ContentReadProps extends AppStaticProps { interface ContentReadProps extends AppStaticProps {
content: GetContentTextQuery["contents"]["data"][number]["attributes"]; content: GetContentTextQuery["contents"]["data"][number]["attributes"];

View File

@ -1,21 +1,21 @@
import { GetStaticProps } from "next"; import AppLayout from "components/AppLayout";
import SubPanel from "components/Panels/SubPanel"; import Chip from "components/Chip";
import LibraryContentPreview from "components/Library/LibraryContentPreview";
import PanelHeader from "components/PanelComponents/PanelHeader";
import ContentPanel, { import ContentPanel, {
ContentPanelWidthSizes, ContentPanelWidthSizes,
} from "components/Panels/ContentPanel"; } from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import Select from "components/Select";
import { getContents } from "graphql/operations";
import { import {
GetContentsQuery, GetContentsQuery,
GetWebsiteInterfaceQuery, GetWebsiteInterfaceQuery,
} from "graphql/operations-types"; } from "graphql/operations-types";
import { getContents } from "graphql/operations"; import { GetStaticProps } from "next";
import PanelHeader from "components/PanelComponents/PanelHeader";
import AppLayout from "components/AppLayout";
import LibraryContentPreview from "components/Library/LibraryContentPreview";
import { prettyinlineTitle, prettySlug } from "queries/helpers";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import Select from "components/Select"; import { prettyinlineTitle, prettySlug } from "queries/helpers";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import Chip from "components/Chip";
interface ContentsProps extends AppStaticProps { interface ContentsProps extends AppStaticProps {
contents: GetContentsQuery["contents"]["data"]; contents: GetContentsQuery["contents"]["data"];

View File

@ -1,13 +1,13 @@
import AppLayout from "components/AppLayout";
import Markdawn from "components/Markdown/Markdawn";
import ContentPanel, { import ContentPanel, {
ContentPanelWidthSizes, ContentPanelWidthSizes,
} from "components/Panels/ContentPanel"; } from "components/Panels/ContentPanel";
import { GetStaticProps } from "next"; import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import { useRouter } from "next/router";
import { useCallback, useState } from "react";
import Markdawn from "components/Markdown/Markdawn";
import Script from "next/script"; import Script from "next/script";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import { useRouter } from "next/router"; import { useCallback, useState } from "react";
interface EditorProps extends AppStaticProps {} interface EditorProps extends AppStaticProps {}

View File

@ -1,41 +1,41 @@
import AppLayout from "components/AppLayout";
import Button from "components/Button";
import Chip from "components/Chip";
import Img, { getAssetURL, ImageQuality } from "components/Img";
import InsetBox from "components/InsetBox";
import ContentTOCLine from "components/Library/ContentTOCLine";
import LibraryItemsPreview from "components/Library/LibraryItemsPreview";
import LightBox from "components/LightBox";
import NavOption from "components/PanelComponents/NavOption";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
import ContentPanel, { import ContentPanel, {
ContentPanelWidthSizes, ContentPanelWidthSizes,
} from "components/Panels/ContentPanel"; } from "components/Panels/ContentPanel";
import { GetStaticPaths, GetStaticProps } from "next"; import SubPanel from "components/Panels/SubPanel";
import { useAppLayout } from "contexts/AppLayoutContext";
import { getLibraryItem, getLibraryItemsSlugs } from "graphql/operations"; import { getLibraryItem, getLibraryItemsSlugs } from "graphql/operations";
import { import {
Enum_Componentmetadatabooks_Binding_Type, Enum_Componentmetadatabooks_Binding_Type,
Enum_Componentmetadatabooks_Page_Order, Enum_Componentmetadatabooks_Page_Order,
GetLibraryItemQuery, GetLibraryItemQuery,
} from "graphql/operations-types"; } from "graphql/operations-types";
import { GetStaticPaths, GetStaticProps } from "next";
import { useRouter } from "next/router";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import { import {
convertMmToInch, convertMmToInch,
prettyDate, prettyDate,
prettyinlineTitle, prettyinlineTitle,
prettyItemType,
prettyItemSubType, prettyItemSubType,
prettyItemType,
prettyPrice, prettyPrice,
prettyTestError, prettyTestError,
prettyTestWarning, prettyTestWarning,
sortContent, sortContent,
} from "queries/helpers"; } from "queries/helpers";
import SubPanel from "components/Panels/SubPanel";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
import NavOption from "components/PanelComponents/NavOption";
import Chip from "components/Chip";
import Button from "components/Button";
import AppLayout from "components/AppLayout";
import LibraryItemsPreview from "components/Library/LibraryItemsPreview";
import InsetBox from "components/InsetBox";
import Img, { getAssetURL, ImageQuality } from "components/Img";
import { useAppLayout } from "contexts/AppLayoutContext";
import { useRouter } from "next/router";
import ContentTOCLine from "components/Library/ContentTOCLine";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import { useState } from "react"; import { useState } from "react";
import LightBox from "components/LightBox";
interface LibrarySlugProps extends AppStaticProps { interface LibrarySlugProps extends AppStaticProps {
item: GetLibraryItemQuery["libraryItems"]["data"][number]["attributes"]; item: GetLibraryItemQuery["libraryItems"]["data"][number]["attributes"];

View File

@ -1,23 +1,23 @@
import { GetStaticProps } from "next"; import AppLayout from "components/AppLayout";
import SubPanel from "components/Panels/SubPanel"; import Chip from "components/Chip";
import LibraryItemsPreview from "components/Library/LibraryItemsPreview";
import PanelHeader from "components/PanelComponents/PanelHeader";
import ContentPanel, { import ContentPanel, {
ContentPanelWidthSizes, ContentPanelWidthSizes,
} from "components/Panels/ContentPanel"; } from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import Select from "components/Select";
import Switch from "components/Switch";
import { getLibraryItemsPreview } from "graphql/operations";
import { import {
GetCurrenciesQuery, GetCurrenciesQuery,
GetLibraryItemsPreviewQuery, GetLibraryItemsPreviewQuery,
GetWebsiteInterfaceQuery, GetWebsiteInterfaceQuery,
} from "graphql/operations-types"; } from "graphql/operations-types";
import { getLibraryItemsPreview } from "graphql/operations"; import { GetStaticProps } from "next";
import PanelHeader from "components/PanelComponents/PanelHeader";
import AppLayout from "components/AppLayout";
import LibraryItemsPreview from "components/Library/LibraryItemsPreview";
import Select from "components/Select";
import { useEffect, useState } from "react";
import { convertPrice, prettyDate, prettyinlineTitle } from "queries/helpers";
import Switch from "components/Switch";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import Chip from "components/Chip"; import { convertPrice, prettyDate, prettyinlineTitle } from "queries/helpers";
import { useEffect, useState } from "react";
interface LibraryProps extends AppStaticProps { interface LibraryProps extends AppStaticProps {
items: GetLibraryItemsPreviewQuery["libraryItems"]["data"]; items: GetLibraryItemsPreviewQuery["libraryItems"]["data"];

View File

@ -1,7 +1,7 @@
import SubPanel from "components/Panels/SubPanel";
import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import PanelHeader from "components/PanelComponents/PanelHeader";
import SubPanel from "components/Panels/SubPanel";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface MerchProps extends AppStaticProps {} interface MerchProps extends AppStaticProps {}

View File

@ -17,7 +17,7 @@ import { GetPostQuery, StrapiImage } from "graphql/operations-types";
import { GetStaticPaths, GetStaticProps } from "next"; import { GetStaticPaths, GetStaticProps } from "next";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import { prettySlug, getStatusDescription } from "queries/helpers"; import { getStatusDescription, prettySlug } from "queries/helpers";
interface PostProps extends AppStaticProps { interface PostProps extends AppStaticProps {
post: GetPostQuery["posts"]["data"][number]["attributes"]; post: GetPostQuery["posts"]["data"][number]["attributes"];

View File

@ -1,14 +1,14 @@
import SubPanel from "components/Panels/SubPanel";
import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import PostsPreview from "components/News/PostsPreview";
import { GetPostsPreviewQuery } from "graphql/operations-types"; import PanelHeader from "components/PanelComponents/PanelHeader";
import { getPostsPreview } from "graphql/operations";
import ContentPanel, { import ContentPanel, {
ContentPanelWidthSizes, ContentPanelWidthSizes,
} from "components/Panels/ContentPanel"; } from "components/Panels/ContentPanel";
import PostsPreview from "components/News/PostsPreview"; import SubPanel from "components/Panels/SubPanel";
import { getPostsPreview } from "graphql/operations";
import { GetPostsPreviewQuery } from "graphql/operations-types";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface NewsProps extends AppStaticProps { interface NewsProps extends AppStaticProps {
posts: GetPostsPreviewQuery["posts"]["data"]; posts: GetPostsPreviewQuery["posts"]["data"];

View File

@ -1,25 +1,25 @@
import { GetStaticProps } from "next"; import AppLayout from "components/AppLayout";
import ChronologyYearComponent from "components/Chronology/ChronologyYearComponent";
import InsetBox from "components/InsetBox";
import NavOption from "components/PanelComponents/NavOption";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
import ContentPanel from "components/Panels/ContentPanel"; import ContentPanel from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel"; import SubPanel from "components/Panels/SubPanel";
import ChronologyYearComponent from "components/Chronology/ChronologyYearComponent"; import { getChronologyItems, getEras } from "graphql/operations";
import { import {
GetChronologyItemsQuery, GetChronologyItemsQuery,
GetErasQuery, GetErasQuery,
} from "graphql/operations-types"; } from "graphql/operations-types";
import { getEras, getChronologyItems } from "graphql/operations"; import { GetStaticProps } from "next";
import NavOption from "components/PanelComponents/NavOption"; import { useRouter } from "next/router";
import AppLayout from "components/AppLayout"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import { import {
prettySlug, prettySlug,
prettyTestError, prettyTestError,
prettyTestWarning, prettyTestWarning,
} from "queries/helpers"; } from "queries/helpers";
import InsetBox from "components/InsetBox";
import { useRouter } from "next/router";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
interface ChronologyProps extends AppStaticProps { interface ChronologyProps extends AppStaticProps {
chronologyItems: GetChronologyItemsQuery["chronologyItems"]["data"]; chronologyItems: GetChronologyItemsQuery["chronologyItems"]["data"];

View File

@ -1,10 +1,9 @@
import SubPanel from "components/Panels/SubPanel";
import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout"; import AppLayout from "components/AppLayout";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import HorizontalLine from "components/HorizontalLine";
import NavOption from "components/PanelComponents/NavOption"; import NavOption from "components/PanelComponents/NavOption";
import PanelHeader from "components/PanelComponents/PanelHeader";
import SubPanel from "components/Panels/SubPanel";
import { GetStaticProps } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
interface WikiProps extends AppStaticProps {} interface WikiProps extends AppStaticProps {}