导航场景映射与嵌入画布模式支持优化

- .gitignore 忽略 wwwroot,前端产物不入库
- 导航方式映射调整,磁导航/二维码/激光场景合并
- active-scenes.json 默认加入 scene.device
- SimpleLite 启动支持 --migu 嵌入画布模式
- 新增 EmbeddedCanvas 配置项,默认启用
This commit is contained in:
zhaowei.huang
2026-06-23 13:47:28 +08:00
parent e3373584ad
commit f1e604df36
5 changed files with 26 additions and 9 deletions
+4 -1
View File
@@ -83,7 +83,10 @@ public class WizardController : ControllerBase
// 平台 → 内核联动:把导航选型写入 SimpleLite 的 plugins/active-scenes.json(下次启动选择性加载;
// 已运行实例可由前端再调 POST /api/sl/projection/scenes/apply 触发增量 reload)。
var sceneIds = profile.ToActiveSceneIds();
// scene.device(门/充电桩/按钮盒驱动)为各类项目通用能力,向导暂无独立选项,固定并入激活集合;
// scene.vda5050 等协议插件保持按需(不在集合则不加载)。基座 StandardScene.dll 由内核按
// 清单 requiresCore 自动 alwaysLoad,无需在此声明。
var sceneIds = profile.ToActiveSceneIds().Concat(new[] { "scene.device" }).Distinct().ToList();
var write = _launcher.WriteActiveScenes(sceneIds, alwaysLoad: null, source: "deployment-profile");
_log.LogInformation("部署向导已保存 by={User} nav=[{Nav}] scenes=[{Scenes}] activeScenesWritten={Ok}",