111 lines
4.9 KiB
HTML
111 lines
4.9 KiB
HTML
<!doctype html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>Web 群控工作台</title>
|
||
<link rel="stylesheet" href="/static/style.css?v=20260825-2" />
|
||
</head>
|
||
<body>
|
||
<main class="shell">
|
||
<header class="topbar">
|
||
<div class="brand-mark">W</div>
|
||
<div>
|
||
<p class="eyebrow">LOCAL AUTOMATION CONSOLE</p>
|
||
<h1>Web 群控工作台</h1>
|
||
</div>
|
||
<span class="connection"><i></i> 本地服务已连接</span>
|
||
</header>
|
||
|
||
<section class="hero">
|
||
<div>
|
||
<p class="eyebrow">PLAYWRIGHT / PARALLEL SESSIONS</p>
|
||
<h2>同时打开多个页面,<br /><em>观察并执行同一项操作。</em></h2>
|
||
<p class="lede">输入一个可访问的网址,创建隔离的浏览器实例。每个实例都会持续返回当前页面画面和运行状态。</p>
|
||
</div>
|
||
<div class="hero-note">
|
||
<span class="note-number">01</span>
|
||
<span>任务控制<br />实时反馈</span>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="workspace">
|
||
<form id="run-form" class="control-panel">
|
||
<div class="panel-heading">
|
||
<div>
|
||
<p class="eyebrow">NEW RUN</p>
|
||
<h3>创建控制任务</h3>
|
||
</div>
|
||
<span class="panel-index">A / 01</span>
|
||
</div>
|
||
|
||
<label for="url">目标网址</label>
|
||
<div class="url-input input-wrap">
|
||
<span>↗</span>
|
||
<input id="url" name="url" type="url" placeholder="https://example.com" required />
|
||
</div>
|
||
|
||
<div class="field-grid">
|
||
<div>
|
||
<label for="instance-count">并发实例</label>
|
||
<div class="stepper input-wrap">
|
||
<button type="button" data-step="-1" aria-label="减少实例">−</button>
|
||
<input id="instance-count" name="instances" type="number" min="1" max="12" value="3" />
|
||
<button type="button" data-step="1" aria-label="增加实例">+</button>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<label for="action-text">识别并点击文字 <span>可选</span></label>
|
||
<input id="action-text" name="action_text" type="text" maxlength="120" placeholder="例如:登录 / 提交" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-foot">
|
||
<p>每次任务最多运行 12 个隔离实例</p>
|
||
<button class="primary-button" type="submit"><span>启动任务</span><b>→</b></button>
|
||
</div>
|
||
<p id="form-error" class="form-error" role="alert"></p>
|
||
</form>
|
||
|
||
<aside class="info-panel">
|
||
<div class="panel-heading">
|
||
<div>
|
||
<p class="eyebrow">HOW IT WORKS</p>
|
||
<h3>执行流程</h3>
|
||
</div>
|
||
<span class="panel-index">B / 02</span>
|
||
</div>
|
||
<ol class="steps">
|
||
<li><span>01</span><div><strong>打开页面</strong><p>为每个实例创建独立会话</p></div></li>
|
||
<li><span>02</span><div><strong>识别内容</strong><p>按页面文字寻找目标元素</p></div></li>
|
||
<li><span>03</span><div><strong>实时监控</strong><p>持续显示每个浏览器当前画面</p></div></li>
|
||
</ol>
|
||
<div class="safe-note"><b>i</b><span>仅用于你有权操作的网站。请遵守目标网站的使用规则。</span></div>
|
||
</aside>
|
||
</section>
|
||
|
||
<section class="results-section">
|
||
<div class="results-heading">
|
||
<div><p class="eyebrow">LIVE MONITOR</p><h3>运行结果</h3></div>
|
||
<div class="run-meta"><span id="run-status">尚未启动任务</span><button id="stop-button" class="quiet-button" type="button" disabled>停止任务</button></div>
|
||
</div>
|
||
<div id="empty-state" class="empty-state"><span class="empty-icon">◎</span><p>填写网址后启动任务</p><small>实例状态会显示在这里</small></div>
|
||
<div id="instance-results" class="instance-grid" hidden></div>
|
||
</section>
|
||
|
||
<footer><span>WEB CONTROL / MVP 01</span><span>运行数据仅保存在当前进程内</span></footer>
|
||
</main>
|
||
<div id="image-modal" class="image-modal" hidden>
|
||
<div class="image-modal-content" role="dialog" aria-modal="true" aria-label="放大实时画面">
|
||
<button id="close-modal" class="modal-close" type="button" aria-label="关闭实时画面">×</button>
|
||
<div id="interactive-stage" class="interactive-stage">
|
||
<img id="modal-image" alt="放大后的实例实时画面" />
|
||
<div id="interaction-layer" class="interaction-layer" tabindex="0" aria-label="实例操作区域"></div>
|
||
</div>
|
||
<p id="modal-caption"></p>
|
||
</div>
|
||
</div>
|
||
<script src="/static/app.js?v=20260825-2"></script>
|
||
</body>
|
||
</html>
|