feat: add Build page UI with real-time output streaming
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user