From 237f496b6b06d6127a3838da5be05040d45e66e8 Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 15 May 2022 10:15:55 +0200 Subject: [PATCH] Prettier --- src/graphql/operations/getContentText.graphql | 316 +++++++++--------- src/pages/about-us/contact.tsx | 4 +- src/pages/dev/checkup/libraryitems.tsx | 4 +- 3 files changed, 164 insertions(+), 160 deletions(-) diff --git a/src/graphql/operations/getContentText.graphql b/src/graphql/operations/getContentText.graphql index 3e8fe14..c7881ce 100644 --- a/src/graphql/operations/getContentText.graphql +++ b/src/graphql/operations/getContentText.graphql @@ -1,161 +1,161 @@ query getContentText($slug: String, $language_code: String) { - contents(filters: { slug: { eq: $slug } }) { - data { - id - attributes { - slug + contents(filters: { slug: { eq: $slug } }) { + data { + id + attributes { + slug - categories { - data { - id - attributes { - name - short - } - } - } - type { - data { - attributes { - slug - titles(filters: { language: { code: { eq: $language_code } } }) { - title - } - } - } - } - ranged_contents { - data { - id - attributes { - slug - scan_set { - id - } - library_item { - data { - attributes { - slug - title - subtitle - thumbnail { - data { - attributes { - ...uploadImage - } - } - } - } - } - } - } - } - } - translations { - language { - data { - attributes { - code - } - } - } - pre_title - title - subtitle - description - text_set { - status - text - source_language { - data { - attributes { - code - } - } - } - transcribers { - data { - id - attributes { - ...recorderChip - } - } - } - translators { - data { - id - attributes { - ...recorderChip - } - } - } - proofreaders { - data { - id - attributes { - ...recorderChip - } - } - } - notes - } - } + categories { + data { + id + attributes { + name + short + } + } + } + type { + data { + attributes { + slug + titles(filters: { language: { code: { eq: $language_code } } }) { + title + } + } + } + } + ranged_contents { + data { + id + attributes { + slug + scan_set { + id + } + library_item { + data { + attributes { + slug + title + subtitle + thumbnail { + data { + attributes { + ...uploadImage + } + } + } + } + } + } + } + } + } + translations { + language { + data { + attributes { + code + } + } + } + pre_title + title + subtitle + description + text_set { + status + text + source_language { + data { + attributes { + code + } + } + } + transcribers { + data { + id + attributes { + ...recorderChip + } + } + } + translators { + data { + id + attributes { + ...recorderChip + } + } + } + proofreaders { + data { + id + attributes { + ...recorderChip + } + } + } + notes + } + } - thumbnail { - data { - attributes { - ...uploadImage - } - } - } - group { - data { - attributes { - contents { - data { - attributes { - slug - translations { - pre_title - title - subtitle - } - categories { - data { - id - attributes { - short - } - } - } - type { - data { - attributes { - slug - titles( - filters: { - language: { code: { eq: $language_code } } - } - ) { - title - } - } - } - } - thumbnail { - data { - attributes { - ...uploadImage - } - } - } - } - } - } - } - } - } - } - } - } -} \ No newline at end of file + thumbnail { + data { + attributes { + ...uploadImage + } + } + } + group { + data { + attributes { + contents { + data { + attributes { + slug + translations { + pre_title + title + subtitle + } + categories { + data { + id + attributes { + short + } + } + } + type { + data { + attributes { + slug + titles( + filters: { + language: { code: { eq: $language_code } } + } + ) { + title + } + } + } + } + thumbnail { + data { + attributes { + ...uploadImage + } + } + } + } + } + } + } + } + } + } + } + } +} diff --git a/src/pages/about-us/contact.tsx b/src/pages/about-us/contact.tsx index c0b4e99..d79b21d 100644 --- a/src/pages/about-us/contact.tsx +++ b/src/pages/about-us/contact.tsx @@ -10,7 +10,9 @@ import { useRouter } from "next/router"; import { RequestMailProps, ResponseMailProps } from "pages/api/mail"; import { useState } from "react"; -export default function AboutUs(props: Immutable): JSX.Element { +export default function AboutUs( + props: Immutable +): JSX.Element { const { post, langui, languages, currencies } = props; const router = useRouter(); diff --git a/src/pages/dev/checkup/libraryitems.tsx b/src/pages/dev/checkup/libraryitems.tsx index 74cd0a6..ddf1dcc 100644 --- a/src/pages/dev/checkup/libraryitems.tsx +++ b/src/pages/dev/checkup/libraryitems.tsx @@ -19,7 +19,9 @@ interface Props extends AppStaticProps { libraryItems: DevGetLibraryItemsQuery; } -export default function CheckupLibraryItems(props: Immutable): JSX.Element { +export default function CheckupLibraryItems( + props: Immutable +): JSX.Element { const { libraryItems } = props; const testReport = testingLibraryItem(libraryItems);