diff --git a/.eslintrc.js b/.eslintrc.js index dd1a4ad..b3d7308 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -50,7 +50,7 @@ module.exports = { "max-classes-per-file": ["error", 1], // "max-depth": ["warn", 4], // "max-lines": "warn", - "max-len": ["warn", { "code": 100 }], + "max-len": ["warn", { code: 100 }], // "max-lines-per-function": "warn", // "max-nested-callbacks": "warn", // "max-params": "warn", diff --git a/src/components/Library/ContentLine.tsx b/src/components/Library/ContentLine.tsx index 87568d6..8c86963 100644 --- a/src/components/Library/ContentLine.tsx +++ b/src/components/Library/ContentLine.tsx @@ -33,8 +33,10 @@ export default function ContentLine(props: Immutable): JSX.Element { opened && "bg-mid shadow-inner-sm shadow-shade h-auto py-3 my-2" }`} > -
+

setOpened(!opened)}> {content.attributes.content?.data?.attributes?.titles?.[0] diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 9966ecb..07ed001 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -19,4 +19,4 @@ export type Immutable = { readonly [K in keyof T]: T[K] extends ImmutableBlackList ? T[K] : Immutable; -}; \ No newline at end of file +}; diff --git a/src/pages/archives/videos/v/[uid].tsx b/src/pages/archives/videos/v/[uid].tsx index 5561786..7ff8e98 100644 --- a/src/pages/archives/videos/v/[uid].tsx +++ b/src/pages/archives/videos/v/[uid].tsx @@ -12,16 +12,16 @@ import ContentPanel, { import SubPanel from "components/Panels/SubPanel"; import { useAppLayout } from "contexts/AppLayoutContext"; import { GetVideoQuery } from "graphql/generated"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getReadySdk } from "graphql/sdk"; +import { prettyDate, prettyShortenNumber } from "helpers/formatters"; +import { getVideoFile } from "helpers/videos"; import { useMediaMobile } from "hooks/useMediaQuery"; import { GetStaticPathsContext, GetStaticPathsResult, GetStaticPropsContext, } from "next"; -import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; -import { prettyDate, prettyShortenNumber } from "helpers/formatters"; -import { getVideoFile } from "helpers/videos"; interface Props extends AppStaticProps { video: Exclude< @@ -99,7 +99,8 @@ export default function Video(props: Props): JSX.Element { className="w-full aspect-video" title="YouTube video player" frameBorder="0" - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" + allow="accelerometer; autoplay; clipboard-write; + encrypted-media; gyroscope; picture-in-picture" allowFullScreen > )} diff --git a/src/pages/chronicles/index.tsx b/src/pages/chronicles/index.tsx index 0abfd62..3f85be0 100644 --- a/src/pages/chronicles/index.tsx +++ b/src/pages/chronicles/index.tsx @@ -1,9 +1,9 @@ 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 "graphql/getAppStaticProps"; import { Immutable } from "helpers/types"; +import { GetStaticPropsContext } from "next"; interface Props extends AppStaticProps {} diff --git a/src/pages/wiki/chronology.tsx b/src/pages/wiki/chronology.tsx index 9806b2c..fe7fb90 100644 --- a/src/pages/wiki/chronology.tsx +++ b/src/pages/wiki/chronology.tsx @@ -9,9 +9,9 @@ import SubPanel from "components/Panels/SubPanel"; import ChronologyYearComponent from "components/Wiki/Chronology/ChronologyYearComponent"; import { useAppLayout } from "contexts/AppLayoutContext"; import { GetChronologyItemsQuery, GetErasQuery } from "graphql/generated"; +import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getReadySdk } from "graphql/sdk"; import { prettySlug } from "helpers/formatters"; -import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { GetStaticPropsContext } from "next"; interface Props extends AppStaticProps {