mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-29 22:56:45 +08:00
feat(web): 新增 HID OTG 自检接口与设置页环境诊断面板,并优化在线升级状态文案本地化及重启后自动刷新体验
This commit is contained in:
@@ -440,6 +440,7 @@ export default {
|
||||
hid: 'HID',
|
||||
msd: 'MSD',
|
||||
atx: 'ATX',
|
||||
environment: 'Environment',
|
||||
network: 'Network',
|
||||
users: 'Users',
|
||||
hardware: 'Hardware',
|
||||
@@ -521,6 +522,11 @@ export default {
|
||||
updatePhaseRestarting: 'Restarting',
|
||||
updatePhaseSuccess: 'Success',
|
||||
updatePhaseFailed: 'Failed',
|
||||
updateMsgChecking: 'Checking for updates',
|
||||
updateMsgDownloading: 'Downloading binary',
|
||||
updateMsgVerifying: 'Verifying (SHA256)',
|
||||
updateMsgInstalling: 'Replacing binary',
|
||||
updateMsgRestarting: 'Restarting service',
|
||||
// Auth
|
||||
auth: 'Access',
|
||||
authSettings: 'Access Settings',
|
||||
@@ -650,6 +656,86 @@ export default {
|
||||
serialNumber: 'Serial Number',
|
||||
serialNumberAuto: 'Auto-generated',
|
||||
descriptorWarning: 'Changing these settings will reconnect the USB device',
|
||||
otgSelfCheck: {
|
||||
title: 'OTG Self-Check',
|
||||
desc: 'Check UDC, gadget binding, and link status',
|
||||
run: 'Run Self-Check',
|
||||
failed: 'Failed to run OTG self-check',
|
||||
overall: 'Overall Status',
|
||||
ok: 'Healthy',
|
||||
hasIssues: 'Issues Found',
|
||||
summary: 'Issue Summary',
|
||||
counts: '{errors} errors, {warnings} warnings',
|
||||
groupCounts: '{ok} passed, {warnings} warnings, {errors} errors',
|
||||
notRun: 'Not run',
|
||||
status: {
|
||||
ok: 'Healthy',
|
||||
warn: 'Warning',
|
||||
error: 'Error',
|
||||
skipped: 'Skipped',
|
||||
},
|
||||
groups: {
|
||||
udc: 'UDC Basics',
|
||||
gadgetConfig: 'Gadget Config',
|
||||
oneKvm: 'one-kvm Gadget',
|
||||
functions: 'Functions & Nodes',
|
||||
link: 'Link State',
|
||||
},
|
||||
values: {
|
||||
missing: 'Missing',
|
||||
notConfigured: 'Not configured',
|
||||
mounted: 'Mounted',
|
||||
unmounted: 'Unmounted',
|
||||
available: 'Available',
|
||||
unavailable: 'Unavailable',
|
||||
exists: 'Exists',
|
||||
none: 'None',
|
||||
unbound: 'Unbound',
|
||||
noConflict: 'No conflict',
|
||||
conflict: 'Conflict',
|
||||
unknown: 'Unknown',
|
||||
normal: 'Normal',
|
||||
abnormal: 'Abnormal',
|
||||
},
|
||||
selectedUdc: 'Target UDC',
|
||||
boundUdc: 'Bound UDC',
|
||||
messages: {
|
||||
udc_dir_exists: 'UDC directory check',
|
||||
udc_has_entries: 'UDC check',
|
||||
configfs_mounted: 'configfs check',
|
||||
usb_gadget_dir_exists: 'usb_gadget check',
|
||||
libcomposite_loaded: 'libcomposite check',
|
||||
one_kvm_gadget_exists: 'one-kvm gadget check',
|
||||
other_gadgets: 'Other gadget check',
|
||||
configured_udc_valid: 'Configured UDC check',
|
||||
one_kvm_bound_udc: 'Bound UDC check',
|
||||
hid_functions_present: 'HID function check',
|
||||
config_c1_exists: 'configs/c.1 check',
|
||||
function_links_ok: 'Function link check',
|
||||
hid_device_nodes: 'HID node check',
|
||||
udc_conflict: 'UDC conflict check',
|
||||
udc_state: 'UDC state check',
|
||||
udc_speed: 'UDC speed check',
|
||||
},
|
||||
hints: {
|
||||
udc_dir_exists: 'Ensure UDC/OTG kernel drivers are enabled',
|
||||
udc_has_entries: 'Ensure OTG controller is enabled in device tree',
|
||||
configfs_mounted: 'Try: mount -t configfs none /sys/kernel/config',
|
||||
usb_gadget_dir_exists: 'Ensure configfs and USB gadget support are enabled',
|
||||
libcomposite_loaded: 'Try: modprobe libcomposite',
|
||||
one_kvm_gadget_exists: 'Enable OTG HID or MSD to let one-kvm gadget be created automatically',
|
||||
other_gadgets: 'Potential UDC contention with one-kvm; check other OTG services',
|
||||
configured_udc_valid: 'Please reselect UDC in HID OTG settings',
|
||||
one_kvm_bound_udc: 'Ensure HID/MSD is enabled and initialized successfully',
|
||||
hid_functions_present: 'Check OTG HID config and enable at least one HID function',
|
||||
config_c1_exists: 'Gadget structure is incomplete; try restarting One-KVM',
|
||||
function_links_ok: 'Reinitialize OTG (toggle HID backend once or restart service)',
|
||||
hid_device_nodes: 'Ensure gadget is bound and check kernel logs',
|
||||
udc_conflict: 'Stop other OTG services or switch one-kvm to an idle UDC',
|
||||
udc_state: 'Ensure target host is connected and has recognized the USB device',
|
||||
udc_speed: 'Device may not be fully enumerated; try reconnecting USB',
|
||||
},
|
||||
},
|
||||
// WebRTC / ICE
|
||||
webrtcSettings: 'WebRTC Settings',
|
||||
webrtcSettingsDesc: 'Configure STUN/TURN servers for NAT traversal',
|
||||
|
||||
Reference in New Issue
Block a user