接入 ESLint 与 Prettier 并加入 CI 静态门禁
前端验证 / verify (push) Failing after 15m2s

This commit is contained in:
cieanyau committed 2026-11-07 01:24:36 +08:00
1 parent 339df89fcf
commit 651c36367f
33 files changed
+1420 -40

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ var fe = {
let t = M.value.flatMap((e, t) => (e.enabled ? [t] : []));
if (!t.length) return;
let n = t.indexOf(N.value),
r = n;
r;
if (e.key === `ArrowRight`) r = (n + 1) % t.length;
else if (e.key === `ArrowLeft`) r = (n + t.length - 1) % t.length;
else if (e.key === `Home`) r = 0;
+1
View File
@@ -41,6 +41,7 @@ var f = [`src`, `width`, `height`],
// 仅接收站内绝对路径或无认证信息的 HTTP(S) 地址,拒绝控制字符和反斜杠。
function m(e) {
let t = String(e ?? ``).trim();
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝图标 URL 内的控制字符。
if (!t || /[\u0000-\u0020\u007f\\]/.test(t)) return ``;
if (/^\/(?!\/)/.test(t)) return t;
try {
+1 -1
View File
@@ -1002,7 +1002,7 @@ var le = {
let Qe = computed(() =>
Ie.value.map((e) => {
let t = N.value[String(e.id)],
n = ``;
n;
if (e.option_type === `cascade`) {
let t = Re(e);
n = Z(e).find((e) => e.item_id === t)?.label ?? ``;
+1 -1
View File
@@ -836,7 +836,7 @@ var ae = {
let Ze = computed(() =>
(O.availableOptions?.value ?? F.value?.options ?? []).map((e) => {
let t = I.value[e.id],
n = ``;
n;
if (e.kind === `quantity`) {
let r = (Ne(e) ? Le(e) : ``) || e.unit;
n = typeof t == `number` ? `${t}${r ? ` ${r}` : ``}` : ``;
@@ -632,6 +632,7 @@ function W(e, t) {
return;
(W(), (N.value = ``));
let t = L,
// eslint-disable-next-line no-useless-assignment -- 边界一致性:保留 try 外 computed 求值及异常传播顺序。
r = B.value;
try {
(G(), (t = L), (r = B.value));