This commit is contained in:
DrMint 2022-06-12 13:54:57 +02:00
parent 1ee5ff1292
commit 1510366bc8
6 changed files with 150 additions and 153 deletions

View File

@ -31,10 +31,7 @@ export function ButtonGroup(props: Immutable<Props>): JSX.Element {
}, [children]); }, [children]);
return ( return (
<div <div ref={ref} className={`grid grid-flow-col ${className}`}>
ref={ref}
className={`grid grid-flow-col ${className}`}
>
{children} {children}
</div> </div>
); );

View File

@ -1,103 +1,103 @@
query getWikiPage($slug: String, $language_code: String) { query getWikiPage($slug: String, $language_code: String) {
wikiPages(filters: { slug: { eq: $slug } }) { wikiPages(filters: { slug: { eq: $slug } }) {
data { data {
id id
attributes { attributes {
slug slug
thumbnail { thumbnail {
data { data {
attributes { attributes {
...uploadImage ...uploadImage
} }
} }
} }
categories { categories {
data { data {
id id
attributes { attributes {
name name
short short
} }
} }
} }
translations { translations {
title title
aliases { aliases {
alias alias
} }
summary summary
language { language {
data { data {
attributes { attributes {
code code
} }
} }
} }
body { body {
source_language { source_language {
data { data {
attributes { attributes {
code code
} }
} }
} }
status status
body body
authors { authors {
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
} }
} }
} }
} }
} }
definitions { definitions {
source { source {
data { data {
attributes { attributes {
name name
} }
} }
} }
translations { translations {
language { language {
data { data {
attributes { attributes {
code code
} }
} }
} }
source_language { source_language {
data { data {
attributes { attributes {
code code
} }
} }
} }
status status
definition definition
} }
} }
} }
} }
} }
} }

View File

@ -1,40 +1,40 @@
query getWikiPagesPreviews { query getWikiPagesPreviews {
wikiPages(pagination: { limit: -1 }) { wikiPages(pagination: { limit: -1 }) {
data { data {
id id
attributes { attributes {
slug slug
thumbnail { thumbnail {
data { data {
attributes { attributes {
...uploadImage ...uploadImage
} }
} }
} }
categories { categories {
data { data {
id id
attributes { attributes {
name name
short short
} }
} }
} }
translations { translations {
title title
aliases { aliases {
alias alias
} }
summary summary
language { language {
data { data {
attributes { attributes {
code code
} }
} }
} }
} }
} }
} }
} }
} }

View File

@ -1,9 +1,9 @@
query getWikiPagesSlugs { query getWikiPagesSlugs {
wikiPages(pagination: { limit: -1 }) { wikiPages(pagination: { limit: -1 }) {
data { data {
attributes { attributes {
slug slug
} }
} }
} }
} }

View File

@ -407,7 +407,7 @@ export default function Editor(props: Immutable<Props>): JSX.Element {
handleInput(textarea.value); handleInput(textarea.value);
}} }}
className="h-[70vh] w-full rounded-xl bg-mid !bg-opacity-40 p-8 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} value={markdown}
title="Input textarea" title="Input textarea"
/> />

View File

@ -119,7 +119,7 @@ mark {
} }
.formatted code { .formatted code {
@apply font-mono @apply font-mono;
} }
.formatted ul { .formatted ul {