fix: 客户端日志打印变更配置名称,修复 Node.js Dockerfile 和 ConfigList 页面布局

- 各客户端 deleted/changed 日志增加具体配置名称输出
- Node.js Dockerfile 改为单阶段构建,修复依赖找不到问题
- ConfigList.vue 查询条件拆分为独立卡片,新增查询/重置按钮
- Node.js 客户端日志统一使用 console.error
This commit is contained in:
2026-06-22 21:14:27 +08:00
parent b513435723
commit ec33f8c52a
7 changed files with 50 additions and 42 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ function onConfigChanged(changed) {
for (const [k, v] of Object.entries(changed)) {
if (k in configValues) {
configValues[k] = v;
console.log(`config updated: ${k} = ${v}`);
console.error(`config updated: ${k} = ${v}`);
}
}
}
@@ -57,13 +57,13 @@ async function main() {
configValues[k] = remote[k];
}
}
console.info(`loaded ${Object.keys(remote).length} configs from remote`);
console.error(`loaded ${Object.keys(remote).length} configs from remote`);
} catch (err) {
console.error('failed to init config client, using local defaults:', err);
}
app.listen(port, '0.0.0.0', () => {
console.info(`server started on port ${port}`);
console.error(`server started on port ${port}`);
});
}