feat(skin): render voice members under channels

This commit is contained in:
illusia committed 2026-10-10 15:53:49 +08:00
1 parent 54c77bcb27
commit dd0d779e49
13 files changed
+257 -32

No files matched your search

+3 -3
View File
@@ -1,16 +1,16 @@
# KAAK voice skin
KAAK is a schema v3 open-skin package for WebSpeak's public connection page and voice workspace. It keeps TeamSpeak connection, channel, member, chat, favorite-server, audio, and screen-sharing behavior in the host. The desktop voice layout places the favorite-server rail, a declarative channel list, the active workspace, a member column, and the audio dock in separate regions. Narrow screens return to WebSpeak's responsive channel and member controls.
KAAK is a schema v3 open-skin package for WebSpeak's public connection page and voice workspace. It keeps TeamSpeak connection, channel, member, chat, favorite-server, audio, and screen-sharing behavior in the host. The desktop voice layout places the favorite-server rail, a declarative channel list with members nested under each channel, the active chat workspace, a member column, and the audio dock in separate regions. Narrow screens return to WebSpeak's responsive channel and member controls.
The design target is the voice-client portion of KOOK, as requested by the project owner. This skin does not include discovery, companion/party, event, store, advertising, administrator, or other service-operator pages. It does not add a KOOK account flow, direct messages, server administration, or channels absent from the connected TeamSpeak server.
## Reference access note
The owner authorized inspection of the first two voice rooms in the KOOK server. Both rooms were entered and viewed; the microphone remained off. The reference confirmed a narrow server rail, grouped channel list with inline voice participants, a central channel/chat workspace, a right-side member column, and a compact voice-control dock near the lower left. This is a layout and styling reference, not a claim of pixel-for-pixel reproduction. Server/room identifiers, member names, and chat contents were not recorded.
The owner authorized inspection of the first two voice rooms in the KOOK server. Both rooms were entered and viewed; the microphone remained off. The reference confirmed a narrow server rail, grouped channel list with inline voice participants, a central text chat workspace, a right-side online/offline member column, and a compact voice-control dock near the lower left. This is a layout and styling reference, not a claim of pixel-for-pixel reproduction. Server/room identifiers, member names, and chat contents were not recorded.
## Components and permissions
The channel list and member column are defined as separate components in [components.json](./kaak-voice/components.json). They read only the visible TeamSpeak channel tree and visible member names/speaking state. Double-clicking a channel asks the host to join it; the host rechecks visibility and applies the existing TeamSpeak password and permission flow. This behavior belongs only to this KAAK component and does not alter the TeamSpeak protocol or other skins. Permission approval is local to this skin version and can be revoked from the host access control.
The channel list and member column are defined as separate components in [components.json](./kaak-voice/components.json). The channel component reads the visible TeamSpeak channel tree and, with a separate `session.members.read` grant, renders visible member names and speaking state beneath each channel. Double-clicking a channel asks the host to join it; the host rechecks visibility and applies the existing TeamSpeak password and permission flow. This behavior belongs only to this KAAK component and does not alter the TeamSpeak protocol or other skins. Permission approval is local to this skin version and can be revoked from the host access control.
The favorite-server rail and main audio/chat controls remain WebSpeak components. The plugin does not receive server addresses, passwords, identity keys, microphone controls, raw audio, private messages, or arbitrary network/storage APIs. The /demo page uses synthetic data and does not connect to TeamSpeak.
Binary file not shown.
+33
View File
@@ -8,6 +8,7 @@
"accessibleName": "频道列表 / Channel list",
"permissions": [
"session.channels.read",
"session.members.read",
"session.channel.join"
],
"actions": {
@@ -75,6 +76,38 @@
"children": [{ "text": "{{channel.memberCount}}" }]
}
]
},
{
"tag": "ul",
"part": "channel-members",
"className": "kaak-channel-members",
"attributes": { "aria-label": "频道成员 / Channel members" },
"children": [
{
"tag": "li",
"part": "channel-member",
"className": "kaak-channel-member",
"repeat": { "path": "channel.members", "as": "member" },
"children": [
{
"tag": "span",
"part": "channel-member-presence",
"className": "kaak-channel-member-presence",
"attributes": {
"aria-hidden": true,
"data-speaking": "{{member.speaking}}",
"data-self": "{{member.self}}"
}
},
{
"tag": "span",
"part": "channel-member-name",
"className": "kaak-channel-member-name",
"children": [{ "text": "{{member.name}}" }]
}
]
}
]
}
]
}
+48
View File
@@ -938,6 +938,10 @@
gap: 3px;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-item"] {
min-width: 0;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-row"] {
display: flex;
align-items: center;
@@ -979,6 +983,50 @@
font-size: 10px;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-members"] {
display: grid;
gap: 1px;
margin: 1px 0 5px;
padding: 0 0 0 34px;
list-style: none;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-member"] {
display: flex;
min-width: 0;
min-height: 24px;
align-items: center;
gap: 8px;
padding: 2px 5px;
color: var(--skin-kaak-muted);
border-radius: 5px;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-member-presence"] {
width: 6px;
height: 6px;
flex: 0 0 6px;
border-radius: 50%;
background: #727579;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-member-presence"][data-speaking="true"] {
background: var(--skin-kaak-green);
box-shadow: 0 0 0 2px rgba(124, 201, 138, .15);
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-member-name"] {
min-width: 0;
overflow: hidden;
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-channel-sidebar.channel-member-presence"][data-self="true"] + [data-ws-plugin-part="kaak-channel-sidebar.channel-member-name"] {
color: var(--skin-kaak-accent);
}
[data-ws-page="voice"] [data-ws-plugin-part="kaak-members-sidebar.online-label"] {
margin: 0 4px 9px;
color: var(--skin-kaak-muted);