mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix: repair KAAK controls and add invite link action
This commit is contained in:
1 parent
45bec91daa
commit
224a641372
12 files changed
+164
-19
No files matched your search
Binary file not shown.
@@ -364,6 +364,7 @@
|
||||
"permissions": [
|
||||
"ui.surface.replace",
|
||||
"session.status.read",
|
||||
"session.invite.copy",
|
||||
"session.channels.read",
|
||||
"session.members.read",
|
||||
"session.memberAvatars.read",
|
||||
@@ -392,6 +393,10 @@
|
||||
"type": "voice.disconnect",
|
||||
"args": {}
|
||||
},
|
||||
"copy-invite-link": {
|
||||
"type": "session.copyInviteLink",
|
||||
"args": {}
|
||||
},
|
||||
"stop-screen-share": {
|
||||
"type": "voice.stopScreenShare",
|
||||
"args": {}
|
||||
@@ -703,6 +708,23 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "mobile-room-invite-copy",
|
||||
"attributes": {
|
||||
"type": "button",
|
||||
"role": "menuitem",
|
||||
"aria-label": "复制邀请链接 / Copy invite link"
|
||||
},
|
||||
"events": {
|
||||
"click": "copy-invite-link"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"text": "复制邀请链接 / Copy invite link"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "mobile-room-menu-close",
|
||||
@@ -1106,6 +1128,50 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "voice-stage-invite",
|
||||
"className": "voice-stage-invite",
|
||||
"attributes": {
|
||||
"type": "button",
|
||||
"aria-label": "复制邀请链接 / Copy invite link",
|
||||
"title": "复制邀请链接 / Copy invite link"
|
||||
},
|
||||
"events": {
|
||||
"click": "copy-invite-link"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"tag": "svg",
|
||||
"className": "voice-stage-action-icon",
|
||||
"attributes": {
|
||||
"width": 18,
|
||||
"height": 18,
|
||||
"viewbox": "0 0 24 24",
|
||||
"fill": "none",
|
||||
"stroke": "currentColor",
|
||||
"stroke-width": 1.8,
|
||||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
"aria-hidden": "true"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"tag": "path",
|
||||
"attributes": {
|
||||
"d": "M10 13a5 5 0 0 0 7.07 0l2-2a5 5 0 0 0-7.07-7.07l-1.15 1.15"
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "path",
|
||||
"attributes": {
|
||||
"d": "M14 11a5 5 0 0 0-7.07 0l-2 2a5 5 0 0 0 7.07 7.07l1.15-1.15"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "chat-panel-expand",
|
||||
@@ -1123,7 +1189,7 @@
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"text": "聊天"
|
||||
"text": "#"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1283,7 +1349,7 @@
|
||||
{
|
||||
"tag": "path",
|
||||
"attributes": {
|
||||
"d": "M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-1.7 2.94-.08-.02a1.7 1.7 0 0 0-1.74.45l-.06.06h-3.4l-.03-.08a1.7 1.7 0 0 0-1.35-1.14l-.08-.01-1.7-2.95.05-.06a1.7 1.7 0 0 0 0-1.96l-.05-.07 1.7-2.94.08.02a1.7 1.7 0 0 0 1.74-.45l.06-.06h3.4l.03.08a1.7 1.7 0 0 0 1.35 1.14l.08.01 1.7 2.95-.05.06Z"
|
||||
"d": "M10 2h4l1 3 2 1 3-1 2 4-2 2v2l2 2-2 4-3-1-2 1-1 3h-4l-1-3-2-1-3 1-2-4 2-2v-2l-2-2 2-4 3 1 2-1z"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.107",
|
||||
"version": "3.1.108",
|
||||
"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.",
|
||||
|
||||
@@ -1569,6 +1569,36 @@
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.chat-panel-chevron"] { display: block; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-invite"] {
|
||||
display: grid;
|
||||
flex: 0 0 34px;
|
||||
place-items: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--skin-kaak-border);
|
||||
border-radius: 9px;
|
||||
color: var(--skin-kaak-muted);
|
||||
background: var(--skin-kaak-raised);
|
||||
cursor: pointer;
|
||||
transition: color .16s ease, background-color .16s ease, border-color .16s ease;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-invite"] .voice-stage-action-icon {
|
||||
display: block;
|
||||
flex: 0 0 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-invite"]:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-invite"]:focus-visible {
|
||||
color: var(--skin-kaak-text);
|
||||
border-color: #5a7e35;
|
||||
background: #33363b;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.chat-panel-expand"] {
|
||||
display: grid;
|
||||
flex: 0 0 36px;
|
||||
@@ -2283,8 +2313,10 @@
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-controls"] .desktop-room-control-icon { display: block; flex: 0 0 auto; width: 18px; height: 18px; }
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] {
|
||||
display: flex;
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 8px;
|
||||
width: auto;
|
||||
@@ -2293,9 +2325,21 @@
|
||||
color: #b5c6d8;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-icon { width: 15px; height: 15px; }
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-label { white-space: nowrap; }
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-icon {
|
||||
display: block;
|
||||
flex: 0 0 15px;
|
||||
width: 15px;
|
||||
min-width: 15px;
|
||||
height: 15px;
|
||||
min-height: 15px;
|
||||
aspect-ratio: 1 / 1;
|
||||
overflow: visible;
|
||||
transform: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-settings"] .desktop-room-control-label { display: block; line-height: 16px; white-space: nowrap; }
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-noise-suppression"] { grid-column: 2; grid-row: 2; color: #fff; background: #6cbf00; }
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-microphone"] { grid-column: 3; grid-row: 2; }
|
||||
[data-ws-plugin-part="kaak-workspace.desktop-room-output"] { grid-column: 4; grid-row: 2; }
|
||||
@@ -3632,7 +3676,7 @@
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] { flex: 0 0 48px; gap: 7px; margin: 0 -10px 8px; padding: 0 10px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-title"] { flex: 1 1 auto; font-size: 16px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-member-count"] { flex: 0 0 auto; }
|
||||
[data-ws-plugin-part="kaak-workspace.chat-panel-expand"] { flex: 0 0 52px; width: 52px; height: 34px; margin-left: 0; border-radius: 10px; font-size: 13px; }
|
||||
[data-ws-plugin-part="kaak-workspace.chat-panel-expand"] { flex: 0 0 36px; width: 36px; height: 36px; margin-left: 0; border-radius: 9px; font-size: 22px; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.screen-share-player"] { flex: 0 0 auto; width: 100%; max-width: 100%; margin: 0 0 10px; }
|
||||
[data-ws-plugin-part="kaak-workspace.screen-share-player"] .screen-share-player-stage { height: min(28dvh, 230px); min-height: 126px; max-height: 230px; }
|
||||
|
||||
Reference in new issue
Block a user