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]);
return (
<div
ref={ref}
className={`grid grid-flow-col ${className}`}
>
<div ref={ref} className={`grid grid-flow-col ${className}`}>
{children}
</div>
);

View File

@ -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
}
}
}
}
}
}
source_language {
data {
attributes {
code
}
}
}
status
definition
}
}
}
}
}
}

View File

@ -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
}
}
}
}
}
}
}
}
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
}
}
}
}
}
}
}
}

View File

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

View File

@ -407,7 +407,7 @@ export default function Editor(props: Immutable<Props>): 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"
/>

View File

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