mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-06 05:22:49 +08:00
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.
This commit is contained in:
1 parent
001457d004
commit
25b0a01ae7
24 files changed
+3590
-20
No files matched your search
@@ -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.
|
||||
@@ -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.
|
||||
@@ -151,4 +151,4 @@ export default async function activate({ dataDir, config, publicConfig, events,
|
||||
|
||||
## 实例级用户授权
|
||||
|
||||
首次访问时,宿主统一征求第三方皮肤与功能应用的使用授权;决定按浏览器源保存,不迁移旧的逐皮肤授权。拒绝或未选择时,只显示日间、夜间、ILLUSIA 三款官方皮肤,KAAK 和功能应用入口均隐藏。皮肤菜单最后的“授权”可随时更改。撤回会关闭 iframe 并撤销当前打开操作/应用会话,不停止管理员启用的全实例后台服务。应用不得以入口以外的方式绕过宿主授权,也无需重复询问同一份宿主上下文授权;相机、麦克风等浏览器原生许可仍由浏览器处理。
|
||||
首次访问时,宿主统一征求第三方皮肤与功能应用的使用授权;决定按浏览器源保存,不迁移旧的逐皮肤授权。拒绝或未选择时,只显示日间、夜间、ILLUSIA 三款官方皮肤,KAAK、Classic 和功能应用入口均隐藏。皮肤菜单最后的“授权”可随时更改。撤回会关闭 iframe 并撤销当前打开操作/应用会话,不停止管理员启用的全实例后台服务。应用不得以入口以外的方式绕过宿主授权,也无需重复询问同一份宿主上下文授权;相机、麦克风等浏览器原生许可仍由浏览器处理。
|
||||
+1
-1
@@ -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. |
|
||||
|
||||
|
||||
+1
-1
@@ -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. |
|
||||
|
||||
|
||||
+1
-1
@@ -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。 |
|
||||
|
||||
|
||||
+1
-1
@@ -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. |
|
||||
|
||||
|
||||
@@ -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。 |
|
||||
|
||||
|
||||
@@ -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/<plugin-id>/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 绑定描述指内部校验记录,其创建必须在实例授权允许之后(或固定官方皮肤之内)。
|
||||
Binary file not shown.
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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": "オーディオツール"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -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",
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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<string>(BUILTIN_SKIN_IDS);
|
||||
const EOCD_SIGNATURE = 0x06054b50;
|
||||
const CENTRAL_SIGNATURE = 0x02014b50;
|
||||
|
||||
Binary file not shown.
@@ -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),
|
||||
]);
|
||||
@@ -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);
|
||||
});
|
||||
@@ -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");
|
||||
});
|
||||
@@ -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<string>(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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user