revert: remove non-ATX changes from #223 merge

This commit is contained in:
mofeng-git
2026-02-20 14:24:38 +08:00
parent 078c4e4ea1
commit 6e2c6dea1c
10 changed files with 67 additions and 87 deletions

View File

@@ -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()

View File

@@ -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 -->