docs: annotate all shared frontend modules in Chinese
This commit is contained in:
1 parent
2be21c1c62
commit
408f8e5c98
55 files changed
+349
No files matched your search
@@ -1,11 +1,14 @@
|
||||
/** 内容页路由参数校验:id 必须是无前导零的正整数字符串,并处于 JS 安全整数范围。 */
|
||||
function e(e) {
|
||||
if (typeof e != `string` || !/^[1-9]\d*$/.test(e)) return null;
|
||||
let t = Number(e);
|
||||
return Number.isSafeInteger(t) ? t : null;
|
||||
}
|
||||
// 只接受当前前端实现的帮助、新闻、公告内容类型。
|
||||
function t(e) {
|
||||
return e === `help` || e === `news` || e === `notices` ? e : null;
|
||||
}
|
||||
// 通过后端启用的插件记录确定类型;未知/停用插件不生成内容路由。
|
||||
function n(t, n) {
|
||||
let r = e(t);
|
||||
return r
|
||||
|
||||
Reference in new issue
Block a user