feat(web): 新增 HID 配置引导

This commit is contained in:
mofeng-git
2026-09-06 11:19:55 +08:00
parent 2c19208094
commit 5de5ee42c2
22 changed files with 1044 additions and 522 deletions

View File

@@ -1,4 +1,86 @@
export default {
hidGuide: {
missingDevice: 'The previous device {device} is unavailable. Check the current selection.',
connectionTimeout: 'Connection timed out. Check the data cable and the controlled computer’s USB port. You can connect later or reconfigure.',
"deviceTitle": "Driver and device",
"features": "Feature configuration",
"saveFeatures": "Save features",
"configure": "Configure driver",
"reconfigure": "Reconfigure",
"driver": "HID driver",
"driver_otg": "USB OTG",
"driver_ch9329": "CH9329",
"driver_bluetooth": "Bluetooth HID",
"driver_none": "Disabled",
"device_otg": "UDC",
"device_ch9329": "Serial port",
"device_bluetooth": "Local Bluetooth adapter",
"host": "Controlled computer",
"hostUsb": "Host USB",
"otgPort": "One-KVM OTG USB",
"serialLink": "CH340 → Serial connection → CH9329",
"integratedCable": "CH340 + CH9329 integrated cable",
"dataCable": "USB data cable",
"wireless": "Bluetooth connection",
"wiring_otg": "One-KVM OTG USB port → USB data cable → controlled computer USB port.",
"wiring_ch9329": "Connect One-KVM to CH9329 over serial, then connect CH9329 USB to the controlled computer.",
"wiring_bluetooth": "On the controlled computer, open System Settings → Add Bluetooth device → select the advertised HID name.",
"disabledHelp": "One-KVM cannot send keyboard or mouse input while HID is disabled.",
"selectDevice": "Select a device",
"noDevices": "No devices found. Check the connection and refresh.",
"nameInvalid": "Use 1–64 UTF-8 bytes without control characters.",
"unconfigured": "HID is not configured",
"disabled": "HID is disabled",
"legacyAuto": "Automatic (legacy configuration)",
"unknown": "Unknown or unable to read status",
"ready": "HID ready",
"preparing": "Connected, preparing HID",
"paired": "Paired, waiting for connection",
"pairing": "Waiting for pairing",
"waiting": "Applied, waiting for connection",
"initializing": "Initializing",
"appliedHelp": "Configuration applied. Closing keeps the configuration and completed pairing.",
"draftHelp": "Choose a driver and device. The running configuration changes only when you apply.",
"dirty": "There are unsaved feature changes. Return to save them, or discard them to continue.",
"returnSave": "Return to save",
"discard": "Discard changes and continue",
"pairInstructions": "Add a Bluetooth device in the controlled computer’s system settings and select “{name}”. The pairing window lasts 120 seconds.",
"pairTimeout": "The pairing window ended. You can open it again.",
"reopenPairing": "Reopen pairing",
"resetWarning": "Previous One-KVM HID bonds will be cleared. Remove the old device on the controlled computer before adding it again.",
"disableUsb": "Leaving USB OTG will disable: {functions}.",
"msd": "Virtual disk",
"network": "USB network",
"audio": "USB audio",
"done": "Done",
"later": "Connect later",
"configureLater": "Configure later",
"useConfiguration": "Use this configuration",
"repair": "Pair again",
"uncertain": "The previous request has an unknown result. Check the connection first; applying again will clear bonds again.",
"checkConnection": "Check applied configuration",
"resumeRetry": "The current configuration differs from the pending selection. Review it and retry."
},
bluetoothHid: {
paired: 'Paired; waiting for the computer to connect keyboard and mouse',
"description": "Classic Bluetooth keyboard and relative mouse.",
"adapter": "Bluetooth adapter",
"name": "Device name",
"peer": "Computer address (optional)",
"peerHelp": "Leave blank to reuse the only bonded device, or select a computer during pairing.",
"ready": "Keyboard and mouse ready",
"pairing": "Pairing open: {seconds}s",
"connected": "Connected; waiting for HID channels",
"waiting": "Waiting for the paired computer",
"unavailable": "Bluetooth unavailable or starting",
"openPairing": "Pair for 2 minutes",
"closePairing": "Close pairing",
"disconnect": "Disconnect",
"forget": "Forget computer",
"windows": "Windows 11: Settings → Bluetooth & devices → Add device → Bluetooth. After forgetting, remove the device in Windows before pairing again.",
"applyFirst": "Apply the HID settings first, then open pairing."
},
videoInput: {
format: 'Input Format',
resolution: 'Resolution',