mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
Resolve https://projekte.kosit.org/kosit/validator/-/issues/97 "Replace docsify from UI"
This commit is contained in:
parent
a10cc14d06
commit
219aeaa1b7
100 changed files with 27369 additions and 1072 deletions
18
server/ui/src/pages/config/ConfigPage.tsx
Normal file
18
server/ui/src/pages/config/ConfigPage.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import React from "react";
|
||||
import PageLayout from "@site/src/components/PageLayout";
|
||||
import XmlView from "@site/src/components/XmlView";
|
||||
|
||||
function ConfigPage(): JSX.Element {
|
||||
return (
|
||||
<PageLayout
|
||||
title="Validator configuration"
|
||||
layoutDescription="The currently loaded validator configuration"
|
||||
headline="Validator configuration"
|
||||
description="View the currently loaded validator configuration."
|
||||
>
|
||||
<XmlView endpoint="/server/config" fileName="config.xml" />
|
||||
</PageLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export default ConfigPage;
|
||||
3
server/ui/src/pages/config/index.ts
Normal file
3
server/ui/src/pages/config/index.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import ConfigPage from "./ConfigPage";
|
||||
|
||||
export default ConfigPage;
|
||||
18
server/ui/src/pages/health/HealthPage.tsx
Normal file
18
server/ui/src/pages/health/HealthPage.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import React from "react";
|
||||
import PageLayout from "@site/src/components/PageLayout";
|
||||
import XmlView from "@site/src/components/XmlView";
|
||||
|
||||
function HealthPage(): JSX.Element {
|
||||
return (
|
||||
<PageLayout
|
||||
title="Health information"
|
||||
layoutDescription="Health and status information about the system"
|
||||
headline="Server health information"
|
||||
description="Information about health and status of the running system."
|
||||
>
|
||||
<XmlView endpoint="/server/health" fileName="health.xml" />
|
||||
</PageLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export default HealthPage;
|
||||
3
server/ui/src/pages/health/index.ts
Normal file
3
server/ui/src/pages/health/index.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import HealthPage from "./HealthPage";
|
||||
|
||||
export default HealthPage;
|
||||
15
server/ui/src/pages/index.tsx
Normal file
15
server/ui/src/pages/index.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import React from "react";
|
||||
import Upload from "../components/Upload";
|
||||
import PageLayout from "../components/PageLayout";
|
||||
|
||||
export default function Home(): JSX.Element {
|
||||
return (
|
||||
<PageLayout
|
||||
layoutDescription="KoSIT Validator Daemon"
|
||||
headline="Try the validator!"
|
||||
description="Upload an XML file here to validate its contents. Note: this is just a demo implementation, not meant for production usage. If you need a production ready implementation you are welcome to contribute to the open source project."
|
||||
>
|
||||
<Upload />
|
||||
</PageLayout>
|
||||
);
|
||||
}
|
||||
7
server/ui/src/pages/markdown-page.md
Normal file
7
server/ui/src/pages/markdown-page.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: Markdown page example
|
||||
---
|
||||
|
||||
# Markdown page example
|
||||
|
||||
You don't need React to write simple standalone pages.
|
||||
Loading…
Add table
Add a link
Reference in a new issue