feat: add Build page UI with real-time output streaming

This commit is contained in:
plenarius
2026-04-20 19:54:42 -04:00
parent 0e31277eec
commit 973310113c
3 changed files with 339 additions and 0 deletions
+13
View File
@@ -48,6 +48,19 @@ export const api = {
init: () => request("/workspace/init", { method: "POST" }),
},
build: {
compileModule: (target?: string) =>
request("/build/module/compile", { method: "POST", body: JSON.stringify({ target }) }),
packModule: (target?: string) =>
request("/build/module/pack", { method: "POST", body: JSON.stringify({ target }) }),
deploy: () => request("/build/deploy", { method: "POST" }),
compileSingle: (filePath: string) =>
request("/build/compile-single", { method: "POST", body: JSON.stringify({ filePath }) }),
buildHaks: () => request("/build/haks", { method: "POST" }),
buildNwnx: (target?: string) =>
request("/build/nwnx", { method: "POST", body: JSON.stringify({ target }) }),
},
docker: {
containers: () => request<Array<Record<string, string>>>("/docker/containers"),
pull: (image: string) =>