feat(kaak): refine compact voice dock controls

This commit is contained in:
illusia committed 2026-10-11 19:30:42 +08:00
1 parent 96d2ebae01
commit 766a9b9b5a
12 files changed
+48 -96

No files matched your search

+3 -3
View File
@@ -12,11 +12,11 @@
v-if="layout === 'room-panel'"
type="button"
class="room-panel-audio-settings"
:aria-label="t('audioSettings')"
:title="t('audioSettings')"
:aria-label="t('voiceSettings')"
:title="t('voiceSettings')"
aria-haspopup="dialog"
@click="emit('settings')"
><span>{{ t("voiceActivity") }}</span><Icon name="settings" :size="16" /></button
><Icon name="settings" :size="16" /><span>{{ t("voiceSettings") }}</span></button
>
<div class="desktop-audio-dock-copy"
><strong>{{ t("desktopAudioControls") }}</strong
+3
View File
@@ -198,6 +198,7 @@ export const webClientTranslations: Record<string, Record<string, string>> = {
membersOnline: "{{count}} 位成员在线",
encrypted: "加密连接",
voiceActivity: "语音活动",
voiceSettings: "语音设置",
speakingNow: "正在语音中",
onlineShort: "{{count}} 在线",
you: "你",
@@ -606,6 +607,7 @@ export const webClientTranslations: Record<string, Record<string, string>> = {
membersOnline: "{{count}} members online",
encrypted: "Encrypted connection",
voiceActivity: "VOICE ACTIVITY",
voiceSettings: "Voice settings",
speakingNow: "Speaking now",
onlineShort: "{{count}} online",
you: "You",
@@ -1008,6 +1010,7 @@ webClientTranslations.de = {
membersOnline: "{{count}} Mitglieder online",
encrypted: "Verschlüsselte Verbindung",
voiceActivity: "SPRACHAKTIVITÄT",
voiceSettings: "Spracheinstellungen",
speakingNow: "Spricht gerade",
onlineShort: "{{count}} online",
you: "Du",
+1 -1
View File
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
{
id: BUILTIN_KAAK_SKIN_ID,
name: "KAAK",
version: "3.1.66",
version: "3.1.67",
author: "WebSpeak Project",
license: "AGPL-3.0-only",
description: "A KOOK-inspired voice-room workspace with a searchable server header, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
+6 -7
View File
@@ -464,7 +464,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
const file = new File([archive], "kaak-voice.wskin", { type: "application/octet-stream" });
const skin = await importSkinPack(file);
assert.equal(skin.id, "community.kaak-voice");
assert.equal(skin.version, "3.1.66");
assert.equal(skin.version, "3.1.67");
assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version);
assert.equal(skin.schemaVersion, 3);
const home = skin.pluginData?.components.find((component) => component.page === "home");
@@ -499,8 +499,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
return undefined;
}
assert.equal(findPart(voice?.root, "server-summary")?.widget, "voice.server-header");
assert.equal(findPart(voice?.root, "record-placeholder")?.attributes?.disabled, true);
assert.equal(findPart(voice?.root, "recording-label")?.children?.[0]?.text, "REC");
assert.equal(findPart(voice?.root, "record-placeholder"), undefined, "the KAAK voice dock has no recording control");
assert.equal(findPart(voice?.root, "voice-channel-tree")?.widget, "voice.channel-tree");
assert.deepEqual(findPart(voice?.root, "voice-channel-tree")?.options, { layout: "server-sidebar" });
assert.equal(findPart(voice?.root, "channel-row"), undefined, "channels render in the trusted nested tree widget");
@@ -565,15 +564,15 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.match(skin.css, /--skin-kaak-font:[\s\S]*?PingFang SC/);
assert.match(skin.css, /--skin-kaak-accent: #6cbf00;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock"\] \{[\s\S]*?width: min\(282px, calc\(100% - 22px\)\);[\s\S]*?margin-bottom: 11px;[\s\S]*?border-radius: 17px;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-actions"\] \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 36px 36px 36px;[\s\S]*?grid-template-rows: 29px 26px;[\s\S]*?row-gap: 21px;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-actions"\] \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 28px 28px 36px;[\s\S]*?grid-template-rows: 29px 26px;[\s\S]*?row-gap: 21px;/);
assert.match(skin.css, /ws-voice-channel-tree\[data-layout="server-sidebar"\] \.ws-voice-channel-line[\s\S]*?min-height: 38px;/);
assert.match(skin.css, /ws-voice-channel-tree\[data-layout="server-sidebar"\] \.ws-voice-channel-member[\s\S]*?min-height: 29px;/);
assert.match(skin.css, /kaak-workspace\.record-placeholder"\][\s\S]*?grid-column: 3;[\s\S]*?grid-row: 1;[\s\S]*?background: #69c000;/);
assert.doesNotMatch(skin.css, /kaak-workspace\.record-placeholder|kaak-workspace\.recording-label/);
assert.match(skin.css, /desktop-audio-dock-room-panel \{\s*display: contents;\s*\}/);
assert.match(skin.css, /desktop-audio-dock-copy \{ display: none; \}/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-share"\] \{ grid-column: 1 \/ 3; grid-row: 1;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-share"\] \{ grid-column: 1 \/ 4; grid-row: 1;/);
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-share"\] \.skin-runtime-screen-share-start \{[\s\S]*?background: #69c000;/);
assert.match(skin.css, /room-panel-audio-settings[\s\S]*?grid-column: 1;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /room-panel-audio-settings[\s\S]*?grid-column: 1;[\s\S]*?grid-row: 2;[\s\S]*?justify-content: flex-start;[\s\S]*?gap: 8px;/);
assert.match(skin.css, /noise-suppression-toggle \{ grid-column: 2; grid-row: 2; align-self: center; \}/);
assert.match(skin.css, /voice\.audio-dock\.microphone[\s\S]*?grid-column: 3;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /voice\.audio-dock\.output[\s\S]*?grid-column: 4;[\s\S]*?grid-row: 2;/);
+3 -3
View File
@@ -1830,10 +1830,10 @@ const skinPluginWidgets = {
h("button", {
type: "button",
class: "mobile-voice-activity",
"aria-label": t("audioSettings"),
title: t("audioSettings"),
"aria-label": t("voiceSettings"),
title: t("voiceSettings"),
onClick: () => { settingsOpen.value = true; },
}, [h("span", null, t("voiceActivity")), h(Icon, { name: "settings", size: 16 })]),
}, [h(Icon, { name: "settings", size: 16 }), h("span", null, t("voiceSettings"))]),
h("button", {
type: "button",
class: ["mobile-voice-toggle", "mobile-noise-suppression", noiseSuppressionEnabled.value && "active"],