feat: add GitHub skin store and organize instance administration

Adopt the pinned published TeamSpeak SDK and direct relay routing.
Add optional TeamSpeak Query administration with encrypted credentials
and separate WebSpeak access, site, operations and skin management.
Distribute Discord Voice through the GitHub skin index, preserve skin
state during updates, and correct KAAK scaling and screen fullscreen.

Validation: 831 tests; backend and frontend builds; five-language UI
checks from narrow screens through 4K and local Query fixture actions.
This commit is contained in:
illusia committed 2026-10-24 12:52:59 +08:00
1 parent 180bfeb52f
commit 0af3236c30
95 files changed
+7678 -709

No files matched your search

+10 -1
View File
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import test from "node:test";
import type { DirectoryClientInfo, DirectorySnapshot } from "@echosixhiya/teamspeak-client";
import type { DirectoryClientInfo, DirectorySnapshot } from "./teamspeak-sdk.js";
import { DirectorySynchronizer } from "./directory-sync.js";
function member(id: number, channelID = 1n, overrides: Partial<DirectoryClientInfo> = {}): DirectoryClientInfo {
@@ -31,6 +31,15 @@ test("partial snapshots retain earlier clients and state omitted by a later snap
assert.deepEqual(directory.getSnapshot()?.clients, [member(1, 2n, { inputMuted: true }), member(2), member(3)]);
});
test("complete SDK views remove unsubscribed clients instead of retaining them as partial welcome data", () => {
const directory = new DirectorySynchronizer();
directory.applySnapshot({ ...snapshot(member(1), member(2)), complete: true });
directory.applySnapshot({ ...snapshot(member(1, 1n, { inputMuted: true })), complete: true });
assert.deepEqual(directory.getSnapshot()?.clients, [member(1, 1n, { inputMuted: true })]);
directory.applySnapshot({ ...snapshot(member(1), member(2, 2n)), complete: true });
assert.deepEqual(directory.getSnapshot()?.clients.map(client => client.id), [1, 2]);
});
test("a stale partial snapshot cannot bring back a departed client before an explicit rejoin", () => {
const directory = new DirectorySynchronizer();
directory.applySnapshot(snapshot(member(1), member(2)));