diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index c7b10db..7730f19 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -30,7 +30,7 @@ The owner authorized inspection of the first two voice rooms in the KOOK server. ## Returning to the workspace -KAAK 3.1.125 requires WebSpeak 0.2.8 with workspace API v1. Its manifest opts into the generic persistent workspace policy: first-time visitors keep the connection home until a successful voice connection; returning visitors and disconnected users retain the workspace and server rail. Restoring the workspace never starts a connection or captures the microphone. The host restores the recent target only for ordinary visits, preserving explicit invitation and target links. Clearing browser data resets this history. +KAAK 3.1.126 requires WebSpeak 0.2.8 with workspace API v1. Its manifest opts into the generic persistent workspace policy: first-time visitors keep the connection home until a successful voice connection; returning visitors and disconnected users retain the workspace and server rail. Restoring the workspace never starts a connection or captures the microphone. The host restores the recent target only for ordinary visits, preserving explicit invitation and target links. Clearing browser data resets this history. The permission-gated `voice.connection-status` host widget provides the connection state, nickname and explicit reconnect button beside server navigation at desktop and narrow widths. Open-mode server switching and adding servers reuse the host connection flow, including saved-password lookup and trusted password prompts; fixed mode retains its restrictions. All KAAK layout and styling remain in the package. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index 03ab676..5b6c832 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/components.json b/docs/examples/kaak-voice/components.json index ad61781..f7c9b2f 100644 --- a/docs/examples/kaak-voice/components.json +++ b/docs/examples/kaak-voice/components.json @@ -581,6 +581,10 @@ { "widget": "app.language-switcher", "part": "rail-language" + }, + { + "widget": "home.social-links", + "part": "rail-links" } ] }, diff --git a/docs/examples/kaak-voice/content.json b/docs/examples/kaak-voice/content.json index 82dbf07..dae5574 100644 --- a/docs/examples/kaak-voice/content.json +++ b/docs/examples/kaak-voice/content.json @@ -61,7 +61,11 @@ "kaakScreenShare": "屏幕共享", "kaakLeaveVoice": "退出", "kaakCurrentIdentity": "当前 TeamSpeak 身份", - "kaakOnline": "在线" + "kaakOnline": "在线", + "githubRepository": "GitHub 仓库", + "qqGroup": "QQ群", + "adminConsole": "管理控制台", + "communityLinks": "社区与管理入口" } }, "en": { @@ -124,7 +128,11 @@ "kaakScreenShare": "Screen share", "kaakLeaveVoice": "Leave", "kaakCurrentIdentity": "Current TeamSpeak identity", - "kaakOnline": "Online" + "kaakOnline": "Online", + "githubRepository": "GitHub repository", + "qqGroup": "QQ group", + "adminConsole": "Admin console", + "communityLinks": "Community and administration" } }, "de": { @@ -187,7 +195,11 @@ "kaakScreenShare": "Bildschirm teilen", "kaakLeaveVoice": "Verlassen", "kaakCurrentIdentity": "Aktuelle TeamSpeak-Identität", - "kaakOnline": "Online" + "kaakOnline": "Online", + "githubRepository": "GitHub-Repository", + "qqGroup": "QQ-Gruppe", + "adminConsole": "Administrationskonsole", + "communityLinks": "Community und Verwaltung" } }, "ru": { @@ -250,7 +262,11 @@ "kaakScreenShare": "Демонстрация экрана", "kaakLeaveVoice": "Выйти", "kaakCurrentIdentity": "Текущая личность TeamSpeak", - "kaakOnline": "В сети" + "kaakOnline": "В сети", + "githubRepository": "Репозиторий GitHub", + "qqGroup": "Группа QQ", + "adminConsole": "Панель администратора", + "communityLinks": "Сообщество и управление" } }, "ja": { @@ -313,7 +329,11 @@ "kaakScreenShare": "画面共有", "kaakLeaveVoice": "退出", "kaakCurrentIdentity": "現在の TeamSpeak ID", - "kaakOnline": "オンライン" + "kaakOnline": "オンライン", + "githubRepository": "GitHub リポジトリ", + "qqGroup": "QQ グループ", + "adminConsole": "管理コンソール", + "communityLinks": "コミュニティと管理" } } } diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index 62cbee9..3c0d99c 100644 --- a/docs/examples/kaak-voice/manifest.json +++ b/docs/examples/kaak-voice/manifest.json @@ -3,7 +3,7 @@ "packageType": "open-skin", "id": "community.kaak-voice", "name": "KAAK", - "version": "3.1.125", + "version": "3.1.126", "author": "WebSpeak Project", "license": "AGPL-3.0-only", "description": "A KOOK-inspired WebSpeak skin with a split-screen connection home, searchable server header, TeamSpeak banner, nested channel members, unified chat with local history, and a compact audio dock.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index 06717b2..76b3017 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -4639,3 +4639,67 @@ @media (max-width: 820px) { [data-ws-plugin-part="kaak-workspace.connection-status"] { margin: 10px 4px; } } + +/* Shared public links: management follows Add; community links finish the rail. */ +[data-ws-plugin-part="kaak-workspace.server-rail"] { + gap: 10px; + overflow-x: hidden; + overflow-y: auto; +} +[data-ws-plugin-part="kaak-workspace.server-list"] { min-height: 58px; } +[data-ws-plugin-part="kaak-workspace.rail-links"], +[data-ws-plugin-part="kaak-workspace.rail-links"] [data-ws-part="home.social-links"] { display: contents; } +[data-ws-plugin-part="kaak-workspace.rail-links"] a { + position: relative; + display: grid; + flex: 0 0 44px; + place-items: center; + box-sizing: border-box; + width: 44px; + height: 44px; + min-width: 44px; + min-height: 44px; + padding: 0; + border: 1px solid transparent; + border-radius: 14px; + color: #b7bbc4; + background: transparent; + text-decoration: none; + transition: color .15s ease, background-color .15s ease, border-color .15s ease; +} +[data-ws-plugin-part="kaak-workspace.rail-links"] a .ui-icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; } +[data-ws-plugin-part="kaak-workspace.rail-links"] a[href="/admin"] { + order: 3; + flex-basis: 58px; + width: 58px; + height: 58px; + border-color: #3d4048; + border-radius: 18px; + color: #d1d5dc; + background: var(--skin-kaak-rail-item-bg); +} +[data-ws-plugin-part="kaak-workspace.rail-skin"] { order: 4; } +[data-ws-plugin-part="kaak-workspace.rail-language"] { order: 5; } +[data-ws-plugin-part="kaak-workspace.rail-links"] a[href*="github.com/"] { order: 6; } +[data-ws-plugin-part="kaak-workspace.rail-links"] a[href*="qm.qq.com/"] { order: 7; } +[data-ws-plugin-part="kaak-workspace.rail-links"] a:hover, +[data-ws-plugin-part="kaak-workspace.rail-links"] a:focus-visible { + border-color: #699b32; + color: #a8ed50; + background: #2b3524; +} +[data-ws-plugin-part="kaak-workspace.rail-links"] a:focus-visible { outline: 2px solid #a8ed50; outline-offset: 3px; } +@media (max-height: 620px) { + [data-ws-plugin-part="kaak-workspace.server-rail"] { gap: 8px; padding-top: 10px; padding-bottom: max(82px, env(safe-area-inset-bottom)); } + [data-ws-plugin-part="kaak-workspace.server-add"], + [data-ws-plugin-part="kaak-workspace.rail-links"] a[href="/admin"], + [data-ws-plugin-part="kaak-workspace.rail-skin"], + [data-ws-plugin-part="kaak-workspace.rail-language"] { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border-radius: 14px; } + [data-ws-plugin-part="kaak-workspace.rail-skin"] .skin-switcher, + [data-ws-plugin-part="kaak-workspace.rail-skin"] .skin-trigger, + [data-ws-plugin-part="kaak-workspace.rail-language"] .language-switcher, + [data-ws-plugin-part="kaak-workspace.rail-language"] .language-trigger { width: 44px; height: 44px; min-height: 44px; border-radius: 14px; } +} +@media (prefers-reduced-motion: reduce) { + [data-ws-plugin-part="kaak-workspace.rail-links"] a { transition: none; } +} diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index 03ab676..5b6c832 100644 Binary files a/web/public/skins/kaak-voice.wskin and b/web/public/skins/kaak-voice.wskin differ diff --git a/web/src/services/skin-catalog.ts b/web/src/services/skin-catalog.ts index f603ac6..815f42e 100644 --- a/web/src/services/skin-catalog.ts +++ b/web/src/services/skin-catalog.ts @@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ { id: BUILTIN_KAAK_SKIN_ID, name: "KAAK", - version: "3.1.125", + version: "3.1.126", author: "WebSpeak Project", license: "AGPL-3.0-only", description: "A KOOK-inspired WebSpeak skin with a split-screen connection home, searchable server header, TeamSpeak banner, nested channel members, unified chat with local history, and a compact audio dock.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index d36096c..e9dac8f 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -486,7 +486,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy const file = new File([archive], "kaak-voice.wskin", { type: "application/octet-stream" }); const skin = await importSkinPack(file); assert.equal(skin.id, "community.kaak-voice"); - assert.equal(skin.version, "3.1.125"); + assert.equal(skin.version, "3.1.126"); assert.deepEqual(skin.workspace, { apiVersion: 1, mode: "persistent" }); assert.equal(skin.minAppVersion, "0.2.8"); assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version);