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

+6
View File
@@ -1,4 +1,6 @@
/** OAuth 提供商列表与回调结果适配;跳转地址必须经过站内/HTTP(S)规则校验。 */
import { o as backend_menu_o } from "~/lib/backend-menu.js";
// 仅接受合法提供商标识,标准化图片与绑定状态;不可信的任意协议地址不会直接使用。
function t(t) {
return Array.isArray(t)
? t.flatMap((t) => {
@@ -32,6 +34,10 @@ function n(t, n) {
: backend_menu_o(t)
: ``;
}
/**
* 将轮询结果分为 login、bind、expired;t 为前端 origin,r 可为后端 origin。
* 旧 oauth.htm 仅在可信 origin 上迁移为前端 /oauth/bind,不放行任意外站回跳。
*/
function r(e, t, r = t) {
if (!e || typeof e != `object` || Array.isArray(e))
return {