From 1510366bc84fe927d34a23c96ac5493b5e9c1be6 Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 12 Jun 2022 13:54:57 +0200 Subject: [PATCH] Prettier --- src/components/Inputs/ButtonGroup.tsx | 5 +- src/graphql/operations/getWikiPage.graphql | 202 +++++++++--------- .../operations/getWikiPagesPreviews.graphql | 78 +++---- .../operations/getWikiPagesSlugs.graphql | 14 +- src/pages/dev/editor.tsx | 2 +- src/tailwind.css | 2 +- 6 files changed, 150 insertions(+), 153 deletions(-) diff --git a/src/components/Inputs/ButtonGroup.tsx b/src/components/Inputs/ButtonGroup.tsx index 3ef95a1..feea83a 100644 --- a/src/components/Inputs/ButtonGroup.tsx +++ b/src/components/Inputs/ButtonGroup.tsx @@ -31,10 +31,7 @@ export function ButtonGroup(props: Immutable): JSX.Element { }, [children]); return ( -
+
{children}
); diff --git a/src/graphql/operations/getWikiPage.graphql b/src/graphql/operations/getWikiPage.graphql index 025992a..2ba3a3f 100644 --- a/src/graphql/operations/getWikiPage.graphql +++ b/src/graphql/operations/getWikiPage.graphql @@ -1,103 +1,103 @@ query getWikiPage($slug: String, $language_code: String) { - wikiPages(filters: { slug: { eq: $slug } }) { - data { - id - attributes { - slug - thumbnail { - data { - attributes { - ...uploadImage - } - } - } - categories { - data { - id - attributes { - name - short - } - } - } - translations { - title - aliases { - alias - } - summary - language { - data { - attributes { - code - } - } - } - body { - source_language { - data { - attributes { - code - } - } - } - status - body - authors { - data { - id - attributes { - ...recorderChip - } - } - } - translators { - data { - id - attributes { - ...recorderChip - } - } - } - proofreaders { - data { - id - attributes { - ...recorderChip - } - } - } - } - } - definitions { - source { - data { - attributes { - name - } - } - } - translations { - language { - data { - attributes { - code - } - } - } + wikiPages(filters: { slug: { eq: $slug } }) { + data { + id + attributes { + slug + thumbnail { + data { + attributes { + ...uploadImage + } + } + } + categories { + data { + id + attributes { + name + short + } + } + } + translations { + title + aliases { + alias + } + summary + language { + data { + attributes { + code + } + } + } + body { + source_language { + data { + attributes { + code + } + } + } + status + body + authors { + data { + id + attributes { + ...recorderChip + } + } + } + translators { + data { + id + attributes { + ...recorderChip + } + } + } + proofreaders { + data { + id + attributes { + ...recorderChip + } + } + } + } + } + definitions { + source { + data { + attributes { + name + } + } + } + translations { + language { + data { + attributes { + code + } + } + } - source_language { - data { - attributes { - code - } - } - } - status - definition - } - } - } - } - } -} \ No newline at end of file + source_language { + data { + attributes { + code + } + } + } + status + definition + } + } + } + } + } +} diff --git a/src/graphql/operations/getWikiPagesPreviews.graphql b/src/graphql/operations/getWikiPagesPreviews.graphql index ec34520..3fc402c 100644 --- a/src/graphql/operations/getWikiPagesPreviews.graphql +++ b/src/graphql/operations/getWikiPagesPreviews.graphql @@ -1,40 +1,40 @@ query getWikiPagesPreviews { - wikiPages(pagination: { limit: -1 }) { - data { - id - attributes { - slug - thumbnail { - data { - attributes { - ...uploadImage - } - } - } - categories { - data { - id - attributes { - name - short - } - } - } - translations { - title - aliases { - alias - } - summary - language { - data { - attributes { - code - } - } - } - } - } - } - } -} \ No newline at end of file + wikiPages(pagination: { limit: -1 }) { + data { + id + attributes { + slug + thumbnail { + data { + attributes { + ...uploadImage + } + } + } + categories { + data { + id + attributes { + name + short + } + } + } + translations { + title + aliases { + alias + } + summary + language { + data { + attributes { + code + } + } + } + } + } + } + } +} diff --git a/src/graphql/operations/getWikiPagesSlugs.graphql b/src/graphql/operations/getWikiPagesSlugs.graphql index 73f12a2..6146728 100644 --- a/src/graphql/operations/getWikiPagesSlugs.graphql +++ b/src/graphql/operations/getWikiPagesSlugs.graphql @@ -1,9 +1,9 @@ query getWikiPagesSlugs { - wikiPages(pagination: { limit: -1 }) { - data { - attributes { - slug - } - } - } + wikiPages(pagination: { limit: -1 }) { + data { + attributes { + slug + } + } + } } diff --git a/src/pages/dev/editor.tsx b/src/pages/dev/editor.tsx index 59064fe..fbc8b4c 100644 --- a/src/pages/dev/editor.tsx +++ b/src/pages/dev/editor.tsx @@ -407,7 +407,7 @@ export default function Editor(props: Immutable): JSX.Element { handleInput(textarea.value); }} className="h-[70vh] w-full rounded-xl bg-mid !bg-opacity-40 p-8 - text-black font-mono outline-none" + font-mono text-black outline-none" value={markdown} title="Input textarea" /> diff --git a/src/tailwind.css b/src/tailwind.css index 5b6bd15..e77262f 100644 --- a/src/tailwind.css +++ b/src/tailwind.css @@ -119,7 +119,7 @@ mark { } .formatted code { - @apply font-mono + @apply font-mono; } .formatted ul {