2024-02-21 02:13:48 -08:00
|
|
|
import { CodeHighlight } from "@mantine/code-highlight";
|
2024-03-07 12:00:43 -08:00
|
|
|
import { useSuspenseAPIQuery } from "../api/api";
|
|
|
|
import ConfigResult from "../api/responseTypes/config";
|
2024-02-21 02:13:48 -08:00
|
|
|
|
2024-03-07 04:16:54 -08:00
|
|
|
export default function ConfigPage() {
|
2024-02-21 02:13:48 -08:00
|
|
|
const {
|
|
|
|
data: {
|
|
|
|
data: { yaml },
|
|
|
|
},
|
2024-03-07 12:00:43 -08:00
|
|
|
} = useSuspenseAPIQuery<ConfigResult>({ path: `/status/config` });
|
|
|
|
|
2024-03-07 04:16:54 -08:00
|
|
|
return (
|
|
|
|
<CodeHighlight
|
|
|
|
code={yaml}
|
|
|
|
language="yaml"
|
2024-03-14 04:19:41 -07:00
|
|
|
miw="50vw"
|
2024-03-07 04:16:54 -08:00
|
|
|
w="fit-content"
|
|
|
|
maw="calc(100vw - 75px)"
|
|
|
|
mx="auto"
|
2024-03-14 04:19:41 -07:00
|
|
|
mt="xs"
|
2024-03-07 04:16:54 -08:00
|
|
|
/>
|
|
|
|
);
|
2024-02-21 02:13:48 -08:00
|
|
|
}
|