mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-06 21:42:50 +08:00
feat: complete runtime and KAAK skin updates
This commit is contained in:
1 parent
c994722016
commit
7fd1ea96fe
40 files changed
+3436
-1088
No files matched your search
@@ -24,6 +24,32 @@ test("runtime context exposes only fields covered by declared read permissions",
|
||||
assert.equal(JSON.stringify(projected).includes("secret.example"), false);
|
||||
});
|
||||
|
||||
test("chat panel state is projected only to plugins with chat read permission", () => {
|
||||
const context = { chat: { status: { panelOpen: true, tab: "private", tabLabel: "私聊", recipient: "not exposed" } } };
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(projectSkinRuntimePluginContext(["chat.channel.read"], context))), {
|
||||
chat: { status: { panelOpen: true, tab: "private", tabLabel: "私聊" } },
|
||||
});
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(projectSkinRuntimePluginContext([], context))), {});
|
||||
});
|
||||
|
||||
test("audio processing and accompaniment states are projected only with audio status permission", () => {
|
||||
const context = {
|
||||
audio: {
|
||||
status: {
|
||||
microphoneMuted: false,
|
||||
outputMuted: true,
|
||||
noiseSuppressionEnabled: true,
|
||||
accompanimentActive: false,
|
||||
inputVolume: 0.75,
|
||||
},
|
||||
},
|
||||
};
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(projectSkinRuntimePluginContext(["audio.status.read"], context))), {
|
||||
audio: { status: { microphoneMuted: false, outputMuted: true, noiseSuppressionEnabled: true, accompanimentActive: false } },
|
||||
});
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(projectSkinRuntimePluginContext([], context))), {});
|
||||
});
|
||||
|
||||
test("runtime member screen-share status is separately permission-gated", () => {
|
||||
const context = {
|
||||
session: {
|
||||
|
||||
Reference in new issue
Block a user