Rename profiles to automations across backend and frontend
Rename the "profiles" entity to "automations" throughout the entire codebase for clarity. Updates Python models, storage, API routes/schemas, engine, frontend JS modules, HTML templates, CSS classes, i18n keys (en/ru/zh), dashboard, tutorials, and command palette. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -220,10 +220,10 @@
|
||||
"calibration.tip.skip_leds_start": "跳过灯带起始端的 LED — 被跳过的 LED 保持关闭",
|
||||
"calibration.tip.skip_leds_end": "跳过灯带末尾端的 LED — 被跳过的 LED 保持关闭",
|
||||
"tour.welcome": "欢迎使用 LED Grab!快速导览将带您了解界面。使用方向键或按钮进行导航。",
|
||||
"tour.dashboard": "仪表盘 — 实时查看运行中的目标、配置文件和设备状态。",
|
||||
"tour.dashboard": "仪表盘 — 实时查看运行中的目标、自动化和设备状态。",
|
||||
"tour.targets": "目标 — 添加 WLED 设备,配置 LED 目标的捕获设置和校准。",
|
||||
"tour.sources": "来源 — 管理捕获模板、图片来源、音频来源和色带。",
|
||||
"tour.profiles": "配置文件 — 将目标分组,并通过时间、音频或数值条件自动切换。",
|
||||
"tour.automations": "自动化 — 通过时间、音频或数值条件自动切换场景。",
|
||||
"tour.settings": "设置 — 备份和恢复配置,管理自动备份。",
|
||||
"tour.api": "API 文档 — 基于 Swagger 的交互式 REST API 文档。",
|
||||
"tour.search": "搜索 — 使用 Ctrl+K 快速查找并导航到任意实体。",
|
||||
@@ -234,7 +234,7 @@
|
||||
"tour.dash.perf": "性能 — 实时 FPS 图表、延迟指标和轮询间隔控制。",
|
||||
"tour.dash.running": "运行中的目标 — 实时流媒体指标和快速停止控制。",
|
||||
"tour.dash.stopped": "已停止的目标 — 一键启动。",
|
||||
"tour.dash.profiles": "配置文件 — 活动配置文件状态和快速启用/禁用切换。",
|
||||
"tour.dash.automations": "自动化 — 活动自动化状态和快速启用/禁用切换。",
|
||||
"tour.tgt.led_tab": "LED 标签 — 标准 LED 灯带目标,包含设备和色带配置。",
|
||||
"tour.tgt.devices": "设备 — 在网络中发现的 WLED 控制器。",
|
||||
"tour.tgt.css": "色带 — 定义屏幕区域如何映射到 LED 段。",
|
||||
@@ -245,10 +245,10 @@
|
||||
"tour.src.static": "静态图片 — 使用图片文件测试您的设置。",
|
||||
"tour.src.processed": "处理 — 应用后处理效果,如模糊、亮度或色彩校正。",
|
||||
"tour.src.audio": "音频 — 分析麦克风或系统音频以实现响应式 LED 效果。",
|
||||
"tour.src.value": "数值 — 用于配置文件自动化条件的数字数据源。",
|
||||
"tour.prof.list": "配置文件 — 基于时间、音频或数值条件自动控制目标。",
|
||||
"tour.prof.add": "点击 + 创建包含目标和激活条件的新配置文件。",
|
||||
"tour.prof.card": "每张卡片显示配置文件状态、条件和快速编辑/切换控制。",
|
||||
"tour.src.value": "数值 — 用于自动化条件的数字数据源。",
|
||||
"tour.auto.list": "自动化 — 基于时间、音频或数值条件自动激活场景。",
|
||||
"tour.auto.add": "点击 + 创建包含条件和要激活场景的新自动化。",
|
||||
"tour.auto.card": "每张卡片显示自动化状态、条件和快速编辑/切换控制。",
|
||||
"calibration.tutorial.start": "开始教程",
|
||||
"calibration.overlay_toggle": "叠加层",
|
||||
"calibration.start_position": "起始位置:",
|
||||
@@ -531,7 +531,7 @@
|
||||
"dashboard.device": "设备",
|
||||
"dashboard.stop_all": "全部停止",
|
||||
"dashboard.failed": "加载仪表盘失败",
|
||||
"dashboard.section.profiles": "配置文件",
|
||||
"dashboard.section.automations": "自动化",
|
||||
"dashboard.section.scenes": "场景预设",
|
||||
"dashboard.targets": "目标",
|
||||
"dashboard.section.performance": "系统性能",
|
||||
@@ -541,83 +541,83 @@
|
||||
"dashboard.perf.unavailable": "不可用",
|
||||
"dashboard.perf.color": "图表颜色",
|
||||
"dashboard.poll_interval": "刷新间隔",
|
||||
"profiles.title": "配置文件",
|
||||
"profiles.empty": "尚未配置配置文件。创建一个以自动化目标激活。",
|
||||
"profiles.add": "添加配置文件",
|
||||
"profiles.edit": "编辑配置文件",
|
||||
"profiles.delete.confirm": "删除配置文件 \"{name}\"?",
|
||||
"profiles.name": "名称:",
|
||||
"profiles.name.hint": "此配置文件的描述性名称",
|
||||
"profiles.enabled": "启用:",
|
||||
"profiles.enabled.hint": "禁用的配置文件即使满足条件也不会激活",
|
||||
"profiles.condition_logic": "条件逻辑:",
|
||||
"profiles.condition_logic.hint": "多个条件的组合方式:任一(或)或 全部(与)",
|
||||
"profiles.condition_logic.or": "任一条件(或)",
|
||||
"profiles.condition_logic.and": "全部条件(与)",
|
||||
"profiles.conditions": "条件:",
|
||||
"profiles.conditions.hint": "决定此配置文件何时激活的规则",
|
||||
"profiles.conditions.add": "添加条件",
|
||||
"profiles.conditions.empty": "无条件 — 启用后配置文件始终处于活动状态",
|
||||
"profiles.condition.always": "始终",
|
||||
"profiles.condition.always.hint": "配置文件启用后立即激活并保持活动。用于服务器启动时自动启动目标。",
|
||||
"profiles.condition.application": "应用程序",
|
||||
"profiles.condition.application.apps": "应用程序:",
|
||||
"profiles.condition.application.apps.hint": "进程名,每行一个(例如 firefox.exe)",
|
||||
"profiles.condition.application.browse": "浏览",
|
||||
"profiles.condition.application.search": "筛选进程...",
|
||||
"profiles.condition.application.no_processes": "未找到进程",
|
||||
"profiles.condition.application.match_type": "匹配类型:",
|
||||
"profiles.condition.application.match_type.hint": "如何检测应用程序",
|
||||
"profiles.condition.application.match_type.running": "运行中",
|
||||
"profiles.condition.application.match_type.topmost": "最前(前台)",
|
||||
"profiles.condition.application.match_type.topmost_fullscreen": "最前 + 全屏",
|
||||
"profiles.condition.application.match_type.fullscreen": "全屏",
|
||||
"profiles.condition.time_of_day": "时段",
|
||||
"profiles.condition.time_of_day.start_time": "开始时间:",
|
||||
"profiles.condition.time_of_day.end_time": "结束时间:",
|
||||
"profiles.condition.time_of_day.overnight_hint": "跨夜时段(如 22:00–06:00),请将开始时间设为晚于结束时间。",
|
||||
"profiles.condition.system_idle": "系统空闲",
|
||||
"profiles.condition.system_idle.idle_minutes": "空闲超时(分钟):",
|
||||
"profiles.condition.system_idle.mode": "触发模式:",
|
||||
"profiles.condition.system_idle.when_idle": "空闲时",
|
||||
"profiles.condition.system_idle.when_active": "活跃时",
|
||||
"profiles.condition.display_state": "显示器状态",
|
||||
"profiles.condition.display_state.state": "显示器状态:",
|
||||
"profiles.condition.display_state.on": "开启",
|
||||
"profiles.condition.display_state.off": "关闭(休眠)",
|
||||
"profiles.condition.mqtt": "MQTT",
|
||||
"profiles.condition.mqtt.topic": "主题:",
|
||||
"profiles.condition.mqtt.payload": "消息内容:",
|
||||
"profiles.condition.mqtt.match_mode": "匹配模式:",
|
||||
"profiles.condition.mqtt.match_mode.exact": "精确匹配",
|
||||
"profiles.condition.mqtt.match_mode.contains": "包含",
|
||||
"profiles.condition.mqtt.match_mode.regex": "正则表达式",
|
||||
"profiles.condition.mqtt.hint": "当 MQTT 主题收到匹配的消息时激活",
|
||||
"profiles.scene": "场景:",
|
||||
"profiles.scene.hint": "条件满足时激活的场景预设",
|
||||
"profiles.scene.search_placeholder": "搜索场景...",
|
||||
"profiles.scene.none_selected": "无场景",
|
||||
"profiles.scene.none_available": "没有可用的场景",
|
||||
"profiles.deactivation_mode": "停用方式:",
|
||||
"profiles.deactivation_mode.hint": "条件不再满足时的行为",
|
||||
"profiles.deactivation_mode.none": "无 — 保持当前状态",
|
||||
"profiles.deactivation_mode.revert": "恢复到之前的状态",
|
||||
"profiles.deactivation_mode.fallback_scene": "激活备用场景",
|
||||
"profiles.deactivation_scene": "备用场景:",
|
||||
"profiles.deactivation_scene.hint": "配置文件停用时激活的场景",
|
||||
"profiles.status.active": "活动",
|
||||
"profiles.status.inactive": "非活动",
|
||||
"profiles.status.disabled": "已禁用",
|
||||
"profiles.action.disable": "禁用",
|
||||
"profiles.last_activated": "上次激活",
|
||||
"profiles.logic.and": " 与 ",
|
||||
"profiles.logic.or": " 或 ",
|
||||
"profiles.logic.all": "全部",
|
||||
"profiles.logic.any": "任一",
|
||||
"profiles.updated": "配置文件已更新",
|
||||
"profiles.created": "配置文件已创建",
|
||||
"profiles.deleted": "配置文件已删除",
|
||||
"profiles.error.name_required": "名称为必填项",
|
||||
"automations.title": "自动化",
|
||||
"automations.empty": "尚未配置自动化。创建一个以自动激活场景。",
|
||||
"automations.add": "添加自动化",
|
||||
"automations.edit": "编辑自动化",
|
||||
"automations.delete.confirm": "删除自动化 \"{name}\"?",
|
||||
"automations.name": "名称:",
|
||||
"automations.name.hint": "此自动化的描述性名称",
|
||||
"automations.enabled": "启用:",
|
||||
"automations.enabled.hint": "禁用的自动化即使满足条件也不会激活",
|
||||
"automations.condition_logic": "条件逻辑:",
|
||||
"automations.condition_logic.hint": "多个条件的组合方式:任一(或)或 全部(与)",
|
||||
"automations.condition_logic.or": "任一条件(或)",
|
||||
"automations.condition_logic.and": "全部条件(与)",
|
||||
"automations.conditions": "条件:",
|
||||
"automations.conditions.hint": "决定此自动化何时激活的规则",
|
||||
"automations.conditions.add": "添加条件",
|
||||
"automations.conditions.empty": "无条件 — 启用后自动化始终处于活动状态",
|
||||
"automations.condition.always": "始终",
|
||||
"automations.condition.always.hint": "自动化启用后立即激活并保持活动。用于服务器启动时自动激活场景。",
|
||||
"automations.condition.application": "应用程序",
|
||||
"automations.condition.application.apps": "应用程序:",
|
||||
"automations.condition.application.apps.hint": "进程名,每行一个(例如 firefox.exe)",
|
||||
"automations.condition.application.browse": "浏览",
|
||||
"automations.condition.application.search": "筛选进程...",
|
||||
"automations.condition.application.no_processes": "未找到进程",
|
||||
"automations.condition.application.match_type": "匹配类型:",
|
||||
"automations.condition.application.match_type.hint": "如何检测应用程序",
|
||||
"automations.condition.application.match_type.running": "运行中",
|
||||
"automations.condition.application.match_type.topmost": "最前(前台)",
|
||||
"automations.condition.application.match_type.topmost_fullscreen": "最前 + 全屏",
|
||||
"automations.condition.application.match_type.fullscreen": "全屏",
|
||||
"automations.condition.time_of_day": "时段",
|
||||
"automations.condition.time_of_day.start_time": "开始时间:",
|
||||
"automations.condition.time_of_day.end_time": "结束时间:",
|
||||
"automations.condition.time_of_day.overnight_hint": "跨夜时段(如 22:00–06:00),请将开始时间设为晚于结束时间。",
|
||||
"automations.condition.system_idle": "系统空闲",
|
||||
"automations.condition.system_idle.idle_minutes": "空闲超时(分钟):",
|
||||
"automations.condition.system_idle.mode": "触发模式:",
|
||||
"automations.condition.system_idle.when_idle": "空闲时",
|
||||
"automations.condition.system_idle.when_active": "活跃时",
|
||||
"automations.condition.display_state": "显示器状态",
|
||||
"automations.condition.display_state.state": "显示器状态:",
|
||||
"automations.condition.display_state.on": "开启",
|
||||
"automations.condition.display_state.off": "关闭(休眠)",
|
||||
"automations.condition.mqtt": "MQTT",
|
||||
"automations.condition.mqtt.topic": "主题:",
|
||||
"automations.condition.mqtt.payload": "消息内容:",
|
||||
"automations.condition.mqtt.match_mode": "匹配模式:",
|
||||
"automations.condition.mqtt.match_mode.exact": "精确匹配",
|
||||
"automations.condition.mqtt.match_mode.contains": "包含",
|
||||
"automations.condition.mqtt.match_mode.regex": "正则表达式",
|
||||
"automations.condition.mqtt.hint": "当 MQTT 主题收到匹配的消息时激活",
|
||||
"automations.scene": "场景:",
|
||||
"automations.scene.hint": "条件满足时激活的场景预设",
|
||||
"automations.scene.search_placeholder": "搜索场景...",
|
||||
"automations.scene.none_selected": "无场景",
|
||||
"automations.scene.none_available": "没有可用的场景",
|
||||
"automations.deactivation_mode": "停用方式:",
|
||||
"automations.deactivation_mode.hint": "条件不再满足时的行为",
|
||||
"automations.deactivation_mode.none": "无 — 保持当前状态",
|
||||
"automations.deactivation_mode.revert": "恢复到之前的状态",
|
||||
"automations.deactivation_mode.fallback_scene": "激活备用场景",
|
||||
"automations.deactivation_scene": "备用场景:",
|
||||
"automations.deactivation_scene.hint": "自动化停用时激活的场景",
|
||||
"automations.status.active": "活动",
|
||||
"automations.status.inactive": "非活动",
|
||||
"automations.status.disabled": "已禁用",
|
||||
"automations.action.disable": "禁用",
|
||||
"automations.last_activated": "上次激活",
|
||||
"automations.logic.and": " 与 ",
|
||||
"automations.logic.or": " 或 ",
|
||||
"automations.logic.all": "全部",
|
||||
"automations.logic.any": "任一",
|
||||
"automations.updated": "自动化已更新",
|
||||
"automations.created": "自动化已创建",
|
||||
"automations.deleted": "自动化已删除",
|
||||
"automations.error.name_required": "名称为必填项",
|
||||
"scenes.title": "场景",
|
||||
"scenes.add": "捕获场景",
|
||||
"scenes.edit": "编辑场景",
|
||||
@@ -633,7 +633,7 @@
|
||||
"scenes.delete": "删除场景",
|
||||
"scenes.targets_count": "目标",
|
||||
"scenes.devices_count": "设备",
|
||||
"scenes.profiles_count": "配置",
|
||||
"scenes.automations_count": "自动化",
|
||||
"scenes.captured": "场景已捕获",
|
||||
"scenes.updated": "场景已更新",
|
||||
"scenes.activated": "场景已激活",
|
||||
@@ -1016,7 +1016,7 @@
|
||||
"search.group.targets": "LED 目标",
|
||||
"search.group.kc_targets": "关键颜色目标",
|
||||
"search.group.css": "色带源",
|
||||
"search.group.profiles": "配置文件",
|
||||
"search.group.automations": "自动化",
|
||||
"search.group.streams": "图片流",
|
||||
"search.group.capture_templates": "采集模板",
|
||||
"search.group.pp_templates": "后处理模板",
|
||||
@@ -1025,7 +1025,7 @@
|
||||
"search.group.value": "值源",
|
||||
"search.group.scenes": "场景预设",
|
||||
"settings.backup.label": "备份配置",
|
||||
"settings.backup.hint": "将所有配置(设备、目标、流、模板、配置文件)下载为单个 JSON 文件。",
|
||||
"settings.backup.hint": "将所有配置(设备、目标、流、模板、自动化)下载为单个 JSON 文件。",
|
||||
"settings.backup.button": "下载备份",
|
||||
"settings.backup.success": "备份下载成功",
|
||||
"settings.backup.error": "备份下载失败",
|
||||
@@ -1074,7 +1074,7 @@
|
||||
"calibration.error.save_failed": "保存校准失败",
|
||||
"calibration.error.led_count_mismatch": "LED总数必须等于设备LED数量",
|
||||
"calibration.error.led_count_exceeded": "校准的LED超过了LED总数",
|
||||
"dashboard.error.profile_toggle_failed": "切换配置文件失败",
|
||||
"dashboard.error.automation_toggle_failed": "切换自动化失败",
|
||||
"dashboard.error.start_failed": "启动处理失败",
|
||||
"dashboard.error.stop_failed": "停止处理失败",
|
||||
"dashboard.error.autostart_toggle_failed": "切换自动启动失败",
|
||||
|
||||
Reference in New Issue
Block a user