From 25b0a01ae70bd3dfcc63cab82e2ba365b4ded850 Mon Sep 17 00:00:00 2001 From: OddTurtleHead <355182507+OddTurtleHead@users.noreply.github.com> Date: Fri, 4 Dec 2026 13:43:49 +0800 Subject: [PATCH] feat(skins): bundle the Classic 4.1.16 skin with the client Add Classic (community.ts3-classic-console) as a bundled skin next to KAAK: example sources under docs/examples/ts3-classic-console, a reproducible skin:classic:build script that also packs chrome.json and writes identical archives to docs/examples/ and web/public/skins/, a built-in catalog entry and bundled package URL, and admin registry protection against replace, disable and delete. Classic stays outside the official consent-free skin list, so visitors without instance consent still see only Day, Night and ILLUSIA. --- .../webspeak-plugin-development/SKILL.md | 2 +- .../skills/webspeak-skin-development/SKILL.md | 2 +- docs/PLUGIN_DEVELOPMENT.md | 2 +- docs/README.de.md | 2 +- docs/README.en.md | 2 +- docs/README.ja.md | 2 +- docs/README.ru.md | 2 +- docs/README.zh-CN.md | 2 +- docs/SKIN_DEVELOPMENT.md | 6 +- docs/examples/ts3-classic-console.wskin | Bin 0 -> 25237 bytes docs/examples/ts3-classic-console/chrome.json | 16 + .../ts3-classic-console/components.json | 908 +++++++ .../examples/ts3-classic-console/content.json | 200 ++ .../ts3-classic-console/manifest.json | 15 + docs/examples/ts3-classic-console/skin.css | 2327 +++++++++++++++++ package.json | 1 + src/admin/skin-registry.test.ts | 15 +- src/admin/skin-registry.ts | 2 +- web/public/skins/ts3-classic-console.wskin | Bin 0 -> 25237 bytes web/scripts/build-classic-skin.mjs | 22 + .../services/instance-authorization.test.ts | 7 +- web/src/services/skin-catalog.test.ts | 24 +- web/src/services/skin-catalog.ts | 14 + web/src/services/skin-pack.test.ts | 37 +- 24 files changed, 3590 insertions(+), 20 deletions(-) create mode 100644 docs/examples/ts3-classic-console.wskin create mode 100644 docs/examples/ts3-classic-console/chrome.json create mode 100644 docs/examples/ts3-classic-console/components.json create mode 100644 docs/examples/ts3-classic-console/content.json create mode 100644 docs/examples/ts3-classic-console/manifest.json create mode 100644 docs/examples/ts3-classic-console/skin.css create mode 100644 web/public/skins/ts3-classic-console.wskin create mode 100644 web/scripts/build-classic-skin.mjs diff --git a/.agents/skills/webspeak-plugin-development/SKILL.md b/.agents/skills/webspeak-plugin-development/SKILL.md index 2bb9882..ea5a770 100644 --- a/.agents/skills/webspeak-plugin-development/SKILL.md +++ b/.agents/skills/webspeak-plugin-development/SKILL.md @@ -51,4 +51,4 @@ Minimizing or switching to the library retains the same iframe and app session. ## Instance authorization -The public host asks once per browser origin for third-party skins and functional applications together. No decision or refusal allows only Day, Night and ILLUSIA; KAAK also requires consent. The last item in the skin menu reopens this setting. Revocation must close/revoke the active frontend application while preserving independently enabled backend services. Do not add per-app copies of the same host authorization prompt, bypass the host gate or confuse this user decision with administrator package trust or browser-native permission prompts. +The public host asks once per browser origin for third-party skins and functional applications together. No decision or refusal allows only Day, Night and ILLUSIA; KAAK and Classic also require consent. The last item in the skin menu reopens this setting. Revocation must close/revoke the active frontend application while preserving independently enabled backend services. Do not add per-app copies of the same host authorization prompt, bypass the host gate or confuse this user decision with administrator package trust or browser-native permission prompts. diff --git a/.agents/skills/webspeak-skin-development/SKILL.md b/.agents/skills/webspeak-skin-development/SKILL.md index d498c4b..837a59a 100644 --- a/.agents/skills/webspeak-skin-development/SKILL.md +++ b/.agents/skills/webspeak-skin-development/SKILL.md @@ -57,4 +57,4 @@ Return the actual PR URL and validation outcome, and attach the PR to the chat w ## Instance authorization -WebSpeak v0.3.0 replaces per-skin consent dialogs with one origin-scoped user decision covering third-party skins and functional apps. Without consent only the fixed official Day, Night and ILLUSIA skins are available; bundled KAAK also requires consent. The host skin switcher owns the final authorization item. Packages must not duplicate or bypass it. Revocation must cancel pending activation, remove third-party CSS/components and stop workers. Continue enforcing manifest permissions, credential redaction, trusted action validation and package digests internally; one-time consent does not extend the public API. See the current guide for release compatibility. +WebSpeak v0.3.0 replaces per-skin consent dialogs with one origin-scoped user decision covering third-party skins and functional apps. Without consent only the fixed official Day, Night and ILLUSIA skins are available; bundled KAAK and Classic also require consent. The host skin switcher owns the final authorization item. Packages must not duplicate or bypass it. Revocation must cancel pending activation, remove third-party CSS/components and stop workers. Continue enforcing manifest permissions, credential redaction, trusted action validation and package digests internally; one-time consent does not extend the public API. See the current guide for release compatibility. diff --git a/docs/PLUGIN_DEVELOPMENT.md b/docs/PLUGIN_DEVELOPMENT.md index 49111a7..aa0defe 100644 --- a/docs/PLUGIN_DEVELOPMENT.md +++ b/docs/PLUGIN_DEVELOPMENT.md @@ -151,4 +151,4 @@ export default async function activate({ dataDir, config, publicConfig, events, ## 实例级用户授权 -首次访问时,宿主统一征求第三方皮肤与功能应用的使用授权;决定按浏览器源保存,不迁移旧的逐皮肤授权。拒绝或未选择时,只显示日间、夜间、ILLUSIA 三款官方皮肤,KAAK 和功能应用入口均隐藏。皮肤菜单最后的“授权”可随时更改。撤回会关闭 iframe 并撤销当前打开操作/应用会话,不停止管理员启用的全实例后台服务。应用不得以入口以外的方式绕过宿主授权,也无需重复询问同一份宿主上下文授权;相机、麦克风等浏览器原生许可仍由浏览器处理。 +首次访问时,宿主统一征求第三方皮肤与功能应用的使用授权;决定按浏览器源保存,不迁移旧的逐皮肤授权。拒绝或未选择时,只显示日间、夜间、ILLUSIA 三款官方皮肤,KAAK、Classic 和功能应用入口均隐藏。皮肤菜单最后的“授权”可随时更改。撤回会关闭 iframe 并撤销当前打开操作/应用会话,不停止管理员启用的全实例后台服务。应用不得以入口以外的方式绕过宿主授权,也无需重复询问同一份宿主上下文授权;相机、麦克风等浏览器原生许可仍由浏览器处理。 diff --git a/docs/README.de.md b/docs/README.de.md index 5067250..0c3c2b8 100644 --- a/docs/README.de.md +++ b/docs/README.de.md @@ -39,7 +39,7 @@ Willkommensseite und Sprachbereich direkt ausprobieren. Netzwerk, Auslastung und | Bildschirm & Audio | Bildschirmfreigabe zwischen Browsern und unterstützten nativen TeamSpeak-6-Clients mit Qualitäts-, Bitraten- und Statistikoptionen; Fenster-/Tab-Audio auf dem Desktop. | | Identität & Verbindungen | Gespeicherte Identitäten, TS3-Identitätsimport/-export, Favoriten und Verlauf, SRV-/Nickname-Auflösung, IPv4/IPv6 und Einladungen. | | Instanzverwaltung | Feste oder offene Ziele, Zugriffsregeln, Einladungen, Sitzungen, Logs, Diagnosen, Backups und optionale TeamSpeak-Verwaltung. | -| Skins & Oberfläche | Tag, Nacht, ILLUSIA und KAAK, `.wskin`-Pakete über GitHub, fünf Sprachen und responsive Ansichten. | +| Skins & Oberfläche | Tag, Nacht, ILLUSIA, KAAK und Classic, `.wskin`-Pakete über GitHub, fünf Sprachen und responsive Ansichten. | | Verteilte Sprache | Der Browser verbindet sich direkt mit dem gewählten Relay-Sprach-Gateway; die URL der Eingangsinstanz bleibt erhalten. | | Bereitstellung | Docker amd64/arm64, Serverpakete für Windows x64 und Linux x64/ARM64 sowie Android-Vorschau-APKs. | diff --git a/docs/README.en.md b/docs/README.en.md index a1a342f..a967577 100644 --- a/docs/README.en.md +++ b/docs/README.en.md @@ -39,7 +39,7 @@ Try the welcome page and voice workspace. Network conditions, load and availabil | Screen & audio sharing | Screen sharing between browsers and supported native TeamSpeak 6 clients, with quality, bitrate and statistics controls; desktop window or tab audio sharing. | | Identity & connections | Remembered identities, TS3 identity import/export, favorites and history, SRV and Nickname resolution, IPv4/IPv6 and invitation links. | | Instance administration | Fixed or open targets, access policy, invitations, sessions, logs, diagnostics, backups and optional TeamSpeak management connections. | -| Skins & interface | Day, Night, ILLUSIA and KAAK, plus GitHub distribution of `.wskin` packages, five interface languages and responsive layouts. | +| Skins & interface | Day, Night, ILLUSIA, KAAK and Classic, plus GitHub distribution of `.wskin` packages, five interface languages and responsive layouts. | | Distributed voice | Browsers connect directly to the selected relay voice gateway while the page stays on the ingress instance URL. | | Deployment | Docker amd64/arm64, Windows x64 and Linux x64/ARM64 server packages, plus Android preview APKs. | diff --git a/docs/README.ja.md b/docs/README.ja.md index 52dea27..e49bdc0 100644 --- a/docs/README.ja.md +++ b/docs/README.ja.md @@ -39,7 +39,7 @@ WebSpeak はセルフホスト型の TeamSpeak 3 / TeamSpeak 6 ブラウザー | 画面と音声の共有 | ブラウザー間および対応する TeamSpeak 6 クライアントとの画面共有。品質、ビットレート、統計を設定でき、デスクトップではウィンドウやタブの音声も共有可能。 | | ID と接続 | ID 保持、TS3 ID インポート・エクスポート、お気に入りと履歴、SRV・Nickname 名前解決、IPv4/IPv6、招待リンク。 | | インスタンス管理 | 固定・公開接続先、アクセス方針、招待、セッション、ログ、診断、バックアップ、任意の TeamSpeak 管理接続。 | -| スキンと画面 | 昼・夜・ILLUSIA・KAAK、GitHub 経由の `.wskin` 配布、5 言語、レスポンシブ表示。 | +| スキンと画面 | 昼・夜・ILLUSIA・KAAK・Classic、GitHub 経由の `.wskin` 配布、5 言語、レスポンシブ表示。 | | 分散音声 | ブラウザーが選択した中継の音声ゲートウェイに直接接続し、ページの URL は入口インスタンスのまま維持。 | | デプロイ方法 | Docker amd64/arm64、Windows x64・Linux x64/ARM64 サーバーパッケージ、Android プレビュー APK。 | diff --git a/docs/README.ru.md b/docs/README.ru.md index 8fb2f3c..982c33c 100644 --- a/docs/README.ru.md +++ b/docs/README.ru.md @@ -39,7 +39,7 @@ WebSpeak — самостоятельно размещаемый браузер | Экран и аудио | Обмен экраном между браузерами и поддерживаемыми нативными клиентами TeamSpeak 6, настройки качества, битрейта и статистика; звук окна или вкладки на компьютере. | | Идентичность и подключения | Сохранение идентичности, импорт/экспорт TS3, избранное и история, разрешение SRV и Nickname, IPv4/IPv6 и приглашения. | | Управление экземпляром | Фиксированные или открытые цели, доступ, приглашения, сессии, журналы, диагностика, резервные копии и необязательное управление TeamSpeak. | -| Скины и интерфейс | Дневная, ночная, ILLUSIA и KAAK, пакеты `.wskin` через GitHub, пять языков и адаптивная вёрстка. | +| Скины и интерфейс | Дневная, ночная, ILLUSIA, KAAK и Classic, пакеты `.wskin` через GitHub, пять языков и адаптивная вёрстка. | | Распределённый голос | Браузер подключается напрямую к выбранному голосовому ретранслятору, сохраняя URL входного экземпляра. | | Развёртывание | Docker amd64/arm64, серверные пакеты Windows x64 и Linux x64/ARM64, а также предварительные Android APK. | diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md index 9bd8f5c..4513975 100644 --- a/docs/README.zh-CN.md +++ b/docs/README.zh-CN.md @@ -39,7 +39,7 @@ WebSpeak 是可自行部署的 TeamSpeak 3 / TeamSpeak 6 网页客户端与语 | 屏幕与音频共享 | 浏览器之间及与受支持的 TeamSpeak 6 原生客户端共享屏幕;提供采集质量、码率和统计面板,桌面端还可分享窗口或标签页音频。 | | 身份与连接 | 身份保持、TS3 身份导入/导出、收藏和历史连接、SRV 与 Nickname 地址解析、IPv4/IPv6 及邀请链接。 | | 实例管理 | 固定或公开目标、访问策略、邀请、会话、日志、诊断、备份及可选的 TeamSpeak 管理连接。 | -| 皮肤与界面 | 日间、夜间、ILLUSIA 和 KAAK;可通过 GitHub 皮肤商店管理 `.wskin` 包,支持五种语言和响应式布局。 | +| 皮肤与界面 | 日间、夜间、ILLUSIA、KAAK 和 Classic;可通过 GitHub 皮肤商店管理 `.wskin` 包,支持五种语言和响应式布局。 | | 分布式语音 | 配置中继后,浏览器直接连接所选中继的语音网关,网页地址仍保留在入口实例。 | | 部署方式 | Docker amd64/arm64、Windows x64 与 Linux x64/ARM64 发布包;另有 Android 预览 APK。 | diff --git a/docs/SKIN_DEVELOPMENT.md b/docs/SKIN_DEVELOPMENT.md index 60299ce..267bdf8 100644 --- a/docs/SKIN_DEVELOPMENT.md +++ b/docs/SKIN_DEVELOPMENT.md @@ -30,7 +30,7 @@ v3 保留安全的标准元素和属性白名单;组件可通过完整页面 s ## 使用与发布 -管理员在 `/admin/skins` 查看三款随 WebSpeak 提供的内置皮肤,并可导入、替换、启用/停用或删除实例自定义皮肤;还可指定访客首次访问时使用的默认皮肤。默认日间、默认夜间和 ILLUSIA 风为受保护内置项,不可替换、停用或移除。访客手动选择的皮肤保存在该浏览器,后续实例默认值变更不会覆盖该明确选择;仅自动套用过旧默认值的浏览器会采用最新实例默认值。皮肤包会缓存在浏览器本地;页面启动时会查询实例目录,目录可用且版本更新时拉取新包。若网络不可用,已缓存的版本仍可使用。 +管理员在 `/admin/skins` 查看随 WebSpeak 提供的内置皮肤(默认日间、默认夜间、ILLUSIA 风、KAAK 和 Classic),并可导入、替换、启用/停用或删除实例自定义皮肤;还可指定访客首次访问时使用的默认皮肤。这些随包内置皮肤均为受保护内置项,不可替换、停用或移除。访客手动选择的皮肤保存在该浏览器,后续实例默认值变更不会覆盖该明确选择;仅自动套用过旧默认值的浏览器会采用最新实例默认值。皮肤包会缓存在浏览器本地;页面启动时会查询实例目录,目录可用且版本更新时拉取新包。若网络不可用,已缓存的版本仍可使用。 选择器提供默认日间、默认夜间、内置 ILLUSIA 风和已启用的实例皮肤;没有“跟随系统”选项。停用的实例皮肤不向访客展示,也不能从服务端下载;若它是当前默认皮肤,系统会安全回退到默认日间。管理员设置的默认值只影响未手动选择皮肤的访客。自定义皮肤是独立的外观选择,不继承之前的日间或夜间模式;皮肤未覆盖的部件回退到浅色基础外观,避免一套组件混入另一套模式。自定义皮肤可自行声明 `color-scheme` 并定义深色外观;切换为日间或夜间时,会停用当前自定义包。文档级 `data-theme` 仍由 WebSpeak 保留给管理后台使用。 @@ -129,7 +129,7 @@ plugins//assets/ # v4 插件专属的本地图片或字体素材 | 字段 | 规则 | | --- | --- | | `schemaVersion` | 当前必须为数字 `1`。 | -| `id` | 必需,最多 80 个字符;只允许小写字母、数字、点和连字符;不能以 `builtin.` 开头,也不能使用受保护 ID `builtin.light`、`builtin.dark` 或 `community.illusia-voice`。发布后不要更改。 | +| `id` | 必需,最多 80 个字符;只允许小写字母、数字、点和连字符;不能以 `builtin.` 开头,也不能使用受保护 ID `builtin.light`、`builtin.dark`、`community.illusia-voice`、`community.kaak-voice` 或 `community.ts3-classic-console`。发布后不要更改。 | | `name`、`author`、`license` | 必需,各最多 80 个字符。资源授权由作者负责确认。 | | `version`、`minAppVersion` | 必需,使用语义化版本号,例如 `1.2.0`。 | | `entry` | 必需,包内 CSS 文件路径,最多 120 个字符。 | @@ -890,6 +890,6 @@ CSS 被限定在 `.ws-skin-root` 内,管理员页面不会继承皮肤。删 用户首次访问公开页面时,由宿主统一询问是否允许当前实例的第三方皮肤和功能插件使用已公开的频道/成员/聊天等上下文;不包含连接凭据。不再逐个皮肤弹窗确认。选择按浏览器源(协议、域名、端口)保存,旧版本的逐包授权记录不会自动替代这次选择。管理员对应用的审核与信任仍单独保留。 -未作选择或拒绝时,仅可使用固定三款官方皮肤:`builtin.light`、`builtin.dark`、`community.illusia-voice`;KAAK 即使随包分发也不在免授权名单中,其他第三方皮肤及功能插件入口隐藏。缓存、直接激活、进行中的加载也必须经过同一授权检查,不能仅过滤菜单。皮肤菜单末尾的“授权”可以随时修改选择。撤回时立即退回内置皮肤、停止第三方皮肤组件/worker,并关闭与撤销当前功能应用会话;服务端由管理员启用的后台应用不因此停机。 +未作选择或拒绝时,仅可使用固定三款官方皮肤:`builtin.light`、`builtin.dark`、`community.illusia-voice`;KAAK 和 Classic 即使随包分发也不在免授权名单中,其他第三方皮肤及功能插件入口隐藏。缓存、直接激活、进行中的加载也必须经过同一授权检查,不能仅过滤菜单。皮肤菜单末尾的“授权”可以随时修改选择。撤回时立即退回内置皮肤、停止第三方皮肤组件/worker,并关闭与撤销当前功能应用会话;服务端由管理员启用的后台应用不因此停机。 清单权限、数据投影、宿主动作校验和 Wasm 文件摘要校验继续保留,统一授权不是扩大皮肤 API 的理由。作者不应再自行增加重复授权弹窗。原文中的逐包授权记录与 SHA-256 绑定描述指内部校验记录,其创建必须在实例授权允许之后(或固定官方皮肤之内)。 diff --git a/docs/examples/ts3-classic-console.wskin b/docs/examples/ts3-classic-console.wskin new file mode 100644 index 0000000000000000000000000000000000000000..68a7be9b98943fb87f6e69458eac22a5d988ad44 GIT binary patch literal 25237 zcmV(+K;6GkO9KQH0000809t8;T|}%aL3aTF0FeR!01W^D0BvDzX=Y_}bS`RhZ*EOe z!A|Qi5WM#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$Da`sGUTTNL)oz-{qaM@Re?F;|FlM@pc%Wr}YFWsj&)O&GVV z8cb<59kU=VP%151VS_3_GRJ$9KrD3HYgJ=$)E3O9?tlY;sC; zGC8eXY8!OQ&RM83pAJYWUnvWw!DvY-1qA(tfqM&ev#y@xLt(4g zb%eapsuU5v`m{me@6iRFoF;6aTD}i>D+JGlo@n`nStevTUp(b`oTZC9)E@o^7FYj{ zL!^Gi9zS$xE`z-!@7lyhr}=&W?nu150tiAp>>u>cm^ON*^{Ig-w`jx87B0c$uVAOD@UJ5I{kDmM!mD# z018db>-?^Q%-6fb=EddDtZL3EZ=@d=RiQYzIw?OXK1G{M(ko55Dfl`?ugk>7evsMt zbFdUeVHD!+)DMIpls&kv;IQs&DAvroix!g!oZ;$awQvv!Ho*1gfpb>dV6V*b!5#*! z+{yRs3?4`y1f?Kbm^@v=zeSduKPjs9-MhxAryCHw{h@wD5;HC`7Th=H)^!evBe^v&<2WHW>_2L?d{ z`v2Eg_#W>6)BaIy;os7Kga7}lEBv0g|62y&->QFy)c>pUmHuad{ol%eZvg(Qgi-sC m@*mrQe~bUUrvDW?8~kI16=c96{__$1`yu`who0eo-u?%)gto^3 literal 0 HcmV?d00001 diff --git a/docs/examples/ts3-classic-console/chrome.json b/docs/examples/ts3-classic-console/chrome.json new file mode 100644 index 0000000..64f66fc --- /dev/null +++ b/docs/examples/ts3-classic-console/chrome.json @@ -0,0 +1,16 @@ +{ + "schemaVersion": 1, + "visibleParts": [], + "hiddenParts": ["host.plugins.launcher"], + "slots": { + "host.recovery": { + "mode": "toolbar", + "appearance": "icon", + "anchor": [ + "skin.home.ts3-home-console.part-ts-recovery-slot", + "skin.voice.ts3-voice-console.part-ts-recovery-slot" + ], + "align": "end" + } + } +} diff --git a/docs/examples/ts3-classic-console/components.json b/docs/examples/ts3-classic-console/components.json new file mode 100644 index 0000000..262e88e --- /dev/null +++ b/docs/examples/ts3-classic-console/components.json @@ -0,0 +1,908 @@ +{ + "schemaVersion": 3, + "components": [ + { + "id": "ts3-home-console", + "name": "TS3 Legacy connection console", + "page": "home", + "mode": "surface", + "accessibleName": "WebSpeak connection console", + "permissions": [ + "ui.surface.replace", + "session.status.read", + "voice.connect" + ], + "actions": {}, + "root": { + "tag": "main", + "part": "ts-home", + "children": [ + { + "tag": "div", + "className": "ts-home", + "children": [ + { + "tag": "div", + "part": "ts-toolbar", + "className": "ts-toolbar", + "attributes": { + "role": "toolbar", + "aria-label": "{{skin.messages.toolbar.homeNote}}" + }, + "children": [ + { + "widget": "home.social-links", + "part": "ts-tool-admin", + "className": "ts-tool-admin", + "options": { "communityLinks": false } + }, + { + "tag": "span", + "className": "ts-toolbar-brand", + "children": [ + { + "tag": "span", + "className": "ts-toolbar-mark", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "span", + "className": "ts-toolbar-note", + "children": [ + { + "text": "{{skin.messages.toolbar.homeNote}}" + } + ] + } + ] + }, + { + "tag": "span", + "className": "ts-toolbar-spacer", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "span", + "part": "ts-recovery-slot", + "className": "ts-recovery-slot", + "attributes": { "aria-hidden": "true" } + }, + { + "widget": "app.language-switcher", + "part": "ts-language", + "className": "ts-language" + }, + { + "widget": "app.skin-switcher", + "part": "ts-skin", + "className": "ts-skin" + }, + { + "tag": "span", + "className": "ts-toolbar-edition", + "children": [ + { + "text": "{{skin.messages.shell.edition}}" + } + ] + } + ] + }, + { + "tag": "div", + "part": "ts-home-body", + "className": "ts-home-body", + "children": [ + { + "tag": "section", + "part": "ts-home-main", + "className": "ts-home-main", + "attributes": { + "aria-label": "{{skin.messages.home.windowTitle}}" + }, + "children": [ + { + "tag": "div", + "className": "ts-connect-window", + "children": [ + { + "tag": "div", + "className": "ts-window-titlebar", + "children": [ + { + "tag": "span", + "className": "ts-window-icon", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "span", + "className": "ts-window-title", + "children": [ + { + "text": "{{skin.messages.home.windowTitle}}" + } + ] + }, + { + "tag": "span", + "className": "ts-window-edition", + "children": [ + { + "text": "{{skin.messages.shell.edition}}" + } + ] + } + ] + }, + { + "tag": "div", + "className": "ts-window-body", + "children": [ + { + "tag": "div", + "part": "ts-home-reconnect", + "className": "ts-conn-strip ts-home-reconnect", + "children": [ + { + "widget": "voice.connection-status", + "part": "ts-home-connection-status", + "className": "ts-home-connection-status" + } + ] + }, + { + "tag": "p", + "className": "ts-home-lead", + "children": [ + { + "text": "{{skin.messages.home.lead}}" + } + ] + }, + { + "tag": "fieldset", + "className": "ts-group-box", + "children": [ + { + "tag": "legend", + "className": "ts-group-legend", + "children": [ + { + "text": "{{skin.messages.home.panelLabel}}" + } + ] + }, + { + "widget": "home.connection-form", + "part": "ts-connection-form", + "className": "ts-connection-form" + }, + { + "widget": "home.identity-provider", + "part": "ts-home-identity-provider", + "className": "ts-home-identity-provider", + "options": { + "identityProviderId": "myts", + "identityProviderLabel": "myts" + } + } + ] + }, + { + "widget": "home.connection-status", + "part": "ts-home-connection", + "className": "ts-home-connection" + }, + { + "widget": "home.server-announcement", + "part": "ts-home-announcement", + "className": "ts-home-announcement" + }, + { + "widget": "home.visitor-count", + "part": "ts-home-visitors", + "className": "ts-home-visitors" + }, + { + "tag": "p", + "className": "ts-home-notice", + "children": [ + { + "text": "{{skin.messages.home.notice}}" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "tag": "footer", + "part": "ts-statusbar", + "className": "ts-statusbar", + "children": [ + { + "tag": "span", + "className": "ts-status-led", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "span", + "className": "ts-status-text", + "children": [ + { + "text": "{{skin.messages.home.footer}}" + } + ] + }, + { + "tag": "span", + "className": "ts-status-spacer", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "span", + "className": "ts-status-edition", + "children": [ + { + "text": "{{skin.messages.footer.skin}}" + } + ] + } + ] + } + ] + } + ] + } + }, + { + "id": "ts3-voice-console", + "name": "TS3 Legacy voice workspace", + "page": "voice", + "mode": "surface", + "accessibleName": "WebSpeak voice workspace", + "permissions": [ + "ui.surface.replace", + "session.status.read", + "servers.quickList.read", + "servers.quickList.switch", + "session.channels.read", + "session.members.read", + "session.memberAvatars.read", + "session.channel.join", + "chat.channel.read", + "chat.channel.send", + "audio.status.read", + "audio.microphone.control", + "audio.output.control", + "voice.disconnect", + "voice.screenShare.read", + "voice.screenShare.control", + "voice.whisper.status.read", + "voice.whisper.control", + "voice.connect", + "audio.settings.open" + ], + "actions": { + "open-audio-settings": { + "type": "audio.openSettings", + "args": {} + }, + "toggle-noise-suppression": { + "type": "audio.toggleNoiseSuppression", + "args": {} + }, + "toggle-accompaniment": { + "type": "audio.toggleAccompaniment", + "args": {} + } + }, + "root": { + "tag": "main", + "part": "ts-voice", + "children": [ + { + "tag": "div", + "className": "ts-app", + "children": [ + { + "tag": "div", + "part": "ts-toolbar", + "className": "ts-toolbar", + "attributes": { + "role": "toolbar", + "aria-label": "{{skin.messages.toolbar.voiceLabel}}" + }, + "children": [ + { + "tag": "div", + "className": "ts-toolgroup", + "children": [ + { + "widget": "voice.server-switcher", + "part": "ts-tool-server", + "className": "ts-tool-server" + }, + { + "tag": "span", + "className": "ts-tool-sep", + "attributes": { + "aria-hidden": "true" + } + }, + { + "widget": "voice.connection-controls", + "part": "ts-tool-connection", + "className": "ts-tool-connection" + }, + { + "tag": "span", + "className": "ts-tool-sep", + "attributes": { + "aria-hidden": "true" + } + }, + { + "widget": "voice.audio-controls", + "part": "ts-tool-audio", + "className": "ts-tool-audio" + }, + { + "tag": "div", + "part": "ts-tool-mobile-audio", + "className": "ts-tool-mobile-audio", + "attributes": { + "role": "group", + "aria-label": "{{skin.messages.toolbar.mobileAudio}}" + }, + "children": [ + { + "tag": "button", + "part": "ts-tool-noise", + "className": "ts-mtool ts-mtool-noise", + "attributes": { + "type": "button", + "aria-label": "{{skin.messages.toolbar.noise}}", + "title": "{{skin.messages.toolbar.noise}}", + "aria-pressed": "{{audio.status.noiseSuppressionEnabled}}" + }, + "events": { + "click": "toggle-noise-suppression" + }, + "children": [ + { + "tag": "span", + "className": "ts-mtool-glyph", + "attributes": { + "aria-hidden": "true" + } + } + ] + }, + { + "tag": "button", + "part": "ts-tool-accompaniment", + "className": "ts-mtool ts-mtool-accompaniment", + "attributes": { + "type": "button", + "aria-label": "{{skin.messages.toolbar.accompaniment}}", + "title": "{{skin.messages.toolbar.accompaniment}}", + "aria-pressed": "{{audio.status.accompanimentActive}}" + }, + "events": { + "click": "toggle-accompaniment" + }, + "children": [ + { + "tag": "span", + "className": "ts-mtool-glyph", + "attributes": { + "aria-hidden": "true" + } + } + ] + }, + { + "tag": "button", + "part": "ts-tool-audio-settings", + "className": "ts-mtool ts-mtool-settings", + "attributes": { + "type": "button", + "aria-label": "{{skin.messages.toolbar.audioSettings}}", + "title": "{{skin.messages.toolbar.audioSettings}}" + }, + "events": { + "click": "open-audio-settings" + }, + "children": [ + { + "tag": "span", + "className": "ts-mtool-glyph", + "attributes": { + "aria-hidden": "true" + } + } + ] + } + ] + }, + { + "tag": "span", + "className": "ts-tool-sep", + "attributes": { + "aria-hidden": "true" + } + }, + { + "widget": "voice.screen-share-start", + "part": "ts-tool-share", + "className": "ts-tool-share" + }, + { + "widget": "voice.whisper-controls", + "part": "ts-tool-whisper", + "className": "ts-tool-whisper" + } + ] + }, + { + "tag": "span", + "className": "ts-toolbar-spacer", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "div", + "className": "ts-toolgroup ts-toolgroup-end", + "children": [ + { + "tag": "span", + "part": "ts-recovery-slot", + "className": "ts-recovery-slot", + "attributes": { "aria-hidden": "true" } + }, + { + "widget": "home.social-links", + "part": "ts-tool-admin", + "className": "ts-tool-admin", + "options": { "communityLinks": false } + }, + { + "widget": "app.language-switcher", + "part": "ts-language", + "className": "ts-language" + }, + { + "widget": "app.skin-switcher", + "part": "ts-skin", + "className": "ts-skin" + }, + { + "tag": "span", + "className": "ts-toolbar-edition", + "children": [ + { + "text": "{{skin.messages.shell.edition}}" + } + ] + } + ] + } + ] + }, + { + "tag": "div", + "part": "ts-conn-strip", + "className": "ts-conn-strip", + "children": [ + { + "widget": "voice.connection-status", + "part": "ts-connection-status", + "className": "ts-connection-status" + } + ] + }, + { + "tag": "div", + "part": "ts-workspace", + "className": "ts-workspace", + "children": [ + { + "tag": "aside", + "part": "ts-tree", + "className": "ts-tree", + "attributes": { + "aria-label": "{{skin.messages.tree.heading}}" + }, + "children": [ + { + "tag": "div", + "className": "ts-pane-caption", + "attributes": { + "aria-hidden": "true" + }, + "children": [ + { + "text": "{{skin.messages.tree.heading}}" + } + ] + }, + { + "widget": "voice.server-header", + "part": "ts-server-header", + "className": "ts-server-header" + }, + { + "widget": "voice.channel-tree", + "part": "ts-channel-tree", + "className": "ts-channel-tree", + "options": { + "layout": "default", + "memberActions": true, + "memberDragDrop": true + } + } + ] + }, + { + "tag": "div", + "part": "ts-right", + "className": "ts-right", + "children": [ + { + "tag": "section", + "part": "ts-info", + "className": "ts-info", + "attributes": { + "aria-label": "{{skin.messages.info.heading}}" + }, + "children": [ + { + "tag": "div", + "className": "ts-info-heading", + "children": [ + { + "tag": "span", + "className": "ts-info-icon", + "attributes": { + "aria-hidden": "true" + } + }, + { + "tag": "h1", + "className": "ts-info-title", + "children": [ + { + "text": "{{skin.messages.info.heading}}" + } + ] + } + ] + }, + { + "tag": "div", + "className": "ts-info-facts", + "children": [ + { + "tag": "div", + "className": "ts-fact-row", + "children": [ + { + "tag": "span", + "className": "ts-fact-label", + "children": [ + { + "text": "{{skin.messages.info.nickname}}" + } + ] + }, + { + "tag": "span", + "className": "ts-fact-value", + "children": [ + { + "text": "{{session.status.userName}}" + } + ] + } + ] + }, + { + "tag": "div", + "className": "ts-fact-row", + "children": [ + { + "tag": "span", + "className": "ts-fact-label", + "children": [ + { + "text": "{{skin.messages.info.channel}}" + } + ] + }, + { + "tag": "span", + "className": "ts-fact-value", + "children": [ + { + "text": "{{session.status.channelName}}" + } + ] + } + ] + }, + { + "tag": "div", + "className": "ts-fact-row", + "children": [ + { + "tag": "span", + "className": "ts-fact-label", + "children": [ + { + "text": "{{skin.messages.info.server}}" + } + ] + }, + { + "tag": "span", + "className": "ts-fact-value", + "children": [ + { + "text": "{{session.status.serverLabel}}" + } + ] + } + ] + }, + { + "tag": "div", + "className": "ts-fact-row", + "children": [ + { + "tag": "span", + "className": "ts-fact-label", + "children": [ + { + "text": "{{skin.messages.info.state}}" + } + ] + }, + { + "tag": "span", + "className": "ts-fact-value", + "children": [ + { + "text": "{{session.status.connectionState}}" + } + ] + } + ] + } + ] + }, + { + "tag": "div", + "part": "ts-info-voice", + "className": "ts-info-voice", + "children": [ + { + "widget": "voice.performance-panel", + "part": "ts-performance", + "className": "ts-performance", + "options": { + "screenShare": false + } + } + ] + }, + { + "widget": "voice.screen-share-player", + "part": "ts-screen-share", + "className": "ts-screen-share" + }, + { + "tag": "span", + "className": "ts-watermark", + "attributes": { + "aria-hidden": "true" + }, + "children": [ + { + "text": "{{skin.messages.watermark}}" + } + ] + } + ] + }, + { + "widget": "voice.server-banner", + "part": "ts-server-banner", + "className": "ts-server-banner" + }, + { + "tag": "section", + "part": "ts-log", + "className": "ts-log", + "attributes": { + "aria-label": "{{skin.messages.log.heading}}" + }, + "children": [ + { + "tag": "div", + "className": "ts-log-heading", + "children": [ + { + "tag": "span", + "className": "ts-log-title", + "children": [ + { + "text": "{{skin.messages.log.heading}}" + } + ] + }, + { + "tag": "small", + "className": "ts-log-notice", + "children": [ + { + "text": "{{skin.messages.log.notice}}" + } + ] + } + ] + }, + { + "widget": "voice.chat-panel", + "part": "ts-chat", + "className": "ts-chat" + } + ] + } + ] + } + ] + }, + { + "tag": "footer", + "part": "ts-statusbar", + "className": "ts-statusbar", + "children": [ + { + "tag": "span", + "className": "ts-status-led", + "attributes": { + "aria-hidden": "true", + "data-state": "{{session.status.connectionState}}" + } + }, + { + "tag": "span", + "className": "ts-status-text", + "children": [ + { + "tag": "span", + "children": [ + { + "text": "{{skin.messages.status.connected}}" + } + ] + }, + { + "tag": "span", + "className": "ts-status-name", + "children": [ + { + "text": "{{session.status.userName}}" + } + ] + }, + { + "tag": "span", + "children": [ + { + "text": "{{skin.messages.status.on}}" + } + ] + }, + { + "tag": "span", + "className": "ts-status-server", + "children": [ + { + "text": "{{session.status.serverLabel}}" + } + ] + } + ], + "when": { + "path": "session.status.connected", + "equals": true + } + }, + { + "tag": "span", + "className": "ts-status-text ts-status-offline", + "when": { + "path": "session.status.connected", + "equals": false + }, + "children": [ + { + "tag": "span", + "className": "ts-status-state", + "children": [ + { + "text": "{{session.status.connectionState}}" + } + ] + }, + { + "tag": "span", + "className": "ts-status-sep", + "attributes": { + "aria-hidden": "true" + }, + "children": [ + { + "text": "·" + } + ] + }, + { + "tag": "span", + "className": "ts-status-server", + "children": [ + { + "text": "{{session.status.serverLabel}}" + } + ] + } + ] + }, + { + "tag": "span", + "className": "ts-status-spacer", + "attributes": { + "aria-hidden": "true" + } + }, + { + "widget": "voice.disconnect-control", + "part": "ts-disconnect", + "className": "ts-disconnect" + }, + { + "tag": "span", + "className": "ts-status-edition", + "children": [ + { + "text": "{{skin.messages.footer.skin}}" + } + ] + } + ] + } + ] + } + ] + } + } + ] +} diff --git a/docs/examples/ts3-classic-console/content.json b/docs/examples/ts3-classic-console/content.json new file mode 100644 index 0000000..73c9df7 --- /dev/null +++ b/docs/examples/ts3-classic-console/content.json @@ -0,0 +1,200 @@ +{ + "defaultLocale": "en", + "locales": { + "en": { + "home": { + "brandName": "WebSpeak", + "title": "Connect to a", + "titleAccent": "voice server", + "description": "Open a TeamSpeak channel from your browser. Your gateway manages the connection and your identity.", + "welcomeTitle": "Connection console", + "welcomeDescription": "Choose a server, set your nickname, and join the room." + }, + "messages": { + "shell.brand": "WebSpeak", + "shell.edition": "Classic", + "toolbar.homeNote": "Connection console", + "toolbar.voiceLabel": "Voice controls", + "tree.heading": "CHANNELS", + "info.heading": "SERVER INFORMATION", + "info.nickname": "Nickname", + "nicknamePlaceholder": "e.g. Demo User", + "info.channel": "Channel", + "info.server": "Server", + "info.state": "State", + "watermark": "WebSpeak", + "log.heading": "SERVER LOG", + "log.notice": "Conversation and session events appear below.", + "status.connected": "Connected as", + "status.on": "on", + "footer.status": "Audio controls remain available in every layout", + "footer.skin": "Classic", + "home.windowTitle": "Connect to Server", + "home.lead": "Enter a server address and a nickname to join a voice channel. Your gateway manages the connection and your identity.", + "home.panelLabel": "SERVER CONNECTION", + "home.notice": "Connection details and identity are handled by WebSpeak.", + "home.footer": "WebSpeak gateway · Classic skin · Not affiliated with TeamSpeak", + "toolbar.audioSettings": "Audio settings", + "toolbar.noise": "Noise suppression", + "toolbar.accompaniment": "Share accompaniment", + "toolbar.mobileAudio": "Phone audio tools" + } + }, + "zh-CN": { + "home": { + "brandName": "WebSpeak", + "title": "连接到", + "titleAccent": "语音服务器", + "description": "在浏览器中打开 TeamSpeak 频道。网关负责连接与身份管理。", + "welcomeTitle": "连接控制台", + "welcomeDescription": "选择服务器、设置昵称,然后加入房间。" + }, + "messages": { + "shell.brand": "WebSpeak", + "shell.edition": "Classic", + "toolbar.homeNote": "连接控制台", + "toolbar.voiceLabel": "语音控制", + "tree.heading": "频道", + "info.heading": "服务器信息", + "info.nickname": "昵称", + "nicknamePlaceholder": "例如:Demo User", + "info.channel": "频道", + "info.server": "服务器", + "info.state": "状态", + "watermark": "WebSpeak", + "log.heading": "服务器日志", + "log.notice": "会话与连接事件显示在下方的聊天面板中。", + "status.connected": "已连接为", + "status.on": "于", + "footer.status": "任何布局下音频控制均可用", + "footer.skin": "Classic", + "home.windowTitle": "连接到服务器", + "home.lead": "输入服务器地址与昵称,加入语音频道。网关负责连接与身份管理。", + "home.panelLabel": "服务器连接", + "home.notice": "连接信息与身份由 WebSpeak 管理。", + "home.footer": "WebSpeak 网关 · Classic 皮肤 · 与 TeamSpeak 官方无关联", + "toolbar.audioSettings": "音频设置", + "toolbar.noise": "降噪", + "toolbar.accompaniment": "共享伴奏", + "toolbar.mobileAudio": "手机音频工具" + } + }, + "de": { + "home": { + "brandName": "WebSpeak", + "title": "Mit einem", + "titleAccent": "Sprachserver verbinden", + "description": "Öffne einen TeamSpeak-Kanal im Browser. Dein Gateway verwaltet Verbindung und Identität.", + "welcomeTitle": "Verbindungskonsole", + "welcomeDescription": "Server wählen, Spitznamen festlegen und dem Raum beitreten." + }, + "messages": { + "shell.brand": "WebSpeak", + "shell.edition": "Classic", + "toolbar.homeNote": "Verbindungskonsole", + "toolbar.voiceLabel": "Sprachsteuerung", + "tree.heading": "KANÄLE", + "info.heading": "SERVERINFORMATIONEN", + "info.nickname": "Spitzname", + "nicknamePlaceholder": "z. B. Demo User", + "info.channel": "Kanal", + "info.server": "Server", + "info.state": "Status", + "watermark": "WebSpeak", + "log.heading": "SERVERPROTOKOLL", + "log.notice": "Gesprächs- und Sitzungsereignisse erscheinen unten im Chat.", + "status.connected": "Verbunden als", + "status.on": "auf", + "footer.status": "Audiosteuerung in jedem Layout erreichbar", + "footer.skin": "Classic", + "home.windowTitle": "Mit Server verbinden", + "home.lead": "Serveradresse und Spitznamen eingeben, um einem Sprachkanal beizutreten. Das Gateway verwaltet Verbindung und Identität.", + "home.panelLabel": "SERVERVERBINDUNG", + "home.notice": "Verbindungsdaten und Identität werden von WebSpeak verwaltet.", + "home.footer": "WebSpeak Gateway · Design Classic · Nicht mit TeamSpeak verbunden", + "toolbar.audioSettings": "Audioeinstellungen", + "toolbar.noise": "Rauschunterdrückung", + "toolbar.accompaniment": "Begleitung teilen", + "toolbar.mobileAudio": "Audio-Werkzeuge" + } + }, + "ru": { + "home": { + "brandName": "WebSpeak", + "title": "Подключение к", + "titleAccent": "голосовому серверу", + "description": "Откройте канал TeamSpeak в браузере. Шлюз управляет соединением и вашей учётной записью.", + "welcomeTitle": "Консоль подключения", + "welcomeDescription": "Выберите сервер, укажите имя и войдите в комнату." + }, + "messages": { + "shell.brand": "WebSpeak", + "shell.edition": "Classic", + "toolbar.homeNote": "Консоль подключения", + "toolbar.voiceLabel": "Управление звуком", + "tree.heading": "КАНАЛЫ", + "info.heading": "СВЕДЕНИЯ О СЕРВЕРЕ", + "info.nickname": "Имя", + "nicknamePlaceholder": "например, Demo User", + "info.channel": "Канал", + "info.server": "Сервер", + "info.state": "Состояние", + "watermark": "WebSpeak", + "log.heading": "ЖУРНАЛ СЕРВЕРА", + "log.notice": "События беседы и сессии отображаются ниже в чате.", + "status.connected": "Подключён как", + "status.on": "на", + "footer.status": "Управление звуком доступно в любой раскладке", + "footer.skin": "Classic", + "home.windowTitle": "Подключение к серверу", + "home.lead": "Введите адрес сервера и имя, чтобы войти в голосовой канал. Шлюз управляет соединением и учётной записью.", + "home.panelLabel": "ПОДКЛЮЧЕНИЕ К СЕРВЕРУ", + "home.notice": "Данные подключения и удостоверение обрабатывает WebSpeak.", + "home.footer": "Шлюз WebSpeak · Оформление Classic · Не связано с TeamSpeak", + "toolbar.audioSettings": "Настройки звука", + "toolbar.noise": "Шумоподавление", + "toolbar.accompaniment": "Поделиться аккомпанементом", + "toolbar.mobileAudio": "Аудиоинструменты" + } + }, + "ja-JP": { + "home": { + "brandName": "WebSpeak", + "title": "音声サーバーに", + "titleAccent": "接続", + "description": "ブラウザーから TeamSpeak チャンネルを開きます。接続と認証はゲートウェイが管理します。", + "welcomeTitle": "接続コンソール", + "welcomeDescription": "サーバーを選び、名前を入力してルームに参加します。" + }, + "messages": { + "shell.brand": "WebSpeak", + "shell.edition": "Classic", + "toolbar.homeNote": "接続コンソール", + "toolbar.voiceLabel": "音声操作", + "tree.heading": "チャンネル", + "info.heading": "サーバー情報", + "info.nickname": "ニックネーム", + "nicknamePlaceholder": "例: Demo User", + "info.channel": "チャンネル", + "info.server": "サーバー", + "info.state": "状態", + "watermark": "WebSpeak", + "log.heading": "サーバーログ", + "log.notice": "会話とセッションのイベントは下のチャットに表示されます。", + "status.connected": "接続中:", + "status.on": "サーバー", + "footer.status": "どのレイアウトでも音声操作は利用できます", + "footer.skin": "Classic", + "home.windowTitle": "サーバーに接続", + "home.lead": "サーバーアドレスとニックネームを入力して音声チャンネルに参加します。接続と認証はゲートウェイが管理します。", + "home.panelLabel": "サーバー接続", + "home.notice": "接続情報と認証は WebSpeak が管理します。", + "home.footer": "WebSpeak ゲートウェイ · Classic スキン · TeamSpeak 公式とは無関係", + "toolbar.audioSettings": "オーディオ設定", + "toolbar.noise": "ノイズ抑制", + "toolbar.accompaniment": "伴奏を共有", + "toolbar.mobileAudio": "オーディオツール" + } + } + } +} diff --git a/docs/examples/ts3-classic-console/manifest.json b/docs/examples/ts3-classic-console/manifest.json new file mode 100644 index 0000000..5cbfc8f --- /dev/null +++ b/docs/examples/ts3-classic-console/manifest.json @@ -0,0 +1,15 @@ +{ + "schemaVersion": 3, + "packageType": "open-skin", + "id": "community.ts3-classic-console", + "name": "Classic", + "version": "4.1.16", + "author": "WebSpeak Community", + "license": "CC-BY-4.0", + "description": "A community visual homage to the classic TeamSpeak 3 light desktop client for both the connection page and the voice workspace: a classic group-box connect window, a compact icon toolbar, a full-height server tree with members, a SERVER INFORMATION facts pane and a bottom SERVER LOG with chat.", + "entry": "skin.css", + "components": "components.json", + "content": "content.json", + "chrome": "chrome.json", + "minAppVersion": "0.3.3" +} diff --git a/docs/examples/ts3-classic-console/skin.css b/docs/examples/ts3-classic-console/skin.css new file mode 100644 index 0000000..ef5a19f --- /dev/null +++ b/docs/examples/ts3-classic-console/skin.css @@ -0,0 +1,2327 @@ +/* TS3 Legacy Console — community visual homage to the classic TeamSpeak 3 + light desktop client. v3 open skin (schemaVersion 3). + + Layout and copy only; the host owns all business logic. Every selector is + anchored on :root (the skin root) or a public data-ws-part hook. Shell parts + are targeted through their authored className; trusted host widgets are + restyled through their stable data-ws-part hooks, scoped under a shell class + so the declaration outranks the host's own scoped stylesheet. No package + JavaScript runs and no SVG/raster assets ship: every glyph is drawn with CSS + gradients, borders and pseudo-elements. */ + +:root { + --skin-window: #ffffff; + --skin-face: #ececec; + --skin-face-deep: #e2e2e2; + --skin-face-light: #fafafa; + --skin-border: #c0c0c0; + --skin-border-strong: #8a8a8a; + --skin-border-soft: #dcdcdc; + --skin-text: #111111; + --skin-muted: #555555; + --skin-faint: #777777; + --skin-blue: #316ac5; + --skin-blue-deep: #0b3d91; + --skin-blue-soft: #dbe7f7; + --skin-blue-hover: #eaf2fd; + --skin-icon: #4c6f9c; + --skin-member: #3f6fb5; + --skin-member-self: #1f4f96; + --skin-talk: #1e9bff; + --skin-talk-glow: rgba(30, 155, 255, .75); + --skin-cyan: #008080; + --skin-green: #0a7a2f; + --skin-red: #a11b1b; + --skin-amber: #8a6d1f; + --skin-selected: #316ac5; + --skin-selected-text: #ffffff; + --skin-watermark: #bfd3ea; + --skin-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif; + --skin-mono: Consolas, "Courier New", ui-monospace, monospace; + --skin-recovery-accent: #4a7ab8; + --skin-recovery-background: #f6f6f6; + --skin-recovery-foreground: #1a1a1a; + /* #808080 keeps >=3:1 against the #f6f6f6 capsule background; #8f8f8f sat + just under the host's contrast floor and would fall back to the greenish + host default border instead of the Classic grey one. */ + --skin-recovery-border: #808080; + --skin-recovery-radius: 2px; + --skin-recovery-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif; + --skin-recovery-size: small; + /* 4.1.12: official Classic toolbar tokens for the host-owned recovery + buttons (mode: "toolbar", appearance: "icon"), aligned to the existing + microphone button. Every --skin-recovery-toolbar-* token is paired with an + equal --skin-host-toolbar-* fallback. `surface` is the opaque colour used + only for the contrast check; the Classic top bar is a #fcfcfc→#e9e9e9 + gradient, so it is a near-flat #f3f3f3 rather than the example's #f4f7fb. + These tokens never shrink or repaint the full-text capsule fallback. */ + --skin-recovery-toolbar-background: transparent; + --skin-host-toolbar-background: transparent; + --skin-recovery-toolbar-foreground: #1a1a1a; + --skin-host-toolbar-foreground: #1a1a1a; + --skin-recovery-toolbar-border: transparent; + --skin-host-toolbar-border: transparent; + --skin-recovery-toolbar-hover-background: #eaf2fd; + --skin-host-toolbar-hover-background: #eaf2fd; + --skin-recovery-toolbar-hover-border: #b8cfe8; + --skin-host-toolbar-hover-border: #b8cfe8; + --skin-recovery-toolbar-radius: 2px; + --skin-host-toolbar-radius: 2px; + --skin-recovery-toolbar-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif; + --skin-host-toolbar-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif; + --skin-recovery-toolbar-font-size: 11px; + --skin-host-toolbar-font-size: 11px; + --skin-recovery-toolbar-padding: 0 4px; + --skin-host-toolbar-padding: 0 4px; + --skin-recovery-toolbar-height: 22px; + --skin-host-toolbar-height: 22px; + --skin-recovery-toolbar-gap: 1px; + --skin-host-toolbar-gap: 1px; + --skin-recovery-toolbar-icon-size: 16px; + --skin-host-toolbar-icon-size: 16px; + --skin-recovery-toolbar-shadow: none; + --skin-host-toolbar-shadow: none; + --skin-recovery-toolbar-surface: #f3f3f3; + --skin-host-toolbar-surface: #f3f3f3; +} + +/* ---------- Base ---------- */ + +:root { + color-scheme: light; + font-family: var(--skin-font); + font-size: 12px; + line-height: 1.45; + color: var(--skin-text); + background-color: var(--skin-face); +} + +:root ::selection { background: #b6d4f5; color: #000000; } +:root ::placeholder { color: #808080; opacity: 1; } +:root :focus-visible { outline: 1px dotted #1a1a1a; outline-offset: 1px; } + +:root ::-webkit-scrollbar { width: 15px; height: 15px; } +:root ::-webkit-scrollbar-track { background: #f0f0f0; border-left: 1px solid #d7d7d7; } +:root ::-webkit-scrollbar-thumb { background: #cdcdcd; border: 3px solid #f0f0f0; } +:root ::-webkit-scrollbar-thumb:hover { background: #b3b3b3; } +:root * { scrollbar-color: #cdcdcd #f0f0f0; scrollbar-width: thin; } +:root a { color: #0a4fa2; } + +/* ---------- Voice shell ---------- */ + +:root .ts-app { + display: flex; + flex-direction: column; + width: 100%; + height: 100vh; + overflow: hidden; + /* 4.1.6: keep the skin's own z-indexes (toolbar menus at 50/60) inside the + surface so WebSpeak dialogs opened over it (audio settings) cover them. */ + isolation: isolate; + background: var(--skin-window); +} + +/* ---------- Compact toolbar ---------- */ + +:root .ts-toolbar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 4px; + row-gap: 2px; + flex: none; + /* 4.1.12: the recovery entry is now two host-owned 22px toolbar icons, so the + Classic top bar returns to its compact ~30px height instead of being + raised to fit a 44px capsule. flex-wrap stays on for narrow screens. */ + height: auto; + min-height: 30px; + padding: 2px 6px; + background: linear-gradient(180deg, #fcfcfc, #e9e9e9); + border-bottom: 1px solid #bdbdbd; +} + +:root .ts-toolgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; row-gap: 2px; min-width: 0; } +:root .ts-toolgroup-end { margin-left: auto; justify-content: flex-end; } +:root .ts-toolbar-spacer { flex: 1 1 auto; min-width: 4px; } + +:root .ts-tool-sep { + width: 1px; + height: 17px; + margin: 0 3px; + background: #c4c4c4; + border-right: 1px solid #ffffff; +} + +:root .ts-toolbar-edition { + flex: none; + padding: 0 4px; + color: #6a6a6a; + font-size: 10px; + letter-spacing: .04em; + white-space: nowrap; +} + +:root .ts-toolbar .ws-plugin-host-widget { display: inline-flex; align-items: center; min-width: 0; } + +:root .ts-toolbar button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 3px; + height: 22px; + min-height: 22px; + padding: 0 4px; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #1a1a1a; + font: inherit; + font-size: 11px; + cursor: pointer; +} + +:root .ts-toolbar button:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; } +:root .ts-toolbar button[aria-pressed="true"], +:root .ts-toolbar button[aria-expanded="true"] { background: var(--skin-blue-soft); border-color: #9db8d8; } +:root .ts-toolbar button:disabled { color: #a0a0a0; cursor: default; } +:root .ts-toolbar button:disabled:hover { background: transparent; border-color: transparent; } +:root .ts-toolbar svg { width: 16px; height: 16px; } + +/* Home toolbar brand lockup */ +:root .ts-toolbar-brand { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } +:root .ts-toolbar-mark { + position: relative; + flex: none; + width: 18px; + height: 18px; + border: 1px solid #275a9e; + border-radius: 3px; + background: linear-gradient(180deg, #4c7fc4, #275a9e); +} +:root .ts-toolbar-mark::before { + content: ""; + position: absolute; + left: 4px; + top: 5px; + width: 10px; + height: 8px; + background: #ffffff; + opacity: .92; + clip-path: polygon(0 0, 100% 0, 100% 68%, 42% 68%, 24% 100%, 24% 68%, 0 68%); +} +:root .ts-toolbar-note { + min-width: 0; + overflow: hidden; + color: #333333; + font-size: 11px; + font-weight: 700; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Connection controls: icon-only classic buttons (share / favorite / exit). */ +:root .ts-tool-connection .ws-plugin-connection-controls { display: inline-flex; align-items: center; gap: 1px; } +:root .ts-tool-connection button > span { display: none; } + +/* Audio dock folded into the toolbar: hide the marketing copy, keep controls. + The host floats .desktop-audio-dock to the member panel's bottom-left at + >=741px (position:absolute; left/right/bottom:18px; z-index:6). These + overrides outrank that scoped rule and return the dock to toolbar flow, so + the status bar can never cover the microphone. Full/suffix part selectors + keep working if the host ever namespaces the part name. */ +:root .ts-toolbar :is([data-ws-part="voice.audio-dock"], [data-ws-part$="voice.audio-dock"]) { + position: relative; + inset: auto; + z-index: auto; + display: inline-flex; + align-items: center; + gap: 0; + min-height: 0; + margin: 0; + padding: 0; + border: 0; + background: transparent; + box-shadow: none; +} +:root .ts-toolbar .desktop-audio-dock-copy { display: none; } +:root .ts-toolbar .desktop-audio-dock-actions { display: inline-flex; align-items: center; gap: 1px; } +:root .ts-toolbar .dock-hover-control { position: relative; display: inline-flex; align-items: center; z-index: 40; } +:root .ts-toolbar :is([data-ws-part="voice.audio-dock.microphone"], [data-ws-part$="voice.audio-dock.microphone"]) > button, +:root .ts-toolbar :is([data-ws-part="voice.audio-dock.output"], [data-ws-part$="voice.audio-dock.output"]) > button { width: 24px; padding: 0; } +:root .ts-toolbar .dock-audio-button.muted { color: var(--skin-red); } +:root .ts-toolbar .dock-audio-button.accompaniment-toggle.active { color: var(--skin-blue-deep); background: var(--skin-blue-soft); border-color: #9db8d8; } +/* The dock now sits at the top, so its hover panels open downward into the + workspace instead of upward off-screen. They are left-anchored to their + trigger (the host centers them, which would clip the leftmost mic panel at + the viewport edge). Offsets stay small: the panels are protected controls + and must remain on screen. The extra top offset + top padding keep the + heading clear of the host's native title tooltip (measured: it renders + ~16px below the cursor and is ~25px tall, i.e. it ends ~55px below the + toolbar top while the button is hovered). */ +:root .ts-toolbar :is([data-ws-part="voice.audio-dock.microphone-panel"], [data-ws-part$="voice.audio-dock.microphone-panel"]), +:root .ts-toolbar :is([data-ws-part="voice.audio-dock.output-panel"], [data-ws-part$="voice.audio-dock.output-panel"]) { + top: 40px; + right: auto; + bottom: auto; + left: 0; + z-index: 60; + padding: 20px 10px 8px; + border: 1px solid #808080; + border-radius: 0; + background: #ffffff; + box-shadow: 2px 2px 6px #00000033; + color: #111111; + font-size: 11px; + transform: translateY(6px); +} +:root .ts-toolbar .dock-hover-control:hover .dock-hover-panel, +:root .ts-toolbar .dock-hover-control:focus-within .dock-hover-panel { transform: translateY(0); } +/* Hover bridge and arrow flip to the panel's top edge, above the trigger. + The bridge spans the full 18px gap between button bottom and panel top. */ +:root .ts-toolbar .dock-hover-panel::before { top: -18px; bottom: auto; height: 18px; } +:root .ts-toolbar .dock-hover-panel::after { + top: -6px; + right: auto; + bottom: auto; + left: 12px; + border: 0; + border-top: 1px solid #808080; + border-left: 1px solid #808080; + background: #ffffff; +} + +/* Screen share start: collapse the host's 44px capsule to a toolbar icon. */ +:root .ts-tool-share .skin-runtime-screen-share-start { + min-width: 24px; + min-height: 22px; + height: 22px; + gap: 0; + padding: 0 4px; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #1a1a1a; +} +:root .ts-tool-share .skin-runtime-screen-share-start > span { display: none; } +:root .ts-tool-share .skin-runtime-screen-share-start:hover:not(:disabled) { background: var(--skin-blue-hover); border-color: #b8cfe8; } +:root .ts-tool-share .skin-runtime-screen-share-start:disabled { opacity: .5; } +/* 4.1.4: the host draws the same "share" (arrow out of tray) glyph for both + Copy invite (connection controls) and Start screen share, so the toolbar + showed two identical up-arrows. Invite keeps the share arrow; screen share + gets a CSS-drawn monitor glyph (pure borders, no image). The button, its + aria-label and its click handler are the host's and stay untouched. */ +:root .ts-tool-share .skin-runtime-screen-share-start { position: relative; width: 24px; } +:root .ts-tool-share .skin-runtime-screen-share-start > svg { display: none; } +:root .ts-tool-share .skin-runtime-screen-share-start::before { + content: ""; + position: absolute; + top: 4px; + left: 50%; + width: 14px; + height: 9px; + margin-left: -7px; + border: 1.5px solid currentColor; + border-radius: 1.5px; + box-sizing: border-box; + pointer-events: none; +} +:root .ts-tool-share .skin-runtime-screen-share-start::after { + content: ""; + position: absolute; + top: 13px; + left: 50%; + width: 8px; + height: 4px; + margin-left: -4px; + border-bottom: 1.5px solid currentColor; + box-sizing: border-box; + background: linear-gradient(currentColor, currentColor) center top / 1.5px 100% no-repeat; + pointer-events: none; +} + +/* Whisper strip stays compact and only renders when targets exist. */ +:root .ts-tool-whisper:empty { display: none; } +:root .ts-toolbar [data-ws-part="voice.whisper-strip"] { + display: inline-flex; + align-items: center; + gap: 3px; + padding: 0; + border: 0; + background: transparent; +} +:root .ts-toolbar [data-ws-part="voice.whisper-strip"] > :first-child > span { display: none; } +:root .ts-toolbar [data-ws-part="voice.whisper-strip"] > :first-child > strong { + display: inline-flex; + align-items: center; + gap: 2px; + color: #444444; + font-size: 10px; + font-weight: 400; + white-space: nowrap; +} +:root .ts-toolbar [data-ws-part="voice.whisper-strip"] button { height: 20px; min-height: 20px; padding: 0 4px; font-size: 10px; } + +/* Mobile audio toggles (host renders these instead of the dock on phones). + Reset the host's card chrome so the strip fits the 30px toolbar. */ +:root .ts-tool-audio .mobile-voice-controls { + display: inline-flex; + align-items: center; + gap: 1px; + margin: 0; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; +} +:root .ts-tool-audio .mobile-voice-toggle { flex: none; width: 26px; min-height: 22px; padding: 0; border-radius: 2px; } +:root .ts-tool-audio .mobile-voice-toggle > span { display: none; } +:root .ts-tool-audio .mobile-voice-toggle.muted { color: var(--skin-red); } + +/* 4.1.12: non-interactive span reserving the geometry of the host-owned + toolbar recovery buttons (使用内置皮肤 / 应用库), declared with + mode: "toolbar" + appearance: "icon" and anchored per page. + + This is a geometry guard, not a measured fit. appearance: "icon" makes the + host lay out two 24px buttons (width max(24px, icon-size + 8px)) with a 1px + gap and zero padding, so the slot reserves 24 + 1 + 24 plus a little slack + and stays 22px tall to share the microphone button's row. The host button + surface is transparent, so nothing is painted here. Narrow widths may still + wrap the whole bar, but the slot never claims a full row. */ +:root .ts-toolbar .ts-recovery-slot, +:root .ts-toolbar [data-ws-part="skin.voice.ts3-voice-console.part-ts-recovery-slot"], +:root .ts-toolbar [data-ws-part="skin.home.ts3-home-console.part-ts-recovery-slot"] { + display: inline-block; + flex: none; + width: 56px; + max-width: 100%; + height: 22px; + min-height: 22px; + margin: 0 2px 0 0; + /* The host paints recovery in a top-layer over this geometry-only + anchor, so the empty slot must not intercept clicks. Any interactive + descendant (if the host ever mounts one inside the slot) must still + receive pointer events — they do not inherit this none unless left + unset. */ + pointer-events: none; +} +:root .ts-toolbar .ts-recovery-slot :is(a, button), +:root .ts-toolbar [data-ws-part="skin.voice.ts3-voice-console.part-ts-recovery-slot"] :is(a, button), +:root .ts-toolbar [data-ws-part="skin.home.ts3-home-console.part-ts-recovery-slot"] :is(a, button) { + pointer-events: auto; +} + +/* 4.1.14: official admin console entry via host home.social-links + (communityLinks: false). The host widget is wrapped by the skin runtime: + + div.ws-plugin-host-widget.ts-tool-admin + > nav[data-ws-part="home.social-links"] + > a[href="/admin"] (title/aria-label = host adminConsole) + + `.ts-tool-admin > a` does not match that tree (the direct child is the + nav). Style the real
, keep it pointer-events: auto, + and print the host label so the control is unmistakable. On the home + toolbar the widget is the first control (top-left). The "连接控制台" + brand remains a non-link page title beside it, not a fake /admin button. + Voice keeps the widget in the trailing cluster, with the same labeled + hit target. */ +:root .ts-toolbar .ts-tool-admin, +:root .ts-toolbar [data-ws-part="home.social-links"] { + display: inline-flex; + align-items: center; + justify-content: center; + flex: none; + min-width: 0; + margin: 0; + padding: 0; + border: 0; + background: transparent; + pointer-events: auto; + position: relative; + z-index: 1; +} +:root .ts-toolbar .ts-tool-admin a[href="/admin"], +:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"] { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 4px; + box-sizing: border-box; + min-width: 24px; + width: auto; + height: 22px; + min-height: 22px; + padding: 0 6px; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #1a1a1a; + text-decoration: none; + cursor: pointer; + pointer-events: auto; + white-space: nowrap; +} +:root .ts-toolbar .ts-tool-admin a[href="/admin"]::after, +:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"]::after { + content: attr(aria-label); + font-size: 11px; + font-weight: 700; + line-height: 1; + white-space: nowrap; +} +:root .ts-toolbar .ts-tool-admin a[href="/admin"]:hover, +:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"]:hover, +:root .ts-toolbar .ts-tool-admin a[href="/admin"]:focus-visible, +:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"]:focus-visible { + background: var(--skin-blue-hover); + border-color: #b8cfe8; +} +:root .ts-toolbar .ts-tool-admin svg, +:root .ts-toolbar [data-ws-part="home.social-links"] svg { + display: block; + flex: none; + width: 16px; + height: 16px; + pointer-events: none; +} + +/* Language / skin switchers */ +:root [data-ws-part="language.trigger"], +:root [data-ws-part="skin.trigger"] { + height: 22px; + min-height: 22px; + padding: 0 5px; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #1a1a1a; + font-size: 11px; +} +:root [data-ws-part="language.trigger"]:hover, +:root [data-ws-part="skin.trigger"]:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; } +:root [data-ws-part="language.menu"], +:root [data-ws-part="skin.menu"] { + min-width: 150px; + padding: 2px; + border: 1px solid #808080; + border-radius: 0; + background: #ffffff; + box-shadow: 2px 2px 4px #00000033; + font-size: 11px; +} +:root [data-ws-part="language.option"], +:root [data-ws-part="skin.option"] { padding: 3px 8px; border-radius: 0; } +:root [data-ws-part="language.option"]:hover, +:root [data-ws-part="skin.option"]:hover { background: var(--skin-blue); color: #ffffff; } + +/* ---------- Workspace: tree | right ---------- */ + +:root .ts-workspace { + display: grid; + grid-template-columns: 248px minmax(0, 1fr); + flex: 1; + min-height: 0; + background: #ffffff; +} + +:root .ts-tree { + display: flex; + flex-direction: column; + min-width: 0; + min-height: 0; + border-right: 1px solid #b0b0b0; + background: #ffffff; +} + +:root .ts-pane-caption { + flex: none; + padding: 3px 7px; + background: linear-gradient(180deg, #f6f6f6, #e9e9e9); + border-bottom: 1px solid #d0d0d0; + color: #4a4a4a; + font-size: 10px; + font-weight: 700; + letter-spacing: .05em; +} + +/* Server header (host widget) */ +:root .ts-server-header { flex: none; } +/* The host namespaces the outer part hook ("…part-ts-server-header"), so the + old $="part-server-header" suffix never matched and the padding never + applied. Target the host header class instead: one classic server-root row + with the icon + name on the left, the search toggle on the right and the + search box spanning a second row. */ +:root .ts-server-header .ws-voice-server-header { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + column-gap: 4px; + padding: 3px 4px 3px 6px; + border-bottom: 1px solid #dcdcdc; + background: linear-gradient(180deg, #ffffff, #f3f6fa); +} +/* The switcher moved to the toolbar (4.1.3). Hide the copy nested inside the + host server header so only one switcher is visible per page; the suffix + selector keeps working if the host namespaces the part name. */ +:root .ts-server-header :is([data-ws-part="voice.server-switcher"], [data-ws-part$="voice.server-switcher"]) { display: none; } +/* Tags and the divider are host chrome the classic root row does not show. */ +:root .ts-server-header .ws-voice-server-tags, +:root .ts-server-header .ws-voice-server-divider { display: none; } +:root .ts-server-header .ws-voice-server-title-line { + grid-column: 1; + grid-row: 1; + display: flex; + align-items: center; + gap: 4px; + min-width: 0; +} +/* 14x14 server block drawn in CSS: a rounded frame over a pale blue face with + two rack lines (gradient layers, no image, no SVG). */ +:root .ts-server-header .ws-voice-server-title-line::before { + content: ""; + flex: none; + width: 14px; + height: 14px; + box-sizing: border-box; + border: 1px solid #4c6f9c; + border-radius: 2px; + background-origin: padding-box; + background: + linear-gradient(#4c6f9c, #4c6f9c) 2px 3px / 8px 1px no-repeat, + linear-gradient(#4c6f9c, #4c6f9c) 2px 8px / 8px 1px no-repeat, + linear-gradient(180deg, #e3eefb, #9fbde3); +} +:root .ts-server-header .ws-voice-server-name { + min-width: 0; + overflow: hidden; + color: #111111; + font-size: 12px; + font-weight: 700; + text-overflow: ellipsis; + white-space: nowrap; +} +:root .ts-server-header .ws-voice-server-meta-line { + grid-column: 2; + grid-row: 1; + display: flex; + align-items: center; + justify-content: flex-end; + min-width: 0; +} +:root .ts-server-header .ws-voice-server-search-box { + position: relative; + grid-column: 1 / -1; + grid-row: 2; + display: flex; + align-items: center; + gap: 4px; + min-width: 0; + margin: 3px 0 0; +} +:root .ts-server-header .ws-voice-server-search-box > .sr-only { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0 0 0 0); + white-space: nowrap; + border: 0; +} +:root .ts-server-header .ws-voice-server-search-box > svg { flex: none; width: 13px; height: 13px; color: #555555; } +:root .ts-server-header button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 20px; + height: 20px; + padding: 0; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #333333; +} +:root .ts-server-header button:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; } +:root .ts-server-header input { + flex: 1; + min-width: 0; + height: 20px; + border: 1px solid #7f9db9; + border-radius: 0; + background: #ffffff; + box-shadow: inset 1px 1px 0 #e8e8e8; + font: inherit; + font-size: 11px; +} +/* 4.1.10: the host draws its own clear button, so hide the browser's native + search ✕/decoration (the host button itself is left alone). */ +:root .ts-server-header input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; width: 0; height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; } +:root .ts-server-header input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; } +:root .ts-server-header input[type="search"] { -webkit-appearance: none; appearance: none; } +/* Server switcher: a classic icon button in the toolbar; its menu opens + downward, left-anchored to the trigger, and is capped to the viewport. */ +:root .ts-toolbar .ts-tool-server { position: relative; display: inline-flex; align-items: center; z-index: 50; } +:root .ts-toolbar [data-ws-part="voice.server-switcher"] { display: inline-flex; align-items: center; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"] { + width: 24px; + height: 22px; + min-height: 22px; + padding: 0; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #333333; +} +:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"]:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"][aria-expanded="true"] { background: var(--skin-blue-soft); border-color: #9db8d8; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"] svg { width: 16px; height: 16px; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.menu"] { + position: absolute; + top: calc(100% + 2px); + right: auto; + bottom: auto; + left: 0; + z-index: 60; + min-width: 200px; + max-width: calc(100vw - 16px); + max-height: calc(100vh - 60px); + overflow-x: hidden; + overflow-y: auto; + padding: 2px; + border: 1px solid #808080; + border-radius: 0; + background: #ffffff; + box-shadow: 2px 2px 4px #00000033; + font-size: 11px; +} +:root .ts-toolbar [data-ws-part="voice.server-switcher.item"] { + display: flex; + align-items: center; + gap: 6px; + width: 100%; + min-width: 0; + padding: 3px 6px; + border: 0; + border-radius: 0; + background: transparent; + color: #1a1a1a; + font: inherit; + font-size: 11px; + text-align: left; + cursor: pointer; +} +:root .ts-toolbar [data-ws-part="voice.server-switcher.item"]:hover:not(:disabled) { background: var(--skin-blue); color: #ffffff; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.item"]:disabled { color: #1a1a1a; cursor: default; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.icon"] { + display: inline-flex; + align-items: center; + justify-content: center; + flex: none; + width: 16px; + height: 16px; + overflow: hidden; + border: 1px solid #9db8d8; + border-radius: 2px; + background: linear-gradient(180deg, #e3eefb, #bcd3ee); + color: #1b3357; + font-size: 9px; + font-weight: 700; +} +:root .ts-toolbar [data-ws-part="voice.server-switcher.icon"] img { width: 100%; height: 100%; object-fit: contain; background: #eef3f8; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.label"] { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.current"] { flex: none; width: 12px; height: 12px; color: var(--skin-blue-deep); } +:root .ts-toolbar [data-ws-part="voice.server-switcher.item"]:hover:not(:disabled) [data-ws-part="voice.server-switcher.current"] { color: #ffffff; } +:root .ts-toolbar [data-ws-part="voice.server-switcher.empty"] { margin: 0; padding: 6px 8px; color: #6a6a6a; font-size: 11px; line-height: 1.5; } + +/* ---------- Channel tree (members live only here) ---------- */ + +:root .ts-channel-tree { display: flex; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; } +:root [data-ws-part="voice.channel-tree.list"] { + flex: 1; + min-width: 0; + /* Bottom clearance so the editor-mode recovery pill never hides tree rows. */ + padding: 3px 0 48px; + background: #ffffff; + font-size: 14px; +} +:root .ts-channel-tree ul { margin: 0; padding: 0; list-style: none; } +:root [data-ws-part="voice.channel-tree.node"] { display: block; } + +:root [data-ws-part="voice.channel-tree.line"] { + display: flex; + align-items: center; + min-height: 25px; + padding-right: 4px; + padding-left: calc(var(--channel-depth, 0) * 15px); +} +/* Leaf channels have no expander; pad them so icons align with sibling rows. */ +:root [data-ws-part="voice.channel-tree.line"]:not(:has(> [data-ws-part="voice.channel-tree.expander"])) { + padding-left: calc(var(--channel-depth, 0) * 15px + 18px); +} + +:root [data-ws-part="voice.channel-tree.expander"] { + display: inline-flex; + align-items: center; + justify-content: center; + flex: none; + width: 18px; + height: 24px; + padding: 0; + border: 0; + background: transparent; + color: #6a6a6a; + cursor: pointer; +} +:root [data-ws-part="voice.channel-tree.expander"] svg { display: none; } +:root [data-ws-part="voice.channel-tree.expander"]::before { + content: ""; + width: 0; + height: 0; + border-top: 5px solid transparent; + border-bottom: 5px solid transparent; + border-left: 6px solid #7a7a7a; +} +:root [data-ws-part="voice.channel-tree.expander"][aria-expanded="true"]::before { + border-top: 6px solid #7a7a7a; + border-right: 5px solid transparent; + border-bottom: 0; + border-left: 5px solid transparent; +} + +:root [data-ws-part="voice.channel-tree.row"] { + position: relative; + display: flex; + align-items: center; + gap: 4px; + flex: 1; + min-width: 0; + height: 24px; + padding: 0 4px; + border: 0; + border-radius: 0; + background: transparent; + color: #1a1a1a; + font: inherit; + font-size: 14px; + text-align: left; + cursor: default; +} +:root [data-ws-part="voice.channel-tree.row"]:hover { background: var(--skin-blue-hover); } +:root [data-ws-part="voice.channel-tree.row"][data-drag-over="true"] { background: var(--skin-blue-soft); box-shadow: inset 0 0 0 1px #9db8d8; } + +/* Hide the host's channel SVG; draw a classic speech bubble in CSS instead. + Password-protected channels keep a real lock glyph (re-shown below). */ +:root [data-ws-part="voice.channel-tree.icon"] { display: none; } +:root [data-ws-part="voice.channel-tree.icon"][data-password-protected="true"] { + display: inline-flex; + flex: none; + width: 16px; + height: 16px; + color: var(--skin-amber); +} +:root [data-ws-part="voice.channel-tree.row"]:not([data-spacer]):not([data-password-protected])::before { + content: ""; + flex: none; + width: 18px; + height: 16px; + background: + linear-gradient(#7d9cc0, #7d9cc0) 5px 4px / 8px 1px no-repeat, + linear-gradient(#7d9cc0, #7d9cc0) 5px 7px / 8px 1px no-repeat, + linear-gradient(180deg, #e3eefb, #bcd3ee); + clip-path: polygon(0 0, 100% 0, 100% 75%, 40% 75%, 22% 100%, 22% 75%, 0 75%); +} + +:root [data-ws-part="voice.channel-tree.name"] { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +:root [data-ws-part="voice.channel-tree.count"] { flex: none; margin-left: auto; color: #7a7a7a; font-size: 11px; } +:root [data-ws-part="voice.channel-tree.join-hint"] { display: none; } + +:root [data-ws-part="voice.channel-tree.node"][data-current="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.name"] { + color: var(--skin-blue-deep); + font-weight: 700; +} +:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.row"] { + background: var(--skin-selected); + color: var(--skin-selected-text); +} +:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.name"], +:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.count"] { + color: var(--skin-selected-text); +} +:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.row"]:hover { background: var(--skin-selected); } +:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.row"]:not([data-spacer]):not([data-password-protected])::before { + background: + linear-gradient(#ffffff, #ffffff) 5px 4px / 8px 1px no-repeat, + linear-gradient(#ffffff, #ffffff) 5px 7px / 8px 1px no-repeat, + linear-gradient(180deg, #cfe0f5, #9db8d8); +} +:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.icon"][data-password-protected="true"] { color: #ffe9a8; } + +/* 4.1.10: the default layout keeps a channel's members and sub-channels in a + branch the expander shows/hides. */ +:root .ts-channel-tree [data-ws-part="voice.channel-tree.node"][aria-expanded="false"] > [data-ws-part="voice.channel-tree.branch"] { display: none; } + +/* Member rows: blue silhouette, never a big initial-letter disc. */ +:root [data-ws-part="voice.channel-tree.member"] { + display: flex; + align-items: center; + gap: 4px; + min-height: 23px; + padding: 0 4px 0 calc(var(--channel-depth, 0) * 15px + 26px); + color: #1a1a1a; + font-size: 13px; +} +:root [data-ws-part="voice.channel-tree.member"][data-dragging="true"] { opacity: .5; } +/* The default layout sets no --channel-depth (and no data-self), so indent the + member rows by the host's aria-level (channel depth + 2) instead; the + --channel-depth padding above stays as the fallback. */ +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="2"] { padding-left: 26px; } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="3"] { padding-left: 41px; } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="4"] { padding-left: 56px; } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="5"] { padding-left: 71px; } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="6"] { padding-left: 86px; } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="7"] { padding-left: 101px; } + +:root [data-ws-part="voice.channel-tree.avatar"] { + position: relative; + display: inline-block; + flex: none; + width: 17px; + height: 17px; + overflow: visible; + background: transparent !important; + background-image: none !important; + color: transparent; + font-size: 0 !important; + line-height: 0; +} +:root [data-ws-part="voice.channel-tree.avatar"]::before { + content: ""; + position: absolute; + left: 5px; + top: 1px; + width: 7px; + height: 7px; + border-radius: 50%; + background: var(--skin-member); + transition: background-color .08s linear; +} +:root [data-ws-part="voice.channel-tree.avatar"]::after { + content: ""; + position: absolute; + left: 1px; + top: 9px; + width: 15px; + height: 7px; + border-radius: 7px 7px 2px 2px; + background: var(--skin-member); + transition: background-color .08s linear; +} +:root [data-ws-part="voice.channel-tree.member"][data-self="true"] [data-ws-part="voice.channel-tree.avatar"]::before, +:root [data-ws-part="voice.channel-tree.member"][data-self="true"] [data-ws-part="voice.channel-tree.avatar"]::after, +:root [data-ws-part="voice.channel-tree.member"][draggable="false"] [data-ws-part="voice.channel-tree.avatar"]::before, +:root [data-ws-part="voice.channel-tree.member"][draggable="false"] [data-ws-part="voice.channel-tree.avatar"]::after { background: var(--skin-member-self); } + +:root [data-ws-part="voice.channel-tree.member-name"] { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +:root [data-ws-part="voice.channel-tree.member"][data-self="true"] [data-ws-part="voice.channel-tree.member-name"], +:root [data-ws-part="voice.channel-tree.member"][draggable="false"] [data-ws-part="voice.channel-tree.member-name"] { font-weight: 700; } +/* The default layout marks self by draggable="false" instead of data-self. + Speaking turns the silhouette bright blue; these rules sit after the self + colour so self speaks in the same blue. A muted row never counts as + speaking, even if the host leaves data-speaking="true" on it. */ +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-speaking="true"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"]::before, +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-speaking="true"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"]::after, +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"].is-speaking::before, +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"].is-speaking::after { background: var(--skin-talk); } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-speaking="true"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"] { filter: drop-shadow(0 0 2px var(--skin-talk-glow)); } +/* Away: the host's "·" marker plus a dimmed name. */ +:root [data-ws-part="voice.channel-tree.member-away"] { flex: none; margin-left: 2px; color: #8a8a8a; font-weight: 700; } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-away="true"] [data-ws-part="voice.channel-tree.member-name"] { color: #7a7a7a; } +/* The host's hardcoded "你" self badge is redundant (bold name + deeper + silhouette already mark self) and not locale-neutral; collapse it. */ +:root .ts-channel-tree .ws-voice-channel-member-self { display: none; } +:root .ts-channel-tree .ws-voice-channel-member-mic { flex: none; margin-left: auto; color: #8a8a8a; } +:root [data-ws-part="voice.channel-tree.member-muted"] { flex: none; margin-left: auto; color: var(--skin-red); } +:root .ts-channel-tree .ws-voice-channel-member-mic + [data-ws-part="voice.channel-tree.member-muted"] { margin-left: 2px; } +:root [data-ws-part="voice.channel-tree.member-screen-share"] { + display: inline-grid; + place-items: center; + flex: none; + width: 15px; + height: 15px; + margin-left: 2px; + border-radius: 2px; + background: var(--skin-green); + color: #ffffff; +} +:root [data-ws-part="voice.channel-tree.member-screen-share"] svg { width: 11px; height: 11px; } +/* The avatar colour already says "speaking"; drop the extra host marker. */ +:root [data-ws-part="voice.channel-tree.member-speaking"] { display: none; } +:root [data-ws-part="voice.channel-tree.empty"] { padding: 12px 8px; color: #777777; font-size: 11px; } + +/* 4.1.9: thin separators between channel rows */ +:root [data-ws-part="voice.channel-tree.line"] { border-top: 1px solid #ececec; } +/* The very first channel row of the tree has no line above it. */ +:root [data-ws-part="voice.channel-tree.list"] > [data-ws-part="voice.channel-tree.node"]:first-child > [data-ws-part="voice.channel-tree.line"] { border-top-color: transparent; } +/* Close the list with a matching line under its last top-level channel. */ +:root [data-ws-part="voice.channel-tree.list"] > [data-ws-part="voice.channel-tree.node"]:last-child { border-bottom: 1px solid #ececec; } + +/* ---------- Right column: info / banner / log ---------- */ + +:root .ts-right { + display: grid; + grid-template-rows: minmax(0, max-content) auto minmax(160px, 1fr); + min-width: 0; + min-height: 0; + background: #ffffff; +} + +/* Info pane: a classic "selected item details" facts block. */ +:root .ts-info { + position: relative; + display: flex; + flex-direction: column; + min-height: 0; + overflow-x: hidden; + overflow-y: auto; + padding: 7px 10px 8px; + border-bottom: 1px solid #d4d4d4; + background: linear-gradient(180deg, #ffffff, #fbfbfb); +} +:root .ts-info-heading { display: flex; align-items: center; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid #e4e4e4; } +:root .ts-info-icon { + position: relative; + flex: none; + width: 15px; + height: 15px; + border-radius: 50%; + background: var(--skin-blue); +} +:root .ts-info-icon::before { content: ""; position: absolute; left: 6.5px; top: 3px; width: 2px; height: 2px; border-radius: 50%; background: #ffffff; } +:root .ts-info-icon::after { content: ""; position: absolute; left: 6.5px; top: 6px; width: 2px; height: 6px; background: #ffffff; } +:root .ts-info-title { + margin: 0; + min-width: 0; + overflow: hidden; + color: #1b3357; + font-size: 12px; + font-weight: 700; + letter-spacing: .03em; + text-overflow: ellipsis; + white-space: nowrap; +} + +:root .ts-info-facts { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 2px 18px; + max-width: 620px; + margin-top: 6px; +} +:root .ts-fact-row { display: flex; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.6; } +:root .ts-fact-label { flex: none; min-width: 66px; color: #333333; font-weight: 700; } +:root .ts-fact-label::after { content: ":"; } +:root .ts-fact-value { + min-width: 0; + overflow: hidden; + color: #111111; + font-weight: 400; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Text watermark: the host product name "WebSpeak" from skin.messages.watermark, + faint light blue, decorative only (aria-hidden, no pointer events). */ +:root .ts-watermark { + position: absolute; + top: 6px; + right: 14px; + display: block; + max-width: 45%; + overflow: hidden; + color: var(--skin-watermark); + font-family: Tahoma, Verdana, "Segoe UI", Arial, sans-serif; + font-size: 18px; + font-weight: 700; + font-style: italic; + line-height: 1; + letter-spacing: .02em; + white-space: nowrap; + text-overflow: clip; + pointer-events: none; + user-select: none; +} + +/* Screen share player only mounts while viewing; collapse the empty wrapper. */ +:root .ts-screen-share { display: block; min-width: 0; max-width: 100%; } +:root .ts-screen-share:empty { display: none; } +:root .ts-screen-share [data-ws-part="voice.screen-player.stage"] { max-height: 220px; border-radius: 0; } +:root .ts-screen-share [data-ws-part="voice.screen-player.video"] { max-width: 100%; max-height: 220px; object-fit: contain; background: #000000; } + +/* Server banner (host hides it when there is no welcome data). */ +/* 4.1.12: show the whole server banner image (no crop). The host still + omits the widget when there is no welcome/banner data. + 4.1.13: letterbox background is white (was #eef3f8). */ +:root .ts-server-banner { min-width: 0; overflow: visible; } +:root .ts-server-banner:empty { display: none; } +:root [data-ws-part="voice.server-banner.image"], +:root .ts-server-banner .ws-voice-server-banner-image { + display: block; + width: 100%; + height: auto; + max-width: 100%; + max-height: min(360px, 40vh); + object-fit: contain; + object-position: center; + background: #ffffff; + border-radius: 0; +} +:root [data-ws-part="voice.server-banner.welcome"] { + padding: 6px 10px; + border-bottom: 1px solid #dcdcdc; + background: #f6f6f6; + color: #222222; + font-size: 11px; +} +:root [data-ws-part="voice.server-banner.title"] { font-size: 11px; font-weight: 700; } +:root [data-ws-part="voice.server-banner.body"] { color: #555555; font-size: 11px; } + +/* ---------- Bottom SERVER LOG / chat ---------- */ + +:root .ts-log { + position: relative; + display: flex; + flex-direction: column; + min-height: 0; + border-top: 1px solid #c0c0c0; + background: #ffffff; +} +:root .ts-log-heading { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + flex: none; + height: 19px; + padding: 0 6px; + background: linear-gradient(180deg, #f3f3f3, #e7e7e7); + border-bottom: 1px solid #c8c8c8; + color: #3d3d3d; + font-size: 10px; + font-weight: 700; + letter-spacing: .03em; +} +:root .ts-log-title { white-space: nowrap; } +:root .ts-log-notice { min-width: 0; overflow: hidden; color: #6f6f6f; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; } + +/* The host Vue stylesheet caps .message-list and pins .message-composer; + these !important declarations reclaim the full log height for the chat. */ +:root .ts-log .ws-plugin-host-widget, +:root .ts-log [data-ws-plugin-widget="voice.chat-panel"], +:root .ts-log [data-ws-part="voice.chat"] { + display: flex !important; + flex-direction: column !important; + flex: 1 1 auto !important; + position: relative !important; + width: 100%; + height: 100% !important; + min-height: 0 !important; + max-height: none !important; + margin: 0; + padding: 0; + border: 0; + border-radius: 0; + background: #ffffff; +} + +:root [data-ws-part="voice.chat.tabs"] { + display: flex; + align-items: flex-end; + gap: 1px; + flex: none; + height: 22px; + padding: 0 4px; + border-bottom: 1px solid #b8b8b8; + background: linear-gradient(180deg, #f7f7f7, #e8e8e8); +} +:root [data-ws-part="voice.chat.tab"] { + display: inline-flex; + align-items: center; + gap: 3px; + height: 19px; + min-height: 19px; + min-width: 0; + padding: 0 7px; + border: 1px solid #c2c2c2; + border-bottom: 0; + border-radius: 2px 2px 0 0; + background: #ececec; + color: #333333; + font: inherit; + font-size: 11px; + white-space: nowrap; + cursor: pointer; +} +:root [data-ws-part="voice.chat.tab"] svg { width: 12px; height: 12px; color: var(--skin-icon); } +:root [data-ws-part="voice.chat.tab"][data-ws-state="active"] { background: #ffffff; color: #111111; font-weight: 700; border-color: #a8a8a8; } +:root [data-ws-part="voice.chat.heading"] { display: none; } + +:root [data-ws-part="voice.chat.messages"] { + flex: 1 1 auto !important; + min-height: 0 !important; + max-height: none !important; + height: auto !important; + gap: 1px; + padding: 3px 6px; + overflow: auto; + background: #ffffff; + font-size: 11px; +} +:root [data-ws-part="voice.chat.event"] { display: flex; gap: 5px; padding: 1px 0; border: 0; background: transparent; color: var(--skin-green); font-size: 11px; } +:root [data-ws-part="voice.chat.event"] time { color: var(--skin-cyan); font-family: var(--skin-mono); font-size: 10px; } +:root [data-ws-part="voice.chat.event"] span { color: var(--skin-green); } +:root [data-ws-part="voice.chat.message"] { display: block; padding: 1px 0; border: 0; background: transparent; } +:root [data-ws-part="voice.chat.message-avatar"] { display: none; } +:root [data-ws-part="voice.chat.message-body"] { display: block; min-width: 0; } +:root [data-ws-part="voice.chat.message-body"] > div:first-child { display: inline; margin: 0; color: #333333; font-size: 10px; } +:root [data-ws-part="voice.chat.message-body"] > div:first-child strong { color: #111111; font-weight: 700; } +:root [data-ws-part="voice.chat.message-body"] time { margin-left: 4px; color: var(--skin-cyan); font-family: var(--skin-mono); font-size: 10px; } +:root [data-ws-part="voice.chat.message-bubble"] { + display: inline; + margin-left: 4px; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + color: #1a1a1a; + font-size: 11px; + line-height: 1.5; + overflow-wrap: anywhere; +} +:root [data-ws-part="voice.chat.message"][data-ws-state="mine"] { align-self: stretch; max-width: none; } +:root [data-ws-part="voice.chat.message"][data-ws-state="mine"] [data-ws-part="voice.chat.message-bubble"] { background: transparent; color: #0b3d91; } +:root [data-ws-part="voice.chat.empty"] { padding: 14px 8px; color: #6a6a6a; font-size: 11px; } + +:root [data-ws-part="voice.chat.composer"] { + display: flex !important; + align-items: center; + gap: 3px; + flex: 0 0 auto !important; + position: relative !important; + top: auto !important; + right: auto !important; + bottom: auto !important; + left: auto !important; + z-index: 1; + width: auto; + min-height: 0 !important; + height: auto !important; + margin: 0; + padding: 3px 5px; + border-top: 1px solid #c0c0c0; + border-radius: 0; + background: linear-gradient(180deg, #f4f4f4, #e9e9e9); +} +:root [data-ws-part="voice.chat.composer"] input { + flex: 1; + min-width: 0; + height: 21px; + padding: 0 5px; + border: 1px solid #7f9db9; + border-radius: 0; + background: #ffffff; + box-shadow: inset 1px 1px 0 #e6e6e6; + color: #111111; + font: inherit; + font-size: 11px; +} +:root [data-ws-part="voice.chat.composer"] button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 26px; + height: 21px; + padding: 0; + border: 1px solid #9a9a9a; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e3e3e3); + color: #2b4f7d; + cursor: pointer; +} +:root [data-ws-part="voice.chat.composer"] button:disabled { color: #a0a0a0; cursor: default; } +:root [data-ws-part="voice.chat.status"] { padding: 2px 6px; border-top: 1px solid #e0e0e0; background: #f7f7f7; color: #555555; font-size: 10px; } + +/* ---------- Status bar ---------- */ + +:root .ts-statusbar { + position: relative; + z-index: 30; + display: flex; + align-items: center; + gap: 6px; + flex: none; + height: 23px; + overflow: visible; + padding: 0 6px; + border-top: 1px solid #a8a8a8; + background: linear-gradient(180deg, #f4f4f4, #e6e6e6); + color: #333333; + font-size: 11px; +} +:root .ts-status-led { flex: none; width: 7px; height: 7px; border: 1px solid #2c6b3c; border-radius: 50%; background: #5dbb63; } +:root .ts-status-text { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; color: #2b2b2b; text-overflow: ellipsis; white-space: nowrap; } +:root .ts-status-name { font-weight: 700; } +/* 4.1.6: status bar follows the real connection state (LED + text). */ +/* 4.1.8: amber only while connecting, so disconnected/failed stay red. */ +:root .ts-status-led[data-state="connecting"] { border-color: #8a5a12; background: #e6a23c; } +:root .ts-status-led[data-state="disconnected"], +:root .ts-status-led[data-state="failed"] { border-color: #7a2020; background: #d65a5a; } +/* 4.1.7: home LED turns red only while WebSpeak reports a failed/dropped connection. */ +:root .ts-home:has([data-ws-part="voice.connection-status"][data-ws-state="failed"]) .ts-status-led { border-color: #7a2020; background: #d65a5a; } +:root .ts-status-state { font-weight: 700; } +:root .ts-status-server { min-width: 0; overflow: hidden; text-overflow: ellipsis; } +:root .ts-status-spacer { flex: 1 1 auto; min-width: 4px; } +:root .ts-status-edition { flex: none; color: #6a6a6a; font-size: 10px; letter-spacing: .04em; white-space: nowrap; } + + +:root .ts-statusbar [data-ws-plugin-widget="voice.disconnect-control"] { flex: none; } +:root .ts-statusbar .ws-plugin-disconnect-control { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 3px; + height: 19px; + min-height: 19px; + padding: 0 5px; + border: 1px solid #9a9a9a; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e3e3e3); + color: #7a1a1a; + font: inherit; + font-size: 10px; + cursor: pointer; +} +:root .ts-statusbar .ws-plugin-disconnect-control > span { display: none; } +:root .ts-statusbar .ws-plugin-disconnect-control svg { width: 13px; height: 13px; } +:root .ts-statusbar .ws-plugin-disconnect-control:hover { background: linear-gradient(180deg, #fdf3f3, #f0dcdc); border-color: #b08a8a; } + +/* ---------- Home surface: classic connect console ---------- */ + +:root .ts-home { + display: flex; + flex-direction: column; + min-height: 100vh; + background: var(--skin-face); +} + +:root .ts-home-body { + display: grid; + grid-template-columns: minmax(0, 480px); + justify-content: center; + align-items: start; + align-content: center; + flex: 1; + width: 100%; + margin: 0 auto; + padding: 20px 14px; +} + +/* Connect window with a classic group box. */ +:root .ts-home-main { min-width: 0; } +:root .ts-connect-window { border: 1px solid #8a8a8a; background: #ffffff; box-shadow: 2px 2px 8px #00000026; } +:root .ts-window-titlebar { + display: flex; + align-items: center; + gap: 6px; + height: 26px; + padding: 0 8px; + border-bottom: 1px solid #b8b8b8; + background: linear-gradient(180deg, #f4f6f9, #dfe5ee); +} +:root .ts-window-icon { + position: relative; + flex: none; + width: 16px; + height: 16px; + border: 1px solid #275a9e; + border-radius: 3px; + background: linear-gradient(180deg, #4c7fc4, #275a9e); +} +:root .ts-window-icon::before { + content: ""; + position: absolute; + left: 3px; + top: 4px; + width: 9px; + height: 7px; + background: #ffffff; + opacity: .92; + clip-path: polygon(0 0, 100% 0, 100% 68%, 42% 68%, 24% 100%, 24% 68%, 0 68%); +} +:root .ts-window-title { min-width: 0; overflow: hidden; color: #1b3357; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } +:root .ts-window-edition { margin-left: auto; flex: none; color: #5b6b80; font-size: 10px; letter-spacing: .04em; white-space: nowrap; } +:root .ts-window-body { padding: 12px 14px 14px; } +:root .ts-home-lead { margin: 0 0 10px; color: #555555; font-size: 11px; line-height: 1.55; } + +:root .ts-group-box { + min-width: 0; + margin: 0; + padding: 10px 12px 12px; + border: 1px solid #b4b4b4; + border-radius: 3px; + background: #ffffff; + box-shadow: 1px 1px 0 #ffffff inset; +} +:root .ts-group-legend { + padding: 0 5px; + color: #1b3357; + font-size: 11px; + font-weight: 700; + letter-spacing: .03em; +} +:root .ts-connection-form { display: block; width: 100%; min-width: 0; } + +/* Host join form fields, restyled to classic geometry. */ +:root [data-ws-part="home.form"] { display: flex; flex-direction: column; gap: 5px; } +:root [data-ws-part="home.server-target"] { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 6px; } +:root [data-ws-part="home.field-label"] { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; color: #333333; font-size: 11px; } +:root [data-ws-part="home.field"] { + display: flex; + align-items: center; + gap: 3px; + height: 22px; + padding: 0 3px; + border: 1px solid #7f9db9; + border-radius: 0; + background: #ffffff; + box-shadow: inset 1px 1px 0 #e6e6e6; +} +:root [data-ws-part="home.field"] svg { flex: none; width: 13px; height: 13px; color: #6a6a6a; } +:root [data-ws-part="home.field"] input, +:root [data-ws-part="home.field"] select { + flex: 1; + min-width: 0; + height: 19px; + padding: 0 2px; + border: 0; + border-radius: 0; + background: transparent; + color: #111111; + font: inherit; + font-size: 12px; +} +:root [data-ws-part="home.server-history"] { padding: 4px; border: 1px solid #d2d2d2; border-radius: 0; background: #f8f8f8; } +:root [data-ws-part="home.server-history.group"] > span { display: block; margin-bottom: 3px; color: #666666; font-size: 10px; } +:root [data-ws-part="home.server-history.select"] { + flex: 1; + overflow: hidden; + padding: 2px 4px; + border: 0; + border-radius: 0; + background: transparent; + color: #164a8a; + font: inherit; + font-size: 11px; + text-align: left; + text-overflow: ellipsis; + white-space: nowrap; +} +:root [data-ws-part="home.server-history.item"]:hover { background: var(--skin-blue-hover); } +:root [data-ws-part="home.server-history.favorite-toggle"] { width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: #9a7b1f; } +:root [data-ws-part="home.favorite-toggle"] { + align-self: flex-start; + padding: 3px 7px; + border: 1px solid #9a9a9a; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e6e6e6); + color: #1b3357; + font: inherit; + font-size: 11px; +} +:root [data-ws-part="home.identity"] summary { padding: 3px 0; color: #1b4c8a; font-size: 11px; cursor: pointer; } +:root [data-ws-part="home.identity-actions"] button { + padding: 3px 7px; + border: 1px solid #9a9a9a; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e6e6e6); + color: #222222; + font: inherit; + font-size: 11px; +} +:root [data-ws-part="home.relay-choice"] { padding: 4px 6px; border: 1px solid #d2d2d2; border-radius: 0; background: #f8f8f8; font-size: 11px; } +:root [data-ws-part="home.connect"] { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 4px; + height: 26px; + margin-top: 6px; + padding: 0 16px; + border: 1px solid #7d93b5; + border-radius: 2px; + background: linear-gradient(180deg, #f3f7fd, #dbe7f7); + color: #123a70; + font: inherit; + font-size: 12px; + font-weight: 700; + cursor: pointer; +} +:root [data-ws-part="home.connect"]:hover { background: linear-gradient(180deg, #fbfdff, #cfe0f5); } +:root [data-ws-part="home.connect"]:disabled { color: #8a8a8a; border-color: #c0c0c0; background: linear-gradient(180deg, #f7f7f7, #ececec); cursor: default; } + +:root .ts-home-connection { display: block; margin: 8px 0 0; min-height: 0; color: #1b4c8a; font-size: 11px; } +:root .ts-home-connection:empty { display: none; } +:root [data-ws-part="home.connection-status"] { margin: 0; color: #1b4c8a; font-size: 11px; } +:root .ts-home-notice { + margin: 10px 0 0; + padding: 5px 7px; + border: 1px solid #d9c27a; + background: #fffbe8; + color: #5a4a12; + font-size: 11px; + line-height: 1.5; +} + +/* ---------- 4.1.5: Voice status inside SERVER INFORMATION ---------- + WebSpeak's own voice.performance-panel now lives under the facts. Its + trigger reads like one more "Label: value" fact row (host label + live + transport). Clicking it expands the host panel in normal flow (no popover) + with the host's live metrics (sampled by WebSpeak every 2 s while connected) + and its real "Measure now" button. WebSpeak renders the panel only while it + is open and closes it on an outside click or Esc; a skin cannot pin it. */ +:root .ts-info-voice { + max-width: 620px; + margin-top: 3px; + padding-top: 3px; + border-top: 1px solid #ececec; +} +:root .ts-info-voice [data-ws-plugin-widget="voice.performance-panel"] { display: block; min-width: 0; } +:root .ts-info-voice [data-ws-part="voice.performance"] { + position: static !important; + z-index: auto !important; + display: block; + min-width: 0; + overflow: visible !important; +} +:root .ts-info-voice .performance-trigger { + display: flex !important; + align-items: center; + justify-content: flex-start !important; + gap: 6px; + width: 100% !important; + height: auto !important; + min-height: 20px !important; + padding: 0 2px !important; + border: 1px solid transparent; + border-radius: 2px; + background: transparent; + color: #111111; + font: inherit; + font-size: 12px; + line-height: 1.6; + text-align: left; + cursor: pointer; + transition: none; +} +:root .ts-info-voice .performance-trigger:hover, +:root .ts-info-voice .performance-trigger[aria-expanded="true"] { background: var(--skin-blue-hover); border-color: #b8cfe8; } +:root .ts-info-voice .performance-trigger > svg:first-child { display: none; } +:root .ts-info-voice .performance-trigger-label { + display: inline !important; + flex: none; + min-width: 66px; + color: #333333; + font-weight: 700; +} +:root .ts-info-voice .performance-trigger-label::after { content: ":"; } +:root .ts-info-voice .performance-trigger small { + display: inline !important; + min-width: 0; + overflow: hidden; + color: #111111; + font-size: 12px; + text-overflow: ellipsis; + white-space: nowrap; +} +:root .ts-info-voice .performance-trigger > svg:last-child { + display: inline-block !important; + flex: none; + width: 11px; + height: 11px; + margin-left: auto; + color: #555555; +} +:root .ts-info-voice .performance-trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); } + +:root .ts-info-voice [data-ws-part="voice.performance.panel"] { + position: static !important; + inset: auto !important; + z-index: auto !important; + box-sizing: border-box; + width: auto !important; + max-width: none !important; + max-height: none !important; + margin: 3px 0 0; + overflow: visible !important; + transform: none !important; + transition: none !important; + animation: none !important; + padding: 5px 7px 6px; + border: 1px solid #c8c8c8; + border-radius: 0; + background: #ffffff; + box-shadow: inset 1px 1px 0 #f4f4f4; + color: #111111; + font-size: 11px; + line-height: 1.5; +} +:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 8px; + padding-bottom: 3px; + border-bottom: 1px solid #e4e4e4; +} +:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header strong { + display: block; + color: #1b3357; + font-size: 11px; + font-weight: 700; + letter-spacing: .03em; +} +:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header small { + display: block; + max-width: none; + margin-top: 1px; + color: #6a6a6a; + font-size: 10px; + line-height: 1.4; +} +:root .ts-info-voice .performance-refresh { + display: grid; + place-items: center; + flex: 0 0 22px; + width: 22px; + height: 20px; + padding: 0; + border: 1px solid #a0a0a0; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e4e4e4); + color: #1a1a1a; + cursor: pointer; +} +:root .ts-info-voice .performance-refresh:hover:not(:disabled) { background: var(--skin-blue-hover); border-color: #7aa3d4; } +:root .ts-info-voice .performance-refresh:disabled { cursor: wait; opacity: .55; } +:root .ts-info-voice .performance-refresh svg { width: 13px; height: 13px; } + +/* Health line: TS3-style status LED + text. */ +:root .ts-info-voice [data-ws-part="voice.performance.route"] { + display: flex; + align-items: center; + gap: 6px; + margin: 4px 0; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + opacity: 1; +} +:root .ts-info-voice [data-ws-part="voice.performance.route"] > i { + flex: 0 0 8px; + width: 8px; + height: 8px; + border: 1px solid #6f6f6f; + border-radius: 50%; + background: #b9b9b9; + box-shadow: none; +} +:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="active"] > i { border-color: #2c6b3c; background: #5dbb63; box-shadow: none; } +:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="quiet"] > i { border-color: #2c6b3c; background: #a7d9aa; } +:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="warning"] > i { border-color: #8a5a12; background: #e6a23c; box-shadow: none; } +:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="connecting"] > i, +:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="sampling"] > i { border-color: #8a7a12; background: #e8d44d; } +:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="disconnected"] > i { border-color: #7a2020; background: #d65a5a; } +:root .ts-info-voice [data-ws-part="voice.performance.route"] > div { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; } +:root .ts-info-voice [data-ws-part="voice.performance.route"] strong { overflow: visible; color: #111111; font-size: 12px; font-weight: 700; white-space: normal; } +:root .ts-info-voice [data-ws-part="voice.performance.route"] small { overflow: visible; color: #333333; font-size: 11px; white-space: normal; } + +/* Uplink / downlink: two classic group boxes of plain text lines. */ +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] article { + min-width: 0; + min-height: 0; + padding: 3px 5px; + border: 1px solid #dcdcdc; + border-radius: 0; + background: #fbfbfb; +} +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] small, +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] strong, +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] span { + display: block; + margin: 0; + overflow: visible; + white-space: normal; + overflow-wrap: anywhere; +} +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] small { color: #1b3357; font-size: 10px; font-weight: 700; } +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] strong { color: #111111; font-size: 12px; font-weight: 700; } +:root .ts-info-voice [data-ws-part="voice.performance.metrics"] span { color: #333333; font-size: 11px; line-height: 1.45; } +:root .ts-info-voice .voice-audio-details { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 0 10px; + margin-top: 4px; + color: #333333; + font-size: 11px; + line-height: 1.5; +} +:root .ts-info-voice .voice-audio-details > span { min-width: 0; overflow-wrap: anywhere; } +:root .ts-info-voice [data-ws-part="voice.performance.status"] { margin: 4px 0 0; color: #6a6a6a; font-size: 10px; } + +/* ---------- 4.1.6: reconnect strip (WebSpeak voice.connection-status) ---------- + WebSpeak hides its own disconnect card while a skin surface is active, so the + skin mounts the host widget as a full-width strip under the toolbar. The host + renders it only while not connected; when connected the strip is empty and + takes no space. Message, nickname field and "Reconnect now" are WebSpeak's. */ +:root .ts-conn-strip { flex: none; min-width: 0; } +:root .ts-conn-strip [data-ws-plugin-widget="voice.connection-status"] { display: block; min-width: 0; } +:root .ts-conn-strip [data-ws-part="voice.connection-status"] { + position: static !important; + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 4px 10px; + min-width: 0; + margin: 0; + padding: 4px 8px; + border: 0; + border-bottom: 1px solid #c9b46a; + border-radius: 0; + background: linear-gradient(180deg, #fff9dc, #f5e9b6); + box-shadow: none; + color: #3a3000; + font-size: 11px; +} +:root .ts-conn-strip [data-ws-part="voice.connection-status"][data-ws-state="failed"] { border-bottom-color: #c98a8a; background: linear-gradient(180deg, #fdeeee, #f3d6d6); color: #5a1010; } +:root .ts-conn-strip [data-ws-part="voice.connection-status"][data-ws-state="connecting"] { border-bottom-color: #9db8d8; background: linear-gradient(180deg, #f3f8fe, #dfeaf7); color: #1b3357; } +:root .ts-conn-strip [data-ws-part="voice.connection-status.message"] { + flex: 1 1 160px; + min-width: 0; + margin: 0; + font-size: 12px; + font-weight: 700; + overflow-wrap: anywhere; +} +:root .ts-conn-strip [data-ws-part="voice.connection-status.message"]::before { + content: ""; + display: inline-block; + width: 7px; + height: 7px; + margin-right: 6px; + border: 1px solid #8a5a12; + border-radius: 50%; + background: #e6a23c; + vertical-align: 1px; +} +:root .ts-conn-strip [data-ws-state="failed"] [data-ws-part="voice.connection-status.message"]::before { border-color: #7a2020; background: #d65a5a; } +:root .ts-conn-strip [data-ws-state="connecting"] [data-ws-part="voice.connection-status.message"]::before { border-color: #8a7a12; background: #e8d44d; } +:root .ts-conn-strip [data-ws-part="voice.connection-status.nickname"] { + display: inline-flex; + align-items: center; + gap: 5px; + width: auto; + max-width: 100%; + font-size: 11px; + font-weight: 700; +} +:root .ts-conn-strip [data-ws-part="voice.connection-status.nickname"] > span::after { content: ":"; } +:root .ts-conn-strip [data-ws-part="voice.connection-status.nickname.input"] { + width: 140px; + min-width: 0; + height: 22px; + padding: 0 4px; + border: 1px solid #8f8f8f; + border-radius: 0; + background: #ffffff; + color: #111111; + font: inherit; + font-size: 12px; + font-weight: 400; +} +:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"] { + display: inline-flex; + align-items: center; + gap: 4px; + min-height: 24px; + height: 24px; + padding: 0 12px; + border: 1px solid #707070; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e2e2e2); + color: #111111; + font: inherit; + font-size: 12px; + cursor: pointer; +} +:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"]:hover:not(:disabled) { background: var(--skin-blue-hover); border-color: #4a7ab8; } +:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"]:disabled { color: #8a8a8a; cursor: default; opacity: 1; } +:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"] svg { width: 13px; height: 13px; } + +/* ---------- 4.1.6: phone audio tools (real WebSpeak actions) ---------- + WebSpeak's phone audio widget only draws mic + speaker, so on <=740px the + skin adds Noise suppression / Share accompaniment toggles (aria-pressed is + bound to WebSpeak's audio.status) and an Audio settings button. Desktop + already has these in the audio dock, so the group is hidden there. Glyphs + are drawn with CSS only. */ +:root .ts-tool-mobile-audio { display: none; align-items: center; gap: 1px; } +:root .ts-toolbar .ts-mtool { position: relative; flex: none; width: 26px; height: 22px; min-height: 22px; padding: 0; } +:root .ts-mtool-glyph { position: relative; display: block; width: 16px; height: 16px; margin: 0 auto; pointer-events: none; } +:root .ts-mtool-noise .ts-mtool-glyph { + background: + linear-gradient(currentColor, currentColor) 1px 6px / 2px 4px no-repeat, + linear-gradient(currentColor, currentColor) 4px 3px / 2px 10px no-repeat, + linear-gradient(currentColor, currentColor) 7px 1px / 2px 14px no-repeat, + linear-gradient(currentColor, currentColor) 10px 3px / 2px 10px no-repeat, + linear-gradient(currentColor, currentColor) 13px 6px / 2px 4px no-repeat; +} +:root .ts-mtool-noise[aria-pressed="false"] .ts-mtool-glyph, +:root .ts-mtool-accompaniment[aria-pressed="false"] .ts-mtool-glyph { opacity: .55; } +:root .ts-mtool-accompaniment .ts-mtool-glyph::before { + content: ""; + position: absolute; + left: 3px; + bottom: 1px; + width: 6px; + height: 5px; + border-radius: 50%; + background: currentColor; + transform: rotate(-20deg); +} +:root .ts-mtool-accompaniment .ts-mtool-glyph::after { + content: ""; + position: absolute; + left: 8px; + top: 1px; + width: 4px; + height: 12px; + border-left: 1.5px solid currentColor; + border-top: 1.5px solid currentColor; + box-sizing: border-box; +} +:root .ts-mtool-settings .ts-mtool-glyph::before { + content: ""; + position: absolute; + inset: 1px; + border: 3px dotted currentColor; + border-radius: 50%; + box-sizing: border-box; +} +:root .ts-mtool-settings .ts-mtool-glyph::after { + content: ""; + position: absolute; + inset: 4px; + border: 2px solid currentColor; + border-radius: 50%; + box-sizing: border-box; +} + +/* ---------- 4.1.6: home server announcement (WebSpeak home.server-announcement) ---------- */ +:root .ts-home-announcement { display: block; min-width: 0; margin-top: 8px; } +:root [data-ws-part="home.server-announcement"] { + margin: 0; + padding: 5px 8px 6px; + border: 1px solid #c8c8c8; + border-radius: 0; + background: #ffffff; + box-shadow: inset 1px 1px 0 #f4f4f4; + color: #111111; +} +:root [data-ws-part="home.server-announcement.title"] { + margin: 0 0 4px; + padding-bottom: 3px; + border-bottom: 1px solid #e4e4e4; + color: #1b3357; + font-size: 11px; + font-weight: 700; + letter-spacing: .03em; +} +:root [data-ws-part="home.server-announcement.body"] { + max-height: 140px; + margin: 0; + overflow-y: auto; + color: #111111; + font-size: 12px; + line-height: 1.5; + white-space: pre-line; + overflow-wrap: anywhere; +} +:root [data-ws-part="home.server-announcement.body"]:empty { display: none; } +:root .ts-home-announcement:has([data-ws-part="home.server-announcement.body"]:empty) { display: none; } + +/* ---------- 4.1.7: home reconnect card ---------- + A browser-side drop (socket closed, network lost) makes WebSpeak leave the + voice page and return HOME with the error set. The same host widget + (voice.connection-status) is mounted on home; it is shown only in WebSpeak's + "failed" state (error set), never on a fresh visit or while connecting. Its + button is WebSpeak's own reconnect (requestVoiceConnection). */ +:root .ts-home-reconnect { margin: 0 0 8px; } +:root .ts-home-reconnect [data-ws-part="voice.connection-status"] { border: 1px solid #c9b46a; } +:root .ts-home-reconnect [data-ws-part="voice.connection-status"][data-ws-state="failed"] { border-color: #c98a8a; } +:root .ts-home-reconnect:not(:has([data-ws-state="failed"])) { display: none; } +:root .ts-home-reconnect [data-ws-part="voice.connection-status.nickname"] { display: none; } +:root .ts-home-reconnect [data-ws-part="voice.connection-status.message"] { white-space: normal; } +:root .ts-home-reconnect [data-ws-part="voice.connection-status.reconnect"] { margin-left: auto; } +/* The same error text is already in the card; avoid printing it twice. */ +:root .ts-window-body:has(.ts-home-reconnect [data-ws-state="failed"]) .ts-home-connection { display: none; } + +/* ---------- 4.1.15: official home widgets (host-owned) ---------- + home.identity-provider sits inside the SERVER CONNECTION group box right + after the host join form. The host button carries the real click handler + (requestIdentityProviderLogin) and its aria-label is the localized + "Sign in with myts" text; the inner label span only repeats the provider + id and is aria-hidden, so print the host aria-label instead (same approach + as the 4.1.14 admin link). Plain Classic button, no ribbon, no clip. */ +:root .ts-home-identity-provider { display: block; min-width: 0; margin-top: 6px; } +:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"] { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 4px; + width: auto; + height: 24px; + min-height: 24px; + padding: 0 10px; + border: 1px solid #9a9a9a; + border-radius: 2px; + background: linear-gradient(180deg, #fdfdfd, #e6e6e6); + color: #222222; + font: inherit; + font-size: 11px; + cursor: pointer; + pointer-events: auto; + white-space: nowrap; +} +:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"]:hover:not(:disabled) { background: linear-gradient(180deg, #fbfdff, #dfeaf7); border-color: #7aa3d4; } +:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"]:disabled { color: #8a8a8a; cursor: default; } +:root .ts-home-identity-provider [data-ws-part="home.identity-provider.label"] { display: none; } +:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"]::after { + content: attr(aria-label); + font-size: 11px; + line-height: 1; + white-space: nowrap; +} + +/* home.visitor-count: a compact Classic status line under the announcement. + The host omits the widget when it has no visitor number; collapse the empty + wrapper too. Only the decorative aria-hidden orbit/spark are hidden — the + label, total and icon stay visible on the light window. */ +:root .ts-home-visitors { display: block; min-width: 0; margin-top: 8px; } +:root .ts-home-visitors:empty { display: none; } +:root .ts-home-visitors [data-ws-part="home.visitors"] { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 4px; + margin: 0; + padding: 3px 7px; + border: 1px solid #dcdcdc; + border-radius: 0; + background: #f8f8f8; + box-shadow: none; + animation: none; + color: #333333; + font-size: 11px; + line-height: 1.5; +} +:root .ts-home-visitors [data-ws-part="home.visitors.orbit"], +:root .ts-home-visitors [data-ws-part="home.visitors.spark"] { display: none; } +:root .ts-home-visitors [data-ws-part="home.visitors.icon"] { display: inline-flex; align-items: center; flex: none; color: var(--skin-icon); } +:root .ts-home-visitors [data-ws-part="home.visitors.icon"] svg { width: 13px; height: 13px; } +:root .ts-home-visitors [data-ws-part="home.visitors.label"] { color: #333333; font-size: 11px; } +:root .ts-home-visitors [data-ws-part="home.visitors.divider"] { flex: none; width: 1px; height: 11px; background: #c4c4c4; } +:root .ts-home-visitors [data-ws-part="home.visitors.total"] { color: #555555; font-size: 11px; } + +/* 4.1.8: desktop — keep WebSpeak's audio settings dialog clear of the host recovery pills (bottom-left, ~84px band). */ +@media (min-width: 741px) { + :root [data-ws-part="voice.audio-settings"] { + margin-bottom: 56px; + max-height: min(760px, calc(var(--ws-viewport-height, 100dvh) - 112px)) !important; + } +} + +/* ---------- Narrow screens ---------- */ + +@media (max-width: 1100px) { + :root .ts-workspace { grid-template-columns: 220px minmax(0, 1fr); } + :root .ts-info-facts { grid-template-columns: minmax(0, 1fr); max-width: 420px; } + :root .ts-watermark { font-size: 16px; } +} + +@media (max-width: 900px) { + :root .ts-home-body { grid-template-columns: minmax(0, 1fr); width: calc(100% - 20px); align-content: start; padding: 14px 0; } + :root .ts-toolbar-note { display: none; } + /* 4.1.14: finger-sized official /admin target on phones and narrow widths. + The host label on stays visible; only the non-link + page-title note is hidden here. */ + :root .ts-toolbar .ts-tool-admin a[href="/admin"], + :root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"] { + min-width: 44px; + min-height: 44px; + height: 44px; + padding: 0 10px; + } + /* 4.1.15: finger-sized official sign-in button; width follows the host + label so the group-box form is not stretched by a huge square. */ + :root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"] { + width: auto; + min-height: 44px; + height: 44px; + padding: 0 12px; + } +} + +/* Narrow screens (<=740px): a single-column vertical flow. The page itself + scrolls, so no grid track may compress the info/banner panes — the welcome + banner used to cover the info pane's last row when vertical space ran short. + Desktop (>=741px) keeps the fixed workspace grid above. */ +@media (max-width: 740px) { + /* 4.1.5: the live host locks html/body (overflow:hidden, fixed height), so + page-level scrolling never happens there. The skin root itself becomes the + viewport-tall scroll container; everything inside flows at natural height. */ + :root { + height: 100vh; + height: 100dvh; + height: var(--ws-viewport-height, 100dvh); + min-height: 0; + max-height: var(--ws-viewport-height, 100dvh); + scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); + overflow-x: hidden; + overflow-y: auto; + overscroll-behavior-y: contain; + -webkit-overflow-scrolling: touch; + } + :root .ts-app { + display: block; + height: auto; + min-height: 100%; + max-height: none; + overflow: visible; + /* 4.1.6: WebSpeak's recovery pill (使用内置皮肤 / 应用库) floats over the + bottom-left of the screen and cannot be moved; leave room after the + content so the composer, status bar and metrics scroll above it. */ + padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); + } + :root .ts-tool-mobile-audio { display: inline-flex; } + /* 4.1.7: compact expanded voice metrics on phones; capped height, scrolls inside. */ + :root .ts-info-voice [data-ws-part="voice.performance.panel"] { + max-height: clamp(110px, calc(var(--ws-viewport-height, 100dvh) - 540px), 190px) !important; + overflow-x: hidden !important; + overflow-y: auto !important; + overscroll-behavior: contain; + padding: 3px 5px 4px; + font-size: 10px; + line-height: 1.3; + } + :root .ts-info-voice [data-ws-part="voice.performance.panel"] > header { align-items: center; padding-bottom: 2px; } + :root .ts-info-voice [data-ws-part="voice.performance.panel"] > header small { display: none; } + :root .ts-info-voice [data-ws-part="voice.performance.route"] { margin: 2px 0; } + :root .ts-info-voice [data-ws-part="voice.performance.route"] strong { font-size: 11px; } + :root .ts-info-voice [data-ws-part="voice.performance.route"] small { font-size: 10px; } + :root .ts-info-voice [data-ws-part="voice.performance.metrics"] { gap: 3px; } + :root .ts-info-voice [data-ws-part="voice.performance.metrics"] article { padding: 1px 4px; } + :root .ts-info-voice [data-ws-part="voice.performance.metrics"] strong { font-size: 11px; } + :root .ts-info-voice [data-ws-part="voice.performance.metrics"] span { font-size: 10px; line-height: 1.3; } + :root .ts-info-voice .voice-audio-details { margin-top: 2px; gap: 0 6px; font-size: 10px; line-height: 1.3; } + :root .ts-info-voice [data-ws-part="voice.performance.status"] { margin-top: 2px; font-size: 9.5px; line-height: 1.3; } + /* 4.1.7: keep WebSpeak's audio settings sheet above the host recovery pills. */ + :root [data-ws-part="voice.audio-settings"] { + margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); + max-height: calc(var(--ws-viewport-height, 100dvh) - 92px - env(safe-area-inset-bottom, 0px)) !important; + border-bottom-left-radius: 14px; + border-bottom-right-radius: 14px; + } + /* 4.1.12: keep the compact Classic bar on phones too; the two 22px icon + buttons stay in normal toolbar flow, so no recovery slot needs its own + row (the bar may still wrap its ordinary groups). */ + :root .ts-toolbar { flex-wrap: wrap; row-gap: 2px; height: auto; min-height: 30px; } + /* The host gives the screen-share widget wrapper a 44px min-height; inside a + wrapping (auto-height) toolbar that would stretch the bar. The visible + button keeps its own size. */ + :root .ts-toolbar .ts-tool-share { min-height: 0; } + :root .ts-workspace { display: block; } + /* Tree keeps a reasonable minimum height; long lists scroll inside it. */ + :root .ts-tree { min-height: 220px; max-height: none; border-right: 0; border-bottom: 1px solid #b0b0b0; } + :root .ts-channel-tree { flex: none; max-height: 42vh; } + /* Info and banner size to their content and can never be overpainted. */ + :root .ts-right { display: block; grid-template-rows: none; } + :root .ts-info { overflow: visible; } + :root .ts-info-voice { max-width: none; } + :root .ts-info-facts { grid-template-columns: minmax(0, 1fr); } + :root .ts-log { height: 320px; } + :root .ts-watermark { top: 7px; right: 10px; font-size: 13px; } + :root .ts-toolbar-edition { display: none; } + :root .ts-status-edition { display: none; } + /* Single column: keep the input clear of the editor recovery pill. */ + :root [data-ws-part="voice.chat.composer"] { padding-left: clamp(0px, 200px, calc(100vw - 150px)); } + :root .ts-home-body { grid-template-columns: minmax(0, 1fr); } + /* 4.1.6: keep the connect form + announcement clear of the host recovery pill. */ + :root .ts-home-body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } +} + +/* ---------- 4.1.15: member action card (right-click a member) ---------- + The per-member volume action, private message, poke, whisper target, copy + and "move to channel" all live in WebSpeak's own member menu. A skin cannot + call those actions itself (the public skin API only exposes the local + user's audio actions), so the only supported route is the host menu with + `voice.channel-tree.options.memberActions`. This block restyles that + host-rendered card through the public part hooks; placement, values and + actions stay with the host. */ +:root [data-ws-part="voice.context-menu"] { + min-width: 200px; + gap: 0; + padding: 0; + border: 1px solid #808080 !important; + border-radius: 0 !important; + background: #ffffff !important; + box-shadow: 2px 2px 4px #00000033 !important; + color: #1a1a1a; + font-family: var(--skin-font); + font-size: 11px; + z-index: 70 !important; +} +:root [data-ws-part="voice.context-menu"] [data-ws-part="voice.context-menu.header"] { + display: flex; + align-items: center; + justify-content: space-between; + gap: 6px; + min-height: 22px; + padding: 3px 5px 3px 8px; + border-bottom: 1px solid #c0c0c0; + background: linear-gradient(180deg, #f6f6f6, #e4e4e4); +} +:root [data-ws-part="voice.context-menu.header"] strong { + min-width: 0; + overflow: hidden; + padding: 0; + color: #1b3357; + font-size: 11px; + font-weight: 700; + letter-spacing: .02em; + text-overflow: ellipsis; + white-space: nowrap; +} +/* The host hides its close button on desktop and shows it in the phone sheet. + Keep that behaviour, just draw the classic square button. */ +:root [data-ws-part="voice.context-menu.header"] .member-menu-close { + flex: none; + display: grid; + place-items: center; + width: 18px; + height: 18px; + min-height: 18px; + padding: 0; + border: 1px solid transparent; + border-radius: 0; + background: transparent; + color: #333333; +} +:root [data-ws-part="voice.context-menu.header"] .member-menu-close:hover { border-color: #9db8d8; background: #dbe7f7; } +:root [data-ws-part="voice.context-menu.header"] .member-menu-close svg { width: 11px; height: 11px; } + +/* Volume: a classic sunken groove with a rectangular thumb. The host writes an + inline gradient on the range input, so the track must be overridden with + !important; the thumb pseudo-elements are ours. */ +:root [data-ws-part="voice.context-menu"] .menu-volume { + gap: 5px; + padding: 7px 8px 8px; + color: #333333; + font-size: 10px; +} +:root [data-ws-part="voice.context-menu"] .menu-volume > span { letter-spacing: .02em; } +:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"] { + width: 100%; + height: 5px; + margin: 3px 0 0; + border: 0; + border-radius: 0; + background: #ffffff !important; + box-shadow: inset 0 0 0 1px #9a9a9a, inset 0 1px 2px #0000001f; + cursor: pointer; + appearance: none; + -webkit-appearance: none; +} +:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-webkit-slider-thumb { + width: 11px; + height: 15px; + border: 1px solid #7f9db9; + border-radius: 0; + background: linear-gradient(180deg, #fdfdfd, #e2e2e2); + box-shadow: none; + appearance: none; + -webkit-appearance: none; + cursor: pointer; +} +:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-moz-range-thumb { + width: 11px; + height: 15px; + border: 1px solid #7f9db9; + border-radius: 0; + background: linear-gradient(180deg, #fdfdfd, #e2e2e2); + box-shadow: none; + cursor: pointer; +} +:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-moz-range-track { + height: 5px; + border: 0; + background: transparent; +} + +/* Action rows: flat classic menu items, blue selection on hover/focus. */ +:root [data-ws-part="voice.context-menu"] > button, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger { + display: flex; + align-items: center; + gap: 6px; + width: 100%; + min-height: 22px; + padding: 3px 8px; + border: 1px solid transparent; + border-radius: 0; + background: transparent; + color: #1a1a1a; + font: inherit; + font-size: 11px; + text-align: left; + cursor: pointer; +} +:root [data-ws-part="voice.context-menu"] > button:hover, +:root [data-ws-part="voice.context-menu"] > button:focus-visible, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:hover, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:focus-visible, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger[aria-expanded="true"] { + border-color: var(--skin-blue-deep); + background: var(--skin-blue); + color: #ffffff; +} +:root [data-ws-part="voice.context-menu"] > button svg, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger svg { + flex: none; + width: 13px; + height: 13px; + color: var(--skin-icon); +} +:root [data-ws-part="voice.context-menu"] > button:hover svg, +:root [data-ws-part="voice.context-menu"] > button:focus-visible svg, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:hover svg, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:focus-visible svg, +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger[aria-expanded="true"] svg { color: #ffffff; } +:root [data-ws-part="voice.context-menu"] .member-menu-submenu { position: relative; } +:root [data-ws-part="voice.context-menu"] .member-menu-submenu-arrow { margin-left: auto; } + +/* "Move to channel" submenu: same card, classic list. */ +:root [data-ws-part="voice.context-menu.move-submenu"] { + min-width: 190px; + gap: 0; + padding: 2px; + border: 1px solid #808080; + border-radius: 0; + background: #ffffff !important; + box-shadow: 2px 2px 4px #00000033; + font-size: 11px; +} +:root [data-ws-part="voice.context-menu.move-submenu"] button { + display: flex; + align-items: center; + gap: 6px; + width: 100%; + min-width: 0; + min-height: 22px; + padding: 3px 6px; + border: 1px solid transparent; + border-radius: 0; + background: transparent; + color: #1a1a1a; + font: inherit; + font-size: 11px; + text-align: left; + cursor: pointer; +} +:root [data-ws-part="voice.context-menu.move-submenu"] button:hover:not(:disabled), +:root [data-ws-part="voice.context-menu.move-submenu"] button:focus-visible:not(:disabled) { + border-color: var(--skin-blue-deep); + background: var(--skin-blue); + color: #ffffff; +} +:root [data-ws-part="voice.context-menu.move-submenu"] button:disabled { border-color: transparent; background: transparent; color: #8a8a8a; cursor: default; } +:root [data-ws-part="voice.context-menu.move-submenu"] button svg { flex: none; width: 13px; height: 13px; color: var(--skin-icon); } +:root [data-ws-part="voice.context-menu.move-submenu"] button:hover:not(:disabled) svg, +:root [data-ws-part="voice.context-menu.move-submenu"] button:focus-visible:not(:disabled) svg { color: #ffffff; } +:root [data-ws-part="voice.context-menu.move-submenu"] button span { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +:root [data-ws-part="voice.context-menu.move-submenu"] button small { + flex: none; + margin-left: auto; + color: #666666; + font-size: 10px; + white-space: nowrap; +} +:root [data-ws-part="voice.context-menu.move-submenu"] button:hover:not(:disabled) small { color: #dbe7f7; } +:root [data-ws-part="voice.context-menu.move-submenu"] .member-submenu-empty { display: block; padding: 6px 8px; color: #777777; font-size: 10px; } + +/* Phone sheet backdrop: plain dim, no blur. */ +:root [data-ws-part="voice.context-menu-backdrop"] { background: #00000045; backdrop-filter: none; } + +/* Hover affordance on member rows so the right-click target reads as active. */ +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"]:hover { background: var(--skin-blue-hover); } +:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-dragging="true"]:hover { background: transparent; } + +@media (max-width: 740px) { + :root [data-ws-part="voice.context-menu"] { + min-width: 0; + padding: 0 !important; + border: 0 !important; + border-top: 1px solid #808080 !important; + border-radius: 0 !important; + box-shadow: 0 -2px 8px #00000033 !important; + } + :root [data-ws-part="voice.context-menu"] [data-ws-part="voice.context-menu.header"] { min-height: 44px; padding: 4px 6px 4px 12px; } + :root [data-ws-part="voice.context-menu.header"] strong { font-size: 13px; } + :root [data-ws-part="voice.context-menu.header"] .member-menu-close { width: 36px; height: 36px; min-height: 36px; } + :root [data-ws-part="voice.context-menu"] > button, + :root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger { min-height: 44px; padding: 8px 12px; font-size: 13px; } + :root [data-ws-part="voice.context-menu"] > button svg, + :root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger svg { width: 15px; height: 15px; } + :root [data-ws-part="voice.context-menu"] .menu-volume { padding: 8px 12px 10px; font-size: 12px; } + :root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"] { height: 7px; } + :root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-webkit-slider-thumb { width: 15px; height: 21px; } + :root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-moz-range-thumb { width: 15px; height: 21px; } + :root [data-ws-part="voice.context-menu.move-submenu"] { + min-width: 0; + margin: 2px 0 0; + padding: 0 0 0 16px; + border: 0; + border-top: 1px solid #d0d0d0; + box-shadow: none; + } + :root [data-ws-part="voice.context-menu.move-submenu"] button { min-height: 40px; padding: 8px 6px; font-size: 12px; } + :root [data-ws-part="voice.context-menu-backdrop"] { background: #00000059; } +} + +@media (prefers-reduced-motion: reduce) { + :root * { animation-duration: .01ms; transition-duration: .01ms; } +} diff --git a/package.json b/package.json index 5215512..145492c 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "skin:open-voice:build": "node web/scripts/build-open-voice-surface-skin.mjs", "skin:host-chrome:build": "node web/scripts/build-host-chrome-demo-skin.mjs", "skin:kaak:build": "node web/scripts/build-kaak-voice-skin.mjs", + "skin:classic:build": "node web/scripts/build-classic-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", diff --git a/src/admin/skin-registry.test.ts b/src/admin/skin-registry.test.ts index 04d2bcf..a35a91b 100644 --- a/src/admin/skin-registry.test.ts +++ b/src/admin/skin-registry.test.ts @@ -98,6 +98,17 @@ test("the bundled KAAK skin can be selected as the instance default without a cu assert.deepEqual(await registry.list(), []); }); +test("the bundled Classic skin can be selected as the instance default without a custom installation", async (context) => { + const directory = await mkdtemp(path.join(os.tmpdir(), "webspeak-skin-classic-default-")); + context.after(() => rm(directory, { recursive: true, force: true })); + const registry = new SkinRegistry(directory); + + await registry.setDefaultSkin("community.ts3-classic-console"); + + assert.equal(await registry.getDefaultSkinId(), "community.ts3-classic-console"); + assert.deepEqual(await registry.list(), []); +}); + test("server accepts validated declarative v2 layouts and rejects permissions or unregistered components", async (context) => { const directory = await mkdtemp(path.join(os.tmpdir(), "webspeak-skin-v2-")); context.after(() => rm(directory, { recursive: true, force: true })); @@ -384,11 +395,11 @@ test("skin registry rejects path traversal and mismatched local ZIP headers", as assert.deepEqual(await registry.list(), []); }); -test("the four bundled skins cannot be replaced or removed through the registry", async (context) => { +test("the five bundled skins cannot be replaced or removed through the registry", async (context) => { const directory = await mkdtemp(path.join(os.tmpdir(), "webspeak-skin-builtins-")); context.after(() => rm(directory, { recursive: true, force: true })); const registry = new SkinRegistry(directory); - for (const id of ["builtin.light", "builtin.dark", "community.illusia-voice", "community.kaak-voice"]) { + for (const id of ["builtin.light", "builtin.dark", "community.illusia-voice", "community.kaak-voice", "community.ts3-classic-console"]) { await assert.rejects(registry.save(Buffer.alloc(22), id), (error: unknown) => error instanceof SkinRegistryError && error.code === "SKIN_BUILTIN_PROTECTED"); await assert.rejects(registry.remove(id), (error: unknown) => error instanceof SkinRegistryError && error.code === "SKIN_BUILTIN_PROTECTED"); await assert.rejects(registry.setEnabled(id, false), (error: unknown) => error instanceof SkinRegistryError && error.code === "SKIN_BUILTIN_PROTECTED"); diff --git a/src/admin/skin-registry.ts b/src/admin/skin-registry.ts index 2c16551..b394e16 100644 --- a/src/admin/skin-registry.ts +++ b/src/admin/skin-registry.ts @@ -31,7 +31,7 @@ const MAX_IMAGE_BYTES = 16 * 1024 * 1024; const MAX_FONT_BYTES = 4 * 1024 * 1024; const MAX_SKINS = 50; const MAX_TOTAL_ARCHIVES = 200 * 1024 * 1024; -export const BUILTIN_SKIN_IDS = ["builtin.light", "builtin.dark", "community.illusia-voice", "community.kaak-voice"] as const; +export const BUILTIN_SKIN_IDS = ["builtin.light", "builtin.dark", "community.illusia-voice", "community.kaak-voice", "community.ts3-classic-console"] as const; const BUILTIN_SKIN_ID_SET = new Set(BUILTIN_SKIN_IDS); const EOCD_SIGNATURE = 0x06054b50; const CENTRAL_SIGNATURE = 0x02014b50; diff --git a/web/public/skins/ts3-classic-console.wskin b/web/public/skins/ts3-classic-console.wskin new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?5%D zQTw{MCE7m8VOGVwa`1VcAh~SdUFR?ljW|DJfaAD9^_n4aRVar)u^e}ms0rc-%#)B$ z5qNj>9t@3UW4962yzacZ&E5Hp!T`KjKYGV;GsvgCsW)g0|D#YV zTq{(8r7>7N@kKS%yR$Da`sGUTTNL)oz-{qaM@Re?F;|FlM@pc%Wr}YFWsj&)O&GVV z8cb<59kU=VP%151VS_3_GRJ$9KrD3HYgJ=$)E3O9?tlY;sC; zGC8eXY8!OQ&RM83pAJYWUnvWw!DvY-1qA(tfqM&ev#y@xLt(4g zb%eapsuU5v`m{me@6iRFoF;6aTD}i>D+JGlo@n`nStevTUp(b`oTZC9)E@o^7FYj{ zL!^Gi9zS$xE`z-!@7lyhr}=&W?nu150tiAp>>u>cm^ON*^{Ig-w`jx87B0c$uVAOD@UJ5I{kDmM!mD# z018db>-?^Q%-6fb=EddDtZL3EZ=@d=RiQYzIw?OXK1G{M(ko55Dfl`?ugk>7evsMt zbFdUeVHD!+)DMIpls&kv;IQs&DAvroix!g!oZ;$awQvv!Ho*1gfpb>dV6V*b!5#*! z+{yRs3?4`y1f?Kbm^@v=zeSduKPjs9-MhxAryCHw{h@wD5;HC`7Th=H)^!evBe^v&<2WHW>_2L?d{ z`v2Eg_#W>6)BaIy;os7Kga7}lEBv0g|62y&->QFy)c>pUmHuad{ol%eZvg(Qgi-sC m@*mrQe~bUUrvDW?8~kI16=c96{__$1`yu`who0eo-u?%)gto^3 literal 0 HcmV?d00001 diff --git a/web/scripts/build-classic-skin.mjs b/web/scripts/build-classic-skin.mjs new file mode 100644 index 0000000..eab35b7 --- /dev/null +++ b/web/scripts/build-classic-skin.mjs @@ -0,0 +1,22 @@ +import { readFile, writeFile } from "node:fs/promises"; +import { fileURLToPath } from "node:url"; +import { zipSync } from "fflate"; + +// Classic release 4.1.16 layout: the five package files sit at the ZIP root, +// in this order, and the archive also carries the skin's chrome.json. +const sourceDirectory = new URL("../../docs/examples/ts3-classic-console/", import.meta.url); +const sourceFiles = ["manifest.json", "skin.css", "content.json", "components.json", "chrome.json"]; +const files = Object.fromEntries(await Promise.all(sourceFiles.map(async (name) => [ + name, + await readFile(new URL(name, sourceDirectory)), +]))); +// Fixed ZIP timestamp (local-component constructor, independent of the build +// machine's time zone) so rebuilding reproduces the published 4.1.16 archive +// byte for byte instead of stamping the current time. +const releaseTimestamp = new Date(2026, 11, 4, 13, 10, 52); +const archive = zipSync(files, { level: 9, mtime: releaseTimestamp }); + +await Promise.all([ + writeFile(fileURLToPath(new URL("../../docs/examples/ts3-classic-console.wskin", import.meta.url)), archive), + writeFile(fileURLToPath(new URL("../public/skins/ts3-classic-console.wskin", import.meta.url)), archive), +]); diff --git a/web/src/services/instance-authorization.test.ts b/web/src/services/instance-authorization.test.ts index 75334da..eba9cb7 100644 --- a/web/src/services/instance-authorization.test.ts +++ b/web/src/services/instance-authorization.test.ts @@ -30,10 +30,11 @@ test('malformed or inaccessible storage never grants access; explicit choices su assert.equal(unavailable.allowed.value, false); unavailable.set(true); assert.equal(unavailable.allowed.value, true); unavailable.set(false); assert.equal(unavailable.allowed.value, false); }); -test('only the three official IDs bypass consent, including when KAAK is shipped as built-in', () => { +test('only the three official IDs bypass consent, including when KAAK or Classic is shipped as built-in', () => { setInstanceAuthorization(false); for (const id of ['builtin.light', 'builtin.dark', 'community.illusia-voice']) assert.equal(canUseSkin(id), true); - for (const id of ['community.kaak-voice', 'community.discord-voice', 'builtin.other']) assert.equal(canUseSkin(id), false); - setInstanceAuthorization(true); assert.equal(canUseSkin('community.kaak-voice'), true); + for (const id of ['community.kaak-voice', 'community.ts3-classic-console', 'community.discord-voice', 'builtin.other']) assert.equal(canUseSkin(id), false); + setInstanceAuthorization(true); + for (const id of ['community.kaak-voice', 'community.ts3-classic-console']) assert.equal(canUseSkin(id), true); setInstanceAuthorization(false); }); diff --git a/web/src/services/skin-catalog.test.ts b/web/src/services/skin-catalog.test.ts index eb741b1..7c028f0 100644 --- a/web/src/services/skin-catalog.test.ts +++ b/web/src/services/skin-catalog.test.ts @@ -2,7 +2,9 @@ import assert from "node:assert/strict"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { + BUILTIN_CLASSIC_SKIN_ID, BUILTIN_SKIN_CATALOG, + getBundledSkinPackageUrl, getPublicDefaultSkinId, isPublicSkinEnabled, listPublicSkins, @@ -42,6 +44,7 @@ test("skin catalog always includes protected built-ins and exposes only enabled { id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.6", installedAt: 2, enabled: false }, { id: "community.illusia-voice", name: "Spoofed", version: "9.9.9", author: "Other", license: "MIT", minAppVersion: "0.0.1", installedAt: 3 }, { id: "community.kaak-voice", name: "Spoofed KAAK", version: "9.9.9", author: "Other", license: "MIT", minAppVersion: "0.0.1", installedAt: 4 }, + { id: "community.ts3-classic-console", name: "Spoofed Classic", version: "9.9.9", author: "Other", license: "MIT", minAppVersion: "0.0.1", installedAt: 5 }, ], }), { status: 200, headers: { "content-type": "application/json" } }); @@ -52,14 +55,17 @@ test("skin catalog always includes protected built-ins and exposes only enabled "builtin.dark", "community.illusia-voice", "community.kaak-voice", + "community.ts3-classic-console", "sample-skin", ]); - assert.deepEqual(BUILTIN_SKIN_CATALOG.map((skin) => skin.id), skins.slice(0, 4).map((skin) => skin.id)); + assert.deepEqual(BUILTIN_SKIN_CATALOG.map((skin) => skin.id), skins.slice(0, 5).map((skin) => skin.id)); assert.equal(getPublicDefaultSkinId(), "sample-skin"); assert.equal(isPublicSkinEnabled("sample-skin"), true); assert.equal(isPublicSkinEnabled("disabled-skin"), false); assert.equal(isPublicSkinEnabled("community.illusia-voice"), true); assert.equal(isPublicSkinEnabled("community.kaak-voice"), true); + assert.equal(isPublicSkinEnabled("community.ts3-classic-console"), true); + assert.equal(skins.find((skin) => skin.id === "community.ts3-classic-console")?.name, "Classic"); } finally { globalThis.fetch = originalFetch; } @@ -74,9 +80,23 @@ test("invalid or disabled instance defaults safely fall back to the protected da try { const skins = await listPublicSkins(); - assert.equal(skins.length, 4); + assert.equal(skins.length, 5); assert.equal(getPublicDefaultSkinId(), "builtin.light"); } finally { globalThis.fetch = originalFetch; } }); + +test("the bundled Classic skin is listed after KAAK and loads from its own bundled package", () => { + const ids = BUILTIN_SKIN_CATALOG.map((skin) => skin.id); + assert.equal(ids.indexOf(BUILTIN_CLASSIC_SKIN_ID), ids.indexOf("community.kaak-voice") + 1); + const classic = BUILTIN_SKIN_CATALOG.find((skin) => skin.id === BUILTIN_CLASSIC_SKIN_ID); + assert.equal(classic?.name, "Classic"); + assert.equal(classic?.version, "4.1.16"); + assert.equal(classic?.author, "WebSpeak Community"); + assert.equal(classic?.license, "CC-BY-4.0"); + assert.equal(classic?.builtIn, true); + assert.equal(classic?.previewUrl, undefined, "Classic ships without a preview image"); + assert.equal(getBundledSkinPackageUrl(BUILTIN_CLASSIC_SKIN_ID), "/skins/ts3-classic-console.wskin"); + assert.equal(getBundledSkinPackageUrl("community.kaak-voice"), "/skins/kaak-voice.wskin"); +}); diff --git a/web/src/services/skin-catalog.ts b/web/src/services/skin-catalog.ts index 5905558..8ff4b5e 100644 --- a/web/src/services/skin-catalog.ts +++ b/web/src/services/skin-catalog.ts @@ -4,6 +4,7 @@ export type { SkinCatalogEntry } from "../../../src/shared/skin-catalog.js"; export const BUILTIN_ILLUSIA_SKIN_ID = "community.illusia-voice"; export const BUILTIN_KAAK_SKIN_ID = "community.kaak-voice"; +export const BUILTIN_CLASSIC_SKIN_ID = "community.ts3-classic-console"; export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ { @@ -54,10 +55,22 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ installedAt: 0, builtIn: true, }, + { + id: BUILTIN_CLASSIC_SKIN_ID, + name: "Classic", + version: "4.1.16", + author: "WebSpeak Community", + license: "CC-BY-4.0", + description: "A community visual homage to the classic TeamSpeak 3 light desktop client for both the connection page and the voice workspace: a classic group-box connect window, a compact icon toolbar, a full-height server tree with members, a SERVER INFORMATION facts pane and a bottom SERVER LOG with chat.", + minAppVersion: "0.3.3", + installedAt: 0, + builtIn: true, + }, ]; const BUILTIN_ILLUSIA_PACKAGE_URL = "/skins/illusia-voice.wskin"; const BUILTIN_KAAK_PACKAGE_URL = "/skins/kaak-voice.wskin"; +const BUILTIN_CLASSIC_PACKAGE_URL = "/skins/ts3-classic-console.wskin"; let publicDirectoryLoaded = false; let publicEnabledSkinIds = new Set(BUILTIN_SKIN_CATALOG.map((skin) => skin.id)); let publicDefaultSkinId = "builtin.light"; @@ -75,6 +88,7 @@ export function isPublicSkinEnabled(id: string): boolean { export function getBundledSkinPackageUrl(id: string): string | null { if (id === BUILTIN_ILLUSIA_SKIN_ID) return BUILTIN_ILLUSIA_PACKAGE_URL; if (id === BUILTIN_KAAK_SKIN_ID) return BUILTIN_KAAK_PACKAGE_URL; + if (id === BUILTIN_CLASSIC_SKIN_ID) return BUILTIN_CLASSIC_PACKAGE_URL; return null; } diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index a52d352..91beba4 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -1,7 +1,8 @@ import assert from "node:assert/strict"; +import { createHash } from "node:crypto"; import { readFile, readdir } from "node:fs/promises"; import test from "node:test"; -import { strToU8, zipSync } from "fflate"; +import { strToU8, unzipSync, zipSync } from "fflate"; import { importSkinPack, resolveSkinCssAssets, SkinPackError } from "./skin-pack.js"; import { scopeBuiltinThemeForCustomSkin } from "./skin-cascade.js"; import { BUILTIN_SKIN_CATALOG } from "./skin-catalog.js"; @@ -911,6 +912,40 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.ok(skin.css.includes("@media (max-width: 820px)")); }); + +test("the bundled Classic package matches the published 4.1.16 release and keeps its chrome.json", async () => { + const archive = await readFile(new URL("../../../docs/examples/ts3-classic-console.wskin", import.meta.url)); + const bundledArchive = await readFile(new URL("../../public/skins/ts3-classic-console.wskin", import.meta.url)); + assert.deepEqual(archive, bundledArchive, "the downloadable example and bundled skin stay in sync"); + assert.equal(createHash("sha256").update(archive).digest("hex"), "1e5b6ef0f41d7afc644f4f16938b439493ebb8c8bb076efd154157d42b635711"); + const entries = unzipSync(new Uint8Array(archive)); + assert.deepEqual(Object.keys(entries), ["manifest.json", "skin.css", "content.json", "components.json", "chrome.json"]); + for (const name of Object.keys(entries)) { + const source = await readFile(new URL(`../../../docs/examples/ts3-classic-console/${name}`, import.meta.url)); + assert.deepEqual(Buffer.from(entries[name]), source, `${name} in the archive matches the example source`); + } + const skin = await importSkinPack(new File([archive], "ts3-classic-console.wskin", { type: "application/octet-stream" })); + assert.equal(skin.id, "community.ts3-classic-console"); + assert.equal(skin.name, "Classic"); + assert.equal(skin.version, "4.1.16"); + assert.equal(skin.author, "WebSpeak Community"); + assert.equal(skin.license, "CC-BY-4.0"); + assert.equal(skin.minAppVersion, "0.3.3"); + assert.equal(skin.schemaVersion, 3); + assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version); + assert.deepEqual(skin.chromeData?.hiddenParts, ["host.plugins.launcher"]); + assert.deepEqual(skin.chromeData?.slots?.["host.recovery"], { + mode: "toolbar", + appearance: "icon", + anchor: [ + "skin.home.ts3-home-console.part-ts-recovery-slot", + "skin.voice.ts3-voice-console.part-ts-recovery-slot", + ], + align: "end", + compact: false, + }); +}); + test("v4 skin packages validate Wasm entry ABI and cache it as application/wasm", async () => { const wasmPlugin = { schemaVersion: 1,