更新版本号,重构核心类,移除未使用的自动化和事件功能,优化灯光管理,调整测试用例以适应新结构

This commit is contained in:
2025-12-23 00:23:06 +08:00
parent 47a5c600ea
commit 3e46287a89
11 changed files with 98 additions and 120 deletions

View File

@@ -2,6 +2,7 @@ import { hacore, showMore } from "./common.ts";
import Fuse from 'fuse.js';
const devices = await hacore.getInfoList();
console.log(showMore(devices));
const fuse = new Fuse(devices, {
keys: ['name'], // 搜索字段
threshold: 0.4, // 匹配宽松度0~1越小越严格