Compare commits

...
Author SHA1 Message Date
Moepchi 20d1944dc9 Reconnect resilience: gateway heartbeat + session auto-reconnect
Two related bugs: a browser tab that lost network (or got backgrounded/
suspended on Android) could leave the connector alive on the TS3/TeaSpeak
server for minutes after the frontend showed disconnected, and multi-join
background tabs simply vanished on any drop instead of staying connected.

- gateway: WebSocket ping/pong heartbeat (20s) so a dead browser socket is
  detected and its connector torn down promptly instead of waiting on an
  OS-level TCP timeout.
- web: every session (active tab or parked multi-join background tab) now
  remembers its connect params and can reopen its own socket after an
  unexpected drop, with exponential backoff (1s-30s) so a persistently
  unreachable gateway isn't hammered. Wake Lock keeps the screen (and the
  tab's throttling) at bay while any session is live; a visibilitychange
  sweep reconnects every dropped session once the page is visible again.
  Mic stays off for background sessions throughout, same as before.
2026-09-07 16:01:05 +02:00
Möpchi fd5a4cd6e0 Merge pull request #6 from Moepchi/pr-5-review-fixes
Client move/DnD, ServerQuery toggle, TeaSpeak poke handling + review fixes
2026-09-06 12:03:53 +02:00
MoepchiandClaude Sonnet 5 701bd867fc fix: self-move channel password prompt, spacer targets, client-list memoization
- handleMoveClient: route self-drags through handleSwitchChannel so
  moving your own client still prompts for a channel password when
  required, while admin moves of other clients keep bypassing the
  target channel's password (matches native TS3/GTS behavior - only
  the mover needs permission, not the password).
- MoveClientDialog: disable channel spacers as move targets, they are
  display-only rows with no backing channel.
- connector moveclient handler: carry the already-decoded password
  through the fallback branch (client not found in local state)
  instead of hardcoding an empty password, so self-moves via that
  path still authenticate correctly.
- App.tsx: memoize treeClients/queryClientCount so they are not
  recomputed on every render (e.g. on unrelated "talkers" updates),
  and simplify the duplicated displayClientCount ternary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 11:57:30 +02:00
