Files
wov-web/admin.html
T

99 lines
3.0 KiB
HTML

<!doctype html>
<!-- WOV 管理后台:节点注册、节点列表、手动调用与实例管理。 -->
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>WOV 管理后台</title>
<link rel="stylesheet" href="/assets/styles.css" />
</head>
<body>
<header class="topbar">
<a class="brand" href="/">WOV</a>
<nav>
<a href="/">应用中心</a>
<a href="/tasks.html">任务管理</a>
<a href="/admin.html">管理后台</a>
<a href="/workflow.html">工作流</a>
</nav>
</header>
<main class="container">
<h1>节点管理</h1>
<!-- 注册节点:粘贴 node.manifest.json,由后端校验后写入注册表。 -->
<section class="panel">
<h2>注册节点</h2>
<label for="manifestJson">节点 Manifest JSON</label>
<textarea id="manifestJson" rows="14"></textarea>
<div class="actions">
<button id="registerNode" class="primary">注册节点</button>
<button id="loadEchoManifest" class="ghost">填入 Echo Manifest</button>
</div>
</section>
<!-- 已注册节点:展示节点能力与版本,可删除节点。 -->
<section class="panel">
<h2>已注册节点</h2>
<div class="table-wrap">
<table>
<thead>
<tr>
<th>ID</th>
<th>名称</th>
<th>能力</th>
<th>版本</th>
<th>操作</th>
</tr>
</thead>
<tbody id="nodeList"></tbody>
</table>
</div>
</section>
<!-- 调用节点:管理后台手动触发一次节点调用,用于联调。 -->
<section class="panel">
<h2>调用节点</h2>
<div class="form-grid">
<label>
节点
<select id="invokeNodeId"></select>
</label>
<label>
Run ID
<input id="invokeRunId" type="text" value="run_web" />
</label>
<label class="wide">
inputs JSON
<textarea id="invokeInputs" rows="4">{"text":"hello wov"}</textarea>
</label>
</div>
<button id="invokeNode" class="primary">调用节点</button>
<pre id="invokeResult" class="result">等待调用...</pre>
</section>
<!-- 节点实例:查看 NodeManager 启动的进程状态,可手动停止。 -->
<section class="panel">
<h2>节点实例</h2>
<div class="table-wrap">
<table>
<thead>
<tr>
<th>实例 ID</th>
<th>节点</th>
<th>状态</th>
<th>PID</th>
<th>地址</th>
<th>操作</th>
</tr>
</thead>
<tbody id="instanceList"></tbody>
</table>
</div>
</section>
</main>
<script src="/assets/app.js"></script>
</body>
</html>