mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-15 07:26:44 +08:00
revert: remove non-ATX changes from #223 merge
This commit is contained in:
@@ -1407,19 +1407,15 @@ function openTerminalInNewTab() {
|
||||
|
||||
// ATX actions
|
||||
async function handlePowerShort() {
|
||||
console.log('[ConsoleView] Handling power short press')
|
||||
try {
|
||||
const res = await atxApi.power('short')
|
||||
console.log('[ConsoleView] Power short API result:', res)
|
||||
await atxApi.power('short')
|
||||
await systemStore.fetchAtxState()
|
||||
} catch (e) {
|
||||
console.error('[ConsoleView] Power short API failed:', e)
|
||||
} catch {
|
||||
// ATX action failed
|
||||
}
|
||||
}
|
||||
|
||||
async function handlePowerLong() {
|
||||
console.log('[ConsoleView] Handling power long press')
|
||||
try {
|
||||
await atxApi.power('long')
|
||||
await systemStore.fetchAtxState()
|
||||
|
||||
@@ -372,11 +372,6 @@ onMounted(async () => {
|
||||
}
|
||||
applyOtgProfileDefault()
|
||||
|
||||
// If no HID devices exist, default to disabled to avoid blocking setup
|
||||
if (result.serial.length === 0 && result.udc.length === 0) {
|
||||
hidBackend.value = 'none'
|
||||
}
|
||||
|
||||
// Auto-select audio device if available (and no video device to trigger watch)
|
||||
if (result.audio.length > 0 && !audioDevice.value) {
|
||||
// Prefer HDMI audio device
|
||||
@@ -392,10 +387,6 @@ onMounted(async () => {
|
||||
// Use defaults
|
||||
}
|
||||
|
||||
if (devices.value.serial.length === 0 && devices.value.udc.length === 0) {
|
||||
hidBackend.value = 'none'
|
||||
}
|
||||
|
||||
// Load encoder backends
|
||||
try {
|
||||
const codecsResult = await streamApi.getCodecs()
|
||||
@@ -905,7 +896,6 @@ const stepIcons = [User, Video, Keyboard, Puzzle]
|
||||
CH9329 ({{ t('setup.serialHid') }})
|
||||
</SelectItem>
|
||||
<SelectItem value="otg">USB OTG</SelectItem>
|
||||
<SelectItem value="none">{{ t('setup.disableHid') }}</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
@@ -1014,10 +1004,6 @@ const stepIcons = [User, Video, Keyboard, Puzzle]
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p v-if="hidBackend === 'none'" class="text-xs text-muted-foreground">
|
||||
{{ t('setup.hidDisabledHint') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Step 4: Extensions Settings -->
|
||||
|
||||
Reference in New Issue
Block a user