Nico B.andCursor b6448e65e8 Add client move/DnD, ServerQuery favorite toggle, and TeaSpeak poke handling.
Lets users move clients via context menu or drag-and-drop (including spacers), show ServerQuery clients per favorite without reconnecting, and surface TeaSpeak/GTS notifyclientpoke reliably via connector fallback plus tsclientlib parse fallthrough.

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 02:09:52 +02:00
Moepchi bf85173a54 docs: clarify GreenTeaSpeak feature covers server connectivity, not just theme 2026-09-06 02:00:45 +02:00
Moepchi cf5ecb1455 docs: mention TeaSpeak/GreenTeaSpeak support in README
PR #4 added TeaSpeak/GreenTeaSpeak protocol support alongside existing
TS3/TS6, plus an optional GTS-styled theme - update the tagline, quick
start text, features table, architecture section, and trademark
disclaimer to reflect that.
2026-09-06 01:54:52 +02:00
Möpchi 9206b12e25 Merge pull request #4 from GreenTeaSpeak/main
Add TeaSpeak/GTS support and multi-join functionality
2026-09-06 01:39:07 +02:00
Nico B.andCursor 5d2b02feb0 Point tsclientlib at GreenTeaSpeak tsdeclarations fork.
Track the org-owned declarations remote via the updated tsclientlib submodule.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 01:32:53 +02:00
Nico B.andCursor 77165af5e4 Exclude ServerQuery from online total so it matches the filtered client list.
The PR #4 review fix still preferred virtualserver_clientsonline which usually includes Query; subtract bookkeeping Query count before applying the stale-data max.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 01:28:19 +02:00
Nico B. a118c0f58e Merge pull request #1 from Moepchi/fix/pr-4-review-bugs
Fix 8 correctness bugs found in review of TeaSpeak/GTS + multi-join PR
2026-09-06 01:20:59 +02:00
Nico B.andCursor 3db5d90d89 Merge upstream/main into GreenTeaSpeak main to resolve PR #4 conflicts.
Keep TeaSpeak/GTS multi-tab work while integrating channel-password prompts and the Pulse theme.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 00:54:04 +02:00
Nico B.andCursor ecdd69bceb Point tsclientlib submodule at GreenTeaSpeak fork.
The TeaSpeak commit was only local; clones and CI failed. Host it on the org fork and track that remote.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 00:48:00 +02:00
Moepchi 27ac828641 Add channel password prompt on mid-session join (fixes #3)
Joining a password-protected channel after connecting silently failed
with only a generic error in the log - there was no way to enter a
password except the initial-connect "default channel" field.

- connector: "switch" now accepts an optional base64-encoded password
  and wires it through tsclientlib's existing set_password() API; a
  ChannelInvalidPassword failure is reported as a distinct
  channelPasswordRequired event instead of a generic error.
- gateway: forwards channelPassword through switchChannel and remaps
  the connector's snake_case event to the frontend's camelCase shape.
- web: new ChannelPasswordDialog prompts for the password (and flags
  a wrong retry); the password is cached in memory for the session so
  re-entering an already-unlocked channel doesn't prompt again, and
  the cache is cleared on disconnect.

Also includes two earlier Pulse-theme CSS fixes (bottom-toolbar
dropdowns opening off-screen; caret button height mismatch) and the
Speaking Now bar / Pulse Phase D wiring from this session.
2026-09-05 23:49:43 +02:00
13 changed files with 1472 additions and 112 deletions

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
[submodule "tsclientlib"]
path = tsclientlib
url = https://github.com/Moepchi/tsclientlib.git
url = https://github.com/GreenTeaSpeak/tsclientlib.git
branch = webspeak3
+20 -13
View File
@@ -14,7 +14,7 @@
</p>
<p align="center">
<b>A modern, self-hosted browser client for TeamSpeak 3 servers — no install, just open a tab.</b>
<b>A modern, self-hosted browser client for TeamSpeak, TeaSpeak, and GreenTeaSpeak servers — no install, just open a tab.</b>
</p>
<p align="center">
@@ -52,9 +52,9 @@ Run the ready-made container and open **http://localhost:8080**:
docker run -d --name webspeak3 --restart unless-stopped -p 8080:8080 moepchi/webspeak3:latest
```
Enter the address and port of **any reachable TeamSpeak 3 or TeamSpeak 6
server** in the connection dialog. The TeamSpeak server does not need to be
installed on the same machine, modified, or operated by you.
Enter the address and port of **any reachable TeamSpeak 3, TeamSpeak 6,
TeaSpeak, or GreenTeaSpeak server** in the connection dialog. The server does
not need to be installed on the same machine, modified, or operated by you.
> Voice requires a secure context. Microphone access works on `localhost`; for
> access from other devices, place WebSpeak3 behind an HTTPS reverse proxy.
@@ -63,7 +63,7 @@ installed on the same machine, modified, or operated by you.
| | |
|---|---|
| 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6 servers over a WebSocket gateway — the server stays exactly as-is |
| 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6, TeaSpeak, and GreenTeaSpeak servers over a WebSocket gateway — the server stays exactly as-is |
| 🎙️ **Low-latency voice** | Opus-encoded voice with voice activation ("Sprachaktivierung") and adjustable sensitivity |
| 🤫 **Whisper** | Target your voice at specific channels or clients instead of your whole current channel |
| 🔊 **Custom audio output picker** | Route playback to any output device — works even in browsers without `AudioContext.setSinkId` |
@@ -78,8 +78,9 @@ installed on the same machine, modified, or operated by you.
| 📱 **Mobile-friendly layout** | Responsive single-column layout for narrow screens, not just a shrunk desktop UI |
| 🌍 **Localized UI** | Interface available in German, English, and Simplified Chinese, detected automatically or switchable in Options |
| 🌗 **Dark / light theme** | Clean, modern UI that adapts to your preference |
| 🔁 **Multi-join (server tabs)** | Several TeamSpeak connections in parallel — one tab per server, like GreenTeaSpeak 2. Audio stays on the active tab |
| 🔁 **Multi-join (server tabs)** | Several connections in parallel — one tab per server, like GreenTeaSpeak 2. Audio stays on the active tab |
| 🔁 **Seamless reconnect** | Switch or add connections mid-session without tearing down unrelated tabs |
| 🍵 **GreenTeaSpeak support** | Connects to real GreenTeaSpeak servers (not just TS3/TS6/TeaSpeak), plus an optional GTS-styled UI chrome (dark panels, gold menu bar, connection-tab strip) alongside the default look |
## 🧱 Tech Stack
@@ -103,19 +104,22 @@ gateway is required that speaks the real TS protocol on one side and
WebSocket to the browser on the other.
```
Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Rust connector (connector/) <--TS3/TS6 protocol--> TeamSpeak Server
Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Rust connector (connector/) <--TS3/TS6/TeaSpeak/GreenTeaSpeak protocol--> Server
```
- **`web/`** — Vite + React frontend. TS3-lookalike UI: channel tree, chat
tabs, voice controls.
tabs, voice controls. Optional GreenTeaSpeak-styled chrome for the
connection-tab strip and menu bar.
- **`gateway/`** — Node.js/TypeScript WebSocket server. Spawns the Rust
connector **per browser WebSocket** and relays newline-delimited JSON events
between it and the browser. Multi-join opens one `/ws` connection per server
tab (parallel connectors).
- **`connector/`** — Rust binary wrapping [`tsclientlib`](https://github.com/ReSpeak/tsclientlib)
(vendored as a git submodule in `tsclientlib/`), the actual TS3/TS6
(vendored as a git submodule in `tsclientlib/`, currently tracking a fork
with TeaSpeak/GreenTeaSpeak protocol support), the actual TS3/TS6/TeaSpeak
protocol implementation. Handles connecting, channel/client state, chat,
and Opus-encoded voice.
and Opus-encoded voice. Auto-detects the server dialect on connect (or it
can be forced via `--server-type`).
</details>
@@ -265,6 +269,9 @@ The vast majority of this project's code was written by [Claude Code](https://cl
any way officially connected with TeamSpeak Systems GmbH.
"TeamSpeak", "TS3", and related logos or names are registered trademarks of
TeamSpeak Systems GmbH. All product and company names are trademarks™ or
registered® trademarks of their respective holders. Use of them does not
imply any affiliation with or endorsement by them.
TeamSpeak Systems GmbH. Likewise, WebSpeak3 is not affiliated with,
associated with, authorized by, or endorsed by TeaSpeak or GreenTeaSpeak;
"TeaSpeak" and "GreenTeaSpeak" are names of their respective projects/
operators. All product and company names are trademarks™ or registered®
trademarks of their respective holders. Use of them does not imply any
affiliation with or endorsement by them.
+151 -20
View File
@@ -17,9 +17,9 @@ use tsclientlib::messages::c2s::{
OutChannelAddPermPart, OutChannelClientAddPermPart, OutChannelClientDelPermPart,
OutChannelClientPermListRequestPart, OutChannelDelPermPart, OutChannelGroupAddPermPart,
OutChannelGroupDelPermPart, OutChannelGroupPermListRequestPart, OutChannelPermListRequestPart,
OutClientAddPermPart, OutClientDelPermPart, OutClientPermListRequestPart, OutClientPokeRequestPart,
OutCreateDirectoryPart, OutDeleteFilePart, OutFileListRequestPart, OutRenameFilePart,
OutSendTextMessagePart, OutServerGroupAddPermPart, OutServerGroupDelPermPart,
OutClientAddPermPart, OutClientDelPermPart, OutClientMovePart, OutClientPermListRequestPart,
OutClientPokeRequestPart, OutCreateDirectoryPart, OutDeleteFilePart, OutFileListRequestPart,
OutRenameFilePart, OutSendTextMessagePart, OutServerGroupAddPermPart, OutServerGroupDelPermPart,
OutServerGroupPermListRequestPart,
};
use tsclientlib::prelude::*;
@@ -27,7 +27,7 @@ use tsclientlib::{
data, ChannelGroupId, ChannelId, ClientDbId, ClientId, ClientType, CodecEncryptionMode,
Connection, DisconnectOptions, HostBannerMode, HostMessageMode, Identity, InMessage,
LicenseType, MaxClients, MessageHandle, MessageTarget, Permission, Reason, ServerGroupId,
ServerType, StreamItem, TextMessageTargetMode,
ServerType, StreamItem, TextMessageTargetMode, TsError,
};
use tsproto_packets::packets::{AudioData, CodecType, Direction, Flags, OutAudio, OutCommand, PacketType};
@@ -103,6 +103,9 @@ struct ClientInfo {
/// haven't been individually granted talk power. Always `true` in a
/// non-moderated channel.
has_talk_power: bool,
/// ServerQuery client (`ClientType::Query`). Always included in the
/// snapshot; the UI hides these unless the user enables them per favorite.
is_query: bool,
}
/// Payload for the "serveredit " stdin command - every field is optional so
@@ -237,6 +240,11 @@ enum Event {
Disconnected { reason: String },
#[serde(rename = "error")]
Error { message: String },
/// A "switch" to a password-protected channel was rejected because no (or
/// the wrong) password was supplied. The frontend should prompt for a
/// password and retry with it rather than showing a generic error.
#[serde(rename = "channelPasswordRequired")]
ChannelPasswordRequired { channel_id: u64 },
/// Server-tab log notification (client join/leave/switch, channel group
/// assignment, channel/server changes, own permission errors).
#[serde(rename = "serverLog")]
@@ -568,13 +576,13 @@ fn snapshot(con: &data::Connection) -> Event {
has_password: ch.has_password.unwrap_or(false),
})
.collect::<Vec<_>>();
// Bookkeeping includes ServerQuery clients (`ClientType::Query`); hide them
// from the channel tree / client lists, and from the online-count fallback
// below too, so the number shown never counts a client the list doesn't.
// Bookkeeping includes ServerQuery clients (`ClientType::Query`). We always
// forward them (with `is_query`) so the UI can toggle visibility live from
// a favorite setting without reconnecting. Online counts below still exclude
// Query by default so the headline matches the default (hidden) tree.
let clients = con
.clients
.values()
.filter(|c| !matches!(c.client_type, ClientType::Query { .. }))
.map(|c| {
// A channel with no talk power requirement at all (the common
// case) is never moderated, so everyone can talk regardless of
@@ -600,18 +608,26 @@ fn snapshot(con: &data::Connection) -> Event {
channel_group: c.channel_group.0,
server_groups: c.server_groups.iter().map(|g| g.0).collect(),
has_talk_power,
is_query: matches!(c.client_type, ClientType::Query { .. }),
}
})
.collect::<Vec<_>>();
// Prefer server-reported counters (GTS/TS `virtualserver_*` via notifyserverupdated)
// but never under-report vs. the visible (non-Query) client set (stale
// optional_data after joins would otherwise freeze the InfoPanel left number).
// but never under-report vs. the non-Query client set (stale optional_data
// after joins would otherwise freeze the InfoPanel left number).
// `virtualserver_clientsonline` usually includes ServerQuery; subtract them
// so the default (Query-hidden) headline matches the default tree.
let opt = con.server.optional_data.as_ref();
let visible_channels = channels.len() as u64;
let visible_clients_count = clients.len() as u16;
let server_clients_online =
opt.map(|d| d.client_count.max(visible_clients_count)).unwrap_or(visible_clients_count);
let query_count = clients.iter().filter(|c| c.is_query).count() as u16;
let visible_clients_count = (clients.len() as u16).saturating_sub(query_count);
let server_clients_online = opt
.map(|d| {
let without_query = d.client_count.saturating_sub(query_count);
without_query.max(visible_clients_count)
})
.unwrap_or(visible_clients_count);
let server_channels_online =
opt.map(|d| d.channel_count.max(visible_channels)).unwrap_or(visible_channels);
@@ -840,6 +856,10 @@ async fn run(args: Args) -> Result<()> {
// `send_with_result()` for text messages gets us a `MessageResult` event we
// can surface as a visible error instead of the message just vanishing.
let mut pending_messages: HashMap<MessageHandle, String> = HashMap::new();
// Tracks which channel a pending "Channel switch" MessageResult is for, so
// a ChannelInvalidPassword failure can be reported as ChannelPasswordRequired
// for that specific channel instead of a generic error.
let mut pending_switch_channel: HashMap<MessageHandle, u64> = HashMap::new();
// When non-empty, outgoing voice is whispered to just these channels/clients
// instead of being sent to the current channel - set via the "whisper "
// stdin command, cleared via "unwhisper".
@@ -950,17 +970,37 @@ async fn run(args: Args) -> Result<()> {
emit(&Event::Disconnected { reason: "client requested".into() });
break;
} else if let Some(rest) = l.strip_prefix("switch ") {
match rest.trim().parse::<u64>() {
// "switch <id>" or "switch <id> <base64-encoded password>" - the
// password travels base64-encoded since this is a line-based
// stdin protocol and a password could contain spaces/newlines.
let mut switch_args = rest.trim().splitn(2, ' ');
let id_arg = switch_args.next().unwrap_or("");
let password_arg = switch_args.next();
match id_arg.parse::<u64>() {
Ok(id) => {
let password = password_arg.and_then(|p| {
base64::engine::general_purpose::STANDARD
.decode(p)
.ok()
.and_then(|bytes| String::from_utf8(bytes).ok())
});
// Build clientmove defensively: missing own client must not panic
// the whole connector (that looked like a dead Join from the UI).
let part = match con.get_state() {
Ok(state) => match state.clients.get(&state.own_client) {
Some(own) => {
// Always include cpw= (empty) like the GTS desktop client —
// some TeaSpeak builds are picky about an omitted key.
let mut part = own.client_move(ChannelId(id));
part.channel_password = Some(std::borrow::Cow::Borrowed(""));
match &password {
Some(pwd) => {
part = part.set_password(pwd);
}
None => {
// Always include cpw= (empty) like the GTS desktop client -
// some TeaSpeak builds are picky about an omitted key.
part.channel_password =
Some(std::borrow::Cow::Borrowed(""));
}
}
Some(part)
}
None => {
@@ -982,12 +1022,13 @@ async fn run(args: Args) -> Result<()> {
match part.send_with_result(&mut con) {
Ok(handle) => {
pending_messages.insert(handle, "Channel switch".into());
pending_switch_channel.insert(handle, id);
}
Err(e) => emit(&Event::Error { message: e.to_string() }),
}
}
}
Err(_) => emit(&Event::Error { message: format!("Invalid channel id: {rest}") }),
}
Err(_) => emit(&Event::Error { message: format!("Invalid channel id: {id_arg}") }),
}
} else if let Some(message) = l.strip_prefix("chat ") {
let part = OutSendTextMessagePart {
@@ -1057,6 +1098,72 @@ async fn run(args: Args) -> Result<()> {
}
Err(_) => emit(&Event::Error { message: format!("Invalid client id: {id}") }),
}
} else if let Some(rest) = l.strip_prefix("moveclient ") {
// Move another client (or self) into a channel: clientmove clid=… cid=…
// Optional trailing base64 password, same as `switch`.
let mut move_args = rest.trim().splitn(3, ' ');
let clid_arg = move_args.next().unwrap_or("");
let cid_arg = move_args.next().unwrap_or("");
let password_arg = move_args.next();
match (clid_arg.parse::<u16>(), cid_arg.parse::<u64>()) {
(Ok(clid), Ok(cid)) => {
let password = password_arg.and_then(|p| {
base64::engine::general_purpose::STANDARD
.decode(p)
.ok()
.and_then(|bytes| String::from_utf8(bytes).ok())
});
let part = match con.get_state() {
Ok(state) => match state.clients.get(&ClientId(clid)) {
Some(client) => {
let mut part = client.client_move(ChannelId(cid));
match &password {
Some(pwd) => {
part = part.set_password(pwd);
}
None => {
part.channel_password =
Some(std::borrow::Cow::Borrowed(""));
}
}
Some(part)
}
None => {
// Still try with raw ids if the client left our view.
// Carry through the already-decoded password instead of
// dropping it - this path is also used for self-moves
// via drag-and-drop, which still need the password to
// reach the server when the target channel requires one.
Some(OutClientMovePart {
client_id: ClientId(clid),
channel_id: ChannelId(cid),
channel_password: Some(match &password {
Some(pwd) => Cow::Owned(pwd.clone()),
None => Cow::Borrowed(""),
}),
})
}
},
Err(e) => {
emit(&Event::Error {
message: format!("Move client failed: {e}"),
});
None
}
};
if let Some(part) = part {
match part.send_with_result(&mut con) {
Ok(handle) => {
pending_messages.insert(handle, "Move client".into());
}
Err(e) => emit(&Event::Error { message: e.to_string() }),
}
}
}
_ => emit(&Event::Error {
message: format!("Malformed moveclient command: {rest}"),
}),
}
} else if l == "away" || l.starts_with("away ") {
let message = l.strip_prefix("away").unwrap_or("").trim();
let part = con.get_state()?.client_update().set_away(Some(message));
@@ -2167,8 +2274,15 @@ async fn run(args: Args) -> Result<()> {
}
Some(Ok(StreamItem::MessageResult(handle, result))) => {
if let Some(label) = pending_messages.remove(&handle) {
let switch_channel_id = pending_switch_channel.remove(&handle);
if let Err(e) = result {
if e.missing_permission.is_some() {
if label == "Channel switch" && e.error == TsError::ChannelInvalidPassword {
if let Some(channel_id) = switch_channel_id {
emit(&Event::ChannelPasswordRequired { channel_id });
} else {
emit(&Event::Error { message: format!("{label} failed: {e}") });
}
} else if e.missing_permission.is_some() {
emit(&Event::ServerLog {
entry: ServerLogEntry::PermissionError { action: label },
});
@@ -2248,6 +2362,23 @@ async fn run(args: Args) -> Result<()> {
}
}
Some(Ok(StreamItem::MessageEvent(msg))) => {
// Defense in depth: TeaSpeak/GTS may surface notifyclientpoke as an
// unhandled MessageEvent if bookkeeping did not mark it handled.
if let InMessage::ClientPoke(poke) = &msg {
for part in poke.iter() {
emit(&Event::Poke {
from: part.invoker_name.clone(),
message: part.message.clone().unwrap_or_default(),
});
}
} else if let InMessage::ClientPokeNormal(poke) = &msg {
for part in poke.iter() {
emit(&Event::Poke {
from: part.invoker_name.clone(),
message: part.message.clone().unwrap_or_default(),
});
}
}
if pending_server_log {
if let InMessage::ServerLog(log) = &msg {
let lines: Vec<String> = log.iter().map(|part| part.log.clone()).collect();
+46 -1
View File
@@ -86,6 +86,36 @@ const server = createServer((req, res) => {
const wss = new WebSocketServer({ server, path: "/ws" });
// Heartbeat: a browser tab that loses its network mid-session (mobile
// handover, Wi-Fi drop, backgrounded/frozen tab) often never sends a proper
// WS close frame — the OS-level TCP timeout that would eventually notice can
// take minutes, during which the connector child process (and the TS3/TeaSpeak
// session it holds open) stays alive even though the frontend has already
// given up and shown "disconnected". Standard `ws` ping/pong liveness check
// closes those zombie sockets (and their connector) promptly instead.
const HEARTBEAT_INTERVAL_MS = 20_000;
interface HeartbeatState {
isAlive: boolean;
}
const heartbeats = new WeakMap<WebSocket, HeartbeatState>();
const heartbeatTimer = setInterval(() => {
for (const socket of wss.clients) {
const state = heartbeats.get(socket);
if (!state) continue;
if (!state.isAlive) {
socket.terminate();
continue;
}
state.isAlive = false;
socket.ping();
}
}, HEARTBEAT_INTERVAL_MS);
wss.on("close", () => clearInterval(heartbeatTimer));
server.listen(PORT, () => {
console.log(`WebSpeak3 gateway listening on http://localhost:${PORT} (WebSocket at /ws)`);
if (SERVE_STATIC) {
@@ -101,6 +131,12 @@ wss.on("connection", (socket: WebSocket) => {
// multiple /ws connections in parallel (one per server tab).
let connection: Ts3Connection | undefined;
heartbeats.set(socket, { isAlive: true });
socket.on("pong", () => {
const state = heartbeats.get(socket);
if (state) state.isAlive = true;
});
socket.on("message", async (raw) => {
const msg = JSON.parse(raw.toString());
@@ -134,7 +170,15 @@ wss.on("connection", (socket: WebSocket) => {
case "switchChannel": {
const channelId = Number(msg.channelId);
if (Number.isFinite(channelId)) {
await connection?.switchChannel(channelId);
await connection?.switchChannel(channelId, msg.channelPassword);
}
break;
}
case "moveClient": {
const clientId = Number(msg.clientId);
const channelId = Number(msg.channelId);
if (Number.isFinite(clientId) && Number.isFinite(channelId)) {
await connection?.moveClient(clientId, channelId, msg.channelPassword);
}
break;
}
@@ -330,6 +374,7 @@ wss.on("connection", (socket: WebSocket) => {
});
socket.on("close", () => {
heartbeats.delete(socket);
connection?.disconnect();
});
});
+21 -2
View File
@@ -37,6 +37,8 @@ export interface ClientInfo {
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
/** ServerQuery client; UI may hide these unless enabled per favorite. */
isQuery: boolean;
}
export interface GroupEntry {
@@ -131,6 +133,7 @@ export type Ts3ConnectionEvent =
| { type: "talkers"; clients: number[] }
| { type: "disconnected"; reason: string }
| { type: "error"; message: string }
| { type: "channelPasswordRequired"; channelId: number }
| ({ type: "serverLog" } & ServerLogEntry)
| {
type: "clientConnectionInfo";
@@ -251,6 +254,7 @@ export class Ts3Connection {
channel_group: number;
server_groups: number[];
has_talk_power: boolean;
is_query?: boolean;
}
interface RawChannelInfo {
@@ -293,6 +297,7 @@ export class Ts3Connection {
| { type: "talkers"; clients: number[] }
| { type: "disconnected"; reason: string }
| { type: "error"; message: string }
| { type: "channelPasswordRequired"; channel_id: number }
| ({ type: "serverLog" } & ServerLogEntry)
| {
type: "clientConnectionInfo";
@@ -422,6 +427,7 @@ export class Ts3Connection {
channelGroup: c.channel_group,
serverGroups: c.server_groups,
hasTalkPower: c.has_talk_power,
isQuery: Boolean(c.is_query),
})),
ownClientId: event.own_client_id ?? 0,
serverMaxClients: event.server_max_clients ?? 0,
@@ -516,6 +522,8 @@ export class Ts3Connection {
message: event.message,
timestamp: event.timestamp,
});
} else if (event.type === "channelPasswordRequired") {
this.emit({ type: "channelPasswordRequired", channelId: event.channel_id });
} else {
this.emit(event);
}
@@ -537,10 +545,21 @@ export class Ts3Connection {
});
}
async switchChannel(channelId: number): Promise<void> {
async switchChannel(channelId: number, channelPassword?: string): Promise<void> {
const id = Number(channelId);
if (!Number.isFinite(id)) return;
this.child?.stdin.write(`switch ${id}\n`);
// The password travels base64-encoded on this line-based stdin protocol
// so it can safely contain spaces or other characters.
const passwordArg = channelPassword ? ` ${Buffer.from(channelPassword, "utf8").toString("base64")}` : "";
this.child?.stdin.write(`switch ${id}${passwordArg}\n`);
}
async moveClient(clientId: number, channelId: number, channelPassword?: string): Promise<void> {
const clid = Number(clientId);
const cid = Number(channelId);
if (!Number.isFinite(clid) || !Number.isFinite(cid)) return;
const passwordArg = channelPassword ? ` ${Buffer.from(channelPassword, "utf8").toString("base64")}` : "";
this.child?.stdin.write(`moveclient ${clid} ${cid}${passwordArg}\n`);
}
async getClientConnectionInfo(clientId: number): Promise<void> {
+502
View File
@@ -796,6 +796,487 @@
border: 2px solid var(--bg);
}
/* Pulse: alternate design, independent of the light/dark toggle (always
dark). Visual reference: a Discord-style client with a dark rounded
sidebar, pill-shaped channel/client rows and a floating card-based main
panel - reimplemented from scratch in our own markup/CSS (no code or
assets borrowed), reusing the same DOM/class names as Standard/Nova the
way Nova does, with its own indigo/violet accent (colors need not match
any particular reference client). */
:where(.ts-app.ts-design-pulse) {
--success: oklch(0.75 0.15 150);
--bg: oklch(0.19 0.02 290);
--bg-toolbar-1: oklch(0.155 0.018 290);
--bg-toolbar-2: oklch(0.235 0.024 290);
--border: oklch(0.32 0.02 290);
--border-soft: oklch(0.27 0.02 290);
--text: oklch(0.95 0.006 290);
--text-muted: oklch(0.64 0.014 290);
--text-faint: oklch(0.48 0.012 290);
--accent: #9d8cf0;
--input-bg: oklch(0.235 0.024 290);
--input-text: oklch(0.95 0.006 290);
--button-bg-1: oklch(0.235 0.024 290);
--button-bg-2: oklch(0.155 0.018 290);
--button-bg-hover-1: oklch(0.28 0.026 290);
--button-bg-hover-2: oklch(0.235 0.024 290);
--row-hover: oklch(0.27 0.03 290);
--client-text: oklch(0.95 0.006 290);
--self-text: #9d8cf0;
--log-bg: oklch(0.155 0.018 290);
--log-text: oklch(0.64 0.014 290);
--log-error: oklch(0.68 0.16 25);
color-scheme: dark;
font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ts-app.ts-design-pulse button,
.ts-app.ts-design-pulse select,
.ts-app.ts-design-pulse input[type="text"],
.ts-app.ts-design-pulse input[type="password"],
.ts-app.ts-design-pulse input[type="search"],
.ts-app.ts-design-pulse .ts-dialog {
border-radius: 10px;
}
/* Top bar: rendered as a breadcrumb - app logo, then the server name, then
(when a channel is selected) a chevron and the channel name - instead of
Standard's menu-item row. The menu items themselves fold into a single
overflow button so the breadcrumb reads clean, mirroring the reference
client's header. */
.ts-app.ts-design-pulse > .ts-menubar {
order: 0;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.65rem 1.2rem;
background: var(--bg-toolbar-1);
border-bottom: 1px solid var(--border-soft);
}
.ts-app.ts-design-pulse > .ts-menubar .ts-nova-menu-dropdown {
order: 1;
}
.ts-app.ts-design-pulse > .ts-menubar .ts-menubar-item {
border-radius: 8px;
color: var(--text-muted);
}
.ts-app.ts-design-pulse > .ts-menubar .ts-menubar-item-active {
background: var(--bg-toolbar-2);
color: var(--text);
}
.ts-app.ts-design-pulse > .ts-body {
order: 1;
}
.ts-app.ts-design-pulse > .ts-log {
order: 2;
}
/* Voice control bar, bottom-docked like Nova's, but pill-shaped controls on
a flat strip instead of Nova's rounded-square icon buttons. */
.ts-app.ts-design-pulse > .ts-toolbar {
order: 3;
flex-direction: row;
align-items: center;
background: var(--bg-toolbar-1);
border-bottom: none;
border-top: 1px solid var(--border-soft);
padding: 0.6rem 1.2rem;
}
.ts-app.ts-design-pulse > .ts-toolbar .ts-toolbar-icons {
flex: 1;
justify-content: center;
gap: 0.6rem;
flex-wrap: wrap;
}
.ts-app.ts-design-pulse > .ts-toolbar .ts-icon-button {
width: 40px;
height: 40px;
border-radius: 999px;
font-size: 16px;
}
.ts-app.ts-design-pulse > .ts-toolbar .ts-toolbar-sep {
height: 24px;
align-self: center;
margin: 0 0.3rem;
}
.ts-app.ts-design-pulse > .ts-toolbar .ts-app-logo {
border-radius: 999px;
}
.ts-pulse-topbar-server {
display: flex;
align-items: center;
gap: 0.55rem;
font-weight: 700;
font-size: 14px;
}
.ts-pulse-topbar-logo {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 7px;
background: var(--accent);
color: var(--bg-toolbar-1);
font-weight: 800;
font-size: 12px;
flex-shrink: 0;
}
.ts-pulse-topbar-crumb-sep {
color: var(--text-faint);
font-weight: 400;
}
.ts-pulse-topbar-channel {
color: var(--text-muted);
font-weight: 600;
}
.ts-app.ts-design-pulse .ts-icon-button,
.ts-app.ts-design-pulse .ts-toolbar-fields button,
.ts-app.ts-design-pulse .ts-chat-input-row button {
border-radius: 999px;
background: var(--button-bg-1);
padding: 0.35rem 0.6rem;
}
.ts-app.ts-design-pulse .ts-icon-button:hover,
.ts-app.ts-design-pulse .ts-toolbar-fields button:hover,
.ts-app.ts-design-pulse .ts-chat-input-row button:hover {
background: var(--button-bg-hover-1);
}
.ts-app.ts-design-pulse .ts-icon-caret {
height: 40px;
display: inline-flex;
align-items: center;
border-radius: 0 999px 999px 0;
background: var(--button-bg-1);
}
.ts-app.ts-design-pulse .ts-toolbar-away .ts-icon-button {
border-radius: 999px 0 0 999px;
}
/* Floating-card layout: sidebar and chat panel read as separate rounded
cards with a gap between them (and against the window edges), instead of
Standard's flush panes or Nova's single joined pair. */
.ts-app.ts-design-pulse .ts-upper {
gap: 0.7rem;
padding: 0.7rem 0.7rem 0;
}
.ts-app.ts-design-pulse .ts-tree-panel,
.ts-app.ts-design-pulse .ts-info-panel {
background: var(--bg-toolbar-1);
border: 1px solid var(--border-soft);
border-radius: 14px;
}
.ts-app.ts-design-pulse .ts-resize-handle-vertical,
.ts-app.ts-design-pulse .ts-resize-handle-horizontal {
background: transparent;
}
.ts-app.ts-design-pulse .ts-banner-panel {
border-radius: 14px;
border: 1px solid var(--border-soft);
margin: 0 0.7rem;
}
.ts-app.ts-design-pulse .ts-chat-panel {
background: var(--bg-toolbar-1);
border: 1px solid var(--border-soft);
border-radius: 14px;
overflow: hidden;
margin: 0.7rem;
}
/* Speaking Now strip: a row of avatar tiles for everyone in the player's
current channel, with the talking member's avatar highlighted - the
"who's speaking" strip from the reference client's connected view. */
.ts-app.ts-design-pulse .ts-speaking-now {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
padding: 0.7rem 0.9rem;
border-bottom: 1px solid var(--border-soft);
}
.ts-app.ts-design-pulse .ts-speaking-now-tile {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.3rem;
width: 52px;
}
.ts-app.ts-design-pulse .ts-speaking-now-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
font-size: 14px;
font-weight: 800;
color: oklch(0.18 0.02 290);
box-shadow: 0 0 0 2px transparent;
transition: box-shadow 0.15s ease;
}
.ts-app.ts-design-pulse .ts-speaking-now-tile-active .ts-speaking-now-avatar {
box-shadow: 0 0 0 3px var(--success);
}
.ts-app.ts-design-pulse .ts-speaking-now-name {
font-size: 10px;
color: var(--text-muted);
max-width: 52px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ts-app.ts-design-pulse .ts-speaking-now-tile-active .ts-speaking-now-name {
color: var(--text);
}
/* Pill-shaped sidebar rows for channels/clients, accent bar on the
selected row instead of a full-row outline. */
.ts-app.ts-design-pulse .ts-row {
padding: 5px 8px;
border-radius: 999px;
margin: 1px 0;
}
.ts-app.ts-design-pulse .ts-client-row {
padding-left: 1.2rem;
}
.ts-app.ts-design-pulse .ts-row-selected {
border-radius: 999px;
outline: none;
background: var(--bg-toolbar-2);
box-shadow: inset 3px 0 0 var(--accent);
}
.ts-app.ts-design-pulse .ts-row:hover:not(.ts-row-selected) {
background: var(--row-hover);
}
/* Rounded circular avatar chips (vs. Nova's rounded squares), matching the
reference client's member-list look. */
.ts-app.ts-design-pulse .ts-client-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 50%;
flex-shrink: 0;
font-size: 9.5px;
font-weight: 800;
color: oklch(0.18 0.02 290);
}
.ts-app.ts-design-pulse .ts-talking .ts-client-avatar {
box-shadow: 0 0 0 2px var(--success);
}
/* Rounded pill tab bar for the channel/server/PM chat tabs, sitting above
the message list rather than flush against it. */
.ts-app.ts-design-pulse .ts-chat-tabs {
order: -1;
border-top: none;
border-bottom: 1px solid var(--border-soft);
padding: 0.55rem 0.7rem 0.4rem;
gap: 0.35rem;
}
.ts-app.ts-design-pulse .ts-chat-tab {
border: none;
border-radius: 999px;
background: var(--bg-toolbar-2);
color: var(--text-muted);
padding: 0.4rem 0.85rem;
font-weight: 600;
}
.ts-app.ts-design-pulse .ts-chat-tab:hover:not(.ts-chat-tab-active) {
color: var(--text);
}
.ts-app.ts-design-pulse .ts-chat-tab-active {
background: var(--accent);
color: var(--bg-toolbar-1);
font-weight: 700;
}
/* Bubble-style chat messages, own messages right-aligned in an accent
bubble, others left-aligned in a muted-surface bubble; log lines render
as a centered, faint pill. */
.ts-app.ts-design-pulse .ts-chat-messages {
padding: 0.9rem 1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.ts-app.ts-design-pulse .ts-chat-line {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
max-width: 70%;
padding: 0;
}
.ts-app.ts-design-pulse .ts-chat-line-self {
align-self: flex-end;
align-items: flex-end;
}
.ts-app.ts-design-pulse .ts-chat-from {
font-size: 11.5px;
font-weight: 700;
color: var(--text-muted);
}
.ts-app.ts-design-pulse .ts-chat-line-self .ts-chat-from {
color: var(--accent);
}
.ts-app.ts-design-pulse .ts-chat-bubble {
display: inline-block;
background: var(--bg-toolbar-2);
padding: 0.5rem 0.75rem;
border-radius: 14px 14px 14px 4px;
line-height: 1.45;
}
.ts-app.ts-design-pulse .ts-chat-line-self .ts-chat-bubble {
background: var(--accent);
color: var(--bg-toolbar-1);
border-radius: 14px 14px 4px 14px;
font-weight: 600;
}
.ts-app.ts-design-pulse .ts-chat-line-log {
align-self: center;
align-items: center;
max-width: none;
background: var(--bg-toolbar-2);
color: var(--text-faint);
font-style: italic;
font-size: 11.5px;
padding: 0.25rem 0.75rem;
border-radius: 999px;
}
.ts-app.ts-design-pulse .ts-chat-input-row {
border-top: 1px solid var(--border-soft);
padding: 0.6rem 0.8rem;
align-items: center;
}
.ts-app.ts-design-pulse .ts-chat-input-row textarea {
border-radius: 999px;
border-color: var(--border-soft);
background: var(--bg-toolbar-2);
padding: 0.55rem 1rem;
}
.ts-app.ts-design-pulse .ts-chat-input-row button {
width: 40px;
height: 40px;
padding: 0;
border: none;
border-radius: 50%;
background: var(--accent);
color: transparent;
font-size: 0;
flex-shrink: 0;
position: relative;
}
.ts-app.ts-design-pulse .ts-chat-input-row button:hover {
background: var(--accent);
filter: brightness(1.08);
}
.ts-app.ts-design-pulse .ts-chat-input-row button:disabled {
opacity: 0.4;
}
.ts-app.ts-design-pulse .ts-chat-input-row button::before {
content: "➤";
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
color: var(--bg-toolbar-1);
}
.ts-app.ts-design-pulse .ts-log {
border-top: 1px solid var(--border-soft);
margin: 0 0.7rem 0.7rem;
border: 1px solid var(--border-soft);
border-radius: 12px;
}
.ts-app.ts-design-pulse .ts-dialog {
border-radius: 14px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ts-app.ts-design-pulse .ts-menu {
border-radius: 10px;
overflow: hidden;
}
.ts-app.ts-design-pulse .ts-menu-item:hover:not(:disabled) {
border-radius: 8px;
}
.ts-app.ts-design-pulse ::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.ts-app.ts-design-pulse ::-webkit-scrollbar-track {
background: transparent;
}
.ts-app.ts-design-pulse ::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 999px;
border: 2px solid var(--bg);
}
/* Demo mode banner */
.ts-demo-banner {
@@ -1306,6 +1787,13 @@
background: var(--row-hover);
}
.ts-channel-row.ts-drop-target,
.ts-channel-row.ts-spacer.ts-drop-target {
background: color-mix(in srgb, var(--accent) 22%, transparent);
outline: 1px dashed var(--accent);
outline-offset: -1px;
}
/* Channel spacers ([cspacer], [*spacer01], …) — GreenTeaSpeak / TS parity */
.ts-channel-row.ts-spacer {
position: relative;
@@ -1416,10 +1904,15 @@
}
.ts-client-row {
cursor: grab;
color: var(--client-text);
padding-left: 0;
}
.ts-client-row:active {
cursor: grabbing;
}
.ts-client-row.ts-self {
font-weight: 700;
color: var(--self-text);
@@ -1603,6 +2096,11 @@
.ts-menu-away {
min-width: 220px;
/* This dropdown hangs off the bottom toolbar, so opening downward (the
.ts-menu default) would push it below the viewport and force the whole
page to scroll - open upward instead. */
top: auto;
bottom: 100%;
}
/* Chat */
@@ -2616,6 +3114,10 @@
.ts-design-theme-swatch-greenteaspeak {
background: linear-gradient(135deg, #1f2329 40%, #6fbf5c 40%, #386896 70%, #c8b882 70%);
}
.ts-design-theme-swatch-pulse {
background: linear-gradient(135deg, oklch(0.22 0.02 285) 0%, oklch(0.15 0.03 290) 100%);
box-shadow: inset 0 0 0 1px #9d8cf0;
}
.ts-design-theme-card-name {
font-weight: 600;
+667 -74
View File
File diff suppressed because it is too large. Load diff
+5
View File
@@ -50,6 +50,8 @@ export type ClientInfo = {
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
/** ServerQuery client; hidden in the tree unless the favorite enables them. */
isQuery?: boolean;
};
export type WhisperLogEntry = {
@@ -92,6 +94,8 @@ export type ParkedSessionState = {
previousClients: ClientInfo[] | null;
/** Whether the mic was on for this tab when it was parked, so switching back restores it. */
micWasOn: boolean;
/** Favorite used to open this session (drives ServerQuery visibility). */
favoriteId: string | null;
};
export type SessionTabInfo = {
@@ -143,6 +147,7 @@ export function emptyParkedState(partial?: Partial<ParkedSessionState>): ParkedS
hasConnected: false,
previousClients: null,
micWasOn: false,
favoriteId: null,
...partial,
};
}
+14
View File
@@ -277,6 +277,20 @@ export class DemoSocket {
);
break;
}
case "moveClient": {
const clientId = Number(msg.clientId);
const channelId = Number(msg.channelId);
if (Number.isFinite(clientId) && Number.isFinite(channelId)) {
if (clientId === SELF_ID) {
this.selfChannel = channelId;
} else {
const npc = DEMO_NPCS.find((c) => c.id === clientId);
if (npc) npc.channel = channelId;
}
this.after(120, () => this.sendChannels(this.lastNickname));
}
break;
}
case "getClientConnectionInfo": {
this.after(400, () =>
this.emit({
+28
View File
@@ -90,6 +90,12 @@ const translations: Record<Lang, Record<string, string>> = {
"connect.newTab": "In neuem Tab",
"connect.cancel": "Abbrechen",
"channelPasswordDialog.title": "Channel-Passwort erforderlich",
"channelPasswordDialog.prompt": "Dieser Channel ist passwortgeschützt. Bitte Passwort eingeben:",
"channelPasswordDialog.wrongPassword": "Falsches Passwort, bitte erneut versuchen:",
"channelPasswordDialog.submit": "Beitreten",
"channelPasswordDialog.cancel": "Abbrechen",
"collectedUrls.title": "Gesammelte URLs",
"collectedUrls.search": "Suchen:",
"collectedUrls.url": "URL",
@@ -246,6 +252,8 @@ const translations: Record<Lang, Record<string, string>> = {
"design.theme.nova.desc": "Moderneres, dunkles Design mit abgerundeten Elementen.",
"design.theme.greenteaspeak": "GreenTeaSpeak",
"design.theme.greenteaspeak.desc": "Klassisches GreenTeaSpeak-Client-Layout mit dunklen Panels und goldener Menüleiste.",
"design.theme.pulse": "Pulse",
"design.theme.pulse.desc": "Karten-Layout mit Breadcrumb-Leiste und farbigem Akzent.",
"design.status.connected": "Verbunden",
"design.custom.new": "+ Neues Design",
"design.custom.import": "Design importieren",
@@ -513,6 +521,7 @@ const translations: Record<Lang, Record<string, string>> = {
"clientContext.privateChat": "Privater Chat",
"clientContext.poke": "Anstupsen",
"clientContext.moveTo": "Verschieben in…",
"clientContext.copyName": "Namen kopieren",
"clientContext.connectionInfo": "Verbindungsinformationen anzeigen",
"clientContext.addWhisperTarget": "Als Whisper-Ziel hinzufügen",
@@ -524,6 +533,11 @@ const translations: Record<Lang, Record<string, string>> = {
"clientContext.ban": "Bannen",
"clientContext.notSupported": "Im Web-Client noch nicht unterstützt",
"moveClient.title": "Verschieben",
"moveClient.empty": "Keine Channels verfügbar.",
"moveClient.current": "Aktueller Channel",
"moveClient.spacer": "Spacer",
"serverContext.connectionInfo": "Serververbindungsinformationen",
"serverContext.copyAddress": "Serveradresse kopieren",
"serverContext.addFavorite": "Zu Favoriten hinzufügen",
@@ -642,6 +656,12 @@ const translations: Record<Lang, Record<string, string>> = {
"connect.newTab": "In new tab",
"connect.cancel": "Cancel",
"channelPasswordDialog.title": "Channel password required",
"channelPasswordDialog.prompt": "This channel is password-protected. Please enter the password:",
"channelPasswordDialog.wrongPassword": "Wrong password, please try again:",
"channelPasswordDialog.submit": "Join",
"channelPasswordDialog.cancel": "Cancel",
"collectedUrls.title": "Collected URLs",
"collectedUrls.search": "Search:",
"collectedUrls.url": "URL",
@@ -798,6 +818,8 @@ const translations: Record<Lang, Record<string, string>> = {
"design.theme.nova.desc": "A more modern, dark design with rounded elements.",
"design.theme.greenteaspeak": "GreenTeaSpeak",
"design.theme.greenteaspeak.desc": "Classic GreenTeaSpeak client layout with dark panels and a gold menu bar.",
"design.theme.pulse": "Pulse",
"design.theme.pulse.desc": "Card-based layout with a breadcrumb bar and a color accent.",
"design.status.connected": "Connected",
"design.custom.new": "+ New design",
"design.custom.import": "Import design",
@@ -1065,6 +1087,7 @@ const translations: Record<Lang, Record<string, string>> = {
"clientContext.privateChat": "Private chat",
"clientContext.poke": "Poke",
"clientContext.moveTo": "Move to…",
"clientContext.copyName": "Copy name",
"clientContext.connectionInfo": "Show connection info",
"clientContext.addWhisperTarget": "Add as whisper target",
@@ -1076,6 +1099,11 @@ const translations: Record<Lang, Record<string, string>> = {
"clientContext.ban": "Ban",
"clientContext.notSupported": "Not yet supported in the web client",
"moveClient.title": "Move",
"moveClient.empty": "No channels available.",
"moveClient.current": "Current channel",
"moveClient.spacer": "Spacer",
"serverContext.connectionInfo": "Server Connection Info",
"serverContext.copyAddress": "Copy server address",
"serverContext.addFavorite": "Add to favorites",
+8
View File
@@ -234,6 +234,8 @@ export const zhCN: Record<string, string> = {
"design.theme.nova.desc": "更现代的深色设计,带圆角元素。",
"design.theme.greenteaspeak": "GreenTeaSpeak",
"design.theme.greenteaspeak.desc": "经典 GreenTeaSpeak 客户端布局:深色面板与金色菜单栏。",
"design.theme.pulse": "Pulse",
"design.theme.pulse.desc": "卡片式布局,带面包屑栏和彩色强调。",
"design.status.connected": "已连接",
"options.section.erweiterungen": "扩展",
"options.section.hotkeys": "快捷键",
@@ -484,6 +486,7 @@ export const zhCN: Record<string, string> = {
"clientContext.privateChat": "私聊",
"clientContext.poke": "戳一戳",
"clientContext.moveTo": "移动到…",
"clientContext.copyName": "复制名称",
"clientContext.connectionInfo": "查看连接信息",
"clientContext.addWhisperTarget": "添加为悄悄话目标",
@@ -495,6 +498,11 @@ export const zhCN: Record<string, string> = {
"clientContext.ban": "封禁",
"clientContext.notSupported": "网页客户端暂不支持此功能",
"moveClient.title": "移动",
"moveClient.empty": "没有可用频道。",
"moveClient.current": "当前频道",
"moveClient.spacer": "间隔频道",
"serverContext.connectionInfo": "服务器连接信息",
"serverContext.copyAddress": "复制服务器地址",
"serverContext.addFavorite": "添加到收藏夹",
+7
View File
@@ -652,6 +652,13 @@
padding-right: 0;
}
.ts-app.ts-design-greenteaspeak .ts-channel-row.ts-drop-target,
.ts-app.ts-design-greenteaspeak .ts-channel-row.ts-spacer.ts-drop-target {
background: color-mix(in srgb, var(--accent, #4caf50) 28%, transparent);
outline: 1px dashed var(--accent, #4caf50);
outline-offset: -1px;
}
.ts-app.ts-design-greenteaspeak .ts-channel-row.ts-spacer .ts-spacer-label {
left: 4px;
right: 4px;