server state and stdio streaming

This commit is contained in:
2023-10-03 02:57:35 -06:00
parent dc4c8efeb2
commit 4a4563ba85
25 changed files with 502 additions and 80 deletions

22
routes/setup/fabric.tsx Normal file
View File

@@ -0,0 +1,22 @@
import { Content } from "../../components/Content.tsx";
import { FabricVersions } from "../../islands/fabricVersions.tsx";
import { initFabric } from "../../util/initFabric.ts";
export default function FabricSetup() {
try {
const vers = Deno.readDirSync("./fabric/versions");
if (Array.from(vers).length !== 3) throw "";
} catch {
initFabric();
}
return (
<div class="container p-8">
<Content>
<h2 class="font-pixel text-2xl">Fabric Setup</h2>
<p>Select the game version you wish to create a server for. If you know you need a different loader and installer version, you can change it here.</p>
<FabricVersions />
</Content>
</div>
);
}