中文化所有页面 UI 文本

- index.html: 中文化设备操作、任务队列相关文本
- video-learning.html: 中文化会话创建、控制、状态显示等所有文本

Changes:
- placeholder "Enter task..." → "输入任务..."
- button "Execute" → "执行"
- button "Running..." → "运行中..."
- section "Task Queue" → "任务队列"
- section "Devices" → "设备"
- title "Video Learning" → "视频学习"
- form labels: "Device" → "设备", "Platform" → "平台", etc.
- button "Start Learning" → "开始学习"
- session controls: "Resume" → "恢复", "Pause" → "暂停", "Stop" → "停止"
- toast messages: all converted to Chinese
- empty states: "No devices found" → "未找到设备", etc.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
let5sne.win10
2026-01-10 02:28:47 +08:00
parent a356c481ca
commit 88a233284a
2 changed files with 53 additions and 53 deletions

View File

@@ -110,7 +110,7 @@
<input
v-model="device.taskInput"
type="text"
placeholder="Enter task..."
placeholder="输入任务..."
@keyup.enter="executeTask(device)"
:disabled="device.status === 'busy' || !device.is_connected"
>
@@ -119,7 +119,7 @@
class="btn btn-primary"
:disabled="device.status === 'busy' || !device.is_connected || !device.taskInput"
>
{{ device.status === 'busy' ? 'Running...' : 'Execute' }}
{{ device.status === 'busy' ? '运行中...' : '执行' }}
</button>
</div>
</div>
@@ -129,14 +129,14 @@
<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect>
<line x1="12" y1="18" x2="12" y2="18"></line>
</svg>
<p>No devices found</p>
<button @click="refreshDevices" class="btn btn-secondary">Scan for Devices</button>
<p>未找到设备</p>
<button @click="refreshDevices" class="btn btn-secondary">扫描设备</button>
</div>
</section>
<!-- Task Queue -->
<section class="tasks-section">
<h2>Task Queue</h2>
<h2>任务队列</h2>
<div class="task-list" v-if="tasks.length > 0">
<div
class="task-item"
@@ -151,8 +151,8 @@
</div>
<p class="task-description">{{ task.task }}</p>
<div class="task-meta">
<span>Device: {{ task.device_id }}</span>
<span>Step: {{ task.current_step }}/{{ task.max_steps }}</span>
<span>设备:{{ task.device_id }}</span>
<span>步数:{{ task.current_step }}/{{ task.max_steps }}</span>
</div>
<div class="task-progress" v-if="task.status === 'running'">
<div class="progress-bar" :style="{ width: (task.current_step / task.max_steps * 100) + '%' }"></div>
@@ -192,7 +192,7 @@
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="6" y="6" width="12" height="12"></rect>
</svg>
Stop
停止
</button>
</div>
<div class="task-actions" v-else>
@@ -202,7 +202,7 @@
<polyline points="1 20 1 14 7 14"></polyline>
<path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>
</svg>
Re-execute
重新执行
</button>
</div>
</div>
@@ -211,8 +211,8 @@
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1">
<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>
</svg>
<p>No tasks yet</p>
<p class="hint">Enter a task above to get started</p>
<p>暂无任务</p>
<p class="hint">在上方输入任务开始使用</p>
</div>
</section>
</main>