diff --git a/app/wiki/[slug]/page.tsx b/app/wiki/[slug]/page.tsx index 929b427..253fb0b 100644 --- a/app/wiki/[slug]/page.tsx +++ b/app/wiki/[slug]/page.tsx @@ -5,6 +5,7 @@ import rehypePrettyCode from 'rehype-pretty-code'; import rehypeSlug from 'rehype-slug'; import rehypeAutolinkHeadings from 'rehype-autolink-headings'; import { Callout, Grid, Card, Steps, Step, InlineCode, CodeBlockContainer, API } from '@/components/mdx-components'; +import Article from '@/components/wiki/Article'; const mdxOptions = { mdxOptions: { @@ -67,19 +68,26 @@ export default async function Page({ params }: PageProps) { } return ( -
-
-

{article.title}

- {article.updatedAt && ( -

Zuletzt aktualisiert: {article.updatedAt}

- )} -
+ //
+ //
+ //

{article.title}

+ // {article.updatedAt && ( + //

Zuletzt aktualisiert: {article.updatedAt}

+ // )} + //
+ // + //
+
-
+ source={article.rawContent} + components={mdxComponents} + options={mdxOptions as any} + /> +
); } \ No newline at end of file diff --git a/app/wiki/api/page.tsx b/app/wiki/api/page.tsx new file mode 100644 index 0000000..f12ad38 --- /dev/null +++ b/app/wiki/api/page.tsx @@ -0,0 +1,9 @@ +import Article from "@/components/wiki/Article"; + +export default function Page() { + return ( +
+

hi

+
+ ) +} \ No newline at end of file diff --git a/components/wiki/Article.tsx b/components/wiki/Article.tsx new file mode 100644 index 0000000..9e1d625 --- /dev/null +++ b/components/wiki/Article.tsx @@ -0,0 +1,22 @@ +import { ReactNode } from "react"; + +interface ArticleProps { + title: string; + updatedAt?: string; + children: ReactNode +} + +export default function Article({ title, updatedAt, children }: ArticleProps) { + return ( +
+
+

{title}

+ {updatedAt && ( +

Zuletzt aktualisiert: {updatedAt}

+ )} +
+ + {children} +
+ ); +} \ No newline at end of file diff --git a/data/wiki/pages/api.mdx b/data/wiki/pages/api.mdx index 51a3773..3f4b877 100644 --- a/data/wiki/pages/api.mdx +++ b/data/wiki/pages/api.mdx @@ -3,12 +3,8 @@ title: API updatedAt: "2026-08-05" --- - - Diese Wiki-Seite ist derzeit nur zum Testen da. Bitte Informationen nicht anwenden! - - - Es weder eine Authentifikation noch ein API-Key notwendig. + Es ist weder eine Authentifikation noch ein API-Key erforderlich. ## API-Endpoints @@ -20,4 +16,24 @@ updatedAt: "2026-08-05" Lied zum Anzeigen festlegen + + +### Lieder + + + Informationen eines Liedes abrufen + + + Lied zu einem Liederbuch hinzufügen + + + Lied von einem Liederbuch entfernen + + +### Liederbücher + + Liste aller Liederbücher abrufen + + + Neues Liederbuch erstellen \ No newline at end of file