This commit is contained in:
Cheney 2026-07-16 11:44:55 +08:00
parent cf73fcc996
commit 2ec1d74618
17 changed files with 18 additions and 18 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@ node_modules/
data/projects.json
data/system.json
data/configs/*.json
*.log
*.log

View File

@ -46,4 +46,4 @@ registry/
- 对接 SSO 单点登录(当前版本无认证)。
- 扩展更多持久化方案数据库、Nacos、SSH 远程配置文件)。
- 项目维度转换机制。
- 项目维度转换机制。

View File

@ -212,4 +212,4 @@ registry/
│ └── api.js # API 调用封装
├── package.json
└── README.md
```
```

View File

@ -13,4 +13,4 @@
"dependencies": {
"express": "^4.18.2"
}
}
}

View File

@ -522,7 +522,7 @@ body.mode-readonly .row-btn:not(.view) {
.toast-success { background: #107c10; }
.toast-error { background: #d13438; }
.toast-info { background: #0078d4; }
.toast-info { background: #0078d4; }
/* ===== 标题栏(与工具栏分离) ===== */
.titlebar {
@ -691,4 +691,4 @@ body.mode-readonly .row-btn:not(.view) {
/* ===== 树节点:值项与目录项区分 ===== */
.tree-node-label.is-leaf .tree-icon {
opacity: 0.9;
}
}

View File

@ -288,4 +288,4 @@
<script src="/js/tree.js"></script>
<script src="/js/app.js"></script>
</body>
</html>
</html>

View File

@ -126,4 +126,4 @@ const API = {
setMode(mode) {
return this.request("/api/mode", { method: "PUT", body: { mode } });
},
};
};

View File

@ -766,4 +766,4 @@ async function init() {
}
// 页面加载完成后启动
window.addEventListener("DOMContentLoaded", init);
window.addEventListener("DOMContentLoaded", init);

View File

@ -160,4 +160,4 @@ const Tree = {
}
return false;
},
};
};

View File

@ -129,4 +129,4 @@ module.exports = {
deleteConfigs,
loadSystem,
saveSystem,
};
};

View File

@ -94,4 +94,4 @@ router.delete("/:configId", (req, res) => {
}
});
module.exports = router;
module.exports = router;

View File

@ -79,4 +79,4 @@ router.delete("/:id", (req, res) => {
}
});
module.exports = router;
module.exports = router;

View File

@ -58,4 +58,4 @@ app.put("/api/mode", (req, res) => {
// 启动服务
app.listen(PORT, () => {
console.log(`Registry 服务已启动: http://localhost:${PORT}`);
});
});

View File

@ -282,4 +282,4 @@ module.exports = {
deleteConfig,
buildConfigPath,
normalizeKey,
};
};

View File

@ -139,4 +139,4 @@ module.exports = {
createProject,
updateMappings,
deleteProject,
};
};

View File

@ -88,4 +88,4 @@ function validateRange(value, valueRange) {
return { valid: true, message: "" };
}
module.exports = { VALID_TYPES, validateByType, validateRange };
module.exports = { VALID_TYPES, validateByType, validateRange };

View File

@ -54,4 +54,4 @@ test("2-2 规整键:压缩连续斜杠并去除空段", () => {
test("2-3 规整键:空输入返回空字符串", () => {
assert.strictEqual(normalizeKey(" "), "");
});
});