docs: annotate all shared frontend modules in Chinese

This commit is contained in:
cieanyau committed 2026-11-06 00:30:15 +08:00
1 parent 2be21c1c62
commit 408f8e5c98
55 files changed
+349

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
/** 从实例页打开前端远控页;允许模块显式列举,网关会话仍由远控页和后端建立。 */
var e = new Set([
`kky_ecs`,
`mf_cloud`,
@@ -9,12 +10,14 @@ var e = new Set([
`remf_finance_common`,
`idcsmart_common`,
]);
// 实例编号限制为最多十位的正整数字符串,拒绝任意路径/查询片段注入。
function t(t, n) {
let r = String(t);
if (!/^[1-9]\d{0,9}$/.test(r) || !e.has(n))
throw Error(`实例信息无效,请刷新后重试`);
return `/remote-console?hostId=${r}&module=${n}`;
}
// 新窗口不保留 opener,且不附带 Referer;这里不传递 JWT 或远控密码到 URL。
function n(e, n) {
window.open(t(e, n), `_blank`, `noopener,noreferrer`);
}