fix: expose server identity and refine KAAK client

This commit is contained in:
illusia committed 2026-10-11 17:14:56 +08:00
1 parent e8164abafe
commit 17fb27b89a
28 files changed
+1504 -334

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ Chat visibility is kept separately for each active TeamSpeak channel, so collaps
While the WebSpeak performance card is sampling, its refresh icon spins to show the busy state; the animation is disabled when reduced motion is requested.
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its desktop voice page follows KOOK's proportions: an 80px server rail, a 290px channel pane, a 40px top bar, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail uses KOOK's rounded-square silhouette and left-edge active marker, with distinct colored monogram tiles as placeholders. WebSpeak currently exposes the saved server label but no server icon image, so these tiles do not copy KOOK's artwork or expose a connection address. The host provides a stable color-tone number derived only from the privacy-safe label, so a tile keeps its color when the saved list order changes. The KOOK voice room is the point-to-point visual reference: composition, member presentation, styling, and motion should be compared directly, rather than treating matching component types or approximate placement as sufficient. The left tree contains the TeamSpeak voice channels only; KOOK's separate text-channel group is outside this pass because TeamSpeak has no equivalent channel type. The current voice channel's text chat remains on the right. Closing it hides the entire panel, expands the participant stage, and leaves a reopen button in the stage heading; this happens without leaving the voice room. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. Messages use author monograms, a separate identity/time line, and readable message text. The central stage uses WebSpeak's reusable member-card widget so available TeamSpeak profile avatars appear inside KAAK's participant tiles; the tiles use a wide 1.82:1 layout with a responsive grid to match KOOK's participant presentation. Member names stay hidden at rest while chat is open and fade upward into the lower-left label on hover; they remain visible while chat is collapsed. KAAK's CSS adds hover depth and a smoothly transitioning speaking ring driven by live voice state. Paid screen sharing is outside this skin; its member cards and performance panel omit share actions and share-state details. The dock retains WebSpeak's trusted connection-quality, audio, and disconnect controls. Input/output volume buttons open hover or keyboard-focus panels with live numeric levels; sliders use a skin-colored progress track, a distinct thumb, and visible focus feedback. Audio input and output devices use a reusable keyboard-accessible picker with a scrollable option list, selected/highlighted states, and an animated chevron; KAAK styles the trigger and open list. The connection surface, voice workspace, and audio settings share KOOK's PingFang SC-first font stack; audio settings use 16px/600 section headings and observed 14px/400 field labels. Audio sliders use a 16px thumb with hover/focus feedback. The performance card opens with a short entrance motion and readable network/audio metrics. No real device, volume, or microphone state is changed during visual checks. The roster shows connected TeamSpeak clients only; it does not invent an offline list. Channel selection is single-click; joining is double-click. The narrow layout keeps the host's mobile controls available while retaining readable member tiles.
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its desktop voice page follows KOOK's proportions: an 86px server rail with 58px icons and 18px vertical spacing, a 290px channel pane, a 40px top bar, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail uses KOOK's rounded-square silhouette, a 2px green active outline and left-edge marker, with neutral fallback tiles and the muted purple active tile from the reference. The identity tile stays pinned at the bottom with a 54px circular monogram and connection-aware online dot; the server list scrolls when the window is short. The host provides a stable color-tone value derived only from the privacy-safe label, but the rail keeps the KOOK neutral tile treatment rather than exposing those tones. The KOOK voice room is the point-to-point visual reference: composition, member presentation, styling, and motion should be compared directly, rather than treating matching component types or approximate placement as sufficient. The left tree contains the TeamSpeak voice channels only; KOOK's separate text-channel group is outside this pass because TeamSpeak has no equivalent channel type. The current voice channel's text chat remains on the right. Closing it hides the entire panel, expands the participant stage, and leaves a reopen button in the stage heading; this happens without leaving the voice room. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. Messages use author monograms, a separate identity/time line, and readable message text. The central stage uses WebSpeak's reusable member-card widget so available TeamSpeak profile avatars appear inside KAAK's participant tiles; the tiles use a wide 1.82:1 layout with a responsive grid to match KOOK's participant presentation. Member names stay hidden at rest while chat is open and fade upward into the lower-left label on hover; they remain visible while chat is collapsed. KAAK's CSS adds hover depth and a smoothly transitioning speaking ring driven by live voice state. Paid screen sharing is outside this skin; its member cards and performance panel omit share actions and share-state details. The dock retains WebSpeak's trusted connection-quality, audio, and disconnect controls. Input/output volume buttons open hover or keyboard-focus panels with live numeric levels; sliders use a skin-colored progress track, a distinct thumb, and visible focus feedback. Audio input and output devices use a reusable keyboard-accessible picker with a scrollable option list, selected/highlighted states, and an animated chevron; KAAK styles the trigger and open list. The connection surface, voice workspace, and audio settings share KOOK's PingFang SC-first font stack; audio settings use 16px/600 section headings and observed 14px/400 field labels. Audio sliders use a 16px thumb with hover/focus feedback. The performance card opens with a short entrance motion and readable network/audio metrics. No real device, volume, or microphone state is changed during visual checks. The roster shows connected TeamSpeak clients only; it does not invent an offline list. Channel selection is single-click; joining is double-click. The narrow layout keeps the host's mobile controls available while retaining readable member tiles.
The single TeamSpeak voice-channel group in the left tree collapses and expands with a short two-way height and fade transition like KOOK's voice group; the separate KOOK text-channel group remains outside this pass. A first click selects a channel and reveals a brief “双击加入” hint; the hint disappears on the active room. The current voice-room heading keeps the channel name and live member count visible above the participant stage while the attached chat is expanded, matching KOOK's room view. Member cards expose WebSpeak's trusted member-actions menu from a small hover or keyboard-focus control; touch layouts keep the control visible. That menu provides the existing individual-volume slider and member actions without adding skin-side audio logic.
Binary file not shown.
+34 -1
View File
@@ -269,7 +269,28 @@
},
"children": [
{
"text": "{{server.monogram}}"
"tag": "img",
"part": "server-icon",
"when": {
"path": "server.icon"
},
"attributes": {
"src": "{{server.icon}}",
"alt": ""
}
},
{
"tag": "span",
"part": "server-monogram-initial",
"when": {
"path": "server.icon",
"equals": ""
},
"children": [
{
"text": "{{server.monogram}}"
}
]
}
]
},
@@ -1073,6 +1094,18 @@
"children": [
{
"text": "TS"
},
{
"tag": "span",
"part": "identity-online",
"when": {
"path": "session.status.connected",
"equals": true
},
"attributes": {
"role": "img",
"aria-label": "在线"
}
}
]
},
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.62",
"version": "3.1.64",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A KOOK-inspired voice workspace with collapsible voice groups, channel chat, TeamSpeak profile cards, accessible member controls, and WebSpeak screen sharing.",
+109 -87
View File
@@ -122,7 +122,7 @@
--skin-kaak-border: #3a3b40;
position: relative;
display: grid;
grid-template-columns: 80px 290px minmax(280px, 1fr) minmax(340px, min(38vw, 520px));
grid-template-columns: 86px 290px minmax(280px, 1fr) minmax(340px, min(38vw, 520px));
grid-template-rows: 40px minmax(0, 1fr);
width: 100%;
height: 100dvh;
@@ -135,7 +135,7 @@
}
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) {
grid-template-columns: 80px 290px minmax(280px, 1fr) 0;
grid-template-columns: 86px 290px minmax(280px, 1fr) 0;
}
[data-ws-plugin-part="kaak-workspace"] .language-switcher .language-trigger,
@@ -208,94 +208,111 @@
[data-ws-plugin-part="kaak-workspace.server-rail"] {
grid-column: 1;
grid-row: 2;
--skin-kaak-rail-bg: #191a1d;
--skin-kaak-rail-item-bg: #2b2d32;
--skin-kaak-rail-accent: #75c900;
--skin-kaak-rail-text: #e7e9ed;
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
gap: 18px;
box-sizing: border-box;
height: 100%;
min-height: 0;
overflow-y: auto;
padding: 12px 15px 96px;
background: var(--skin-kaak-rail);
border-right: 1px solid #ffffff08;
padding: 14px 0 96px;
background: var(--skin-kaak-rail-bg);
scrollbar-width: none;
}
[data-ws-plugin-part="kaak-workspace.server-rail"]::-webkit-scrollbar {
display: none;
}
[data-ws-plugin-part="kaak-workspace.quick-server-item"] {
box-sizing: border-box;
width: 58px;
height: 58px;
flex: 0 0 58px;
}
[data-ws-plugin-part="kaak-workspace.quick-server"] {
position: relative;
display: grid;
place-items: center;
width: 50px;
min-height: 50px;
padding: 1px;
border: 0;
border-radius: 14px;
color: var(--skin-kaak-muted);
background: transparent;
box-sizing: border-box;
width: 58px;
height: 58px;
min-height: 58px;
padding: 0;
border: 2px solid transparent;
border-radius: 18px;
color: var(--skin-kaak-rail-text);
background: var(--skin-kaak-rail-item-bg);
cursor: pointer;
transition: background-color .18s ease;
transition: background .15s ease, border-color .15s ease, border-radius .15s ease;
}
[data-ws-plugin-part="kaak-workspace.quick-server"]:hover,
[data-ws-plugin-part="kaak-workspace.quick-server"]:focus-visible {
color: var(--skin-kaak-text);
background: var(--skin-kaak-raised);
background: #383a40;
}
[data-ws-plugin-part="kaak-workspace.quick-server"]:focus-visible {
outline: 2px solid #f0f1f3;
outline-offset: 3px;
}
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"] {
color: var(--skin-kaak-text);
border-color: var(--skin-kaak-rail-accent);
color: var(--skin-kaak-rail-text);
background: var(--skin-kaak-rail-item-bg);
}
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before {
position: absolute;
left: -15px;
top: 50%;
width: 3px;
height: 22px;
border-radius: 0 3px 3px 0;
background: var(--skin-kaak-accent);
left: -16px;
top: 10px;
width: 4px;
height: 34px;
border-radius: 0 4px 4px 0;
background: var(--skin-kaak-rail-accent);
content: "";
transform: translateY(-50%);
transform-origin: center;
animation: kaak-server-active-arrive .2s cubic-bezier(.2, .75, .25, 1) both;
}
@keyframes kaak-server-active-arrive {
from { opacity: 0; transform: translateY(-50%) scaleY(.55); }
to { opacity: 1; transform: translateY(-50%) scaleY(1); }
}
[data-ws-plugin-part="kaak-workspace.server-monogram"] {
position: relative;
display: grid;
place-items: center;
width: 48px;
height: 48px;
box-sizing: border-box;
width: 100%;
height: 100%;
overflow: hidden;
border: 1px solid #ffffff12;
border-radius: 12px;
color: var(--skin-kaak-text);
background: linear-gradient(145deg, #383a40, #222429);
font-size: 15px;
font-weight: 800;
border-radius: 16px;
color: var(--skin-kaak-rail-text);
background: var(--skin-kaak-rail-item-bg);
font-size: 23px;
font-weight: 600;
text-align: center;
transition: border-radius .18s ease, transform .18s ease, border-color .18s ease, filter .18s ease;
transition: background-color .15s ease;
}
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="0"] { background: linear-gradient(145deg, #b54645, #59304a); }
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="1"] { background: linear-gradient(145deg, #7756b7, #352d5e); }
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="2"] { background: linear-gradient(145deg, #268f83, #20524f); }
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="3"] { background: linear-gradient(145deg, #477fbc, #294763); }
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="4"] { background: linear-gradient(145deg, #bd5b76, #63374d); }
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="5"] { background: linear-gradient(145deg, #b97837, #64442f); }
[data-ws-plugin-part="kaak-workspace.server-monogram"][data-tone="6"] { background: linear-gradient(145deg, #638a49, #3a513d); }
[data-ws-plugin-part="kaak-workspace.server-icon"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border-radius: inherit;
object-fit: cover;
}
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"] [data-ws-plugin-part="kaak-workspace.server-monogram"] {
border-color: var(--skin-kaak-accent);
border-radius: 12px;
background: var(--skin-kaak-rail-item-bg);
}
[data-ws-plugin-part="kaak-workspace.quick-server"]:hover [data-ws-plugin-part="kaak-workspace.server-monogram"] {
border-radius: 11px;
transform: scale(1.04);
filter: saturate(1.12) brightness(1.08);
[data-ws-plugin-part="kaak-workspace.quick-server"]:not([aria-current="true"]):hover [data-ws-plugin-part="kaak-workspace.server-monogram"],
[data-ws-plugin-part="kaak-workspace.quick-server"]:not([aria-current="true"]):focus-visible [data-ws-plugin-part="kaak-workspace.server-monogram"] {
background: #383a40;
}
[data-ws-plugin-part="kaak-workspace.server-kind"] {
@@ -313,28 +330,40 @@
display: grid;
justify-items: center;
gap: 4px;
width: 80px;
box-sizing: border-box;
width: 86px;
margin: 0;
padding: 10px 2px max(12px, env(safe-area-inset-bottom));
border-top: 1px solid var(--skin-kaak-border);
background: var(--skin-kaak-rail);
padding: 0 0 max(12px, env(safe-area-inset-bottom));
background: #191a1d;
}
[data-ws-plugin-part="kaak-workspace.identity-monogram"] {
position: relative;
display: grid;
place-items: center;
width: 38px;
height: 38px;
border: 1px solid #ffffff18;
width: 54px;
height: 54px;
border: 0;
border-radius: 50%;
color: var(--skin-kaak-text);
background: linear-gradient(145deg, #4a4c53, #292a30);
font-size: 10px;
font-weight: 850;
color: #fff;
background: #176a9e;
font-size: 17px;
font-weight: 700;
}
[data-ws-plugin-part="kaak-workspace.identity-online"] {
position: absolute;
right: -2px;
bottom: -2px;
width: 17px;
height: 17px;
border: 3px solid #191a1d;
border-radius: 50%;
background: #75c900;
}
[data-ws-plugin-part="kaak-workspace.identity-name"] {
display: block;
display: none;
max-width: 100%;
overflow: hidden;
color: var(--skin-kaak-muted);
@@ -1231,26 +1260,20 @@
@media (max-width: 1200px) {
[data-ws-plugin-part="kaak-workspace"] {
grid-template-columns: 56px 204px minmax(340px, 1fr) minmax(280px, 32vw);
grid-template-columns: 86px 204px minmax(340px, 1fr) minmax(280px, 32vw);
}
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) {
grid-template-columns: 56px 204px minmax(340px, 1fr) 0;
grid-template-columns: 86px 204px minmax(340px, 1fr) 0;
}
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 56px; }
[data-ws-plugin-part="kaak-workspace.server-rail"] { padding-inline: 3px; }
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -3px; }
}
@media (max-width: 960px) {
[data-ws-plugin-part="kaak-workspace"] {
grid-template-columns: 52px 184px minmax(260px, 1fr) minmax(260px, 29vw);
grid-template-columns: 86px 184px minmax(260px, 1fr) minmax(260px, 29vw);
}
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) {
grid-template-columns: 52px 184px minmax(260px, 1fr) 0;
grid-template-columns: 86px 184px minmax(260px, 1fr) 0;
}
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 52px; }
[data-ws-plugin-part="kaak-workspace.server-rail"] { padding-inline: 1px; }
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -1px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::before,
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 92px; height: 92px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 76px; height: 76px; font-size: 28px; }
@@ -1258,7 +1281,7 @@
@media (max-width: 820px) {
[data-ws-plugin-part="kaak-workspace"] {
grid-template-columns: 56px minmax(0, 1fr);
grid-template-columns: 86px minmax(0, 1fr);
grid-template-rows: 50px 126px minmax(176px, 24dvh) minmax(180px, 1fr) 122px;
height: 100dvh;
min-height: 540px;
@@ -1268,12 +1291,7 @@
[data-ws-plugin-part="kaak-workspace.brand-mark"] { flex-basis: 28px; width: 28px; height: 28px; }
[data-ws-plugin-part="kaak-workspace.brand-name"] { font-size: 10px; }
[data-ws-plugin-part="kaak-workspace.server-title"] { font-size: 10px; }
[data-ws-plugin-part="kaak-workspace.server-rail"] { grid-column: 1; grid-row: 2 / 6; padding: 8px 3px 96px; gap: 8px; }
[data-ws-plugin-part="kaak-workspace.quick-server"] { width: 48px; min-height: 48px; }
[data-ws-plugin-part="kaak-workspace.server-monogram"] { width: 42px; height: 42px; }
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -4px; }
[data-ws-plugin-part="kaak-workspace.identity-monogram"] { width: 34px; height: 34px; }
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 56px; }
[data-ws-plugin-part="kaak-workspace.server-rail"] { grid-column: 1; grid-row: 2 / 6; padding: 8px 13px 96px; gap: 18px; }
[data-ws-plugin-part="kaak-workspace.channel-panel"] {
grid-column: 2;
@@ -1319,7 +1337,7 @@
[data-ws-plugin-part="kaak-workspace.voice-group-name"] { display: none; }
[data-ws-plugin-part="kaak-workspace.voice-group-chevron"] { width: auto; font-size: 20px; }
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) {
grid-template-columns: 56px minmax(0, 1fr);
grid-template-columns: 86px minmax(0, 1fr);
grid-template-rows: 50px 126px minmax(176px, 24dvh) 0 122px;
}
[data-ws-plugin-part="kaak-workspace.voice-channel-list"] { flex: 0 0 auto; }
@@ -1396,10 +1414,7 @@
}
@media (max-width: 460px) {
[data-ws-plugin-part="kaak-workspace"] { grid-template-columns: 50px minmax(0, 1fr); }
[data-ws-plugin-part="kaak-workspace.server-rail"] { padding-inline: 1px; }
[data-ws-plugin-part="kaak-workspace.quick-server"] { width: 44px; }
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 50px; }
[data-ws-plugin-part="kaak-workspace"] { grid-template-columns: 86px minmax(0, 1fr); }
[data-ws-plugin-part="kaak-workspace.identity-name"] { max-width: 43px; }
[data-ws-plugin-part="kaak-workspace.topbar"] { padding-inline: 5px; }
[data-ws-plugin-part="kaak-workspace.brand-name"] { display: none; }
@@ -1410,6 +1425,13 @@
[data-ws-plugin-part="kaak-workspace.voice-dock"] { grid-column: 2; }
}
@media (max-height: 620px) {
[data-ws-plugin-part="kaak-workspace"] { min-height: 0; }
[data-ws-plugin-part="kaak-workspace.server-rail"] { padding-top: 8px; padding-bottom: 76px; }
[data-ws-plugin-part="kaak-workspace.identity-entry"] { gap: 2px; padding-top: 7px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
[data-ws-plugin-part="kaak-workspace.identity-name"] { display: none; }
}
@media (max-width: 820px) and (max-height: 620px) {
[data-ws-plugin-part="kaak-workspace"] {
grid-template-rows: 46px 104px minmax(138px, 25dvh) minmax(136px, 1fr) 122px;