Build base web

This commit is contained in:
2023-09-04 14:11:56 +02:00
parent 83bd87c6f8
commit 8defc104c6
35 changed files with 31630 additions and 0 deletions

View File

@ -0,0 +1,18 @@
import { PropsWithChildren } from "react";
import { AsyncWidget } from "./AsyncWidget";
import { ServerApi } from "../api/ServerApi";
export function LoadServerConfig(p: PropsWithChildren): React.ReactElement {
const load = async () => {
await ServerApi.LoadConfig();
};
return (
<AsyncWidget
loadKey={0}
errMsg="Failed to load server config!"
load={load}
build={() => <>{p.children}</>}
/>
);
}