mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-11-30 18:42:49 +08:00
fix(skins): show active screen sharing across bundled themes
This commit is contained in:
1 parent
d9749ac12f
commit
df2ff79e15
20 files changed
+180
-20
No files matched your search
@@ -536,3 +536,11 @@
|
||||
- 修改范围:给 `session.members` 增加 `screenSharing` 与 `screenShareStreamId`,两字段单独要求 `voice.screenShare.read`;自绘皮肤用 `voice.joinScreenShare` 观看时还需 `voice.screenShare.control`。按原有限定权限投影到 Wasm,未将 TeamSpeak SDK 对象或连接信息暴露给皮肤。
|
||||
- 示例皮肤:Open Voice Surface 与 Harbor 的成员列表现可显示共享标记并提供观看按钮;KAAK 的宿主成员卡片和屏幕共享逻辑不变。
|
||||
- 验证:Open Voice Surface 与 Harbor `.wskin` 已从各自组件源码重建;共享字段权限与运行时投影专项测试通过,包含屏幕共享 UI/皮肤包测试的完整套件 684/684 通过;`npm run build`、`npm run web:build` 与 `git diff --check` 通过。提交 `8b5db8a` 已推送至 `dev`;本地 3040 的页面和新 WebClient 资源均返回 HTTP 200,资源内含新成员共享字段。没有真实共享中的频道可用于端到端观看验收。
|
||||
|
||||
## 本轮皮肤更新(2026-10-11,内置皮肤与 KAAK 显示共享状态)
|
||||
|
||||
- 目标:让内置浅色、深色、ILLUSIA 和 KAAK 四款皮肤都清晰呈现活跃屏幕共享状态及观看入口。
|
||||
- 实现:浅色/深色给宿主成员卡的直播标记和观看按钮加入匹配主题的配色;ILLUSIA 更新其开放皮肤 CSS;KAAK 更新成员卡直播标记、波形和观看按钮。KAAK 组件树显式保持 `screenShare: true`;修正文档原先错误地声称其关闭了共享 UI 的说明。未改屏幕采集和 WebRTC 传输逻辑。
|
||||
- 版本与分发:浅色/深色升至 1.0.1,ILLUSIA 升至 2.0.1,KAAK 升至 3.1.73。新增可复用的 ILLUSIA `.wskin` 构建脚本;重建 ILLUSIA 与 KAAK 示例包及内置分发包。
|
||||
- 验证:皮肤目录和包定向测试 24/24 通过;`npm run verify` 全部通过(685/685 测试、服务端构建、前端类型检查及 Vite 生产构建);`git diff --check` 通过。3040 上 ILLUSIA 包返回 3,545,262 字节、KAAK 包返回 21,761 字节,均与刚构建的分发包长度一致。没有正在共享的真实语音会话可供目视确认动态标记和观看行为。
|
||||
- 当前状态:代码、皮肤包、记录和自动验证已完成;按持续指示推送到 `dev`。
|
||||
@@ -1,11 +1,11 @@
|
||||
# ILLUSIA风
|
||||
|
||||
ILLUSIA 风格 is a schema v3 open-skin example built from the local artwork in [illusia-voice/assets](./illusia-voice/assets/). Version 2.0.0 keeps its existing light-glass CSS and adds a small declarative current-channel card to exercise the new component renderer. The package still uses WebSpeak's base translations and contains no executable skin code.
|
||||
ILLUSIA 风格 is a schema v3 open-skin example built from the local artwork in [illusia-voice/assets](./illusia-voice/assets/). Version 2.0.1 keeps its existing light-glass CSS and current-channel card, and adds matching visual treatment for the host member-card screen-share status and watch action. The package still uses WebSpeak's base translations and contains no executable skin code.
|
||||
|
||||
The new voice-page component is defined in [components.json](./illusia-voice/components.json). It reads only the current public channel name through session.status.read and uses a local mascot image for a compact, non-interactive glass badge. The component needs the user's local approval before it renders; that approval is scoped to this skin version and can be revoked from the host access control. It cannot switch channels, read favorites, access a server address, or control audio.
|
||||
|
||||
The CSS continues to style the WebSpeak home page, voice workspace, screen-share player and /demo with cyan accents and original art. The homepage includes translucent navigation and selectors, animated mascot details, feature tiles, a visitor badge, a join action and a curved footer. The voice workspace includes the shared quick-server list, channel/member views, chat empty state, screen-share art and audio controls. The mobile view keeps WebSpeak's responsive host navigation while applying ILLUSIA colors and artwork.
|
||||
The CSS continues to style the WebSpeak home page, voice workspace, screen-share player and /demo with cyan accents and original art. The homepage includes translucent navigation and selectors, animated mascot details, feature tiles, a visitor badge, a join action and a curved footer. The voice workspace includes the shared quick-server list, channel/member views, chat empty state, screen-share art and audio controls. The shared member cards detect active screen shares and show a themed live badge and watch button. The mobile view keeps WebSpeak's responsive host navigation while applying ILLUSIA colors and artwork.
|
||||
|
||||
The distributable package and the copy served from web/public/skins are built from the source folder. After changing source files, recreate docs/examples/illusia-voice.wskin from that folder and copy the resulting package to web/public/skins/illusia-voice.wskin. Run the package import test to confirm both copies stay byte-identical and valid.
|
||||
The distributable package and the copy served from web/public/skins are built from the source folder. After changing source files, run `npm run skin:illusia:build` to recreate both copies. Run the package import test to confirm both copies stay byte-identical and valid.
|
||||
|
||||
Use only artwork you have permission to redistribute when publishing a skin to other WebSpeak instances.
|
||||
@@ -12,7 +12,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 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.
|
||||
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. Active screen shares appear on member cards with a live badge and a themed watch action; the share player remains a WebSpeak host component. 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; desktop cards also open it on right-click, and touch layouts keep the control visible. KAAK gives the host menu KOOK's compact dark panel, separated volume section, and highlighted action rows while keeping WebSpeak's own individual-volume slider and member actions; it does not add KOOK menu actions or skin-side audio logic.
|
||||
|
||||
@@ -30,7 +30,7 @@ The owner authorized inspection of the first two voice rooms in the KOOK server.
|
||||
|
||||
## Components and permissions
|
||||
|
||||
The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, and disconnect. KAAK explicitly disables the share UI and does not request its member-card permissions. The host renders trusted connection, language, skin, and audio controls. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control.
|
||||
The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, disconnect, and screen-share status/read/control. Its member-card widget explicitly enables share status and watch actions; the KAAK dock uses the host's screen-share control. The performance panel hides only share transport metrics. The host renders trusted connection, language, skin, and audio controls. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control.
|
||||
|
||||
The server header uses the live, privacy-filtered TeamSpeak server label and a trusted `voice.server-switcher` menu backed by favorites and recent connections. Its click handler reuses WebSpeak's existing connection flow with an opaque local ID; addresses and credentials never enter skin data. The left panel uses the trusted `voice.channel-tree` widget to retain TeamSpeak channel nesting, member counts and capacity, available avatars, and mute/speaking/away states. Expanding a branch is local UI state, a single click selects a channel, and double-click joins it. With `memberActions` enabled, right-clicking another member row opens WebSpeak's existing host-owned action menu. With `memberDragDrop` enabled, another member can be dragged onto a different channel row; the member row and target channel receive visual feedback, and the host reuses its existing move-client operation. Both options default off for other skins. The skin does not add KOOK's separate text-channel list.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.illusia-voice",
|
||||
"name": "ILLUSIA风",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "All rights reserved",
|
||||
"description": "A bright original-character art skin with a safe declarative live-channel badge.",
|
||||
|
||||
@@ -1110,6 +1110,33 @@
|
||||
background: linear-gradient(145deg, #fff, #eaf7f9);
|
||||
}
|
||||
|
||||
/* Shared voice roster: give live screen-share status and watch actions an ILLUSIA treatment. */
|
||||
[data-ws-part="voice.member.live-indicator"] {
|
||||
color: #075b65;
|
||||
border-color: rgba(34, 156, 167, .48);
|
||||
background: rgba(250, 255, 255, .98);
|
||||
box-shadow: 0 5px 16px rgba(27, 119, 137, .2), inset 0 1px 0 #fff;
|
||||
}
|
||||
[data-ws-part="voice.member.live-indicator"]::before {
|
||||
background: #25c18a;
|
||||
box-shadow: 0 0 0 3px rgba(37, 193, 138, .16);
|
||||
}
|
||||
[data-ws-part="voice.member.live-indicator"] .screen-share-wave { color: #078b98; }
|
||||
[data-ws-part="voice.member.share-actions"] .screen-share-card-button {
|
||||
color: #075e68;
|
||||
border-color: rgba(34, 156, 167, .42);
|
||||
background: linear-gradient(120deg, #f6ffff, #dff7f5);
|
||||
box-shadow: 0 4px 12px rgba(30, 150, 163, .12), inset 0 1px 0 #fff;
|
||||
}
|
||||
[data-ws-part="voice.member.share-actions"] .screen-share-card-button:hover {
|
||||
background: linear-gradient(120deg, #fff, #c9f0ec);
|
||||
}
|
||||
[data-ws-part="voice.member.share-actions"] .screen-share-card-button.viewing {
|
||||
color: #fff;
|
||||
border-color: #087e86;
|
||||
background: linear-gradient(110deg, #0a9997, #08717e);
|
||||
}
|
||||
|
||||
/* The demo keeps its original controls, labels, and interactions. */
|
||||
[data-ws-page="demo"] {
|
||||
color: var(--skin-illusia-ink);
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.72",
|
||||
"version": "3.1.73",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired voice workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
|
||||
|
||||
@@ -1676,6 +1676,28 @@
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"]:active { transform: scale(.985); }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start:disabled { opacity: .5; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card.self .screen-share-card-actions { display: none; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-live-indicator {
|
||||
color: #e6ffd0;
|
||||
border-color: rgba(108, 191, 0, .62);
|
||||
background: #20251e;
|
||||
box-shadow: 0 5px 16px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(108, 191, 0, .08);
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-live-indicator::before {
|
||||
background: #7bd80a;
|
||||
box-shadow: 0 0 0 3px rgba(123, 216, 10, .18);
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-wave { color: #9be031; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-card-button {
|
||||
color: #c8f39a;
|
||||
border-color: rgba(108, 191, 0, .46);
|
||||
background: #27311f;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-card-button:hover { background: #344626; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-card-button.viewing {
|
||||
color: #171b15;
|
||||
border-color: #8be31e;
|
||||
background: #8be31e;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock"] {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
"skin:harbor:build": "node web/scripts/build-harbor-voice-skin.mjs",
|
||||
"skin:open-voice:build": "node web/scripts/build-open-voice-surface-skin.mjs",
|
||||
"skin:kaak:build": "node web/scripts/build-kaak-voice-skin.mjs",
|
||||
"skin:illusia:build": "node web/scripts/build-illusia-voice-skin.mjs",
|
||||
"start": "node dist/index.js",
|
||||
"web:dev": "cd web && npx vite --host",
|
||||
"web:build": "npm --prefix web run build",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,27 @@
|
||||
import { readdir, readFile, writeFile } from "node:fs/promises";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { zipSync } from "fflate";
|
||||
|
||||
const sourceDirectory = new URL("../../docs/examples/illusia-voice/", import.meta.url);
|
||||
|
||||
async function collectFiles(directory, prefix = "") {
|
||||
const entries = await readdir(new URL(prefix, directory), { withFileTypes: true });
|
||||
const files = [];
|
||||
for (const entry of entries) {
|
||||
const relativePath = prefix ? `${prefix}/${entry.name}` : entry.name;
|
||||
if (entry.isDirectory()) files.push(...await collectFiles(directory, relativePath));
|
||||
else if (entry.isFile()) files.push(relativePath);
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
const files = Object.fromEntries(await Promise.all((await collectFiles(sourceDirectory)).map(async (name) => [
|
||||
name,
|
||||
await readFile(new URL(name, sourceDirectory)),
|
||||
])));
|
||||
const archive = zipSync(files, { level: 9 });
|
||||
|
||||
await Promise.all([
|
||||
writeFile(fileURLToPath(new URL("../../docs/examples/illusia-voice.wskin", import.meta.url)), archive),
|
||||
writeFile(fileURLToPath(new URL("../public/skins/illusia-voice.wskin", import.meta.url)), archive),
|
||||
]);
|
||||
@@ -1,4 +1,5 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import test from "node:test";
|
||||
import {
|
||||
BUILTIN_SKIN_CATALOG,
|
||||
@@ -7,6 +8,27 @@ import {
|
||||
listPublicSkins,
|
||||
} from "./skin-catalog.js";
|
||||
|
||||
test("built-in appearance manifests and catalog versions match the bundled share treatments", async () => {
|
||||
const [lightManifestText, darkManifestText, lightCss, darkCss] = await Promise.all([
|
||||
readFile(new URL("../skins/builtin/light/manifest.json", import.meta.url), "utf8"),
|
||||
readFile(new URL("../skins/builtin/dark/manifest.json", import.meta.url), "utf8"),
|
||||
readFile(new URL("../skins/builtin/light/skin.css", import.meta.url), "utf8"),
|
||||
readFile(new URL("../skins/builtin/dark/skin.css", import.meta.url), "utf8"),
|
||||
]);
|
||||
const lightManifest = JSON.parse(lightManifestText) as { id: string; version: string };
|
||||
const darkManifest = JSON.parse(darkManifestText) as { id: string; version: string };
|
||||
|
||||
for (const manifest of [lightManifest, darkManifest]) {
|
||||
assert.equal(BUILTIN_SKIN_CATALOG.find((skin) => skin.id === manifest.id)?.version, manifest.version);
|
||||
}
|
||||
assert.equal(lightManifest.version, "1.0.1");
|
||||
assert.equal(darkManifest.version, "1.0.1");
|
||||
assert.match(lightCss, /\.screen-share-live-indicator\s*\{[^}]*background:/s);
|
||||
assert.match(lightCss, /\.screen-share-card-button\.viewing\s*\{[^}]*background:/s);
|
||||
assert.match(darkCss, /\.screen-share-live-indicator\s*\{[^}]*background:/s);
|
||||
assert.match(darkCss, /\.screen-share-card-button\.viewing\s*\{[^}]*background:/s);
|
||||
});
|
||||
|
||||
test("skin catalog always includes protected built-ins and exposes only enabled custom skins", async () => {
|
||||
const originalFetch = globalThis.fetch;
|
||||
globalThis.fetch = async () => new Response(JSON.stringify({
|
||||
|
||||
@@ -9,7 +9,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: "builtin.light",
|
||||
name: "Day mode",
|
||||
version: "1.0.0",
|
||||
version: "1.0.1",
|
||||
author: "WebSpeak",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "The default light appearance.",
|
||||
@@ -21,7 +21,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: "builtin.dark",
|
||||
name: "Night mode",
|
||||
version: "1.0.0",
|
||||
version: "1.0.1",
|
||||
author: "WebSpeak",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "The default dark appearance.",
|
||||
@@ -33,7 +33,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_ILLUSIA_SKIN_ID,
|
||||
name: "ILLUSIA风",
|
||||
version: "2.0.0",
|
||||
version: "2.0.1",
|
||||
author: "WebSpeak Project",
|
||||
license: "All rights reserved",
|
||||
description: "A bright original-character art skin with a safe declarative live-channel badge.",
|
||||
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.72",
|
||||
version: "3.1.73",
|
||||
author: "WebSpeak Project",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "A KOOK-inspired voice-room workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
|
||||
|
||||
@@ -141,7 +141,7 @@ test("the ILLUSIA v3 example and bundled package import without replacing WebSpe
|
||||
const skin = await importSkinPack(new File([exampleBytes], "illusia-voice.wskin", { type: "application/octet-stream" }));
|
||||
assert.equal(skin.id, "community.illusia-voice");
|
||||
assert.equal(skin.name, "ILLUSIA风");
|
||||
assert.equal(skin.version, "2.0.0");
|
||||
assert.equal(skin.version, "2.0.1");
|
||||
assert.equal(skin.schemaVersion, 3);
|
||||
assert.equal(skin.packageType, "open-skin");
|
||||
assert.equal(skin.layoutData, undefined);
|
||||
@@ -168,7 +168,9 @@ test("the ILLUSIA v3 example and bundled package import without replacing WebSpe
|
||||
assert.match(skin.css, /language\.option/);
|
||||
assert.match(skin.css, /data-ws-skin-id="community\.illusia-voice"/);
|
||||
assert.match(skin.css, /data-ws-part="voice\.favorite-servers\.rail"/);
|
||||
assert.match(skin.css, /data-ws-plugin-part="illusia-now-playing\.channel-name"/);
|
||||
assert.match(skin.css, /data-ws-plugin-part="illusia-now-playing\.channel-name"/);
|
||||
assert.match(skin.css, /data-ws-part="voice\.member\.live-indicator"\]\s*\{[^}]*border-color:[^}]*background:/s);
|
||||
assert.match(skin.css, /data-ws-part="voice\.member\.share-actions"\] \.screen-share-card-button\.viewing\s*\{[^}]*background:/s);
|
||||
assert.match(skin.css, /data-ws-part="home\.server-history\.item"/);
|
||||
assert.match(skin.css, /data-ws-part="home\.server-history\.favorite-toggle"\]\[data-ws-state="saved"\]/);
|
||||
assert.match(skin.css, /data-ws-part="voice\.favorite-servers\.favorite-toggle"\]\[data-ws-state="saved"\]/);
|
||||
@@ -464,7 +466,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.72");
|
||||
assert.equal(skin.version, "3.1.73");
|
||||
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");
|
||||
@@ -489,15 +491,16 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.equal(voice?.permissions.includes("voice.screenShare.read"), true);
|
||||
assert.equal(voice?.permissions.includes("voice.screenShare.control"), true);
|
||||
assert.equal(voice?.permissions.includes("voice.screenShare.status.read"), true);
|
||||
function findPart(node: SkinPluginNode | undefined, part: string): SkinPluginNode | undefined {
|
||||
function findPart(node: SkinPluginNode | undefined, part: string): SkinPluginNode | undefined {
|
||||
if (!node) return undefined;
|
||||
if (node.part === part) return node;
|
||||
for (const child of node.children ?? []) {
|
||||
const found = findPart(child, part);
|
||||
if (found) return found;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
assert.deepEqual(findPart(voice?.root, "member-cards")?.options, { screenShare: true, memberActions: true });
|
||||
assert.equal(findPart(voice?.root, "server-summary")?.widget, "voice.server-header");
|
||||
assert.equal(findPart(voice?.root, "server-banner")?.widget, "voice.server-banner");
|
||||
assert.equal(findPart(voice?.root, "record-placeholder"), undefined, "the KAAK voice dock has no recording control");
|
||||
@@ -689,7 +692,9 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.match(skin.css, /kaak-workspace\.conversation[\s\S]*?grid-column: 4;/);
|
||||
assert.match(skin.css, /conversation[\s\S]*?grid-template-rows: 58px minmax\(0, 1fr\) auto/);
|
||||
assert.match(skin.css, /chat-send[\s\S]*?::after \{ content: "➤";/);
|
||||
assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.voice-card[\s\S]*?aspect-ratio: 1\.82;/);
|
||||
assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.voice-card[\s\S]*?aspect-ratio: 1\.82;/);
|
||||
assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.screen-share-live-indicator[\s\S]*?background: #20251e;/);
|
||||
assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.screen-share-card-button\.viewing[\s\S]*?background: #8be31e;/);
|
||||
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-wave/);
|
||||
assert.ok(skin.css.includes("animation: ws-community-kaak-voice-kaak-performance-refresh-spin .72s linear infinite;"));
|
||||
assert.ok(skin.css.includes("performance-refresh:disabled .ui-icon { animation: none; }"));
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"schemaVersion": 1,
|
||||
"id": "builtin.dark",
|
||||
"name": "WebSpeak Dark",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"author": "WebSpeak",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "The built-in dark appearance for public WebSpeak pages.",
|
||||
|
||||
@@ -276,6 +276,30 @@
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] *::-webkit-scrollbar-thumb:hover { background: #69c7bc; }
|
||||
|
||||
/* Keep live screen sharing obvious in the built-in dark voice roster. */
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] .screen-share-live-indicator {
|
||||
color: #bdfff1;
|
||||
border-color: rgba(105, 210, 199, .48);
|
||||
background: #172321;
|
||||
box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] .screen-share-live-indicator::before {
|
||||
background: #78e489;
|
||||
box-shadow: 0 0 0 3px rgba(120, 228, 137, .17);
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] .screen-share-wave { color: #69d2c7; }
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] .screen-share-card-button {
|
||||
color: #a9eee3;
|
||||
border-color: rgba(105, 210, 199, .4);
|
||||
background: #20342f;
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] .screen-share-card-button:hover { background: #29443e; }
|
||||
.ws-skin-root[data-ws-skin="builtin.dark"] .screen-share-card-button.viewing {
|
||||
color: #10201d;
|
||||
border-color: #69d2c7;
|
||||
background: #69d2c7;
|
||||
}
|
||||
|
||||
@keyframes join-accent-breathe-dark {
|
||||
0%, 100% { transform: translateY(0); text-shadow: 0 0 8px rgba(125, 255, 174, .28), 0 0 18px rgba(105, 210, 199, .14); }
|
||||
50% { transform: translateY(-2px); text-shadow: 0 0 13px rgba(125, 255, 174, .5), 0 0 26px rgba(105, 210, 199, .22); }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"schemaVersion": 1,
|
||||
"id": "builtin.light",
|
||||
"name": "WebSpeak Light",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"author": "WebSpeak",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "The built-in light appearance for public WebSpeak pages.",
|
||||
|
||||
@@ -148,3 +148,27 @@
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] *::-webkit-scrollbar-thumb:hover {
|
||||
background: #6bbab1;
|
||||
}
|
||||
|
||||
/* Keep live screen sharing obvious in the built-in light voice roster. */
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] .screen-share-live-indicator {
|
||||
color: #075f56;
|
||||
border-color: #a9d8d0;
|
||||
background: #f5fffc;
|
||||
box-shadow: 0 4px 12px rgba(21, 72, 65, .14);
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] .screen-share-live-indicator::before {
|
||||
background: #16a875;
|
||||
box-shadow: 0 0 0 3px rgba(22, 168, 117, .16);
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] .screen-share-wave { color: #087e86; }
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] .screen-share-card-button {
|
||||
color: #006a64;
|
||||
border-color: #a9d8d0;
|
||||
background: #eaf8f5;
|
||||
}
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] .screen-share-card-button:hover { background: #d9f1ec; }
|
||||
.ws-skin-root[data-ws-skin="builtin.light"] .screen-share-card-button.viewing {
|
||||
color: #fff;
|
||||
border-color: #006a64;
|
||||
background: #006a64;
|
||||
}
|
||||
Reference in new issue
Block a user