mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat(kaak): match open KOOK voice stage
This commit is contained in:
1 parent
a1f92cedb2
commit
5824754912
7 files changed
+5
-31
No files matched your search
Binary file not shown.
@@ -778,21 +778,6 @@
|
||||
"aria-label": "语音房间 / Voice room"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "voice-stage-heading",
|
||||
"children": [
|
||||
{
|
||||
"tag": "h2",
|
||||
"part": "section-label",
|
||||
"children": [
|
||||
{
|
||||
"text": "房间成员 / IN VOICE"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"widget": "voice.member-cards",
|
||||
"part": "member-cards"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.13",
|
||||
"version": "3.1.14",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired voice workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and animated speaker states.",
|
||||
|
||||
@@ -755,14 +755,6 @@
|
||||
background: var(--skin-kaak-bg);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 48px;
|
||||
border-bottom: 1px solid var(--skin-kaak-border);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.chat-panel-toggle"] {
|
||||
display: grid;
|
||||
flex: 0 0 36px;
|
||||
@@ -805,9 +797,6 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] .section-label { margin: 0; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-total"] { color: var(--skin-kaak-dim); font-size: 11px; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
@@ -1257,8 +1246,6 @@
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] { min-height: 22px; border: 0; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] .section-label { max-width: 160px; font-size: 8px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; scrollbar-gutter: auto; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-grid { display: flex; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; min-width: 0; min-height: 0; align-items: center; gap: 8px; overflow: auto hidden; margin: 3px 0 0; padding: 2px 2px 4px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { flex: 0 0 220px; width: 220px; max-width: none; min-height: 0; height: auto; aspect-ratio: 1.82; border-radius: 9px; }
|
||||
|
||||
Binary file not shown.
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.13",
|
||||
version: "3.1.14",
|
||||
author: "WebSpeak Project",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "A KOOK-inspired voice-room workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and host-owned voice controls.",
|
||||
|
||||
@@ -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.13");
|
||||
assert.equal(skin.version, "3.1.14");
|
||||
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");
|
||||
@@ -510,6 +510,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.equal(voice?.root.attributes?.["data-chat-open"], "{{state.chatopen}}");
|
||||
assert.equal(findPart(voice?.root, "server-monogram")?.children?.[0]?.text, "{{server.monogram}}");
|
||||
assert.equal(findPart(voice?.root, "server-monogram")?.attributes?.["data-tone"], "{{server.tone}}");
|
||||
assert.equal(findPart(voice?.root, "voice-stage-heading"), undefined);
|
||||
assert.deepEqual(findPart(voice?.root, "channel-voice-members")?.when, { path: "channel.members", empty: false });
|
||||
assert.equal(findPart(voice?.root, "channel-voice-member")?.repeat?.path, "channel.members");
|
||||
assert.equal(findPart(voice?.root, "channel-member-avatar")?.children?.[0]?.text, "{{voicemember.avatarInitial}}");
|
||||
@@ -530,6 +531,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.ok(skin.css.includes('[data-ws-plugin-part="kaak-workspace.channel-row"]'));
|
||||
assert.match(skin.css, /kaak-workspace\.voice-channel-group-toggle/);
|
||||
assert.match(skin.css, /kaak-workspace\.server-monogram"\]\[data-tone="0"\]/);
|
||||
assert.doesNotMatch(skin.css, /kaak-workspace\.voice-stage-heading/);
|
||||
assert.match(skin.css, /grid-template-columns: 80px 290px/);
|
||||
assert.match(skin.css, /minmax\(340px, min\(38vw, 520px\)\)/);
|
||||
assert.match(skin.css, /grid-template-rows: 40px/);
|
||||
|
||||
Reference in new issue
Block a user