feat(a11y): add a11y infrastructure — skip-nav, announcer, touch CSS, eslint-jsx-a11y

This commit is contained in:
DrSmoothl
2026-03-05 21:57:27 +08:00
parent 34bd115fa1
commit c12d1ca42a
11 changed files with 372 additions and 43 deletions

View File

@@ -468,10 +468,9 @@
"settingsDesc": "Configure system settings"
}
},
"httpWarning": {
"title": "Security Warning:",
"message": "You are accessing MaiBot WebUI via HTTP",
"description": "If this is a public server, your data (including Token, chat history, etc.) may be intercepted in transit. It is strongly recommended to use HTTPS or access only from a local network.",
"dismiss": "Dismiss warning"
}
"a11y": {
"skipToContent": "Skip to main content",
"sidebarNav": "Main navigation",
"closeMenu": "Close menu",
"navigatedTo": "Navigated to {{page}}"
}

View File

@@ -468,10 +468,9 @@
"settingsDesc": "システム設定を構成"
}
},
"httpWarning": {
"title": "セキュリティ警告:",
"message": "HTTP で MaiBot WebUI にアクセスしています",
"description": "これが公開サーバーの場合、データToken、チャット履歴などが転送中に傍受される可能性があります。HTTPS を使用するか、ローカルネットワークからのみアクセスすることを強くお勧めします。",
"dismiss": "警告を閉じる"
}
"a11y": {
"skipToContent": "メインコンテンツにスキップ",
"sidebarNav": "メインナビゲーション",
"closeMenu": "メニューを閉じる",
"navigatedTo": "{{page}} に移動しました"
}

View File

@@ -468,10 +468,9 @@
"settingsDesc": "시스템 설정 구성"
}
},
"httpWarning": {
"title": "보안 경고:",
"message": "HTTP를 통해 MaiBot WebUI에 접속하고 있습니다",
"description": "이것이 공개 서버인 경우, 데이터(Token, 채팅 기록 등)가 전송 중에 가로챔질 수 있습니다. HTTPS를 사용하거나 로컈 네트워크에서만 접속하는 것을 강력히 권장합니다.",
"dismiss": "경고 닫기"
}
"a11y": {
"skipToContent": "메인 콘텐츠로 건너뀐기",
"sidebarNav": "메인 내비게이션",
"closeMenu": "메뉴 닫기",
"navigatedTo": "{{page}}으로 이동했습니다"
}

View File

@@ -468,10 +468,9 @@
"settingsDesc": "配置系统参数"
}
},
"httpWarning": {
"title": "安全警告:",
"message": "您正在使用 HTTP 访问 MaiBot WebUI",
"description": "如果这是公网服务器,您的数据(包括 Token、聊天记录等可能在传输过程中被窃取。强烈建议使用 HTTPS 访问或仅在本地网络使用。",
"dismiss": "关闭警告"
}
"a11y": {
"skipToContent": "跳过导航,直达主内容",
"sidebarNav": "主导航",
"closeMenu": "关闭菜单",
"navigatedTo": "已导航至 {{page}}"
}