This commit is contained in:
DrMint 2022-05-15 10:15:55 +02:00
parent b2b2b00735
commit 237f496b6b
3 changed files with 164 additions and 160 deletions

View File

@ -1,161 +1,161 @@
query getContentText($slug: String, $language_code: String) { query getContentText($slug: String, $language_code: String) {
contents(filters: { slug: { eq: $slug } }) { contents(filters: { slug: { eq: $slug } }) {
data { data {
id id
attributes { attributes {
slug slug
categories { categories {
data { data {
id id
attributes { attributes {
name name
short short
} }
} }
} }
type { type {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: $language_code } } }) { titles(filters: { language: { code: { eq: $language_code } } }) {
title title
} }
} }
} }
} }
ranged_contents { ranged_contents {
data { data {
id id
attributes { attributes {
slug slug
scan_set { scan_set {
id id
} }
library_item { library_item {
data { data {
attributes { attributes {
slug slug
title title
subtitle subtitle
thumbnail { thumbnail {
data { data {
attributes { attributes {
...uploadImage ...uploadImage
} }
} }
} }
} }
} }
} }
} }
} }
} }
translations { translations {
language { language {
data { data {
attributes { attributes {
code code
} }
} }
} }
pre_title pre_title
title title
subtitle subtitle
description description
text_set { text_set {
status status
text text
source_language { source_language {
data { data {
attributes { attributes {
code code
} }
} }
} }
transcribers { transcribers {
data { data {
id id
attributes { attributes {
...recorderChip ...recorderChip
} }
} }
} }
translators { translators {
data { data {
id id
attributes { attributes {
...recorderChip ...recorderChip
} }
} }
} }
proofreaders { proofreaders {
data { data {
id id
attributes { attributes {
...recorderChip ...recorderChip
} }
} }
} }
notes notes
} }
} }
thumbnail { thumbnail {
data { data {
attributes { attributes {
...uploadImage ...uploadImage
} }
} }
} }
group { group {
data { data {
attributes { attributes {
contents { contents {
data { data {
attributes { attributes {
slug slug
translations { translations {
pre_title pre_title
title title
subtitle subtitle
} }
categories { categories {
data { data {
id id
attributes { attributes {
short short
} }
} }
} }
type { type {
data { data {
attributes { attributes {
slug slug
titles( titles(
filters: { filters: {
language: { code: { eq: $language_code } } language: { code: { eq: $language_code } }
} }
) { ) {
title title
} }
} }
} }
} }
thumbnail { thumbnail {
data { data {
attributes { attributes {
...uploadImage ...uploadImage
} }
} }
} }
} }
} }
} }
} }
} }
} }
} }
} }
} }
} }

View File

@ -10,7 +10,9 @@ import { useRouter } from "next/router";
import { RequestMailProps, ResponseMailProps } from "pages/api/mail"; import { RequestMailProps, ResponseMailProps } from "pages/api/mail";
import { useState } from "react"; import { useState } from "react";
export default function AboutUs(props: Immutable<PostStaticProps>): JSX.Element { export default function AboutUs(
props: Immutable<PostStaticProps>
): JSX.Element {
const { post, langui, languages, currencies } = props; const { post, langui, languages, currencies } = props;
const router = useRouter(); const router = useRouter();

View File

@ -19,7 +19,9 @@ interface Props extends AppStaticProps {
libraryItems: DevGetLibraryItemsQuery; libraryItems: DevGetLibraryItemsQuery;
} }
export default function CheckupLibraryItems(props: Immutable<Props>): JSX.Element { export default function CheckupLibraryItems(
props: Immutable<Props>
): JSX.Element {
const { libraryItems } = props; const { libraryItems } = props;
const testReport = testingLibraryItem(libraryItems); const testReport = testingLibraryItem(libraryItems);