-
-
+
@@ -254,13 +256,14 @@ function releaseRecording() {
align-items: center;
gap: 8px;
}
-.audio-action, .retry-button {
+.audio-action.el-button, .retry-button.el-button {
+ margin-left: 0;
border: 1px solid var(--ui-border);
background: transparent;
color: var(--ui-text-muted);
cursor: pointer;
}
-.audio-action {
+.audio-action.el-button {
width: 36px;
height: 36px;
padding: 0;
@@ -274,60 +277,20 @@ function releaseRecording() {
color: var(--ui-primary);
}
.audio-action:hover, .retry-button:hover { border-color: var(--ui-primary); color: var(--ui-primary); }
-.audio-action:focus-visible, .retry-button:focus-visible, input[type="range"]:focus-visible {
+.audio-action:focus-visible, .retry-button:focus-visible {
outline: 2px solid var(--ui-primary);
outline-offset: 2px;
}
.audio-controls time { color: var(--ui-muted); font: var(--ui-font-caption) "v-mono", ui-monospace, monospace; }
.playback-range, .volume-range {
- --range-progress: 0%;
min-width: 0;
height: 36px;
margin: 0;
- appearance: none;
- background: transparent;
- cursor: pointer;
-}
-.playback-range::-webkit-slider-runnable-track, .volume-range::-webkit-slider-runnable-track {
- height: 4px;
- border-radius: 2px;
- background: linear-gradient(
- to right,
- var(--ui-primary) 0,
- var(--ui-primary) var(--range-progress),
- var(--ui-border) var(--range-progress),
- var(--ui-border) 100%
- );
-}
-.playback-range::-moz-range-track, .volume-range::-moz-range-track {
- height: 4px;
- border-radius: 2px;
- background: linear-gradient(
- to right,
- var(--ui-primary) 0,
- var(--ui-primary) var(--range-progress),
- var(--ui-border) var(--range-progress),
- var(--ui-border) 100%
- );
-}
-.playback-range:disabled { cursor: wait; opacity: .5; }
-.playback-range::-webkit-slider-thumb, .volume-range::-webkit-slider-thumb {
- width: 12px;
- height: 12px;
- appearance: none;
- border: 2px solid var(--ui-surface-strong);
- border-radius: 50%;
- background: var(--ui-primary);
- box-shadow: 0 0 0 1px var(--ui-border);
- margin-top: -4px;
-}
-.playback-range::-moz-range-thumb, .volume-range::-moz-range-thumb {
- width: 10px;
- height: 10px;
- border: 2px solid var(--ui-surface-strong);
- border-radius: 50%;
- background: var(--ui-primary);
}
+.playback-range.is-disabled { cursor: wait; opacity: .5; }
+.playback-range :deep(.el-slider__runway), .volume-range :deep(.el-slider__runway) { height: 4px; background: var(--ui-border); }
+.playback-range :deep(.el-slider__bar), .volume-range :deep(.el-slider__bar) { height: 4px; background: var(--ui-primary); }
+.playback-range :deep(.el-slider__button), .volume-range :deep(.el-slider__button) { width: 12px; height: 12px; border: 2px solid var(--ui-surface-strong); background: var(--ui-primary); box-shadow: 0 0 0 1px var(--ui-border); }
.volume-controls { min-width: 0; display: grid; grid-template-columns: 36px minmax(48px, 1fr); align-items: center; gap: 7px; }
.native-audio { display: none; }
.audio-state { min-height: 36px; color: var(--ui-text-muted); font-size: var(--ui-font-body-sm); display: flex; align-items: center; gap: 7px; }
diff --git a/web/src/components/proxy/ProxyUpstreamInventory.vue b/web/src/components/proxy/ProxyUpstreamInventory.vue
index d504322d..ea482624 100644
--- a/web/src/components/proxy/ProxyUpstreamInventory.vue
+++ b/web/src/components/proxy/ProxyUpstreamInventory.vue
@@ -45,7 +45,7 @@ defineEmits<{
-
+ 每分钟自动检测
{{ autoProbe ? '打开此页时更新;关闭页面后停止' : '自动检测已暂停,可点击刷新重新检测' }}
@@ -125,8 +125,8 @@ defineEmits<{
diff --git a/web/tests/autoAnswerSettingsSource.test.ts b/web/tests/autoAnswerSettingsSource.test.ts
new file mode 100644
index 00000000..427011ea
--- /dev/null
+++ b/web/tests/autoAnswerSettingsSource.test.ts
@@ -0,0 +1,51 @@
+import test from 'node:test'
+import assert from 'node:assert/strict'
+import fs from 'node:fs'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+const currentDir = path.dirname(fileURLToPath(import.meta.url))
+const source = fs.readFileSync(
+ path.resolve(currentDir, '../src/components/settings/AutoAnswerSettings.vue'),
+ 'utf8',
+)
+
+test('automatic answer settings scale as one searchable device list', () => {
+ assert.match(source, /const DEFAULT_AUTO_ANSWER_DELAY_SECONDS = 8/)
+ assert.match(source, /const DEVICE_SEARCH_THRESHOLD = 5/)
+ assert.match(source, /v-model="searchQuery"/)
+ assert.match(source, /v-for="row in filteredRows"/)
+ assert.match(source, /class="auto-answer-device-list" role="list"/)
+ assert.match(source, /max-height: min\(440px, 55vh\)/)
+ assert.match(source, /\.auto-answer-device-list \{ max-height: none; overflow: visible; \}/)
+ assert.match(source, /class="auto-answer-list-header"/)
+ assert.match(source, /@container \(max-width: 620px\)/)
+ assert.match(source, /\.auto-answer-list-header \{ display: none; \}/)
+})
+
+test('automatic answer changes use one explicit save action with partial failure retention', () => {
+ assert.match(source, /const DEVICE_SAVE_BATCH_SIZE = 4/)
+ assert.match(source, /const dirtyRows = computed/)
+ assert.match(source, /async function saveAll\(\)/)
+ assert.match(source, /pending\.slice\(start, start \+ DEVICE_SAVE_BATCH_SIZE\)/)
+ assert.match(source, /savedDevices\.value = nextSaved/)
+ assert.match(source, /:disabled="busy \|\| !dirtyRows\.length"/)
+ assert.doesNotMatch(source, /saveDevice\(row/)
+})
+
+test('automatic answer loading and controls remain explicit and touch safe', () => {
+ assert.match(source, /v-else-if="loadError"/)
+ assert.match(source, /role="alert"/)
+ assert.match(source, />重新加载<\/el-button>/)
+ assert.match(source, /:deep\(\.el-button\), :deep\(\.el-input-number\) \{ min-height: 44px; \}/)
+ assert.match(source, /class="auto-answer-delay-stepper"/)
+ assert.match(source, /class="auto-answer-delay-value"/)
+ assert.match(source, /grid-template-columns: 44px minmax\(0, 1fr\) 44px/)
+ assert.match(source, /justify-content: center/)
+ assert.match(source, /text-align: center/)
+ assert.match(source, /box-shadow: none !important/)
+ assert.match(source, /:controls="false"/)
+ assert.match(source, /
/)
+ assert.match(source, /
/)
+ assert.doesNotMatch(source, /controls-position="right"/)
+})
diff --git a/web/tests/brandSource.test.ts b/web/tests/brandSource.test.ts
index 9b5b8d13..d6782dfe 100644
--- a/web/tests/brandSource.test.ts
+++ b/web/tests/brandSource.test.ts
@@ -31,6 +31,9 @@ test('production Vue surfaces present the HiDeck brand consistently', async () =
assert.match(login, /t\('login\.title'\)/)
assert.match(zhCN, /login:\s*\{[\s\S]*?title:\s*'登录 HiDeck'/)
assert.match(app, /t\('disclaimer\.title'\)/)
+ assert.match(app, /
{
assert.doesNotMatch(commandAudioPlayer, /