Managed to load server configuration from WebUI
This commit is contained in:
@ -1 +1,14 @@
|
||||
export function App(): React.ReactElement {}
|
||||
import { ServerApi } from "./api/ServerApi";
|
||||
import { AsyncWidget } from "./widgets/AsyncWidget";
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<AsyncWidget
|
||||
loadKey={1}
|
||||
errMsg="Failed to load server configuration!"
|
||||
load={ServerApi.LoadConfig}
|
||||
loadingMessage="Loading server configuration..."
|
||||
build={() => <>todo</>}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user