feat(a11y): 设置页无障碍审计并修复开关可访问名称

axe 结构性规则扩展到设置页(安全 Tab + 其他 Tab):
- security-tab 8 个 Switch/SelectTrigger 补可访问名称(Label htmlFor 关联 + aria-label)
- other-tab / auth-source-modal 各 1 个未命名 Switch 补 aria-label
- 新增 2 个 axe 测试,vitest 126 全绿
- 翻译键 loginCaptchaEnabled 加入 fragments(admin.zh-CN/en)
This commit is contained in:
ryan
2026-08-17 00:02:51 +08:00
parent e7b8fb2f99
commit 3de0a54d47
8 changed files with 117 additions and 14 deletions
@@ -320,6 +320,7 @@
"confirmDelete": "Confirm delete",
"deleting": "Deleting...",
"noAuthSources": "No authentication sources configured. Click the button above to add one.",
"loginCaptchaEnabled": "Login CAPTCHA",
"captchaConfig": "CAPTCHA configuration (Cap CAPTCHA)",
"captchaConfigDesc": "Configure Proof-of-Work (PoW) based invisible CAPTCHA to protect login from brute-force and credential-stuffing attacks",
"autoStartSolving": "Start solving automatically when page loads",