- 新协议《协议简述-添加扫描时光色》落地: FFE4 Byte17 高3位=扫描光色(1红/2红外/3紫外/4暖黄), 低5位保留贴合状态; Byte18=0xFF 故障; auto-scan 按光色分桶采集(旧固件无标识归 red 桶降级) - diagnosis.js 重写: PD极性(值大=吸收多,固件已确认) NR=本区/本色5区平均-1; 每区4色argmax>0.10判定; 3路PD区几何平均+MAD剔奇异(3σ对n=3失效,审计实证); 严重度0.05/0.15/0.30仅展示; 全参数走 diagnosis_config 热调(极性/阈值/PD映射/亮度) - buildVendorCommand 支持 plan 多区多色单命令下发(每IO独立 红/红外/紫外/暖黄); builder层安全硬上限 治疗亮度≤204(80%) 时长≤600s - 区域映射修正: 掩码=IO纵列 左0x01/中上0x02/中0x04/中下0x08/右0x10, 修复 treatment-setup/manual/treating/getRegionName/i18n 共7处标签错位, FULL_FACE 0x7F→0x1F - 扫描报告页: 新增分区面罩示意图(5区按推荐光着色+模式名+严重度,点击跳光疗介绍), 推荐护理改一条命令多色下发(亮度204); 扫描中设备故障即时中止 - schema.sql diagnosis_config 种子更新(新结构); i18n 清理死键,中英对齐25/24键
56 行
2.3 KiB
JavaScript
56 行
2.3 KiB
JavaScript
// Strings for the treating (live treatment) page. Keep zh/en with identical key structure.
|
|
module.exports = {
|
|
zh: {
|
|
title: '使用中',
|
|
subtitle: '正在使用...',
|
|
remainingLabel: '剩余时间',
|
|
smartMode: '✨ 智能模式',
|
|
normalMode: '🔄 普通模式',
|
|
allRegions: '全区域',
|
|
relax1: '请放松心情',
|
|
relax2: '享受美好时光',
|
|
stopBtn: '停止使用',
|
|
fittingLost: '检测到离肤,请重新佩戴设备',
|
|
fittingRestored: '已重新贴合,继续使用',
|
|
faultTitle: '设备故障',
|
|
faultContent: '设备上报故障,已自动停止。',
|
|
lowBatteryTitle: '电量过低',
|
|
lowBatteryContent: '设备电量不足5%,已自动停止。请及时充电。',
|
|
lowBatteryWarn: '电量低,请及时充电',
|
|
exceptionTitle: '设备异常',
|
|
exceptionContent: '使用过程中出现异常',
|
|
disconnected: '设备连接断开,正在重连...',
|
|
reconnected: '设备已重新连接',
|
|
reconnectFailedTitle: '连接丢失',
|
|
reconnectFailedContent: '设备蓝牙连接已断开,无法恢复。本次使用数据将保存。',
|
|
stopTitle: '结束使用',
|
|
stopContent: '确定要提前结束本次使用吗?'
|
|
},
|
|
en: {
|
|
title: 'In Progress',
|
|
subtitle: 'Treatment in progress...',
|
|
remainingLabel: 'Time Left',
|
|
smartMode: '✨ Smart Mode',
|
|
normalMode: '🔄 Normal Mode',
|
|
allRegions: 'All regions',
|
|
relax1: 'Relax and unwind',
|
|
relax2: 'Enjoy your moment',
|
|
stopBtn: 'Stop',
|
|
fittingLost: 'Device lifted off skin. Please put it back on',
|
|
fittingRestored: 'Re-fitted, continuing',
|
|
faultTitle: 'Device Fault',
|
|
faultContent: 'The device reported a fault and stopped automatically.',
|
|
lowBatteryTitle: 'Battery Too Low',
|
|
lowBatteryContent: 'Battery is below 5%. Stopped automatically. Please charge soon.',
|
|
lowBatteryWarn: 'Low battery, please charge soon',
|
|
exceptionTitle: 'Device Error',
|
|
exceptionContent: 'Something went wrong during the session',
|
|
disconnected: 'Device disconnected, reconnecting...',
|
|
reconnected: 'Device reconnected',
|
|
reconnectFailedTitle: 'Connection Lost',
|
|
reconnectFailedContent: 'The Bluetooth connection was lost and cannot be restored. This session will be saved.',
|
|
stopTitle: 'End Session',
|
|
stopContent: 'Are you sure you want to end this session early?'
|
|
}
|
|
}
|