mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
fix(skins): expose screen-share status to custom members
This commit is contained in:
1 parent
7fe8719812
commit
8b5db8af1f
20 files changed
+295
-41
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Open Voice Surface scaffold
|
||||
|
||||
This importable schema v2 surface package exercises complete public home and voice pages using only declarative nodes and WebSpeak-owned controls. It includes server switching, channel navigation, visible members, chat, audio, whisper, screen sharing, connection controls, and the built-in language and skin selectors. It contains no discovery, events, shop, companion, advertising, or administration pages.
|
||||
This importable schema v3 surface package exercises complete public home and voice pages using only declarative nodes and WebSpeak-owned controls. It includes server switching, channel navigation, visible members, per-member screen-share status and a watch action, chat, audio, whisper, connection controls, and the built-in language and skin selectors. It contains no discovery, events, shop, companion, advertising, or administration pages.
|
||||
|
||||
This is an implementation scaffold for testing the open-skin format, not a pixel-matched KOOK skin. The visual reference was read in the in-app browser in the first two user-authorized voice rooms. The separate [KAAK voice sample](./KAAK-VOICE.md) records the voice-only layout findings and applies them to the channel and member sidebars. No server/room identifiers, member names, or chat contents were retained. Discovery, companion shop, events, ads, and operator/admin pages are outside the sample's scope.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -85,7 +85,15 @@
|
||||
},
|
||||
"disconnect": { "type": "voice.disconnect", "args": {} },
|
||||
"whisper-on": { "type": "voice.setWhisperActive", "args": { "active": true } },
|
||||
"whisper-off": { "type": "voice.setWhisperActive", "args": { "active": false } }
|
||||
"whisper-off": { "type": "voice.setWhisperActive", "args": { "active": false } },
|
||||
"watch-screen-share": {
|
||||
"type": "voice.joinScreenShare",
|
||||
"args": { "streamId": "{{member.screenShareStreamId}}" }
|
||||
},
|
||||
"watch-channel-member-screen-share": {
|
||||
"type": "voice.joinScreenShare",
|
||||
"args": { "streamId": "{{voicemember.screenShareStreamId}}" }
|
||||
}
|
||||
},
|
||||
"state": { "selectedchannel": "", "message": "" },
|
||||
"root": {
|
||||
@@ -227,6 +235,22 @@
|
||||
"when": { "path": "voicemember.speaking", "equals": true },
|
||||
"attributes": { "aria-label": "Speaking" },
|
||||
"children": [{ "text": "●" }]
|
||||
},
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "channel-member-screen-share",
|
||||
"when": { "path": "voicemember.screenSharing", "equals": true },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "channel-member-screen-share-live", "children": [{ "text": "SHARING" }] },
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "channel-member-screen-share-watch",
|
||||
"when": { "path": "voicemember.self", "equals": false },
|
||||
"attributes": { "type": "button", "aria-label": "Watch {{voicemember.name}}'s screen" },
|
||||
"events": { "click": "watch-channel-member-screen-share" },
|
||||
"children": [{ "text": "WATCH" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -363,6 +387,22 @@
|
||||
"when": { "path": "member.status", "equals": "away" },
|
||||
"attributes": { "aria-label": "Away" },
|
||||
"children": [{ "text": "AWAY" }]
|
||||
},
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "member-screen-share",
|
||||
"when": { "path": "member.screenSharing", "equals": true },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "member-screen-share-live", "children": [{ "text": "SHARING" }] },
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "member-screen-share-watch",
|
||||
"when": { "path": "member.self", "equals": false },
|
||||
"attributes": { "type": "button", "aria-label": "Watch {{member.name}}'s screen" },
|
||||
"events": { "click": "watch-screen-share" },
|
||||
"children": [{ "text": "WATCH" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.harbor-voice",
|
||||
"name": "Harbor Voice Workspace",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired dark voice workspace using only WebSpeak host controls and public session data.",
|
||||
|
||||
@@ -420,6 +420,35 @@
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-screen-share"] {
|
||||
grid-column: 2 / -1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 8px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-screen-share-watch"],
|
||||
[data-ws-plugin-part="harbor-workspace.member-screen-share-watch"] {
|
||||
min-height: 28px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid #7ed95755;
|
||||
border-radius: 5px;
|
||||
color: var(--skin-harbor-text);
|
||||
background: var(--skin-harbor-raised);
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-screen-share-watch"]:hover,
|
||||
[data-ws-plugin-part="harbor-workspace.member-screen-share-watch"]:hover {
|
||||
color: var(--skin-harbor-accent);
|
||||
background: #313238;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation"] {
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
@@ -617,6 +646,16 @@
|
||||
[data-ws-plugin-part="harbor-workspace.member-away-state"],
|
||||
[data-ws-plugin-part="harbor-workspace.speaking-indicator"] { grid-column: 2 / -1; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-screen-share"] {
|
||||
grid-column: 2 / -1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 8px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock"] {
|
||||
z-index: 4;
|
||||
grid-column: 2;
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"schemaVersion": 2,
|
||||
"schemaVersion": 3,
|
||||
"components": [
|
||||
{
|
||||
"id": "open-voice-home",
|
||||
@@ -54,7 +54,17 @@
|
||||
"servers.quickList.switch",
|
||||
"session.channels.read",
|
||||
"session.members.read",
|
||||
"session.channel.join"
|
||||
"session.channel.join",
|
||||
"chat.channel.read",
|
||||
"chat.channel.send",
|
||||
"audio.status.read",
|
||||
"audio.microphone.control",
|
||||
"audio.output.control",
|
||||
"voice.whisper.status.read",
|
||||
"voice.whisper.control",
|
||||
"voice.disconnect",
|
||||
"voice.screenShare.read",
|
||||
"voice.screenShare.control"
|
||||
],
|
||||
"actions": {
|
||||
"switch-server": {
|
||||
@@ -64,6 +74,10 @@
|
||||
"join-channel": {
|
||||
"type": "voice.joinChannel",
|
||||
"args": { "channelId": "{{channel.id}}" }
|
||||
},
|
||||
"watch-screen-share": {
|
||||
"type": "voice.joinScreenShare",
|
||||
"args": { "streamId": "{{member.screenShareStreamId}}" }
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
@@ -187,6 +201,27 @@
|
||||
"when": { "path": "member.speaking", "equals": true },
|
||||
"attributes": { "aria-label": "Speaking" },
|
||||
"children": [{ "text": "Speaking" }]
|
||||
},
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "member-screen-share",
|
||||
"when": { "path": "member.screenSharing", "equals": true },
|
||||
"children": [
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "member-screen-share-live",
|
||||
"attributes": { "role": "status" },
|
||||
"children": [{ "text": "Sharing screen" }]
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "member-screen-share-watch",
|
||||
"when": { "path": "member.self", "equals": false },
|
||||
"attributes": { "type": "button", "aria-label": "Watch {{member.name}}'s screen" },
|
||||
"events": { "click": "watch-screen-share" },
|
||||
"children": [{ "text": "Watch" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.open-voice-surface",
|
||||
"name": "Open Voice Surface",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A complete, script-free public voice client surface scaffold.",
|
||||
|
||||
@@ -231,6 +231,25 @@
|
||||
|
||||
[data-ws-plugin-part="open-voice-workspace.speaking-indicator"] { color: var(--skin-voice-live); font-size: 10px; }
|
||||
|
||||
[data-ws-plugin-part="open-voice-workspace.member-screen-share"] {
|
||||
grid-column: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--skin-voice-live);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="open-voice-workspace.member-screen-share-watch"] {
|
||||
min-height: 32px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid color-mix(in srgb, var(--skin-voice-live) 50%, transparent);
|
||||
border-radius: 7px;
|
||||
color: var(--skin-voice-text);
|
||||
background: var(--skin-voice-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="open-voice-workspace"] [data-ws-part="voice.chat"],
|
||||
[data-ws-plugin-part="open-voice-workspace"] [data-ws-part="voice.audio-controls"],
|
||||
[data-ws-plugin-part="open-voice-workspace"] [data-ws-part="voice.connection-controls"],
|
||||
|
||||
Reference in new issue
Block a user