Add multi-board selector and scalable firmware catalog UI.

Board chips reserve future models; firmware uses searchable cards with detail pane and optional meta.json media/docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 19:45:24 +08:00
parent ae63378fdb
commit a59aaf1c8d
11 changed files with 788 additions and 226 deletions

View File

@@ -1,33 +1,48 @@
{
"meta": {
"title": "CYD Flasher — Flash Cheap Yellow Display in the browser",
"description": "Web Serial installer for ESP32-2432S028 (CYD). Pick a firmware and flash over USB from Chrome or Edge."
"description": "Web Serial installer for ESP32-2432S028 (CYD) and more boards. Pick a firmware and flash over USB from Chrome or Edge."
},
"brand": {
"name": "CYD Flasher",
"tagline": "Browser serial flash · ESP32-2432S028"
"tagline": "Browser serial flash · multi-board ready"
},
"hero": {
"title": "Pick firmware, plug in USB, flash once",
"lede": "Scans local CYD project firmwares and writes them over Web Serial from your browser."
"title": "Pick a board, choose firmware, flash once",
"lede": "Browse project firmwares with previews and docs, then write them over Web Serial from your browser."
},
"browser": {
"unsupported": "Chrome or Edge with Web Serial is required. Open this site on HTTPS or http://localhost."
},
"boards": {
"title": "Board",
"hint": "More models coming soon",
"soon": "Soon",
"items": {
"cyd28": "CYD 2.8\"",
"cyd24": "CYD 2.4\"",
"cyd35": "CYD 3.5\"",
"s3touch": "ESP32-S3 Touch"
}
},
"firmware": {
"title": "Available firmware",
"title": "Firmware catalog",
"refresh": "Refresh",
"search": "Search name, tags, project…",
"count": "{count} available",
"scanning": "Scanning…",
"empty": "No firmware found. Ensure complete firmware/*/…bin packages exist, or set CYD_FIRMWARE_ROOT.",
"empty": "No firmware for this board. Try another board, clear search, or set CYD_FIRMWARE_ROOT.",
"error": "Scan failed: {message}",
"noneSelected": "No firmware selected",
"selectedLabel": "Selected:"
"noneSelected": "Select a firmware card to see details and flash",
"selectedLabel": "Selected",
"docs": "Documentation",
"mediaPlaceholder": "Animation / video / cover will appear here"
},
"install": {
"cta": "Connect & flash",
"steps": {
"1": "Connect CYD with a data USB cable (not charge-only).",
"2": "Select a firmware above.",
"1": "Connect the board with a data USB cable (not charge-only).",
"2": "Select a firmware from the catalog.",
"3": "Click Connect & flash, then choose the serial port (CH340 / CP210x).",
"4": "Wait for progress to finish — the board reboots automatically."
}

View File

@@ -1,33 +1,48 @@
{
"meta": {
"title": "CYD Flasher — 浏览器刷写 Cheap Yellow Display",
"description": "面向 ESP32-2432S028(CYD)的 Web Serial 刷机站。在 Chrome / Edge 中选择固件并通过 USB 刷入。"
"description": "面向 ESP32-2432S028(CYD)及更多板型的 Web Serial 刷机站。在 Chrome / Edge 中选择固件并通过 USB 刷入。"
},
"brand": {
"name": "CYD Flasher",
"tagline": "浏览器串口刷机 · ESP32-2432S028"
"tagline": "浏览器串口刷机 · 多板型预留"
},
"hero": {
"title": "选固件,插上 USB,一键刷入",
"lede": "自动扫描本机 CYD 项目预编译包,在浏览器里通过 Web Serial 写入固件。"
"title": "选板型,选固件,一键刷入",
"lede": "以卡片目录浏览固件(预留动画 / 视频 / 文档),在浏览器里通过 Web Serial 写入。"
},
"browser": {
"unsupported": "需要支持 Web Serial 的 Chrome 或 Edge。请通过 HTTPS 或 http://localhost 打开本页。"
},
"boards": {
"title": "板型",
"hint": "更多型号即将开放",
"soon": "即将",
"items": {
"cyd28": "CYD 2.8\"",
"cyd24": "CYD 2.4\"",
"cyd35": "CYD 3.5\"",
"s3touch": "ESP32-S3 触控"
}
},
"firmware": {
"title": "可用固件",
"title": "固件目录",
"refresh": "刷新",
"search": "搜索名称、标签、项目…",
"count": "共 {count} 个",
"scanning": "正在扫描…",
"empty": "未找到固件。请确认存在完整的 firmware/*/…bin,或设置 CYD_FIRMWARE_ROOT。",
"empty": "当前板型下没有固件。可换板型、清空搜索,或设置 CYD_FIRMWARE_ROOT。",
"error": "扫描失败:{message}",
"noneSelected": "尚未选择固件",
"selectedLabel": "已选:"
"noneSelected": "点选固件卡片查看详情并刷写",
"selectedLabel": "已选",
"docs": "文档",
"mediaPlaceholder": "动画 / 视频 / 封面将显示在这里"
},
"install": {
"cta": "连接并刷写",
"steps": {
"1": "用 USB 线连接 CYD(数据口,非仅充电)。",
"2": "选择上方固件。",
"1": "用 USB 线连接板子(数据口,非仅充电)。",
"2": "在目录中选择固件。",
"3": "点「连接并刷写」,在弹窗中选串口(常见 CH340 / CP210x)。",
"4": "等待进度完成,板子会自动重启。"
}