Compare commits

...
Author SHA1 Message Date
MoepchiandClaude Sonnet 5 bc6022b45f Add optional token-authenticated /api/broadcast endpoint
Lets the operator send a free-text maintenance notice to every connected
browser tab via POST /api/broadcast (Bearer BROADCAST_TOKEN). Reuses the
existing {type:"notice"} WebSocket message the frontend already renders
for the SIGTERM restart notice, so no frontend changes are needed. Off
(404) unless BROADCAST_TOKEN is set, same opt-in convention as
FEEDBACK_ENABLED/LOG_CONNECTIONS.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-15 05:25:33 +00:00
MoepchiandClaude Sonnet 5 8d17514774 Add Weblate translation link to language settings and Help menu
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 20:01:58 +00:00
MoepchiandClaude Sonnet 5 d62e47ca63 Move translations to plain JSON files (de/en/zh-CN/fa)
Translation strings were split across inline TS objects in i18n.tsx
(de/en) and separate .ts modules (zh-CN, fa). Consolidated into one
JSON file per language under web/src/locales/ - translation tools
(e.g. Weblate) can read/write these directly, and i18n.tsx is now
just the loader/lookup logic. No string content changed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 19:08:03 +00:00
MoepchiandClaude Sonnet 5 45af66f84b Tag Persian as beta in the language selector
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 19:02:57 +00:00
MoepchiandClaude Sonnet 5 be946c2a5e Add Persian (fa) translation, incl. RTL toggle
- New locales/fa.ts, 618 keys, full parity with de/en/zh-CN
- document.documentElement.dir flips to rtl/ltr with the active language
- Language selector + system-locale auto-detect (fa-*) updated

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 19:01:16 +00:00
MoepchiandClaude Sonnet 5 732a905f32 zh-CN: catch up 116 missing keys, drop 2 stale ones
Feedback dialog (incl. new report category), ToS modal, restart
notice, Hilfe menu, channel password dialog, custom design manager,
and the whole screen-share/publish feature were falling back to
English. Also removed connect.sendMyTeamSpeakId and
favorites.enableMyTeamSpeak, which no longer exist in de/en.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 18:53:19 +00:00
MoepchiandClaude Sonnet 5 77e147cc27 Add Hilfe dropdown menu (About, GitHub, Changelog, ToS)
Replaces the inert "Hilfe" label with a real dropdown, folding the
standalone ToS menubar item into it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 18:42:57 +00:00
MoepchiandClaude Sonnet 5 b0495367cb Link ToS modal to legal pages, add report feedback category
- ToS modal: Datenschutzerklärung/Impressum words are now real links
- Feedback form: new "report" category (abuse/violation), hidden
  GitHub-issue option since reports must stay private
- Gateways: accept "report" in FEEDBACK_CATEGORIES

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 18:33:27 +00:00
MoepchiandClaude Sonnet 5 73303e1229 Add SIGTERM restart-warning broadcast and first-visit ToS modal
- Gateway: on SIGTERM, broadcast a "notice" event to every connected
  socket before shutting down, so an active call/stream doesn't just
  silently drop during a redeploy.
- Web client: new "notice" event handling shows a non-dismissable
  restart-warning dialog; new ToS modal shown on first visit to the
  own-hosted instance (client.webspeak3.de only), versioned via
  localStorage, reopenable from the menu.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 18:15:15 +00:00
MoepchiandClaude Opus 4.8 741528220e Bump tsclientlib: SRV on exact host only, no apex fallback (#9)
Pulls in the resolver fix so a subdomain with its own A record (e.g.
ts6.rush-zone.com) is no longer hijacked onto a different server's apex
SRV. Fixes #9.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 15:02:42 +00:00
MoepchiandClaude Opus 5 0b34e7ecfb web: put the donation pill below the feedback button
The two floating buttons swap places: the Ko-fi pill now sits in the
corner at bottom: 5.5rem and the feedback button stacks above it at
8.5rem, which keeps the same 12px gap the previous arrangement had.

The offset still follows the instance rather than the dialog, it just
moved to the other element: the feedback button only shifts up where the
donation pill is actually rendered, and takes the corner spot where the
build dropped it via VITE_DONATE_URL=.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 16:28:18 +00:00
MoepchiandClaude Opus 5 6ebc3e22e0 web: add a Ko-fi donation button
A small pill in the bottom right corner, in Ko-fi's own red rather than
the theme colors so it reads as what it is. It sits above the feedback
button where that one exists and takes its place where it does not; the
offset follows the instance rather than the dialog, so opening feedback
does not make it jump.

Unlike the feedback button this is not limited to the maintainer's own
instance - it ships in every build, the Docker image included. Since
that means self-hosters carry someone else's donation link, there is a
way out: VITE_DONATE_URL= (empty) drops the button, any other value
retargets it, and the Dockerfile passes it through as --build-arg
DONATE_URL. The "keep" sentinel there is not decoration - an unset and
an empty build arg are indistinguishable inside RUN, so without it
"not passed" would silently mean "remove".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 16:12:58 +00:00
MoepchiandClaude Opus 5 fa4daf7831 gateway: serve nothing to browsers when WEB_STATIC=0
The notice page at "/" was the last thing a browser could get from a
host that only exists to answer /ws and /api/feedback. It is gone; every
path now 404s, so the gateway hostname has no web presence at all.

That broke the container healthcheck, which probed "/" and required a
200 - a correctly configured gateway would have reported itself
unhealthy. The probe now has its own route, /healthz, served before the
WEB_STATIC branch so it answers in either mode.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 15:34:16 +00:00
MoepchiandClaude Opus 5 f48c1cc91a Say what WEB_STATIC=0 actually does in the startup log
The line pointed at the Vite dev server, which is only ever right on a
developer's machine - on a deployed gateway it reads like a bug report
waiting to happen.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 12:45:02 +00:00
MoepchiandClaude Opus 5 cc715e24b2 Fix the feedback URL and stop serving a UI when WEB_STATIC=0
VITE_GATEWAY_URL names a WebSocket origin, and FEEDBACK_URL was derived
from it verbatim - so with VITE_GATEWAY_URL=wss://gateway.example the
form posted to wss://gateway.example/api/feedback, which fetch() refuses
outright ("TypeError: unknown scheme"). Every submission from a
separately hosted frontend failed before it left the browser. Map the
scheme back to http(s); an already-http VITE_GATEWAY_URL is untouched.

While there: WEB_STATIC=0 answered every path with the dev hint page,
which talks about localhost:5173 and npm run dev. That page is wrong for
a gateway that is reachable publicly, and an SPA-shaped answer on every
path makes the host look like a second, stale copy of the app. Serve a
short deployment-neutral notice at "/" and 404 everywhere else; the dev
hint stays for the case it is actually about, a missing web/dist.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 12:39:50 +00:00
MoepchiandClaude Opus 5 2ee6d1f0b5 Stop the service worker from stranding clients
Between 48f5e35 (07.09., registerType: 'autoUpdate') and 5b5f4ca (10.09.,
switched to 'prompt') every client that cached the app froze: the new
worker sits in `waiting` and the only code that could release it - the
update toast - lives in the build behind that worker. Their next update
never arrives, and Pages deletes the hashed assets they still run from,
so the bundle they serve does not exist on the server any more. That is
how the feedback form went missing on client.webspeak3.de.

- Back to 'autoUpdate', with skipWaiting/clientsClaim spelled out: the
  plugin only sets them when it also injects registerSW.js, so with
  injectRegister: false the generated worker was byte-identical to the
  'prompt' one. Verified in dist/sw.js.
- onNeedReload instead of onNeedRefresh: the worker takes over on its
  own, the toast only decides *when* to reload, so nobody is thrown out
  of a running connection.
- version.json plus a __BUILD_ID__ baked into the bundle, checked every
  30 min and on tab focus, deliberately routed around the worker (not in
  globPatterns, so never precached). If the server is on another build
  and no new worker turns up, the worker is wedged and the button clears
  registrations and caches instead of reloading into the same cache.
- Dismissing the toast snoozes for 30 min rather than for good.

Verified in headless Chromium against simulated deploys: a client stuck
on the old worker lands on the new bundle at the first plain F5.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 12:20:53 +00:00
MoepchiandClaude Opus 5 06f38b4582 Switch the streaming UI back on
The gateway on the VPS was rebuilt on the v0.11.0-beta.1 image and now
answers setupStream/joinStream/sendStreamSignal, so the condition the kill
switch was waiting for is met. Verified against the live gateway rather
than assumed: a WebSocket connect through gateway.webspeak3.de reached a
real TS6 server, and all five stream commands are present in the running
dist.

The switch itself stays - it is the lever for the next time the frontend
ships a stream feature before the gateway has it. The durable fix is still
a capability handshake; see ROADMAP.md.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 11:23:54 +00:00
MoepchiandClaude Opus 5 5024bf9856 Switch the streaming UI off until the gateway catches up
client.webspeak3.de is rebuilt by Cloudflare Pages on every push to main, but
the gateway and connector are a Docker image that has to be pulled onto the
host by hand. v0.11.0-beta.1 therefore put a browser that knows setupStream in
front of a gateway that does not - and an unsupported setupStream is not an
error, it is silence: the publish panel waits at "starting" forever, after the
browser has already asked the user to share a screen. That reads as a broken
feature, which is worse than an absent one.

Both entry points are gated on one flag: the toolbar button and the "watch
stream" context-menu item. The publisher is tree-shaken out of the bundle as a
result, so nothing can reach the gateway by accident. Flip it back once the
deployed gateway is on v0.11.0-beta.1 or newer.

The durable fix is a capability handshake so the client can tell what its
gateway supports instead of assuming; noted in the roadmap.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 06:39:13 +00:00
MoepchiandClaude Opus 5 478e5c0384 Merge: TS6 screen streaming (alpha)
Adds screen streaming to and from TeamSpeak 6, marked alpha and unstable in
the UI and the docs because it speaks a protocol TeamSpeak does not publish.
Also repoints both submodules at Moepchi forks, so a fresh clone resolves
every pinned commit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 06:27:35 +00:00
MoepchiandClaude Opus 5 550a8896a5 Point the tsclientlib submodule at Moepchi/tsclientlib
Streaming needs a commit in tsclientlib, and the branch was hosted in an
organization this project cannot publish to, so a fresh clone would pin a
commit that never appears. Moepchi/tsclientlib is the older fork in the same
network - GreenTeaSpeak/tsclientlib was itself forked from it - and both share
ReSpeak/tsclientlib as upstream, so no history is rewritten or lost; the
branch keeps every GreenTeaSpeak commit it already had.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 06:09:15 +00:00
MoepchiandClaude Opus 5 e7d5b3be0a Don't offer streaming in demo mode
DemoSocket answers a fixed set of gateway messages and silently drops the
rest, setupstream among them. Clicking the button on the public demo would
therefore prompt the visitor to pick a screen, start the capture, and then
leave the panel at "starting" forever with no error - which reads as a broken
feature rather than an absent one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:37:19 +00:00
MoepchiandClaude Opus 5 9652a3efe5 Mark TS6 streaming as alpha in the UI and the docs
Streaming interoperates with TeamSpeak 6 over a protocol TeamSpeak does not
document; the wire format here was derived from observed behavior. It can fail
to connect, deliver a poor picture, mishandle viewer admission, or break with
any TS6 update - which is a different stability expectation than the rest of
WebSpeak3, and users should not have to infer that from a release note they
read once.

So the badge sits everywhere the feature is reachable: the stream settings
dialog (with a sentence explaining what "alpha" means here), both stream
panels, and the toolbar button's tooltip. README and ROADMAP say the same,
including the two gaps that are most likely to be mistaken for bugs - no SFU
("Server" mode), no camera source.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:35:04 +00:00
MoepchiandClaude Opus 5 4d549887d5 Bump tsclientlib for TS6 stream signaling
The connector reads TS6's stream commands off StreamItem::UnknownCommand,
which tsclientlib only started emitting in this commit; before it, every
notifystream* packet was logged as an unknown command and dropped, so the
signaling never reached the gateway. Also carries the client_is_streaming
client property.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:34:54 +00:00
MoepchiandClaude Opus 5 686458807a publish: stop the encoder from shrinking the picture
Every resolution above 360p was effectively a lie. The capture ran at the
requested size, the bitrate cap was applied, and the encoder then scaled
the picture down by 3x anyway and never recovered.

The cause is degradationPreference, which we never set. Its default for a
track hinted "motion" - which is every preset except Presentation - is to
protect the frame rate and sacrifice resolution. For a screen share that
is backwards: the user picked 1080p, so 1080p is what to keep.

Measured on a 1440x1080 capture with a 6000 kbps cap, 12 s each:

    default             480x270  @20  limit=bandwidth  ~214 kbps
    maintain-framerate  480x270  @20  limit=bandwidth  ~212 kbps
    balanced            480x270  @15  limit=bandwidth  ~169 kbps
    maintain-resolution 1440x810 @19  limit=none       ~717 kbps

Note the bitrate column: the shrunken variants were not short of budget,
they had 6000 kbps and used 214. Setting contentHint "detail" fixes it
too, which is why Presentation was the one preset that looked right.

Audio senders are left alone; degradationPreference is video-only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 b505d68f56 publish: drop a queued request when the client leaves
notifystreamclientleft only removed connected viewers, so a request that
was still waiting for a decision outlived the person who made it - the
row stayed in the panel and approving it would have opened a connection
to a client that is gone. Leaving while pending is not exotic: it is what
closing TS6, or giving up on "waiting for access", looks like from here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 13d3f56c89 publish: mirror TS6's pending-join model instead of refusing
Live testing against a real TS6 client settled how both settings actually
behave, and neither is what the previous commit assumed.

The server enforces nothing. It stores accessibility and viewer_limit,
echoes them back in notifystreamstarted, and then forwards every join
request anyway - a PRIVATE stream at viewer_limit=1 still had both
viewers announced to us. Enforcement is entirely the publisher's job.

And a refusal is the wrong tool for it. TS6's own rule, from main.js:

    !autoAccept || full ? pendingJoinRequests.push(...)
                        : joinStreamResponse(...)

A request it will not take automatically is left *pending*, not denied.
That matters because a denial does not stick - TS6 pairs its own deny
with a ban (blockAndDenyJoinRequest) precisely because of this - so a
refused client just asks again. Measured: 7 retries in 40 s, with nothing
shown to the person waiting. Left pending, the same client asks once and
displays "waiting for access" until answered, then connects normally.

So: PUBLIC with room to spare admits; anything else queues for the user,
including a full stream. Deny is now an explicit choice, and block is the
sticky variant. CONTACTS_ONLY behaves as PRIVATE because the contact list
is a TS6 account feature we cannot read.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 4d0954054c publish: actually enforce the viewer limit
viewer_limit went out with setupstream and was then never looked at
again - admit() handed a peer connection to every join request that
arrived. Nothing establishes that the server turns anyone away, so the
setting was advisory at best.

The publisher is the only side that can enforce it: it is the one
handing out peer connections, and in P2P mode each one is another
encode. respondJoinStream(accept: false) was already plumbed end to end
down to decision=0 in the connector; it just had no caller.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 115cd7150e web: TS6's stream-start options in the publish dialog
TS6 shows a settings dialog before going live; this builds the same set
into webspeak3, split into Basic (preset, capture audio, privacy) and an
Advanced section (resolution, FPS, bitrate, audio bitrate, viewer limit,
connection mode).

The three numeric setupstream fields are enums lifted out of TS6's own
main.js rather than guessed (findings §10): source NONE/CAMERA/SCREEN/
WINDOW/EXISTING_SESSION, accessibility NONE/PUBLIC/CONTACTS_ONLY/PRIVATE,
mode NONE/P2P/SFU. We had been sending type=3 (WINDOW) unconditionally;
detectSourceType() now picks SCREEN for displaySurface === "monitor".

Resolution, FPS and the two bitrates are not protocol fields. They are
applied locally: capture constraints, track.contentHint, and
sender.setParameters() with encoding.maxBitrate. bitrate= on the wire is
advisory - the server echoes back its own number either way.

Connection mode "Server" (SFU) is rendered disabled with a tooltip. That
path is a separate transport (requeststreamsfuaccessinfo -> mediasoup)
that we have not built, and announcing mode=2 without it would publish a
stream nobody could watch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 7083e8e29f gateway: serve HTTPS when TLS_CERT and TLS_KEY are set
Not a nicety. getDisplayMedia, getUserMedia and crypto.randomUUID are
secure-context-only, so a LAN instance reached over plain http could
neither share a screen nor use the microphone. Chrome additionally hides
host ICE candidates behind mDNS names until a media permission is
granted, which keeps a peer-to-peer stream from connecting at all - so
the publishing direction was effectively unreachable from anywhere but
localhost.

The frontend already derives ws:// or wss:// from the page's own scheme,
so nothing else needs configuring. Verified from the LAN address with a
self-signed cert: isSecureContext true, both media APIs present.

gateway/certs/ is gitignored - a private key never belongs in the repo.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 15e215d892 stream: publish a stream TS6 can watch
The other direction, live-verified against TS6 6.0.0-beta12.1: a real
client rendered our video. Connector gains setupstream, stopstream and
respondjoinstreamrequest; the browser gains publish.ts and a toolbar
button.

The publisher offers. TS6 puts the first SDP in respondjoinstreamrequest,
so the side that owns the stream is the side that makes the offer - the
mirror of how it answered us when we were watching. Its reply confirmed
the key rule found in 7a8a1ea from the other side: TS6 sends us
args.answer, exactly as it expects args.answer from us. The key is always
named after the cmd.

The notify filter had to be fixed first. It matched
starts_with("notifyrespondjoinstream"), which drops the inbound
notifyjoinstreamrequest - so every viewer asking to watch *us* was
silently discarded, and the whole publishing direction was mute. Match
ends_with("joinstreamrequest") instead.

P2P mode is a mesh with no SFU in the path, so each viewer gets its own
peer connection and its own encode. Watching and broadcasting can run at
once, so the two panels stack in a shared container rather than both
anchoring to the same corner.

Note for later: we send bitrate=1500000 and the server reports 58208
back. It does not take our value - a real TS6 client showed 50880. Looks
server-side, and it does not stop the connection.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 b57d32bc18 stream: the answer args key is "answer", and it plays
Live-verified against TS6 6.0.0-beta12.1: the working payload is
{"cmd":"answer","args":{"answer":"<sdp>"}}. Audio and video RTP now
arrive from a real TS6 publisher into the browser.

53f6856 sent the bare SDP string instead, inferred statically from an
`answer` branch in the inbound dispatcher that references no key
literal. The inference was wrong - that branch delegates the object
read to a shared JSON helper, and the key lives there. A branch with no
key literal in it means the read is elsewhere, not that there is no key.

The wrong shape is completely silent: the server accepts and routes the
command, and the client discards it. Only getStats() shows it, as TS6
answering our connectivity checks while never sending one of its own
(requestsReceived=0) - it replies from the credentials in its own offer
without ever having applied a remote description. So drop the 5 s
retry-in-the-other-shape fallback, and keep send_with_result on
streamsignaling so a refused command at least surfaces as an error.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 c2e4760e37 Don't crash on a plain-http origin
crypto.randomUUID() exists only in a secure context, so opening a self-hosted
instance over http on a LAN IP threw at module load - before React rendered
anything - and left a blank page with no visible cause.

Falls back to a v4 id built from crypto.getRandomValues(). These ids are local
identifiers (identities, sessions, whisper lists), not secrets.

navigator.mediaDevices was already guarded, so the mic just reports "requires
HTTPS (or localhost)" as intended.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 087b8a90c5 stream: answer args are the bare SDP, not {sdp}
TeamSpeak.dll's inbound signaling dispatcher LEAs a key literal in every
branch that reads an object out of `args` (decision/offer for joinResponse,
sdp/mid/mLine for iceCandidate) and none in the answer and offer branches,
whose handler ends in StreamP2P::SetAnswerString(const std::string&).

That is static evidence only - TS6 has never had an answer from us to react
to, and it drops an unreadable payload silently - so the viewer re-sends the
object form after 5s if nothing connected. The first live test settles it.

Inbound offer/reconnectOffer now accept both shapes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 6107501445 Browser: watch a TS6 stream
Adds web/src/stream.ts, the receive-only RTCPeerConnection that takes TS6's
SDP offer out of notifyrespondjoinstreamrequest, trickles ICE both ways over
notifystreamsignaling and hands the remote MediaStream back.

App.tsx only wires it up: a client with client_is_streaming gets a requeststreaminfo
(that property is the *only* way a late joiner learns a stream is running), a
badge in the tree, a context-menu entry and a floating video panel.

Also adds the missing requestStreamInfo path in the gateway - the connector
already had `streaminfo <clid>` on stdin, nothing could reach it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 11a413d2b6 Add requeststreaminfo so late joiners can find a running stream
Verified end to end against a live TS6 client: the passthrough delivers
notifyrespondjoinstreamrequest with the full SDP offer plus 18 iceCandidate
notifies, all correctly unescaped.

Getting there turned up a gap. A client entering a channel where a stream is
already running receives no stream command at all - 35 s in the channel
produced zero undeclared commands. Discovery runs over the ordinary
client_is_streaming property instead, and the stream id has to be pulled per
client with requeststreaminfo. Without that, only a viewer who happened to be
present when the stream started could ever join.

The unknown-command names now go to stderr, which is what made the difference
between "the server sent nothing" and "we filtered it out" visible at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 9f1a63c9d3 Pass TS6 stream signaling through connector and gateway
tsclientlib dropped every command missing from the message declarations,
which silently swallowed TS6's whole Stream/Call signaling exchange: none of
the stream commands are declared, so notifystreamsignaling never reached a
consumer. That is why the protocol could only be captured with a standalone
raw-tsproto tool.

handle_command now splits the parse failure - ParseError::UnknownCommand hands
the raw line up as StreamItem::UnknownCommand instead of warning and returning,
everything else keeps the old behaviour.

The connector unescapes the TS wire format and forwards the stream commands as
a streamEvent, filtered to notifystream*/notifyrespondjoinstream* so unrelated
undeclared commands stay dropped. The JSON payload stays opaque the whole way -
SDP and ICE belong to the browser's RTCPeerConnection, not to the connector.
Outbound, streamjoin/streamleave/streamsignal join the existing raw OutCommand
handlers; parameter names and order are as recovered from TeamSpeak.dll and
confirmed against a live TS6 client.

The gateway serializes the payload itself so no literal newline can reach the
line-based stdin protocol.

Nothing renders video yet - the browser side is still missing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Sonnet 5 7776a71e84 Harden and polish the feedback endpoint
- Honeypot field ("website", hidden via CSS + tabIndex -1): any
  non-empty value silently short-circuits to a fake success response
  without logging or filing anything, at near-zero cost to real users.
- Tag created GitHub issues with the feedback category (bug/idea/
  other) alongside the existing "feedback" label, for easier triage -
  GitHub auto-creates labels that don't exist yet.
- Rotate feedback.log once it crosses 5MB (move to feedback.log.1) so
  a busy instance doesn't grow the file unbounded.
- Push the nudge bubble's cooldown out from the moment someone
  actually submits feedback, so it doesn't ask again shortly after
  they just did.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 09:15:05 +02:00
MoepchiandClaude Sonnet 5 5b5f4caf79 Add PWA update prompt instead of silent stale caching
Previously the service worker used registerType: 'autoUpdate' with
the default injected register script - a new deploy would install
and activate a new SW in the background, but an already-open tab
kept running the old JS/CSS from memory with no indication a newer
version existed, short of a manual hard reload (or clearing SW/
caches by hand, which we had to do repeatedly while verifying
deploys this session).

Switch to registerType: 'prompt' and register the SW ourselves via
virtual:pwa-register/react (useRegisterSW), showing a small "new
version available" toast with a reload button when an update is
waiting. Also poll registration.update() hourly so long-lived tabs
notice updates without needing a fresh navigation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 09:13:15 +02:00
MoepchiandClaude Sonnet 5 dc35526727 Fix mobile dropdown menus overflowing off-screen
Each menubar dropdown (Extras, Rechte, ...) opened flush with the
left edge of the specific menu item that triggered it. On a narrow
screen, any item not near the left edge (e.g. Extras) opened a
260px-wide panel that ran off the right side of the viewport.

On mobile, anchor the dropdown to the whole menubar instead of the
individual item, and let it span (almost) the full width with a
max-height + scroll for long lists (Extras has a lot of entries).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:44:16 +02:00
MoepchiandClaude Sonnet 5 20a861caff Fix mobile menu bar clipping new items off-screen
.ts-menubar had flex-wrap set for mobile, but the actual row of
menu items lives in the nested .ts-menubar-items flex container,
which never wrapped - so on narrow screens items past a certain
width (like the new Feedback entry) were clipped off the right
edge instead of wrapping to a second line.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:33:43 +02:00
MoepchiandClaude Sonnet 5 6c764578a7 Raise feedback FAB and add occasional nudge bubble
- Move the floating feedback button up above the message compose bar
  so it no longer overlaps the input/send controls.
- Add a small dismissible speech bubble inviting feedback, shown once
  ~45s after load and at most every 3 days (tracked via localStorage),
  auto-hiding after 14s if not interacted with.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:23:50 +02:00
MoepchiandClaude Sonnet 5 d48172f4d1 Make feedback access more visible
Move the feedback entry out of the Extras submenu into its own
top-level menubar item, and add a floating action button (bottom
right) as a second, always-visible entry point. Both stay gated
behind IS_OWN_HOSTED_INSTANCE like before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:15:45 +02:00
MoepchiandClaude Sonnet 5 e2a09fbb43 Add in-client feedback form (own-hosted instance only)
- gateway: opt-in POST /api/feedback endpoint (FEEDBACK_ENABLED=1),
  logs submissions to feedback.log and optionally files a GitHub issue
  on Moepchi/webspeak3 when GITHUB_TOKEN is set and the user opts in.
  Rate-limited per IP, CORS-aware for split-hosted deployments.
- web: new "Feedback" menu entry under Extras, gated to
  client.webspeak3.de at runtime (IS_OWN_HOSTED_INSTANCE) so other
  self-hosted/forked deployments and the public demo never see it.
  New FeedbackDialog with category/message/email fields and an
  opt-in "publish as GitHub issue" checkbox. New i18n strings (DE/EN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 07:29:48 +02:00
MoepchiandClaude Sonnet 5 1d20eb15de connector: silence noisy ts_bookkeeping::messages::s2c warnings by default
ts_bookkeeping::messages::s2c logs a WARN for every server/property
field it doesn't have a parser for. Harmless (the field is simply
dropped) but extremely noisy on TeaSpeak/GreenTeaSpeak servers, where
it fires on nearly every ServerUpdated/ClientEnterView and drowns out
warnings that actually matter.

Also makes RUST_LOG actually functional for the first time - the
filter was previously a hardcoded EnvFilter::new("warn") literal that
ignored the env var entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 14:28:52 +02:00
Moepchi 42f33840a5 Add opt-in connection logging (LOG_CONNECTIONS env var)
Off by default — this is an open-source, self-hostable image, so other
instances shouldn't get connection logging just because it's in the
codebase. Set LOG_CONNECTIONS=1 in an instance's .env to log a single
line per TS3/TeaSpeak connect and disconnect (host, server name,
timestamp — no nickname, no IP).
2026-09-09 07:20:24 +02:00
Moepchi 48f5e35a38 Add PWA installability (manifest + service worker)
- Wire up vite-plugin-pwa: generates a web app manifest and a
  precache-only service worker for the built app shell (JS/CSS/HTML/
  icons). WebSocket (/ws) and file-transfer traffic are never
  intercepted or cached. Disabled in dev so it doesn't interfere with
  Vite's own HMR websocket.
- Add 512px + maskable 512px icons generated from the existing logo.
- Add iOS "Add to Home Screen" meta tags (manifest support there is
  partial).
- Gateway: serve .webmanifest with the correct MIME type.
2026-09-07 16:16:44 +02:00
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 9702c671e8 Fix 8 correctness bugs found in code review of PR #4
- Connection log only ever rendered the single latest entry
  (log.slice(-1) -> log.slice(-50)), and appendLog grew log[] unbounded
- Mic stayed off after switching back to a parked multi-join tab
  (added ParkedSessionState.micWasOn, restore mic on switch-back)
- Packet-loss heuristic guessed fraction-vs-percent by magnitude, which
  can't disambiguate; now branches on actual server type (GTS vs TS3)
- serverGroups/channelGroups/permissionCatalog/banList/fileBrowser were
  page-global caches never invalidated on multi-join tab switch, so a
  newly active tab could show another server's stale data
- ServerQuery clients were filtered from the client list but still
  counted in the online-total fallback; total now matches the list
- gateway disconnect() resolved before the connector child process
  actually exited, allowing two connector processes to run briefly on
  a fast reconnect; now waits for exit (with a hard-kill fallback)
- switching a parked multi-join tab back in replayed a spurious
  whisper-target log entry and resent setWhisperTargets even when
  nothing changed, because the diff was against the wrong tab's ref
- double-click-to-join channel detection used module-level state,
  so a click in one multi-join tab could pair with a click in another
  tab's tree as a false double-click; now keyed per session

Note: could not verify with a full cargo build - the PR's own
'Update tsclientlib' commit (cd6928b) points at a tsclientlib submodule
commit that isn't pushed to any reachable branch (not even the PR
author's own fork), so nobody can currently build this PR end-to-end.
That is unrelated to these fixes.
2026-09-06 00:20:33 +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
Nico B. cd6928b407 Update tsclientlib 2026-09-05 22:48:31 +02:00
Nico B. e9ee12c7b5 Add TeaSpeak/GTS support, multi-join & GTS theme
Adds TeaSpeak/GreenTeaSpeak protocol support and multi-join session tabs plus a GreenteaSpeak UI theme. Key changes: connector (Rust) supports --server-type, privilege key, server variables, license formatting, Query-client filtering and extra metrics; gateway accepts serverType/privilegeKey, optional static serving (WEB_STATIC), and per-tab /ws sessions; web frontend: multi-session parking (connectionSessions), channel spacer parsing, talk-lamp UI, extended server connection info, connect dialog serverType/privilegeKey, GreenteaSpeak CSS & chrome, i18n updates, and demo updates. Also adds docs/teaspeak.md and dependency num-traits.
2026-09-05 22:45:21 +02:00
MoepchiandClaude Sonnet 5 804fa44ab6 fix: update stale moepchi.de OG/Twitter meta tags to webspeak3.de
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 20:35:49 +02:00
MoepchiandClaude Sonnet 5 563bca2a4b feat: add Simplified Chinese (zh-CN) locale, harden runtime image
zh-CN i18n adapted from MIKU-N's fork (github.com/MIKU-N/webspeak3):
new web/src/locales/zh-CN.ts, wired into i18n.tsx's Lang type, system
language detection, language preference persistence, the app.language
option list, and a new document.documentElement.lang sync effect.
App.tsx's language dropdown and the README feature table updated to
match. Missing keys naturally fall back to English via the existing
translations[lang][key] ?? translations.en[key] ?? key chain.

Also adapted from the same fork: the runtime stage's Dockerfile now
strips npm/npx (and npm's cache/package tree) after installing the
gateway's production deps, since nothing in the running container
invokes either afterwards - shrinks the image and drops npm's own CVEs
from the final attack surface. Adds a HEALTHCHECK that curls the
gateway's own port via Node's fetch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 18:50:01 +02:00
MoepchiandClaude Sonnet 5 b14292a95d ci: build and push Docker image on release
Adds a GitHub Actions workflow (docker-publish.yml) that builds the
webspeak3 image and pushes it to Docker Hub as moepchi/webspeak3:latest
plus a matching version tag whenever a GitHub Release is published (or
manually via workflow_dispatch). Uses GHA layer caching so the Rust
connector build doesn't redo work on every release.

Also hardens the Dockerfile's web-builder stage against a long-standing
npm bug (npm/cli#4828) where `npm ci` intermittently fails to install
Vite 8's platform-specific Rolldown binding without a non-zero exit
code, surfacing later as a confusing vite build MODULE_NOT_FOUND. Now
verified and self-healed (rm + npm install) before the real build runs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 16:55:22 +02:00
MoepchiandClaude Sonnet 5 a6e2130d29 docs: fix broken README preview images
The desktop/mobile screenshots linked to raw.githubusercontent.com on
the private webspeak3-landing repo, which 404s for anyone without
access. Copy both images into docs/screenshots/ in this repo and
reference them with relative paths instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 04:46:19 +02:00
Moepchi f490ca5776 Add auto gain control toggle for echo cancellation tuning (#2)
Exposes autoGainControl as its own Options -> Aufnahme toggle (was
implicitly left to the browser default) and requests the pipeline's own
48kHz sample rate explicitly, so the mic doesn't need an extra internal
resample before the browser's own AEC runs. Both are standard
getUserMedia constraints, honored the same way by Chromium and Firefox
(unlike vendor-prefixed googEchoCancellation-style flags, which only
affect Chromium).

Helps speaker+mic (no headset) setups where AGC re-amplifying the mic
signal after AEC can bring back audible echo residue - see #2.
2026-08-29 04:29:04 +02:00
Moepchi 24f070ce67 Untrack .serena/
Local Serena project config/memory files, not part of the repo's source.
2026-08-29 04:06:42 +02:00
Moepchi 8c954f9540 Add user-created custom design themes
Lets users build their own theme packages from Options > Design: pick a
structural base (Standard or Nova), write free-form CSS, and save/select
it locally. Supports duplicate, export/import (JSON), and delete.

Custom CSS is injected via a dedicated <style> tag while the theme is
active. Fixes the built-in theme variable rules (.ts-app,
.ts-app.ts-theme-dark, .ts-app.ts-design-nova) so a plain .ts-app { ... }
override in custom CSS always wins, by wrapping them in :where() to
strip their specificity - previously the compound selectors always beat
a same-specificity custom rule regardless of injection order.

Standard/Nova behavior is unchanged when no custom theme is selected.
2026-08-29 04:05:18 +02:00
Moepchi 3ad086aedd Add Nova design theme: redesigned menu bar, connect splash screen
- Restyle classic top menu bar into pill-chip items merged into the
  same row as the WebSpeak3 logo/server/status cluster, collapsed
  behind a hamburger button with an outside-click/Escape-aware
  dropdown panel (nested submenus flip to open leftward to avoid
  clipping at the viewport edge).
- Make the Connect dialog the sole visible surface while
  disconnected in Nova: it auto-opens on load and after every
  disconnect, and the app chrome (menu/toolbar/body/log) is hidden
  behind it until a connection succeeds.
- Rebuild the Connect dialog for Nova to match the TS6 Redesign
  mockup's dedicated Connect screen: centered hero (logo/title/
  subtitle) above an elevated card, a chevron-toggle "Erweiterte
  Optionen" moved under the nickname field, reordered ghost/primary
  footer buttons, and a fixed settings-gear shortcut into Options.
  The 11 existing form fields/handlers are shared with the Standard
  dialog via one JSX tree, decorated only through small nova ternaries.
- Nova starts with an empty server-address field instead of the
  Standard theme's "localhost" default.
- All changes scoped under .ts-app.ts-design-nova (or nested
  classes); Standard theme verified pixel- and behavior-identical
  throughout via repeated live comparisons.
2026-08-29 03:15:06 +02:00
MoepchiandClaude Sonnet 5 8e78ae98c9 Remove non-functional myTeamSpeak ID feature
Both checkboxes were disabled stubs; the underlying protocol field is
hardcoded to None in tsclientlib and not exposed as a settable option,
so the feature can't be implemented. Removed from Connect and
Favorites dialogs plus the now-orphaned i18n keys (DE+EN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 22:28:51 +02:00
Moepchi e2c67ef23c Remove landing page from client repository 2026-08-23 10:09:28 +02:00
Moepchi 34fdd04c1c Improve project documentation and beta roadmap 2026-08-23 00:35:16 +02:00
Moepchi b0eda9a22c Add mobile navigation and release updates 2026-08-22 23:35:59 +02:00
Moepchi bdfc0bcc10 Expand landing navigation sections 2026-08-22 23:25:20 +02:00
Moepchi 6bdd0fa171 Stabilize landing navigation scroll state 2026-08-22 23:19:17 +02:00
Moepchi ccceacba07 Polish landing navigation and section motion 2026-08-22 23:17:31 +02:00
Moepchi f56990f033 Add landing community feedback section 2026-08-22 23:10:56 +02:00
Moepchi a58a649818 Clarify Safari client workflow labels 2026-08-22 22:59:56 +02:00
Moepchi a26b7e02ec Test WebSpeak3 client capabilities in Safari 2026-08-22 22:58:54 +02:00
Moepchi 386c6ad49b Fix Safari language switch selector 2026-08-22 22:52:39 +02:00
Moepchi a8cf46f2da Use isolated Python environment for Safari check 2026-08-22 22:51:09 +02:00
Moepchi c5635102f0 Add free Safari landing page checks 2026-08-22 22:50:12 +02:00
Moepchi 27fbd3cd10 Fix connection status indicator spacing 2026-08-22 22:41:29 +02:00
Moepchi dfae1b53d2 Expand landing onboarding and project details 2026-08-22 22:37:51 +02:00
Moepchi e221c9d73d Overlay Android camera and gesture bar 2026-08-22 22:23:07 +02:00
Moepchi 8ff35abdf1 Refine iPhone preview frame 2026-08-22 22:19:58 +02:00
Moepchi bb152a9bda Add device-aware phone frames 2026-08-22 22:14:09 +02:00
Moepchi 0b76f2e354 Show real mobile client preview 2026-08-22 22:09:50 +02:00
Moepchi 0ad64fd4f8 Update interactive client preview 2026-08-22 22:04:07 +02:00
Moepchi c6fbc04236 Clarify connection to any TeamSpeak server 2026-08-22 21:37:58 +02:00
Moepchi 7deee1a8c3 Expand landing page with product details 2026-08-22 21:31:02 +02:00
Moepchi 69efb64db6 Add bilingual WebSpeak3 landing page 2026-08-22 12:47:09 +02:00
MoepchiandClaude Sonnet 5 e917e8e906 Remove GitHub Pages demo workflow
Cloudflare Pages (demo.webspeak3.de) already covers this for free,
no need for a second free hosting fallback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 21:39:49 +02:00
MoepchiandClaude Sonnet 5 5e2b2860ae Drop GitHub Pages fallback mention from README demo blurb
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 21:38:23 +02:00
MoepchiandClaude Sonnet 5 80e36539f3 Link webspeak3.de, client.webspeak3.de and demo.webspeak3.de in README
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 21:37:39 +02:00
MoepchiandClaude Sonnet 5 b70b4d1fc9 Fix: VITE_GATEWAY_URL override was missing the /ws path
The gateway's WebSocketServer only listens on /ws (gateway/src/index.ts),
but the VITE_GATEWAY_URL build-time override connected to the bare host
instead - causing 'Could not reach the gateway' on split-hosted deploys
(e.g. client.webspeak3.de -> gateway.webspeak3.de). Now /ws is always
appended, whether the URL comes from the same-origin fallback or the
override.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 02:17:53 +02:00
MoepchiandClaude Sonnet 5 fd24ae740e Add cloudflared tunnel service to docker-compose
Enables exposing the gateway via Cloudflare Tunnel without a public
DNS record pointing at the home server's real IP. Token is supplied
via CLOUDFLARE_TUNNEL_TOKEN in a gitignored .env file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 01:22:48 +02:00
Moepchi c10572feda Support VITE_GATEWAY_URL to point the built frontend at a gateway on another host 2026-08-10 21:46:39 +02:00
Moepchi c305fc4e1e Remove redundant poke hover-button from client tree rows (already in context menu) 2026-08-10 21:31:13 +02:00
Moepchi ec3a693292 Fix icon right-alignment: remove duplicate margin-left:auto from poke button 2026-08-10 21:28:16 +02:00
Moepchi 6bc3dca567 Add colored-letter badges for TS3 built-in default group icons; only fetch real custom icon files 2026-08-10 21:23:54 +02:00
Moepchi 0a1163d4f9 Widen tree row to fill panel width; add ftdownload debug logging 2026-08-10 20:47:13 +02:00
Moepchi fee0169463 Right-align client row icons flush to the edge; add debug logging for group icon ids
Status icons and group badges previously sat right after the name with no
push-right, so they clustered close to it instead of at the row's right
edge like the poke button already does. Wrapped them in a flex span with
margin-left: auto to match.

Also added temporary eprintln logging of each channel/server group's
resolved icon_id, to check whether this server's groups actually have
custom icons assigned (native TS3 doesn't show a badge for groups without
one either) before assuming the icon feature itself is broken.
2026-08-10 20:09:10 +02:00
Moepchi b7ef6f78e7 Add server group icon badges and a 'no talk power' status icon
Group icons were entirely missing from the data model - GroupEntry only
carried id/name. Added icon_id (from ServerGroup/ChannelGroup's Icon field)
through connector -> gateway -> frontend, matching the same channel-0
icon_<id> file convention already used for server icons (#77), reusing
that dialog's fetch/cache/render plumbing (serverIconImages, iconDataUrl).

Client rows now render a small badge per server group with a non-zero
icon, positioned after the name/status icons (i.e. on the right), instead
of not existing at all. Also added a 🔒 status icon for clients who aren't
muted but still can't talk due to insufficient talk power in a moderated
channel (previously no icon indicated this state at all).
2026-08-10 19:11:03 +02:00
Moepchi 6e343c4d4c Fix talking indicator: also respect missing talk power in moderated channels
The previous fix only accounted for the local mute toggle. In a moderated
channel (one with a talk power requirement) a client without sufficient
talk power still has selfActive/VAD firing locally and no local concept of
whether they're actually allowed to transmit, so the indicator stayed on
regardless.

The connector now computes has_talk_power per client from the book state
(talk_power_granted || talk_power >= channel.needed_talk_power), mirroring
tsclientlib's own internal intern_can_send_audio moderated-channel check,
and threads it through gateway and frontend. The talking indicator (both
the own-client injection into displayTalkers and the general per-client
render in ChannelTree) now requires hasTalkPower too.
2026-08-10 18:47:37 +02:00
Moepchi 4847972c80 Fix: don't show local talking indicator while mic is muted
selfActive is driven by MicCapture's local VAD (raw input level), which has
no notion of the input-muted state - only the actual audio send (onFrame)
checked inputMutedRef. So muting the mic still lit up the green talking
indicator on your own row locally, even though nothing was being
transmitted.
2026-08-10 18:30:37 +02:00
Moepchi 44450ab35f Fix permission catalog names: server never sends explicit permission_id, only implicit stream position
Live debug logging confirmed notifypermissionlist entries always had
permission_id=None - only permission_name/description were populated, plus
an unrelated group_id_end marker. The old code silently discarded every
entry because it only inserted into the name cache when permission_id was
Some. Real numeric IDs (as seen e.g. in notifyservergrouppermlist) only
match a catalog entry's ordinal position in the arrival stream, so names
are now assigned from a running counter instead.

Also fixed a related race: three call sites (permoverview, permissionlist,
permlist) each independently checked permission_names.is_empty() before
firing their own 'permissionlist' catalog fetch, so two could race and
fire duplicate concurrent fetches whose interleaved chunks would have
corrupted the new ordinal counter. They now check pending_permission_list
too and piggyback on an in-flight fetch instead of duplicating it.
2026-08-10 18:14:26 +02:00
Moepchi 9d6dcebfa9 Temporary debug logging for the missing permission-names bug investigation 2026-08-10 17:48:28 +02:00
Moepchi e26b02c449 Remove local .claude config from the repo and ignore it going forward 2026-08-06 03:22:54 +02:00
Moepchi f629666bc2 Fix missing permission names: don't finalize the catalog after the first reply chunk
A full permissionlist reply on a real account (hundreds of real
permissions) arrives as several separate notifypermissionlist events,
not one - only a permission-limited guest's tiny marker-only reply
fits in a single message, which is all that had been tested before.
The connector finalized permission_names right after the first chunk,
so anything past roughly the first packet's worth of entries never got
a name and fell back to '#<id>' in the UI.

Now it just accumulates names as chunks arrive and only finalizes -
resolving buffered PermissionOverview/PermList/PermissionCatalog
requests - once the command's MessageResult confirms completion.
2026-08-06 03:01:25 +02:00
Moepchi 684e597529 Fix Server/Channel Gruppen lists: read from book state instead of waiting for a reply that never arrives
notifyservergrouplist/notifychannelgrouplist never surface as an
InMessage the connector can match on - the server delivers them as
book-state PropertyAdded events (populating con.server_groups /
con.channel_groups), while the command's MessageResult itself comes
back Ok(()) with no payload. The connector was waiting on the wrong
stream item, so the group lists silently never resolved for any
account, not just permission-limited ones - confirmed via live debug
logging against the real server with a full Server Admin identity.

Fix: once the servergrouplist/channelgrouplist command result comes
back Ok, read the groups straight out of the already-synced book
state instead of trying to match a reply that never comes.
2026-08-06 02:33:55 +02:00
Moepchi 79df26c3bc Temporary debug logging for the blank group-list bug investigation 2026-08-06 02:08:04 +02:00
Moepchi b4ec2a26b6 Fix blank Server/Channel Gruppen tabs when the group list can't load
servergrouplist/channelgrouplist decline silently on the server when the
account lacks permission to see them (no reply at all - same behavior as
banlist/complainlist elsewhere in this app). The permissions editor's
group list only rendered when it had data, so a permission-limited
account just saw a permanently blank left panel with no explanation
(reported by a screenshot from the real server).

Added the same loading/6s-timeout/"nicht verfügbar" fallback every other
list dialog in this app already uses (GroupAssignDialog, banlist, etc.) -
now shows a loading indicator, then a clear "unavailable" message
instead of nothing.

Verified in demo mode: both Server Gruppen and Channel Gruppen tabs still
list their (demo) groups correctly - no regression from the loading-state
change.
2026-08-06 01:50:53 +02:00
Moepchi ecc07308f6 Fix mojibake in imported .ini identity names/nicknames
The previous \xHH unescaper treated every escape as exactly 2 hex digits
representing one raw byte. The native client's .ini format (Qt's
QSettings escaping) actually uses \x followed by 1-4 hex digits for one
UTF-16 code unit - astral characters (emoji) become two consecutive
escapes forming a surrogate pair, e.g. "\xd83d\xde43" for 🙃. The old
code only consumed the first 2 digits of each escape, leaving the rest as
stray literal text - exactly the mojibake ("Ø3dÞ43" etc.) a user hit
when importing an identity with emoji/Greek/Turkish letters in the name.

Root-caused directly from the user's screenshot (reverse-engineered the
old buggy output back to the real escape sequence) and confirmed against
their actual .ini file content. New parser correctly reconstructs
"[🙃 ] λşşαşşỉŋş88 / Möpchi" and a real connect using that identity's
exact key + nickname succeeds against the live server.
2026-08-06 01:20:51 +02:00
Moepchi 53ccb22189 Support importing native TeamSpeak .ini identity files
The connector now parses --identity either as our own JSON blob or as a
raw TS3 identity string ("<counter>V<base64-key>", the format inside a
native client's exported .ini and in teamspeak:// URLs) via tsproto's
Identity::new_from_str, which already handles both.

The web client's "Identitäten" > Importieren now recognizes a native
.ini file (looks for a [Identity] section), unescapes its \xHH-escaped
name field, and pulls out id/identity/nickname/phonetic_nickname directly
- no conversion needed, the raw identity string is stored as-is and self-
migrates to our JSON format after the first successful connect (same as
any other imported/created identity).

Verified with a real exported .ini file: parsing extracts the right
name/nickname/blob, and connecting the connector directly against the
real server with that exact identity string succeeds and is recognized
as the already-known account (its own channel/server group, not the
default guest group) - not just a fresh/anonymous identity.
2026-08-06 00:48:42 +02:00
Moepchi 17899ae137 Rework Identitäten dialog to match the native client's layout
The old dialog was a flat list with an inline rename field and a radio
button per row - visually and structurally nothing like the native
myTeamSpeak-style Identitäten window. Reworked to the same list + detail
panel layout: pick an identity on the left, edit its Name/Nickname/
Phonetischer Nickname on the right, see its Eindeutige ID (once known)
and creation status, Standard/Löschen/Exportieren buttons per identity.

Also added what was actually missing functionally, not just visually:
- Import/Export: an identity's opaque tsclientlib blob can be downloaded
  as a JSON file and re-imported later (backup/transfer between browsers).
- Per-identity nickname: each identity now remembers its own nickname
  (like native TS3), applied when switching identities in the connect
  dialog and saved back after a successful connect - previously there was
  only one global nickname shared by every identity.

Deliberately left out of scope (documented inline in the component):
myTeamSpeak cloud-synced identities (a whole separate account system this
self-hosted client has no equivalent of) and the manual "Sicherheitsstufe
erhöhen" button (tsclientlib already runs that proof-of-work step
automatically during connect whenever a server demands a higher level,
so a manual trigger wouldn't add functionality, only let you pre-compute
it before connecting).

Verified interactively in demo mode: dialog renders in the new layout,
fields are all editable, Standard/Löschen/Export honor their expected
enabled/disabled states.
2026-08-06 00:39:26 +02:00
Moepchi ea7b97b161 Add full permissions editor window (#71)
The "Rechte" top menu's four previously-disabled items now open a tabbed
editor matching the real TS3 client's window: Server Gruppen, Client
Rechte, Channel Rechte, Channel Gruppen, Channel Client Rechte. For each
tab you pick a group/channel/client (or combination), see its currently
assigned permissions in a filterable table, add new ones from a searchable
catalog, and remove existing ones.

Connector: new servergrouppermlist/channelgrouppermlist/channelpermlist/
clientpermlist/channelclientpermlist request handling (unified behind one
"permlist <scope> ..." stdin command and a single-target pending-list
mechanism, mirroring the existing permoverview pattern's name-resolution
cache) plus servergroupaddperm/-delperm, channelgroupaddperm/-delperm,
channeladdperm/-delperm, clientaddperm/-delperm, channelclientaddperm/
-delperm for mutating them, and a "permissionlist" command to expose the
full permission catalog (needed for the "add permission" picker).

Verified against the real server: permission list/catalog requests reach
the server correctly. The test guest account turns out to lack rights to
see permission names/IDs at all (server replies with only the hierarchy's
group-boundary markers, no populated permid/permname) - same class of
account-permission ceiling as banlist/file uploads/etc. earlier in this
project, not a bug in this feature. Add/remove wire commands support both
numeric permid and permsid addressing per the protocol, so this should
work fully for an account with actual view rights (e.g. the real server
admin), even though it couldn't be exercised end-to-end with this guest
account. Full interactive verification (list, add, remove) done in demo
mode instead.

"Rechteübersicht" (viewing another client's computed effective
permissions with grant provenance) stays disabled - a materially
different feature the connector doesn't support.
2026-08-06 00:16:30 +02:00
Moepchi 6d6803d9b3 Add server icons window (#77)
Right-click on the server row -> "Server-Icons..." opens a grid of the
server's icon repository (TS3's special "channel 0" filebase). Reuses the
file-transfer plumbing from #83 (ftgetfilelist/download/upload/delete)
rather than adding new connector commands - icon_<id> files under channel
0 *are* the server icon repository, so no new protocol handling was
needed. Lets you view existing icons as real thumbnails (sniffed from the
downloaded bytes - PNG/GIF/JPEG/BMP), upload a new one under a chosen
numeric ID, and delete icons.

Out of scope for this pass: actually assigning an icon to the server/a
channel/a group (there's no icon-picker wired into the server/channel
edit dialogs yet) - this delivers the icon repository browser only.

Demo mode gets a small fake icon repository (two placeholder icons) so
the window is interactive in the GitHub Pages demo too.
2026-08-05 23:36:45 +02:00
Moepchi 7901aafbb1 Add file transfer support (#83)
Channel-scoped file browser reachable via right-click on a channel:
navigate directories, create folders, rename/delete, and upload/download
files. Backed by tsclientlib's built-in download_file/upload_file (which
already handles the ftinitdownload/ftinitupload -> TCP data-port dance),
plus raw ftgetfilelist/ftcreatedir/ftdeletefile/ftrenamefile commands for
everything else. Downloads/uploads are buffered whole in memory and
base64-relayed over the existing stdin/WebSocket text protocol - fine for
a channel filebase's typical file sizes, not meant for huge transfers.

Verified against the real server: upload/list/download round-trip reaches
the server correctly (list succeeds, upload correctly surfaces the
guest account's missing permission via the new FiletransferFailed
handling instead of hanging or crashing).

Demo mode gets a small in-memory per-channel filesystem so the file
browser is fully interactive in the GitHub Pages demo too.
2026-08-05 22:39:35 +02:00
MoepchiandClaude Sonnet 5 41ac845fbc Add read-only permission overview ("Eigene Rechte anzeigen")
Partial progress on #71 (full permissions editor). A genuine full
editor - server/channel/group permission grids across 5 permission
scopes with add/remove/modify for hundreds of possible permissions -
is a much bigger undertaking than fits in one pass, so this lands a
real, useful slice of it first: a read-only view of the caller's own
effective permissions in their current channel.

- Connector: "permoverview" (raw command, no typed builder exists)
  requests the caller's effective permission set for cid+cldbid.
  Permission IDs are opaque numeric values server-side, so results are
  name-resolved via a "permissionlist" id->name/description lookup
  that's fetched once and cached for the connection's lifetime. The two
  requests are chained (list first, overview second) with buffering in
  case the overview reply somehow arrives first.
- Gateway: typed passthrough for the merged, name-resolved entries.
- Frontend: new dialog wired to "Eigene Rechte anzeigen" in the Rechte
  menu (previously disabled) - a filterable table of permission
  name/value/negated/skip.

Verified against the real server: initially got a clean
"ParameterNotFound" error revealing that permoverview needs an
explicit permid=0 ("all permissions") even though tsclientlib's
generated type treats it as optional; after adding that argument the
command reaches the server correctly and returns the expected
permission-denied response for the guest test account (same pattern
as every other admin-gated feature this session).

The remaining scope of #71 - editable server-group/channel-group/
channel/client permission grids - is unchanged and left for later.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 21:35:09 +02:00
MoepchiandClaude Sonnet 5 0f8576ac6c Add ServerQuery Login dialog
Wires up the previously-disabled "ServerQuery Login" Extras menu item
with a username/password form. Sends the raw TS3 "login" command
(client_login_name/client_login_password) over the existing
connection - no typed builder exists for it upstream, same situation
as the other raw-command features this session. Credentials are
base64-encoded over the connector's stdin protocol (rather than naive
space-splitting) so passwords with spaces or special characters
survive the trip intact.

Fire-and-forget like kick/ban: the dialog closes on submit and relies
on the existing generic error/permission-error event path for
feedback. Verified against the real server end-to-end - bogus
credentials round-tripped through connector -> gateway -> frontend
and surfaced as a clean error event (this particular server responds
"NotImplemented" to post-connect query login, which is itself proof
the command reached the server and got a real protocol-level reply).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 21:02:16 +02:00
MoepchiandClaude Sonnet 5 db8b5ea958 Complete client context menu: channel/server group assignment
Fills out the last two disabled entries in the client right-click menu
(#72): "Channel-Gruppe zuweisen" and "Server-Gruppe zuweisen".

- Connector: exposes each client's database_id, channel_group, and
  server_groups (already present in tsclientlib's bookkeeping Client
  struct, just not threaded through before) on the "channels" snapshot.
  Adds raw commands for channelgrouplist/servergrouplist (list requests,
  same InMessage pattern as banlist/complainlist) and
  setclientchannelgroup/servergroupaddclient/servergroupdelclient
  (assignment, fire-and-forget like kick/ban).
- Gateway: typed passthrough for the new client fields and five new
  message types (getChannelGroupList, getServerGroupList,
  setChannelGroup, addServerGroup, removeServerGroup).
- Frontend: new GroupAssignDialog reused for both channel groups
  (single-select, closes after assigning) and server groups
  (multi-select, checkmarked entries toggle add/remove and the dialog
  stays open). Demo mode simulates real group membership changes,
  including live re-render after assignment.

Verified against the real server: the client's own database_id/
channel_group/server_groups now flow correctly end-to-end (confirmed
via a throwaway gateway test script). The list-request commands are
permission-gated for the guest test account and decline silently, same
as serverlog/serverconninfo before them - the dialog's existing 6s
"unavailable" timeout already covers this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:40:52 +02:00
MoepchiandClaude Sonnet 5 203e8fba51 Add "Rechte" top menu
Turns the previously-static "Rechte" label into a real dropdown menu,
matching the layout of TeamSpeak's native permissions menu: server
groups, channel groups, server/channel permission editors, a
permission overview, and "eigene Rechte anzeigen".

All entries are disabled with the standard "not yet supported in the
web client" tooltip - actual permission querying/editing needs new
protocol plumbing (permlist/permidgetbyname etc., same class of work
as the full permissions editor tracked separately) that doesn't exist
yet. This gives the menu real content and correct TS3-parity structure
without faking functionality that isn't there.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:22:58 +02:00
MoepchiandClaude Sonnet 5 b9d4bd533d Complete server right-click context menu
Right-clicking the server row in the tree previously did nothing.
Adds a context menu (same styling/dismiss pattern as the client
context menu) offering: server connection info, edit virtual server,
copy server address, add to favorites, server protocol log, ban list,
complaint list, and disconnect - all wired to handlers that already
existed for the menu bar / info panel equivalents.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:17:55 +02:00
MoepchiandClaude Sonnet 5 dbe9a3c2df Add offline messages (Offline Nachrichten) dialog
Wires up raw TS3 protocol commands for offline messages, since
tsclientlib's generated code has no typed builder for them (same
situation as banlist/complainlist in the previous feature):

- Connector: messagelist, messageget, messageadd, messagedel,
  messageupdateflag as raw OutCommand invocations. Replies parsed via
  the existing StreamItem::MessageEvent pending-flag pattern, reusing
  InMessage::OfflineMessageList (list, no body) and InMessage::OfflineMessage
  (single message with full body, response to messageget).
- Gateway: typed events/methods threading the new commands from
  WebSocket clients through to the connector's stdin protocol.
- Frontend: new "Offline Nachrichten" dialog in the Extras menu with a
  message list (subject/from/timestamp, unread dot), a detail view
  (full body + mark-as-read), delete, and a compose form to send a new
  message to a target client UID. Demo mode gets one scripted message.

Verified against the real test server (192.168.178.108): messagelist
returns a clean DatabaseEmptyResult error for an account with no
messages (falls back to the dialog's existing 6s "unavailable" timeout,
same as banlist/complainlist), and messageadd correctly surfaces a
permissionError for a guest account lacking send rights - both proving
the raw command round-trip works end to end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 19:57:05 +02:00
MoepchiandClaude Sonnet 5 bd0122812d Add Bannliste and Beschwerdeliste management dialogs
Implements #91 (ban list) and #92 (complaint list), reusing the
StreamItem::MessageEvent handling infrastructure added for #94.

Connector:
- New raw commands: banlist, bandel, bandelall, complainlist,
  complaindel, complaindelall (no typed builders exist for these).
- New pending_ban_list/pending_complain_list flags + MessageEvent
  match arms parsing InMessage::BanList/ComplainList replies into
  BanListEntry/ComplainListEntry structs, emitted as banList/
  complainList events.
- Unlike serverlog/serverconninfo, the test server actually replies
  with an error return code for these (surfaced as a "permission
  error" Server-tab log line) rather than staying silent - the
  connector already handles that path via the existing pending
  message result matching.

Gateway: getBanList/deleteBan/deleteAllBans/getComplainList/
deleteComplaint/deleteAllComplaintsFor methods and message cases,
plus camelCase remapping for the two new event types.

Frontend: BanListDialog and ComplainListDialog components (table
view, per-row delete + delete-all for bans, optimistic local removal
on delete), wired into the Extras menu (previously disabled
placeholders), with the same 6s timeout-to-"unavailable" fallback
pattern used by the other async-reply dialogs. Demo mode gets fake
ban/complaint entries.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 13:08:01 +02:00
MoepchiandClaude Sonnet 5 4318ce359f Add Server Protokoll dialog
Adds the first StreamItem::MessageEvent handler in the connector's
event loop (previously dropped by a catch-all) - needed because log
lines aren't part of the bookkeeping data model, unlike client/server
connection info, so they only ever arrive as a raw notifyserverlog
reply rather than a book-state update. This unblocks the same pattern
for Bannliste/Beschwerdeliste next.

Sends "logview" via tsclientlib's typed Server::log_view() builder,
requesting the last 200 lines. Verified end-to-end against the real
server (though a permission-gated account got no reply at all there -
the frontend dialog now falls back to a "no response" message after a
timeout instead of loading forever, matching the connection-info
dialogs' existing behavior).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 12:45:59 +02:00
MoepchiandClaude Sonnet 5 181b0fc43b Add "Virtuellen Server editieren" dialog
Wires up tsclientlib's typed Server::edit() builder (name, welcome
message, password, host message/banner/button settings, nickname,
phonetic name, codec encryption mode) through a new "serveredit"
stdin command. Frontend dialog has Host and Verschiedenes tabs fully
implemented, with Übertragung/Anti-Flood/Sicherheit/Protokoll shown as
not-yet-implemented placeholders (their fields have no typed setter in
tsclientlib's generated bindings, would need hand-built raw commands).

Entry point is a new link in the server info panel, next to the
connection-info one added earlier. Every field is optional in the
payload - blank means "leave unchanged" - except the password field,
which has an explicit "remove password" checkbox for the clear case.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 12:08:43 +02:00
MoepchiandClaude Sonnet 5 330ecccadb Add kick and ban to the client context menu
Wires up "Aus dem Channel kicken", "Vom Server kicken", and "Bannen"
(previously disabled placeholders). Kick uses tsclientlib's typed
Client::kick() builder; ban has no typed wrapper so it's built as a
raw "banclient" command (same OutCommand::write_arg approach used for
the connection-info requests). Both use send_with_result() so a
missing-permission rejection surfaces as a visible error.

"Channel-Gruppe zuweisen"/"Server-Gruppe zuweisen" remain disabled -
they need the server's group list threaded through first, left for a
follow-up.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 11:21:52 +02:00
MoepchiandClaude Sonnet 5 74f688aba8 Add client and server connection-info windows
Sends raw getconnectioninfo/serverrequestconnectioninfo commands and
reads the reply out of tsclientlib's bookkeeping state (it already
tracks ping, packet loss, bytes/packets sent+received internally -
just needed to be requested and surfaced). Wired into the client
context menu (any client), the Selbst menu (self), and a new link in
the server info panel.

Uses send_with_result() so a permission-denied rejection surfaces as
a visible error instead of silently doing nothing; the dialogs also
fall back to a "no response" message after 6s in case the server
declines without any reply at all (observed against a real server
where a guest lacked b_virtualserver_connectioninfo_view).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 22:42:23 +02:00
MoepchiandClaude Sonnet 5 a300daedeb Add Identitäten (identity) management dialog
Replaces the single flat identity key with a list of named identities
you can add, rename, delete, and switch between (each keeps its own
tsclientlib identity blob, generated lazily on first connect). The
Connect dialog's identity dropdown, previously a disabled "Standard"
placeholder, now reflects and can switch the active one too. Existing
users' single stored identity migrates automatically into the new list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:47:20 +02:00
MoepchiandClaude Sonnet 5 46ae5b120e Add Whisperlisten (saved whisper target lists)
Lets you save the current whisper channel/client selection as a named
list and reactivate it later. Lists are matched by name rather than id
on activation, since ids only stay stable for the current connection.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:37:14 +02:00
MoepchiandClaude Sonnet 5 284645f18d Save local recordings as WAV instead of webm
Swaps the MediaRecorder-based capture for a raw PCM tap (ScriptProcessorNode)
and a hand-rolled WAV encoder, since MediaRecorder's output format/codec is
browser-dependent (webm/opus) and the user wants a plain, universally
compatible file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:28:46 +02:00
MoepchiandClaude Sonnet 5 67c4bc1072 Add local session recording (Aufnahme)
Wires up the Extras menu's Aufnahme starten/beenden items: mixes the
incoming voice playback and outgoing mic signal into a MediaRecorder
and downloads the result as webm on stop. Multitrack recording stays
disabled (needs a plugin-equivalent per-client split not modeled here).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:21:29 +02:00
Moepchi 7bcced06fd Add Kontakte (contacts) feature
Threads the client's persistent unique identifier through the
connector/gateway/frontend pipeline (previously only the ephemeral
session client id was exposed) so contacts can be keyed by the same
person across reconnects, not by name. The Kontakte dialog supports
adding currently-online clients, per-contact category/phonetic name,
ignoring (filters their chat messages), and quick-whisper/show actions
that reuse existing whisper and channel-selection logic.
2026-08-04 18:37:49 +02:00
Moepchi f5cb4dd160 Add Whisper Verlauf dialog and complete the Selbst menu
Whisper Verlauf logs outgoing whisper-target changes with timestamps
(incoming-whisper detection isn't observable yet, so it's outgoing-only
for now). The Selbst menu now wires Abwesend/Mikrofon/Lautsprecher to
the existing toolbar actions and adds a real nickname-change flow,
backed by a new "nickname" connector command using tsclientlib's
existing client_update().set_name().
2026-08-04 18:14:04 +02:00
Moepchi a0ede4a12a Add Gesammelte URLs, Freund einladen, and Client Protokoll dialogs
Three of the Extras menu's placeholder items are now functional:
collected chat URLs with counts/timestamps, a ts3server:// invite
link generator, and a local client-side event log with level
filtering and search.
2026-08-04 17:53:12 +02:00
Moepchi 6c1fec8dcc Remove Overwolf, File Transfers, and Offline Messages menu items
These pointed at features that don't exist in this project and were
never going to be built - Overwolf integration is out of scope
entirely, and the other two are covered by planned real features
instead.
2026-08-04 16:52:00 +02:00
Moepchi 6c4ace585d Update README feature list
The table hadn't been touched since the early prototype and was
missing everything shipped since: whisper, persistent identity,
country flags, soundpack import, mobile layout, context menu, server
log, sound notifications, and i18n.
2026-08-02 17:51:48 +02:00
Moepchi 5858631e6d Add whisper (targeted voice to channels/clients)
Connector: a new "whisper <channelIds>;<clientIds>" stdin command sets
persistent whisper targets; outgoing audio then goes out as
AudioData::C2SWhisper instead of the normal C2S broadcast until
"unwhisper" clears it. Gateway relays a setWhisperTargets message the
same way.

Frontend: a toolbar toggle lists channels as checkboxes, and the
client context menu gets an "add/remove as whisper target" entry;
selecting any target switches all subsequent outgoing voice to
whisper mode.

Verified against the real test server: setting a channel target and
sending a frame produced no connector error, and clearing targets
resumed normal voice cleanly.
2026-08-02 14:41:54 +02:00
Moepchi 7217bc146a Persist client identity across sessions
Previously every connect generated a fresh tsclientlib identity, so
the server saw a new client UID each session. The connector now
accepts a saved identity via --identity and always reports the one
actually used (freshly generated or reused) back in the "connected"
event; the frontend round-trips it through localStorage so
reconnecting keeps the same UID.

Verified end-to-end against the real test server: two separate
connects with the identity carried over produced byte-identical
identity blobs.
2026-08-02 14:29:00 +02:00
Moepchi 249687d98a Support importing .ts3soundpack files
Real TS3 soundpacks have no documented, stable manifest format across
client versions, so instead of parsing a manifest this unzips the
pack (via fflate) and matches each audio file to one of our sound
events by keyword against its filename. Unmatched files are reported
rather than silently dropped, since match confidence varies by pack.
2026-08-02 14:21:55 +02:00
Moepchi 3644ae7c41 Show country flags next to client nicknames
Threads TeamSpeak's per-client country_code field through the
connector snapshot and gateway relay, then renders it as a flag
emoji (regional indicator symbols, no image assets needed) next to
the nickname. Renders nothing when the server has no geo-IP data for
a client (most common on non-official/self-hosted servers).
2026-08-02 14:15:39 +02:00
Moepchi 0529ab72f1 Add right-click context menu on channel tree clients
Works for both other clients (private chat, poke, copy name, plus
disabled placeholders for group assignment/kick/ban) and the own
client (copy name and group placeholders only, since you can't poke
or private-message yourself).
2026-08-02 14:03:01 +02:00
Moepchi af3a7c97cf Support Shift+Enter for newlines in chat input
The chat field was a single-line <input>, unable to hold a line
break. Switch it to an auto-growing <textarea>: plain Enter still
sends, Shift+Enter inserts a newline.
2026-08-02 13:55:23 +02:00
Moepchi 69b256eb42 Add demo-only mobile view toggle
Simulates a narrow viewport by capping .ts-app's own width and using
a container query (instead of a media query) for the mobile
breakpoint, so the toggle exercises the exact same CSS path real
narrow browsers hit. Only rendered when VITE_DEMO_MODE is set.
2026-08-02 13:43:17 +02:00
Moepchi 530415b50b Fix mobile menu bar clipping its own dropdown menus
overflow-x: auto on the menu bar also forces overflow-y to auto,
which clipped the absolutely-positioned dropdown to the bar's own
height instead of letting it float over the page. Let the bar wrap
onto a second line instead, since overflow isn't needed at this
breakpoint anyway.
2026-08-02 13:37:59 +02:00
Moepchi fcbf3ea40d Fix Connect dialog closing on text-selection drag; add mobile layout
Backdrop click-to-close now requires the mousedown to also start on
the backdrop, so selecting text inside any dialog and releasing the
drag outside it no longer closes the dialog.

Add a responsive breakpoint that stacks the tree/side/chat panels and
dialogs into a single column on narrow viewports instead of clipping
the fixed-width desktop layout.
2026-08-02 13:28:53 +02:00
MoepchiandClaude Sonnet 5 42f82d49aa Add Server Log tab notifications for client/channel/permission events
Surfaces join/leave/channel-switch/group-assignment/channel- and
server-edit events inline in the Server tab, matching the native TS3
client's behavior. Own missing-permission errors are shown; other
clients' permission failures are not. Sourced from tsclientlib's
book-event diffs rather than admin-only ServerQuery logs, so it works
for any connected user regardless of log-view permissions. Also
upgrades the channel-switch command to report permission errors
instead of failing silently, and adds a scripted demo-mode preview of
the feature for the GitHub Pages demo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 10:54:18 +02:00
MoepchiandClaude Sonnet 5 0d8e9336f8 Link the live GitHub Pages demo from the README
Now that the demo build/deploy is up and running, point to it from the top of the README alongside the other quick links, with a callout that it's simulated data only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:36:07 +02:00
MoepchiandClaude Sonnet 5 f6170f0576 Fix pre-existing TypeScript errors blocking CI build
npm run build runs tsc -b before vite build, and the Pages workflow uses it - these four errors were already present but never surfaced locally since testing here used vite build directly. Removes truly-dead outputDeviceLabel state (its value was never read, only the dropdown's own device list rendered labels), narrows the PmThread lookup to a proper number check, and replaces two constructor parameter properties with explicit fields (disallowed under erasableSyntaxOnly).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:27:40 +02:00
MoepchiandClaude Sonnet 5 65813b6367 Fix logo not loading under a non-root base path
The logo <img> used a hardcoded absolute "/logo.png" path, which only resolves correctly when the app is served from the domain root. Under the GitHub Pages demo (served from /webspeak3/), this 404'd. Vite already rewrites asset references in index.html for the configured base path, but plain string literals in JSX aren't touched, so this needs import.meta.env.BASE_URL explicitly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:23:56 +02:00
MoepchiandClaude Sonnet 5 fe1b5ff991 Add a static demo mode for a GitHub Pages showcase
GitHub Pages only serves static files, but the real app needs a Node gateway and Rust connector to speak the TS3 protocol - neither of which can run there. This adds a fake WebSocket (DemoSocket) that simulates a connection with canned channels/clients entirely client-side, gated behind VITE_DEMO_MODE so the normal Docker build is unaffected, plus a GitHub Actions workflow that builds and publishes it to Pages.

Also fixes a real bug surfaced while testing the disconnect flow: a clean disconnect incorrectly showed "Connection closed before the server responded" because the socket's onclose handler couldn't tell a clean disconnect apart from one that never connected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:19:22 +02:00
Moepchi 9b83e9d93f Merge branch 'main' of https://github.com/Moepchi/webspeak3 2026-07-31 23:57:16 +02:00
MoepchiandClaude Sonnet 5 186a3f958b Add GitHub issue templates for bugs and feature requests
Gives bug reports and feature requests a structured format instead of blank issues, and points questions to Discussions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 23:56:55 +02:00
Möpchi b6ccc6f627 Create FUNDING.yml 2026-07-31 23:53:55 +02:00
52 changed files with 26866 additions and 841 deletions

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: moepchi
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+85
View File
@@ -0,0 +1,85 @@
name: Bug Report
description: Something isn't working as expected
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a bug! Please fill in as much detail as you can.
- type: textarea
id: description
attributes:
label: What happened?
description: A clear description of the bug.
placeholder: e.g. The Connect dialog closes unexpectedly when I select text inside it.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: How can we reproduce this?
placeholder: |
1. Open the Connect dialog
2. Click and drag to select the server address text
3. Release the mouse outside the dialog
4. Dialog closes unexpectedly
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: What did you expect to happen instead?
validations:
required: false
- type: dropdown
id: browser
attributes:
label: Browser
options:
- Chrome / Chromium
- Firefox
- Safari
- Edge
- Other (mention in description)
validations:
required: true
- type: input
id: deployment
attributes:
label: Deployment method
description: How are you running WebSpeak3?
placeholder: e.g. Docker Hub image moepchi/webspeak3:latest, built from source, docker-compose
validations:
required: true
- type: input
id: version
attributes:
label: Version / commit
description: Docker tag, commit hash, or release version if known
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant logs / console output
description: Browser console errors, gateway logs, or connector output, if any.
render: shell
validations:
required: false
- type: textarea
id: additional
attributes:
label: Additional context
description: Screenshots, TeamSpeak server version, anything else relevant.
validations:
required: false
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question / Discussion
url: https://github.com/Moepchi/webspeak3/discussions
about: Ask a question or discuss an idea before filing an issue.
@@ -0,0 +1,42 @@
name: Feature Request
description: Suggest an idea or improvement for WebSpeak3
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for the suggestion! Note that some native TeamSpeak 3 client features (myTeamSpeak integration,
badges, plugins) are intentionally out of scope — see the README for details.
- type: textarea
id: problem
attributes:
label: What problem does this solve?
description: Is this related to something that's currently missing or annoying?
placeholder: e.g. I can't send a targeted whisper to specific clients like in the native client.
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed solution
description: What would you like to see happen?
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Any workarounds or alternative approaches you've thought of?
validations:
required: false
- type: textarea
id: additional
attributes:
label: Additional context
description: Screenshots of the native client, links, or other context that helps explain the request.
validations:
required: false
+52
View File
@@ -0,0 +1,52 @@
name: Build and publish Docker image
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docker-publish-${{ github.ref }}
cancel-in-progress: false
jobs:
build-and-push:
name: Build and push moepchi/webspeak3
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@v5
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Determine image tags
id: tags
run: |
TAGS="moepchi/webspeak3:latest"
if [ "${{ github.event_name }}" = "release" ]; then
TAGS="$TAGS,moepchi/webspeak3:${{ github.event.release.tag_name }}"
fi
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.tags.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
+75
View File
@@ -0,0 +1,75 @@
name: Safari WebSpeak3 client check
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "web/src/**"
- "web/index.html"
- "web/public/**"
- ".github/workflows/safari-check.yml"
- "tests/safari_smoke.py"
schedule:
- cron: "17 5 * * 1"
permissions:
contents: read
concurrency:
group: safari-client-${{ github.ref }}
cancel-in-progress: true
jobs:
safari:
name: Safari on macOS
runs-on: macos-15
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install and build WebSpeak3 client
working-directory: web
run: |
npm ci
npm run build
- name: Start local preview
working-directory: web
run: |
npm run preview -- --host 127.0.0.1 --port 4173 > /tmp/webspeak3-preview.log 2>&1 &
for attempt in {1..30}; do
curl --fail --silent http://127.0.0.1:4173/ > /dev/null && exit 0
sleep 1
done
cat /tmp/webspeak3-preview.log
exit 1
- name: Prepare Safari automation
run: |
sudo safaridriver --enable
python3 -m venv .venv-safari
.venv-safari/bin/python -m pip install selenium
- name: Test WebSpeak3 client in Safari
env:
BASE_URL: http://127.0.0.1:4173/
run: .venv-safari/bin/python tests/safari_smoke.py
- name: Upload Safari screenshots
if: always()
uses: actions/upload-artifact@v5
with:
name: safari-client-screenshots
path: test-results/safari-client-*.png
if-no-files-found: ignore
retention-days: 14
+6
View File
@@ -7,3 +7,9 @@ dist-ssr/
.env.local
.DS_Store
docker-compose.override.yml
.claude/
CLAUDE.md
.serena/
# TLS material for local HTTPS - a private key never belongs in the repo.
gateway/certs/
+1
View File
@@ -1,3 +1,4 @@
[submodule "tsclientlib"]
path = tsclientlib
url = https://github.com/Moepchi/tsclientlib.git
branch = webspeak3
+29 -2
View File
@@ -13,10 +13,26 @@ FROM node:22-bookworm-slim AS web-builder
WORKDIR /src/web
COPY web/package*.json ./
RUN npm ci
# Vite 8 pulls in Rolldown, which ships its bundler as a platform-specific
# optional dependency (@rolldown/binding-linux-x64-gnu here). `npm ci`
# intermittently fails to install it due to a long-standing npm bug
# (https://github.com/npm/cli/issues/4828) without raising a non-zero exit
# code, so `vite build` only fails later with a confusing MODULE_NOT_FOUND.
# Verify the binding actually loaded and self-heal via the workaround from
# npm's own error message before wasting a full build on a broken install.
RUN node -e "require('@rolldown/binding-linux-x64-gnu')" \
|| (rm -rf node_modules package-lock.json && npm install)
COPY web/ ./
# The UI carries a small Ko-fi donation button (see web/src/App.tsx).
# `--build-arg DONATE_URL=` (empty) drops it, any other value points it
# elsewhere; left alone, the project default is used. The "keep" sentinel
# exists because an unset build arg and an empty one are indistinguishable
# inside RUN - without it, "not passed" would silently mean "remove".
ARG DONATE_URL=keep
# tsc -b currently fails on pre-existing type errors unrelated to this build;
# vite build alone is enough to produce the production bundle.
RUN npx vite build
RUN if [ "$DONATE_URL" = "keep" ]; then npx vite build; \
else VITE_DONATE_URL="$DONATE_URL" npx vite build; fi
# --- Gateway ----------------------------------------------------------------
FROM node:22-bookworm-slim AS gateway-builder
@@ -32,7 +48,15 @@ LABEL org.opencontainers.image.title="WebSpeak3"
LABEL org.opencontainers.image.description="Self-hosted web client for TeamSpeak 3 servers"
WORKDIR /app
COPY gateway/package*.json ./
RUN npm ci --omit=dev
# npm/npx are only needed to install the gateway's runtime deps; the
# container never runs either afterwards, so strip them (plus npm's own
# cache/package tree) to shrink the image and drop npm's own CVEs from the
# final attack surface. This does mean `docker exec ... npm ...` won't work
# for ad-hoc debugging in a running container anymore.
RUN npm ci --omit=dev \
&& npm cache clean --force \
&& rm -rf /root/.npm /usr/local/lib/node_modules/npm \
&& rm -f /usr/local/bin/npm /usr/local/bin/npx
COPY --from=gateway-builder /src/gateway/dist ./dist
COPY --from=connector-builder /src/connector/target/release/ts-connector /app/connector-bin/ts-connector
COPY --from=web-builder /src/web/dist /app/web/dist
@@ -42,4 +66,7 @@ ENV WEB_DIST=/app/web/dist
ENV CONNECTOR_BIN=/app/connector-bin/ts-connector
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD ["node", "-e", "fetch('http://127.0.0.1:8080/healthz').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"]
CMD ["node", "dist/index.js"]
+80 -22
View File
@@ -1,4 +1,4 @@
<p align="center">
<p align="center">
<img src="web/public/logo.png" width="140" alt="WebSpeak3 logo">
</p>
@@ -9,46 +9,79 @@
<a href="Dockerfile"><img src="https://img.shields.io/badge/docker-build%20passing-2496ED?logo=docker&logoColor=white" alt="Docker Build"></a>
<a href="gateway/package.json"><img src="https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white" alt="Node Version"></a>
<a href="connector/Cargo.toml"><img src="https://img.shields.io/badge/rust-2021-000000?logo=rust&logoColor=white" alt="Rust Version"></a>
<img src="https://img.shields.io/badge/status-beta%20%2F%20prototype-yellow" alt="Project Status">
<a href="https://github.com/Moepchi/webspeak3/releases"><img src="https://img.shields.io/github/v/release/Moepchi/webspeak3?include_prereleases&label=release" alt="Latest Release"></a>
<img src="https://img.shields.io/badge/status-public%20beta-f0b429" alt="Project Status">
</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">
<a href="#-installation">🚀 Quick Start</a> ·
<a href="https://webspeak3.de">🌐 Website</a> ·
<a href="https://client.webspeak3.de">💬 Open Client</a> ·
<a href="https://demo.webspeak3.de">🕹️ Live Demo</a> ·
<a href="#-quick-start">🚀 Quick Start</a> ·
<a href="#-installation">📖 Installation</a> ·
<a href="ROADMAP.md">🗺️ Roadmap</a> ·
<a href="https://github.com/Moepchi/webspeak3/issues">🐛 Report Bug</a>
</p>
> The [live demo](https://demo.webspeak3.de) runs entirely in your browser with simulated data — no real TeamSpeak server involved. It's there to show the UI, not the real connection.
---
## 📸 Preview
<table>
<tr>
<th>Dark Mode</th>
<th>Light Mode</th>
<th>Desktop</th>
<th>Mobile</th>
</tr>
<tr>
<td><img src="docs/screenshots/webspeak_dark.png" width="100%" alt="Dark mode screenshot"></td>
<td><img src="docs/screenshots/webspeak_light.png" width="100%" alt="Light mode screenshot"></td>
<td width="72%"><img src="docs/screenshots/webspeak_current.png" width="100%" alt="WebSpeak3 desktop client connected to a TeamSpeak server"></td>
<td width="28%" align="center"><img src="docs/screenshots/webspeak_mobile.png" width="260" alt="WebSpeak3 mobile client connected to a TeamSpeak server"></td>
</tr>
</table>
## 🚀 Quick Start
Run the ready-made container and open **http://localhost:8080**:
```bash
docker run -d --name webspeak3 --restart unless-stopped -p 8080:8080 moepchi/webspeak3:latest
```
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.
## ✨ Features
| | |
|---|---|
| 🔌 **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` |
| 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab |
| 🌳 **Live channel/client tree** | Correct ordering, status icons (channel commander, away, muted, deafened), click to switch channels |
| 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab — Shift+Enter for a newline |
| 🌳 **Live channel/client tree** | Correct ordering, status icons (channel commander, away, muted, deafened), country flags, click to switch channels |
| 🖱️ **Right-click context menu** | Private chat, poke, copy name, and whisper-target toggle straight from a client's row |
| 📜 **Server log** | Join/leave/switch, channel-group, and channel/server-change events shown inline, like the native client |
| 🔔 **Custom sound notifications** | Per-event sounds (connect, poke, messages, ...) with volume control and `.ts3soundpack` import |
| 🪪 **Persistent identity** | Keeps the same client UID across sessions instead of generating a new one every connect |
| 👉 **Poke & away status** | Poke clients with an optional message; set yourself away with presets or a custom status |
| ⭐ **Favorites & reconnect** | Remembers your last server/nickname; switch servers without leaving your tab |
| 📱 **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 |
| 🔁 **Seamless reconnect** | Switch connections mid-session — old state tears down cleanly, no leaks or duplicates |
| 🔁 **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 |
| 🖥️ **Screen streaming to/from TS6** | <sub>**ALPHA · UNSTABLE**</sub> Share your screen to native TeamSpeak 6 clients and watch theirs. Built on TS6's undocumented Stream/Call protocol — expect it to break; see [Roadmap](ROADMAP.md) |
## 🧱 Tech Stack
@@ -72,21 +105,38 @@ 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 connection and relays newline-delimited JSON events
between it and the browser.
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>
## 🌐 Browser Support
| Browser | Status | Notes |
|---|---|---|
| Chrome / Edge / Chromium | ✅ Primary target | Recommended for the most complete audio and device support |
| Firefox | ✅ Supported | Core client and voice functionality are supported |
| Safari | 🧪 Experimental | Audio and microphone behavior still needs broader real-device testing |
| Mobile Chromium | ✅ Supported | Responsive client with microphone support over HTTPS |
| Mobile Safari | 🧪 Experimental | UI is responsive; audio behavior remains under active validation |
WebSpeak3 is a public beta. See the [beta roadmap](ROADMAP.md) for the current
scope, known limitations, and the next milestones.
## 🚀 Installation
### 🐳 Docker (recommended)
@@ -128,6 +178,8 @@ Prefer to skip the build entirely? A prebuilt image is published on [Docker Hub]
docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest
```
The UI shows a small **Ko-fi donation button** in the bottom right corner. Building it yourself and would rather not carry someone else's donation link? `docker compose build --build-arg DONATE_URL=` removes it (any other value points it somewhere else). Outside Docker the same thing is a build-time variable: `VITE_DONATE_URL= npm run build` in `web/`.
<details>
<summary><b>🛠️ Manual installation (without Docker)</b></summary>
@@ -179,7 +231,7 @@ npm install
npm run dev
```
This starts the WebSocket gateway on `ws://localhost:8080`.
This starts the WebSocket gateway on `ws://localhost:8080`. Open **http://localhost:8080** for the UI (serves `web/dist`). After UI changes run `cd web && npm run build`, then reload. Optional Vite (`npm run dev` in `web/`, typically `:5173`) is only for HMR. `WEB_STATIC=0 npm run dev` serves API/WebSocket only.
**4. Install and start the web frontend**
@@ -192,6 +244,9 @@ npm run dev
```
Vite will print a local dev URL (typically `http://localhost:5173`) — open it in a browser.
The Vite app connects to the gateway at `ws://localhost:8080/ws`.
> **Preferred UI:** **http://localhost:8080** (static `web/dist` — refresh after `cd web && npm run build`). Vite `:5173` is optional HMR only.
**5. Connect**
@@ -217,6 +272,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.
+72
View File
@@ -0,0 +1,72 @@
# WebSpeak3 Beta Roadmap
WebSpeak3 is a public beta: it already connects to real TeamSpeak 3 and
TeamSpeak 6 servers, but some browser-specific behavior and less common server
features still need wider testing.
This roadmap is intentionally outcome-focused. It does not promise fixed dates.
## Available today
- Connect to any reachable TS3 or TS6 server through the WebSpeak3 gateway
- Low-latency Opus voice, voice activation, whisper, and audio-device selection
- Live channel/client tree with status updates and context actions
- Server, channel, and private text chat
- Favorites, identities, contacts, pokes, away state, and reconnect
- File transfers, local session recording, sound packs, and administration tools
- Responsive desktop and mobile interfaces in German and English
- Docker image and Compose-based self-hosting
## Experimental or still being validated
- **Screen streaming to and from TeamSpeak 6 (alpha, unstable).** WebSpeak3 can
publish a screen share that a native TS6 client can watch, and watch a stream
a TS6 client publishes. It speaks TS6's Stream/Call protocol, which TeamSpeak
does not document, so the wire format was derived from observed behavior and
may break with any TS6 update. Connection setup, picture quality, and viewer
admission are not yet dependable. The "Server" connection mode (TS6's SFU) is
not implemented; only direct P2P works. The UI is currently switched off by a
build-time flag, because the hosted client updates on every push while the
gateway image is deployed by hand, and a browser that offers streaming to a
gateway too old to answer waits forever instead of reporting an error. The
fix is a capability handshake so the client can detect what its gateway
supports rather than assuming; until then the flag is flipped by hand after
the gateway has been updated.
- Safari and Mobile Safari audio/microphone behavior
- Uncommon TeamSpeak permission combinations and large permission sets
- Very large servers and long-running browser sessions
- Mobile browser behavior across a wider range of devices
- Reverse-proxy and hosting configurations beyond the documented examples
## Next milestones
### Beta hardening
- Expand real-browser audio testing, especially Safari
- Improve reconnect and recovery behavior under unstable networks
- Continue accessibility, keyboard-navigation, and mobile usability work
- Turn recurring deployment and compatibility reports into documentation
### Deployment experience
- Keep the one-command Docker path reliable
- Add clearer HTTPS and reverse-proxy examples
- Document backup and upgrade expectations for persistent browser identities
- Improve release notes and migration guidance when configuration changes
### Toward a stable release
- Define and complete a repeatable browser compatibility checklist
- Resolve confirmed high-impact beta issues
- Stabilize configuration and deployment contracts
- Publish a support matrix based on verified devices and browsers
## Feedback
Please use [GitHub Issues](https://github.com/Moepchi/webspeak3/issues) for
reproducible bugs and feature requests. Include the browser and version,
operating system, deployment method, and whether the issue affects voice,
microphone access, or only the interface.
WebSpeak3 is independent and is not affiliated with or endorsed by TeamSpeak
Systems GmbH.
+2
View File
@@ -2639,8 +2639,10 @@ dependencies = [
"base64",
"clap",
"futures",
"num-traits",
"serde",
"serde_json",
"time",
"tokio",
"tracing-subscriber",
"tsclientlib",
+2
View File
@@ -13,5 +13,7 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
clap = { version = "4", features = ["derive"] }
anyhow = "1"
num-traits = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
base64 = "0.22"
time = "0.3"
+2450 -42
View File
File diff suppressed because it is too large. Load diff
+12
View File
@@ -16,3 +16,15 @@ services:
# webspeak3:
# ports:
# - "8080:8080"
cloudflared:
image: cloudflare/cloudflared:latest
container_name: webspeak3-cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
# Token comes from a gitignored .env file next to this compose file:
# CLOUDFLARE_TUNNEL_TOKEN=eyJ...
# No depends_on/network wiring needed - the tunnel's Public Hostname
# config (set in the Cloudflare dashboard) points at the webspeak3
# service by its Compose service name (http://webspeak3:8080), and
# Compose puts both services on the same default network automatically.
Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

+24
View File
@@ -0,0 +1,24 @@
# TeaSpeak / GreenTeaSpeak support (WebSpeak3)
WebSpeak3 can speak the TeamSpeak 3/6 protocol via `ts-connector` / `tsclientlib`.
TeaSpeak / GreenTeaSpeak servers need an extra identity handshake before `clientinit`.
## Implemented
- `--server-type teamspeak|teaspeak|auto` (connector; UI Connect dialog; gateway relay)
- `--privilege-key` / `client_default_token` on connect
- `clientinitiv` with **`-teaspeak` switch** (not `teaspeak=1`), `ip=unknown`, alpha bit0
- Classic TeaSpeak crypto via **`initivexpand`** (P-256 ECDH, 20-byte IV) when the server
answers that way — required for GreenTeaSpeak hubs that disable TeamSpeak clients
- TEAMSPEAK identity handshake after crypto when needed
- DNS SRV `_gts._udp` in addition to `_ts3._udp`
- Design theme **GreenTeaSpeak** (third UI style)
Verified against `ts.greenteaspeak.de` (Official GreenTeaSpeak Public Server).
## Not yet (follow-up)
- TEAFORO / forum identity (`greenteaspeak.de` login + method 0)
- Native TeaSpeak POW / `teaclient_connection.node` parity
- GTS badges / HWID extras beyond the basic handshake
- Forum-reject → automatic ECC identity retry (GreenTeaSpeak 2 desktop behavior)
+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "ts-web-gateway",
"name": "webspeak3-gateway",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ts-web-gateway",
"name": "webspeak3-gateway",
"version": "0.1.0",
"dependencies": {
"ws": "^8.18.0"
+675 -12
View File
@@ -1,17 +1,45 @@
import { createServer } from "node:http";
import { readFile } from "node:fs/promises";
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
import { createServer as createSecureServer } from "node:https";
import { readFileSync } from "node:fs";
import { readFile, appendFile, rename, stat } from "node:fs/promises";
import { timingSafeEqual } from "node:crypto";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { WebSocketServer, type WebSocket } from "ws";
import { Ts3Connection, type Ts3ConnectOptions } from "./ts3/connection.js";
import { Ts3Connection, type ServerType, type Ts3ConnectOptions } from "./ts3/connection.js";
const SERVER_TYPES = new Set<ServerType>(["teamspeak", "teaspeak", "auto"]);
function parseServerType(value: unknown): ServerType | undefined {
return typeof value === "string" && SERVER_TYPES.has(value as ServerType)
? (value as ServerType)
: undefined;
}
function parsePrivilegeKey(msg: { privilegeKey?: unknown; token?: unknown }): string | undefined {
const raw = msg.privilegeKey ?? msg.token;
if (typeof raw !== "string") return undefined;
const trimmed = raw.trim();
return trimmed || undefined;
}
const PORT = Number(process.env.PORT ?? 8080);
// Opt-in only, off by default: this is an open-source, self-hostable image,
// and other instances shouldn't get connection logging just because it's in
// the codebase. Set LOG_CONNECTIONS=1 in the .env of the instance you want it
// on. Logs only host/server-name/timestamp — no nickname, no IP.
const LOG_CONNECTIONS = process.env.LOG_CONNECTIONS === "1";
// In production (Docker), the built web app lives alongside the gateway and
// is served from the same port as the WebSocket endpoint, so a single
// reverse-proxied origin (e.g. a Zoraxy subdomain) is enough for everything.
// Local Vite dev (`npm run dev` in web/) is a separate UI on :5173 that talks
// to this gateway only via WebSocket — do not use :8080's HTML for UI work
// unless you rebuilt web/dist. Set WEB_STATIC=0 to serve API/WS only.
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const WEB_DIST = process.env.WEB_DIST ?? path.resolve(__dirname, "../../web/dist");
const SERVE_STATIC = process.env.WEB_STATIC !== "0";
const MIME_TYPES: Record<string, string> = {
".html": "text/html",
@@ -22,13 +50,339 @@ const MIME_TYPES: Record<string, string> = {
".ico": "image/x-icon",
".json": "application/json",
".woff2": "font/woff2",
".webmanifest": "application/manifest+json",
};
const server = createServer((req, res) => {
// --- Feedback endpoint ---------------------------------------------------
//
// Opt-in only, same convention as LOG_CONNECTIONS above: this is an open-
// source, self-hostable image, so other instances don't get a public
// feedback inbox (and potential GitHub-issue creator) just because it's in
// the codebase. Set FEEDBACK_ENABLED=1 on the instance you want it on. The
// web client only shows the "Feedback" menu entry on specific hostnames
// (see IS_OWN_HOSTED_INSTANCE in web/src/App.tsx), but this endpoint
// enforces its own opt-in independently since it's reachable directly over
// HTTP by anyone who finds the gateway's address, not just from that UI.
const FEEDBACK_ENABLED = process.env.FEEDBACK_ENABLED === "1";
// The web app is commonly hosted on a different origin than the gateway
// (see mem:deployment / GATEWAY_URL in web/), so this needs its own CORS
// allowance; default "*" since the endpoint is opt-in, rate-limited, and
// only ever accepts a feedback submission, nothing that reads data back.
const FEEDBACK_ALLOWED_ORIGIN = process.env.FEEDBACK_ALLOWED_ORIGIN ?? "*";
// A token with "Issues: write" access on the target repo. Without it,
// feedback is still accepted and logged, just never turned into an issue.
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
const GITHUB_REPO = process.env.GITHUB_REPO ?? "Moepchi/webspeak3";
// Plain JSON-lines file, not a database - this is a low-volume inbox, not
// analytics. Defaults under the container's WORKDIR (/app in the Docker
// image); mount a volume over it if you want submissions to survive a
// container recreate.
const FEEDBACK_LOG_FILE = process.env.FEEDBACK_LOG_FILE ?? path.resolve(process.cwd(), "feedback.log");
// Simple size-based rotation: once the log crosses this size, the current
// file is moved to feedback.log.1 (overwriting any previous one) and a
// fresh file is started. Keeps disk usage bounded on a plain JSON-lines
// file with no other retention policy.
const FEEDBACK_LOG_MAX_BYTES = 5 * 1024 * 1024;
const FEEDBACK_CATEGORIES = new Set(["bug", "idea", "report", "other"]);
const FEEDBACK_MESSAGE_MAX_LENGTH = 4000;
// --- Broadcast endpoint ---------------------------------------------------
//
// Opt-in only, same convention as LOG_CONNECTIONS/FEEDBACK_ENABLED above: lets
// the operator push a free-text maintenance notice to every connected browser
// tab (reuses the same {type:"notice"} message the SIGTERM handler already
// sends, which the frontend renders even without a messageKey). Unset
// BROADCAST_TOKEN and the endpoint 404s, same as feedback when disabled.
const BROADCAST_TOKEN = process.env.BROADCAST_TOKEN;
const BROADCAST_MESSAGE_MAX_LENGTH = 500;
function isValidBroadcastToken(provided: string): boolean {
if (!BROADCAST_TOKEN) return false;
const a = Buffer.from(provided);
const b = Buffer.from(BROADCAST_TOKEN);
return a.length === b.length && timingSafeEqual(a, b);
}
async function handleBroadcast(req: IncomingMessage, res: ServerResponse) {
if (!BROADCAST_TOKEN) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
if (req.method !== "POST") {
res.writeHead(405, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "method_not_allowed" }));
return;
}
const authHeader = req.headers.authorization ?? "";
const token = authHeader.startsWith("Bearer ") ? authHeader.slice("Bearer ".length) : "";
if (!isValidBroadcastToken(token)) {
res.writeHead(401, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "unauthorized" }));
return;
}
let raw = "";
for await (const chunk of req) {
raw += chunk;
if (raw.length > 5_000) {
res.writeHead(413, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "payload_too_large" }));
return;
}
}
let body: { message?: unknown };
try {
body = JSON.parse(raw || "{}");
} catch {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "invalid_json" }));
return;
}
const message = typeof body.message === "string" ? body.message.trim().slice(0, BROADCAST_MESSAGE_MAX_LENGTH) : "";
if (!message) {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "message_required" }));
return;
}
const payload = JSON.stringify({ type: "notice", message });
let sent = 0;
for (const socket of wss.clients) {
try {
socket.send(payload);
sent++;
} catch {
/* socket already gone */
}
}
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true, sent }));
}
async function rotateFeedbackLogIfNeeded(): Promise<void> {
try {
const { size } = await stat(FEEDBACK_LOG_FILE);
if (size < FEEDBACK_LOG_MAX_BYTES) return;
await rename(FEEDBACK_LOG_FILE, `${FEEDBACK_LOG_FILE}.1`);
} catch (err) {
// ENOENT just means there's no log yet - nothing to rotate.
if ((err as NodeJS.ErrnoException).code !== "ENOENT") {
console.error("[feedback] Failed to rotate feedback log:", err);
}
}
}
// Small in-memory rate limit: a handful of submissions per IP per hour is
// far more than any real user needs, and keeps one abusive client from
// spamming the log file or (worse) the GitHub issue tracker. In-memory is
// fine here - it only needs to survive as long as the process does.
const FEEDBACK_RATE_LIMIT = 5;
const FEEDBACK_RATE_WINDOW_MS = 60 * 60 * 1000;
const feedbackSubmissionTimes = new Map<string, number[]>();
function isFeedbackRateLimited(ip: string): boolean {
const now = Date.now();
const recent = (feedbackSubmissionTimes.get(ip) ?? []).filter((t) => now - t < FEEDBACK_RATE_WINDOW_MS);
recent.push(now);
feedbackSubmissionTimes.set(ip, recent);
return recent.length > FEEDBACK_RATE_LIMIT;
}
async function createGithubIssue(payload: {
category: string;
message: string;
email?: string;
}): Promise<string | undefined> {
if (!GITHUB_TOKEN) return undefined;
const title = `[Feedback/${payload.category}] ${payload.message.replace(/\s+/g, " ").trim().slice(0, 72)}`;
const body = [
payload.message,
"",
"---",
`Category: ${payload.category}`,
payload.email ? `Contact: ${payload.email}` : undefined,
"_Submitted via the in-client feedback form._",
]
.filter((line): line is string => Boolean(line))
.join("\n");
const res = await fetch(`https://api.github.com/repos/${GITHUB_REPO}/issues`, {
method: "POST",
headers: {
Authorization: `Bearer ${GITHUB_TOKEN}`,
Accept: "application/vnd.github+json",
"Content-Type": "application/json",
"User-Agent": "webspeak3-gateway",
},
// GitHub auto-creates labels that don't already exist in the repo, so
// the category label needs no manual setup on first use.
body: JSON.stringify({ title, body, labels: ["feedback", payload.category] }),
});
if (!res.ok) {
console.error(`[feedback] GitHub issue creation failed (${res.status}): ${await res.text().catch(() => "")}`);
return undefined;
}
const json = (await res.json()) as { html_url?: string };
return json.html_url;
}
async function handleFeedback(req: IncomingMessage, res: ServerResponse) {
res.setHeader("Access-Control-Allow-Origin", FEEDBACK_ALLOWED_ORIGIN);
res.setHeader("Access-Control-Allow-Methods", "POST, OPTIONS");
res.setHeader("Access-Control-Allow-Headers", "Content-Type");
if (req.method === "OPTIONS") {
res.writeHead(204);
res.end();
return;
}
if (!FEEDBACK_ENABLED) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
if (req.method !== "POST") {
res.writeHead(405, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "method_not_allowed" }));
return;
}
const ip = (req.socket.remoteAddress ?? "unknown").replace(/^::ffff:/, "");
if (isFeedbackRateLimited(ip)) {
res.writeHead(429, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "rate_limited" }));
return;
}
let raw = "";
for await (const chunk of req) {
raw += chunk;
if (raw.length > 20_000) {
res.writeHead(413, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "payload_too_large" }));
return;
}
}
let body: { category?: unknown; message?: unknown; email?: unknown; publishAsIssue?: unknown; website?: unknown };
try {
body = JSON.parse(raw || "{}");
} catch {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "invalid_json" }));
return;
}
// Honeypot: a field named to look attractive to form-filling bots, kept
// hidden from real users via CSS. Any value here means a bot filled it in
// blindly - report success without actually logging or filing anything,
// so the bot has no signal to adapt on.
if (typeof body.website === "string" && body.website.trim() !== "") {
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true }));
return;
}
const category = typeof body.category === "string" && FEEDBACK_CATEGORIES.has(body.category) ? body.category : "other";
const message =
typeof body.message === "string" ? body.message.trim().slice(0, FEEDBACK_MESSAGE_MAX_LENGTH) : "";
const email = typeof body.email === "string" ? body.email.trim().slice(0, 200) || undefined : undefined;
const publishAsIssue = body.publishAsIssue === true;
if (!message) {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "message_required" }));
return;
}
try {
await rotateFeedbackLogIfNeeded();
const entry = { at: new Date().toISOString(), category, message, email };
await appendFile(FEEDBACK_LOG_FILE, JSON.stringify(entry) + "\n", "utf-8");
} catch (err) {
console.error("[feedback] Failed to write feedback log:", err);
}
let githubIssueUrl: string | undefined;
if (publishAsIssue) {
try {
githubIssueUrl = await createGithubIssue({ category, message, email });
} catch (err) {
console.error("[feedback] Failed to create GitHub issue:", err);
}
}
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true, githubIssueUrl }));
}
const DEV_HINT = `<!doctype html><html><body style="font:14px system-ui;padding:2rem;max-width:40rem">
<h1>WebSpeak3 gateway</h1>
<p>WebSocket: <code>/ws</code></p>
<p><code>web/dist</code> is missing — the UI has not been built yet.</p>
<p>For local development open the Vite app at <a href="http://localhost:5173/">http://localhost:5173/</a>
(run <code>npm run dev</code> in <code>web/</code>). Rebuild with <code>npm run build</code> in <code>web/</code>
to serve the UI from this port again.</p>
</body></html>`;
/**
* TLS material, when configured.
*
* Not a nicety: `getDisplayMedia`, `getUserMedia` and `crypto.randomUUID` are
* secure-context-only, so a LAN instance reached over plain http can neither
* share a screen nor use the microphone. Chrome also hides host ICE candidates
* behind mDNS names until a media permission is granted, which keeps a
* peer-to-peer stream from connecting at all.
*
* Set TLS_CERT and TLS_KEY to enable; a self-signed pair is enough, the
* browser only has to be told once to trust it.
*/
const TLS_CERT = process.env.TLS_CERT;
const TLS_KEY = process.env.TLS_KEY;
const tlsOptions =
TLS_CERT && TLS_KEY
? { cert: readFileSync(TLS_CERT), key: readFileSync(TLS_KEY) }
: null;
const requestHandler = (req: IncomingMessage, res: ServerResponse) => {
void (async () => {
try {
const url = new URL(req.url ?? "/", "http://localhost");
let filePath = path.join(WEB_DIST, decodeURIComponent(url.pathname));
const requestUrl = new URL(req.url ?? "/", "http://localhost");
if (requestUrl.pathname === "/api/feedback") {
await handleFeedback(req, res);
return;
}
if (requestUrl.pathname === "/api/broadcast") {
await handleBroadcast(req, res);
return;
}
// Container healthcheck target (see Dockerfile). Deliberately its own
// route rather than "/": with WEB_STATIC=0 every browser-facing path
// answers 404, and a probe against "/" would then report the process as
// unhealthy for doing exactly what it was configured to do.
if (requestUrl.pathname === "/healthz") {
res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" });
res.end("ok\n");
return;
}
if (!SERVE_STATIC) {
// With the UI hosted elsewhere this process is an API endpoint and
// nothing else: no SPA fallback, and not even a notice page at "/",
// which would only put a second, stale-looking "app" on a hostname
// that is meant to answer /ws and /api/feedback. Everything a browser
// asks for is simply absent.
res.writeHead(404, { "Content-Type": "text/plain; charset=utf-8" });
res.end("Not found\n");
return;
}
let filePath = path.join(WEB_DIST, decodeURIComponent(requestUrl.pathname));
if (!filePath.startsWith(WEB_DIST)) {
res.writeHead(403);
res.end();
@@ -45,40 +399,145 @@ const server = createServer((req, res) => {
res.writeHead(200, { "Content-Type": MIME_TYPES[path.extname(filePath)] ?? "application/octet-stream" });
res.end(body);
} catch {
res.writeHead(404);
res.end("Not found");
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
res.end(DEV_HINT);
}
})();
});
};
// The frontend derives ws:// or wss:// from the page's own scheme, so the
// WebSocket follows this choice without any further configuration.
const server = tlsOptions
? createSecureServer(tlsOptions, requestHandler)
: createServer(requestHandler);
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));
// Docker sends SIGTERM on `docker stop`/`docker compose up -d` (redeploy)
// before the default ~10s grace period elapses. Warn every connected
// browser tab so an active call/stream doesn't just silently drop, then
// exit quickly rather than waiting out the grace period doing nothing.
process.on("SIGTERM", () => {
const payload = JSON.stringify({ type: "notice", messageKey: "restartNotice.body" });
for (const socket of wss.clients) {
try {
socket.send(payload);
} catch {
/* socket already gone */
}
}
console.log(`[gateway] SIGTERM received, notified ${wss.clients.size} client(s), shutting down`);
setTimeout(() => process.exit(0), 500);
});
server.listen(PORT, () => {
console.log(`WebSpeak3 gateway listening on http://localhost:${PORT} (WebSocket at /ws)`);
const scheme = tlsOptions ? "https" : "http";
console.log(
`WebSpeak3 gateway listening on ${scheme}://localhost:${PORT} (WebSocket at /ws)`
);
if (SERVE_STATIC) {
console.log(`Serving static UI from ${WEB_DIST}`);
console.log(`Dev tip: use http://localhost:5173/ for live UI; rebuild web/dist after UI changes if you open :${PORT}`);
} else {
console.log(`Static UI disabled (WEB_STATIC=0): WebSocket and /api/feedback only, no UI served from this host`);
}
});
wss.on("connection", (socket: WebSocket) => {
// One browser WebSocket ↔ one Rust connector. Multi-join in the UI opens
// 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());
switch (msg.type) {
case "connect": {
// Replacing a connection on the same socket: tear down the previous
// connector so we don't leak processes.
if (connection) {
try {
await connection.disconnect();
} catch {
/* ignore */
}
connection = undefined;
}
const options: Ts3ConnectOptions = {
host: msg.host,
nickname: msg.nickname,
serverPassword: msg.serverPassword,
channelPassword: msg.channelPassword,
defaultChannel: msg.defaultChannel,
identity: msg.identity,
serverType: parseServerType(msg.serverType),
privilegeKey: parsePrivilegeKey(msg),
};
connection = new Ts3Connection(options);
connection.onEvent((event) => socket.send(JSON.stringify(event)));
connection.onEvent((event) => {
if (LOG_CONNECTIONS) {
if (event.type === "connected") {
console.log(
`[connections] connected host=${options.host} server=${event.serverName} at=${new Date().toISOString()}`
);
} else if (event.type === "disconnected") {
console.log(`[connections] disconnected host=${options.host} at=${new Date().toISOString()}`);
}
}
socket.send(JSON.stringify(event));
});
await connection.connect();
break;
}
case "switchChannel": {
await connection?.switchChannel(msg.channelId);
const channelId = Number(msg.channelId);
if (Number.isFinite(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;
}
case "sendChatMessage": {
@@ -101,6 +560,61 @@ wss.on("connection", (socket: WebSocket) => {
await connection?.sendAudio(msg.pcm);
break;
}
case "requestStreamInfo": {
const clientId = Number(msg.clientId);
if (Number.isFinite(clientId)) await connection?.requestStreamInfo(clientId);
break;
}
case "joinStream": {
const clientId = Number(msg.clientId);
if (Number.isFinite(clientId)) {
await connection?.joinStream(String(msg.streamId ?? ""), clientId, msg.message ?? "");
}
break;
}
case "leaveStream": {
const clientId = Number(msg.clientId);
if (Number.isFinite(clientId)) {
await connection?.leaveStream(String(msg.streamId ?? ""), clientId);
}
break;
}
case "streamSignal": {
const clientId = Number(msg.clientId);
if (Number.isFinite(clientId) && msg.payload !== undefined) {
await connection?.sendStreamSignal(String(msg.streamId ?? ""), clientId, msg.payload);
}
break;
}
case "setupStream": {
await connection?.setupStream({
name: String(msg.name ?? "Stream"),
type: Number(msg.streamType ?? 3),
bitrate: Number(msg.bitrate ?? 1_500_000),
accessibility: Number(msg.accessibility ?? 1),
mode: Number(msg.mode ?? 1),
viewerLimit: Number(msg.viewerLimit ?? 0),
audio: Boolean(msg.audio),
});
break;
}
case "respondJoinStream": {
const clientId = Number(msg.clientId);
if (Number.isFinite(clientId)) {
await connection?.respondJoinStream(
String(msg.streamId ?? ""),
clientId,
Boolean(msg.accept),
String(msg.offer ?? ""),
String(msg.message ?? ""),
);
}
break;
}
case "stopStream": {
await connection?.stopStream(String(msg.streamId ?? ""), String(msg.reason ?? ""));
break;
}
case "setAway": {
await connection?.setAway(msg.away, msg.message ?? "");
break;
@@ -113,6 +627,154 @@ wss.on("connection", (socket: WebSocket) => {
await connection?.setOutputMuted(msg.muted);
break;
}
case "setNickname": {
await connection?.setNickname(msg.nickname);
break;
}
case "setWhisperTargets": {
await connection?.setWhisperTargets(msg.channelIds ?? [], msg.clientIds ?? []);
break;
}
case "getClientConnectionInfo": {
await connection?.getClientConnectionInfo(msg.clientId);
break;
}
case "getServerConnectionInfo": {
await connection?.getServerConnectionInfo();
break;
}
case "kickFromChannel": {
await connection?.kickFromChannel(msg.clientId, msg.reason ?? "");
break;
}
case "kickFromServer": {
await connection?.kickFromServer(msg.clientId, msg.reason ?? "");
break;
}
case "banClient": {
await connection?.banClient(msg.clientId, msg.seconds ?? 0, msg.reason ?? "");
break;
}
case "editServer": {
await connection?.editServer(msg.payload ?? {});
break;
}
case "getServerLog": {
await connection?.getServerLog();
break;
}
case "getBanList": {
await connection?.getBanList();
break;
}
case "deleteBan": {
await connection?.deleteBan(msg.banId);
break;
}
case "deleteAllBans": {
await connection?.deleteAllBans();
break;
}
case "getComplainList": {
await connection?.getComplainList();
break;
}
case "deleteComplaint": {
await connection?.deleteComplaint(msg.targetClientDbId, msg.fromClientDbId);
break;
}
case "deleteAllComplaintsFor": {
await connection?.deleteAllComplaintsFor(msg.targetClientDbId);
break;
}
case "getOfflineMessageList": {
await connection?.getOfflineMessageList();
break;
}
case "getOfflineMessage": {
await connection?.getOfflineMessage(msg.messageId);
break;
}
case "sendOfflineMessage": {
await connection?.sendOfflineMessage(msg.clientUid, msg.subject, msg.message);
break;
}
case "deleteOfflineMessage": {
await connection?.deleteOfflineMessage(msg.messageId);
break;
}
case "markOfflineMessageRead": {
await connection?.markOfflineMessageRead(msg.messageId);
break;
}
case "getChannelGroupList": {
await connection?.getChannelGroupList();
break;
}
case "getServerGroupList": {
await connection?.getServerGroupList();
break;
}
case "setChannelGroup": {
await connection?.setChannelGroup(msg.channelGroupId, msg.channelId, msg.clientDbId);
break;
}
case "addServerGroup": {
await connection?.addServerGroup(msg.serverGroupId, msg.clientDbId);
break;
}
case "removeServerGroup": {
await connection?.removeServerGroup(msg.serverGroupId, msg.clientDbId);
break;
}
case "serverQueryLogin": {
await connection?.serverQueryLogin(msg.username, msg.password);
break;
}
case "getPermissionOverview": {
await connection?.getPermissionOverview();
break;
}
case "getFileList": {
await connection?.getFileList(msg.channelId, msg.path);
break;
}
case "createDirectory": {
await connection?.createDirectory(msg.channelId, msg.dirname);
break;
}
case "deleteFile": {
await connection?.deleteFile(msg.channelId, msg.name);
break;
}
case "renameFile": {
await connection?.renameFile(msg.channelId, msg.oldName, msg.newName);
break;
}
case "downloadFile": {
await connection?.downloadFile(msg.channelId, msg.path);
break;
}
case "uploadFile": {
await connection?.uploadFile(msg.channelId, msg.path, msg.dataBase64);
break;
}
case "getPermissionCatalog": {
await connection?.getPermissionCatalog();
break;
}
case "getPermList": {
await connection?.getPermList(msg.scope, msg.id1, msg.id2);
break;
}
case "addPermission": {
await connection?.addPermission(msg.scope, msg.ids, msg.permId, msg.value, msg.negated, msg.skip);
break;
}
case "removePermission": {
await connection?.removePermission(msg.scope, msg.ids, msg.permId);
break;
}
case "disconnect": {
await connection?.disconnect(msg.message ?? "");
break;
@@ -125,6 +787,7 @@ wss.on("connection", (socket: WebSocket) => {
});
socket.on("close", () => {
heartbeats.delete(socket);
connection?.disconnect();
});
});
+683 -8
View File
@@ -21,6 +21,24 @@ export interface ChannelInfo {
hasPassword: boolean;
}
/**
* The `setupstream` arguments. TS6 always sends all of them, so none are
* optional here - the defaults live in the caller, not on the wire.
*/
export interface StreamSetupOptions {
name: string;
/** Source kind; a real TS6 screen share sends 3. */
type: number;
bitrate: number;
/** TS6's Privacy setting: who may join without being asked. */
accessibility: number;
/** Connection mode - peer-to-peer or via the server's SFU. */
mode: number;
/** 0 means unlimited. */
viewerLimit: number;
audio: boolean;
}
export interface ClientInfo {
id: number;
channel: number;
@@ -31,8 +49,89 @@ export interface ClientInfo {
away: boolean;
awayMessage: string;
isChannelCommander: boolean;
country: string;
uid: string;
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
/** ServerQuery client; UI may hide these unless enabled per favorite. */
isQuery: boolean;
/** Broadcasting a TS6 Stream/Call. The stream id is fetched separately. */
isStreaming: boolean;
}
export interface GroupEntry {
id: number;
name: string;
iconId: number;
}
export interface PermissionOverviewEntry {
name: string;
description: string;
value: number;
negated: boolean;
skip: boolean;
}
export interface PermissionCatalogEntry {
id: number;
name: string;
description: string;
}
export type PermScope = "server" | "channelgroup" | "channel" | "client" | "channelclient";
export interface BanListEntry {
banId: number;
ip: string;
name: string;
uid: string;
lastNickname: string;
created: string;
durationSecs: number;
invokerName: string;
reason: string;
enforcements: number;
}
export interface ComplainListEntry {
targetClientDbId: number;
targetName: string;
fromClientDbId: number;
fromName: string;
message: string;
timestamp: string;
}
export interface OfflineMessageListEntry {
messageId: number;
clientUid: string;
subject: string;
timestamp: string;
isRead: boolean;
}
export interface FileListEntry {
path: string;
name: string;
size: number;
isFile: boolean;
timestamp: string;
}
export type ServerLogEntry =
| { kind: "clientJoin"; client: string; channel: string }
| { kind: "clientLeave"; client: string }
| { kind: "clientChannelSwitch"; client: string; fromChannel: string; toChannel: string }
| { kind: "clientChannelGroupAssigned"; client: string; group: string }
| { kind: "channelCreated"; channel: string }
| { kind: "channelDeleted"; channel: string }
| { kind: "channelEdited"; channel: string }
| { kind: "serverEdited" }
| { kind: "permissionError"; action: string };
export type Ts3ConnectionEvent =
| {
type: "connected";
@@ -41,9 +140,11 @@ export type Ts3ConnectionEvent =
serverMaxClients: number;
serverVersion: string;
serverLicense: string;
serverLicenseId: number;
serverBannerUrl: string;
identity: string;
}
| { type: "channels"; channels: ChannelInfo[]; clients: ClientInfo[] }
| { type: "channels"; channels: ChannelInfo[]; clients: ClientInfo[]; ownClientId: number; serverMaxClients: number; serverClientsOnline: number; serverChannelsOnline: number }
| { type: "chatMessage"; from: string; message: string }
| { type: "serverMessage"; from: string; message: string }
| { type: "privateMessage"; partnerId: number; partnerName: string; fromSelf: boolean; message: string }
@@ -51,7 +152,63 @@ export type Ts3ConnectionEvent =
| { type: "audioOut"; pcm: string }
| { type: "talkers"; clients: number[] }
| { type: "disconnected"; reason: string }
| { type: "error"; message: string };
| { type: "error"; message: string }
| { type: "channelPasswordRequired"; channelId: number }
| ({ type: "serverLog" } & ServerLogEntry)
| {
type: "clientConnectionInfo";
clientId: number;
pingMs: number | null;
connectedSecs: number | null;
ip: string | null;
packetsSent: number;
bytesSent: number;
packetsReceived: number;
bytesReceived: number;
packetLossPercent: number;
}
| {
type: "serverConnectionInfo";
pingMs: number;
connectedSecs: number;
packetLossPercent: number;
packetsSentTotal: number;
bytesSentTotal: number;
packetsReceivedTotal: number;
bytesReceivedTotal: number;
bandwidthSentLastSecond: number;
bandwidthReceivedLastSecond: number;
bandwidthSentLastMinute: number;
bandwidthReceivedLastMinute: number;
filetransferBandwidthSent: number;
filetransferBandwidthReceived: number;
filetransferBytesSent: number;
filetransferBytesReceived: number;
}
| { type: "serverProtocolLog"; lines: string[] }
| { type: "banList"; entries: BanListEntry[] }
| { type: "complainList"; entries: ComplainListEntry[] }
| { type: "offlineMessageList"; entries: OfflineMessageListEntry[] }
| {
type: "offlineMessage";
messageId: number;
clientUid: string;
subject: string;
message: string;
timestamp: string;
}
| { type: "channelGroupList"; entries: GroupEntry[] }
| { type: "serverGroupList"; entries: GroupEntry[] }
| { type: "permissionOverview"; entries: PermissionOverviewEntry[] }
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
| { type: "fileDownloadData"; cid: number; path: string; data: string }
| { type: "fileUploadDone"; cid: number; path: string }
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] }
/** TS6 Stream/Call signaling, forwarded verbatim; `args` is already unescaped. */
| { type: "streamEvent"; name: string; args: Record<string, string> };
export type ServerType = "teamspeak" | "teaspeak" | "auto";
export interface Ts3ConnectOptions {
host: string;
@@ -59,6 +216,13 @@ export interface Ts3ConnectOptions {
serverPassword?: string;
channelPassword?: string;
defaultChannel?: string;
/** Previously-issued identity (from a prior "connected" event) to keep
* the same client UID across sessions. Omit to get a freshly generated one. */
identity?: string;
/** Protocol / server dialect hint for the connector (`auto` when omitted). */
serverType?: ServerType;
/** One-time privilege key / token to redeem on connect. */
privilegeKey?: string;
}
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -89,6 +253,9 @@ export class Ts3Connection {
if (this.options.serverPassword) args.push("--server-password", this.options.serverPassword);
if (this.options.channelPassword) args.push("--channel-password", this.options.channelPassword);
if (this.options.defaultChannel) args.push("--default-channel", this.options.defaultChannel);
if (this.options.identity) args.push("--identity", this.options.identity);
if (this.options.serverType) args.push("--server-type", this.options.serverType);
if (this.options.privilegeKey) args.push("--privilege-key", this.options.privilegeKey);
this.child = spawn(CONNECTOR_BIN, args);
createInterface({ input: this.child.stdout }).on("line", (line) => {
@@ -103,6 +270,14 @@ export class Ts3Connection {
away: boolean;
away_message: string;
is_channel_commander: boolean;
country: string;
uid: string;
database_id: number;
channel_group: number;
server_groups: number[];
has_talk_power: boolean;
is_query?: boolean;
is_streaming?: boolean;
}
interface RawChannelInfo {
@@ -124,9 +299,19 @@ export class Ts3Connection {
server_max_clients: number;
server_version: string;
server_license: string;
server_license_id?: number;
server_banner_url: string;
identity: string;
}
| {
type: "channels";
channels: RawChannelInfo[];
clients: RawClientInfo[];
own_client_id?: number;
server_max_clients?: number;
server_clients_online?: number;
server_channels_online?: number;
}
| { type: "channels"; channels: RawChannelInfo[]; clients: RawClientInfo[] }
| { type: "chatMessage"; from: string; message: string }
| { type: "serverMessage"; from: string; message: string }
| { type: "privateMessage"; partner_id: number; partner_name: string; from_self: boolean; message: string }
@@ -134,7 +319,96 @@ export class Ts3Connection {
| { type: "audioOut"; pcm: string }
| { type: "talkers"; clients: number[] }
| { type: "disconnected"; reason: string }
| { type: "error"; message: string };
| { type: "error"; message: string }
| { type: "channelPasswordRequired"; channel_id: number }
| ({ type: "serverLog" } & ServerLogEntry)
| {
type: "clientConnectionInfo";
client_id: number;
ping_ms: number | null;
connected_secs: number | null;
ip: string | null;
packets_sent: number;
bytes_sent: number;
packets_received: number;
bytes_received: number;
packet_loss_percent: number;
}
| {
type: "serverConnectionInfo";
ping_ms: number;
connected_secs: number;
packet_loss_percent: number;
packets_sent_total: number;
bytes_sent_total: number;
packets_received_total: number;
bytes_received_total: number;
bandwidth_sent_last_second: number;
bandwidth_received_last_second: number;
bandwidth_sent_last_minute?: number;
bandwidth_received_last_minute?: number;
filetransfer_bandwidth_sent?: number;
filetransfer_bandwidth_received?: number;
filetransfer_bytes_sent?: number;
filetransfer_bytes_received?: number;
}
| { type: "serverProtocolLog"; lines: string[] }
| {
type: "banList";
entries: {
ban_id: number;
ip: string;
name: string;
uid: string;
last_nickname: string;
created: string;
duration_secs: number;
invoker_name: string;
reason: string;
enforcements: number;
}[];
}
| {
type: "complainList";
entries: {
target_client_db_id: number;
target_name: string;
from_client_db_id: number;
from_name: string;
message: string;
timestamp: string;
}[];
}
| {
type: "offlineMessageList";
entries: {
message_id: number;
client_uid: string;
subject: string;
timestamp: string;
is_read: boolean;
}[];
}
| {
type: "offlineMessage";
message_id: number;
client_uid: string;
subject: string;
message: string;
timestamp: string;
}
| { type: "channelGroupList"; entries: GroupEntry[] }
| { type: "serverGroupList"; entries: GroupEntry[] }
| {
type: "permissionOverview";
entries: { name: string; description: string; value: number; negated: boolean; skip: boolean }[];
}
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
| { type: "fileDownloadData"; cid: number; path: string; data: string }
| { type: "fileUploadDone"; cid: number; path: string }
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] }
| { type: "streamEvent"; name: string; args: Record<string, string> };
if (event.type === "connected") {
this.emit({
@@ -144,7 +418,9 @@ export class Ts3Connection {
serverMaxClients: event.server_max_clients,
serverVersion: event.server_version,
serverLicense: event.server_license,
serverLicenseId: event.server_license_id ?? 0,
serverBannerUrl: event.server_banner_url,
identity: event.identity,
});
} else if (event.type === "channels") {
this.emit({
@@ -169,7 +445,19 @@ export class Ts3Connection {
away: c.away,
awayMessage: c.away_message,
isChannelCommander: c.is_channel_commander,
country: c.country,
uid: c.uid,
databaseId: c.database_id,
channelGroup: c.channel_group,
serverGroups: c.server_groups,
hasTalkPower: c.has_talk_power,
isQuery: Boolean(c.is_query),
isStreaming: Boolean(c.is_streaming),
})),
ownClientId: event.own_client_id ?? 0,
serverMaxClients: event.server_max_clients ?? 0,
serverClientsOnline: event.server_clients_online ?? event.clients.length,
serverChannelsOnline: event.server_channels_online ?? event.channels.length,
});
} else if (event.type === "privateMessage") {
this.emit({
@@ -179,6 +467,88 @@ export class Ts3Connection {
fromSelf: event.from_self,
message: event.message,
});
} else if (event.type === "clientConnectionInfo") {
this.emit({
type: "clientConnectionInfo",
clientId: event.client_id,
pingMs: event.ping_ms,
connectedSecs: event.connected_secs,
ip: event.ip,
packetsSent: event.packets_sent,
bytesSent: event.bytes_sent,
packetsReceived: event.packets_received,
bytesReceived: event.bytes_received,
packetLossPercent: event.packet_loss_percent,
});
} else if (event.type === "serverConnectionInfo") {
this.emit({
type: "serverConnectionInfo",
pingMs: event.ping_ms,
connectedSecs: event.connected_secs,
packetLossPercent: event.packet_loss_percent,
packetsSentTotal: event.packets_sent_total,
bytesSentTotal: event.bytes_sent_total,
packetsReceivedTotal: event.packets_received_total,
bytesReceivedTotal: event.bytes_received_total,
bandwidthSentLastSecond: event.bandwidth_sent_last_second,
bandwidthReceivedLastSecond: event.bandwidth_received_last_second,
bandwidthSentLastMinute: event.bandwidth_sent_last_minute ?? 0,
bandwidthReceivedLastMinute: event.bandwidth_received_last_minute ?? 0,
filetransferBandwidthSent: event.filetransfer_bandwidth_sent ?? 0,
filetransferBandwidthReceived: event.filetransfer_bandwidth_received ?? 0,
filetransferBytesSent: event.filetransfer_bytes_sent ?? 0,
filetransferBytesReceived: event.filetransfer_bytes_received ?? 0,
});
} else if (event.type === "banList") {
this.emit({
type: "banList",
entries: event.entries.map((e) => ({
banId: e.ban_id,
ip: e.ip,
name: e.name,
uid: e.uid,
lastNickname: e.last_nickname,
created: e.created,
durationSecs: e.duration_secs,
invokerName: e.invoker_name,
reason: e.reason,
enforcements: e.enforcements,
})),
});
} else if (event.type === "complainList") {
this.emit({
type: "complainList",
entries: event.entries.map((e) => ({
targetClientDbId: e.target_client_db_id,
targetName: e.target_name,
fromClientDbId: e.from_client_db_id,
fromName: e.from_name,
message: e.message,
timestamp: e.timestamp,
})),
});
} else if (event.type === "offlineMessageList") {
this.emit({
type: "offlineMessageList",
entries: event.entries.map((e) => ({
messageId: e.message_id,
clientUid: e.client_uid,
subject: e.subject,
timestamp: e.timestamp,
isRead: e.is_read,
})),
});
} else if (event.type === "offlineMessage") {
this.emit({
type: "offlineMessage",
messageId: event.message_id,
clientUid: event.client_uid,
subject: event.subject,
message: event.message,
timestamp: event.timestamp,
});
} else if (event.type === "channelPasswordRequired") {
this.emit({ type: "channelPasswordRequired", channelId: event.channel_id });
} else {
this.emit(event);
}
@@ -200,8 +570,209 @@ export class Ts3Connection {
});
}
async switchChannel(channelId: number): Promise<void> {
this.child?.stdin.write(`switch ${channelId}\n`);
async switchChannel(channelId: number, channelPassword?: string): Promise<void> {
const id = Number(channelId);
if (!Number.isFinite(id)) return;
// 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> {
this.child?.stdin.write(`clientconninfo ${clientId}\n`);
}
async getServerConnectionInfo(): Promise<void> {
this.child?.stdin.write(`serverconninfo\n`);
}
async kickFromChannel(clientId: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`kickchannel ${clientId} ${sanitized}\n`);
}
async kickFromServer(clientId: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`kickserver ${clientId} ${sanitized}\n`);
}
async banClient(clientId: number, seconds: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`banclient ${clientId} ${Math.max(0, Math.floor(seconds))} ${sanitized}\n`);
}
/** Every field is optional - only send what actually changed. JSON.stringify
* already escapes embedded newlines, so this is safe as a single stdin line
* without extra sanitization. */
async editServer(payload: {
name?: string;
welcomeMessage?: string;
password?: string;
maxClients?: number;
hostmessage?: string;
hostmessageMode?: string;
hostbannerUrl?: string;
hostbannerGfxUrl?: string;
hostbannerGfxIntervalSecs?: number;
hostbannerMode?: string;
hostbuttonTooltip?: string;
hostbuttonUrl?: string;
hostbuttonGfxUrl?: string;
nickname?: string;
phoneticName?: string;
codecEncryptionMode?: string;
}): Promise<void> {
this.child?.stdin.write(`serveredit ${JSON.stringify(payload)}\n`);
}
async getServerLog(): Promise<void> {
this.child?.stdin.write(`serverlog\n`);
}
async getBanList(): Promise<void> {
this.child?.stdin.write(`banlist\n`);
}
async deleteBan(banId: number): Promise<void> {
this.child?.stdin.write(`bandel ${banId}\n`);
}
async deleteAllBans(): Promise<void> {
this.child?.stdin.write(`bandelall\n`);
}
async getComplainList(): Promise<void> {
this.child?.stdin.write(`complainlist\n`);
}
async deleteComplaint(targetClientDbId: number, fromClientDbId: number): Promise<void> {
this.child?.stdin.write(`complaindel ${targetClientDbId} ${fromClientDbId}\n`);
}
async deleteAllComplaintsFor(targetClientDbId: number): Promise<void> {
this.child?.stdin.write(`complaindelall ${targetClientDbId}\n`);
}
async getOfflineMessageList(): Promise<void> {
this.child?.stdin.write(`messagelist\n`);
}
async getOfflineMessage(messageId: number): Promise<void> {
this.child?.stdin.write(`messageget ${messageId}\n`);
}
async sendOfflineMessage(clientUid: string, subject: string, message: string): Promise<void> {
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
this.child?.stdin.write(`messageadd ${sanitize(clientUid)}\t${sanitize(subject)}\t${sanitize(message)}\n`);
}
async deleteOfflineMessage(messageId: number): Promise<void> {
this.child?.stdin.write(`messagedel ${messageId}\n`);
}
async markOfflineMessageRead(messageId: number): Promise<void> {
this.child?.stdin.write(`messageupdateflag ${messageId} 1\n`);
}
async getChannelGroupList(): Promise<void> {
this.child?.stdin.write(`channelgrouplist\n`);
}
async getServerGroupList(): Promise<void> {
this.child?.stdin.write(`servergrouplist\n`);
}
async setChannelGroup(channelGroupId: number, channelId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}\n`);
}
async addServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`addservergroup ${serverGroupId} ${clientDbId}\n`);
}
async removeServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`delservergroup ${serverGroupId} ${clientDbId}\n`);
}
async serverQueryLogin(username: string, password: string): Promise<void> {
const u = Buffer.from(username, "utf8").toString("base64");
const p = Buffer.from(password, "utf8").toString("base64");
this.child?.stdin.write(`serverquerylogin ${u} ${p}\n`);
}
async getPermissionOverview(): Promise<void> {
this.child?.stdin.write(`permoverview\n`);
}
async getPermissionCatalog(): Promise<void> {
this.child?.stdin.write(`permissionlist\n`);
}
async getPermList(scope: PermScope, id1: number, id2?: number): Promise<void> {
const args = id2 !== undefined ? `${scope} ${id1} ${id2}` : `${scope} ${id1}`;
this.child?.stdin.write(`permlist ${args}\n`);
}
/** `negated`/`skip` only apply to the "server" and "client" scopes - the
* connector ignores extra trailing args for scopes that don't use them, so
* it's safe to always pass through what the caller gave. */
async addPermission(
scope: PermScope,
ids: number[],
permId: number,
value: number,
negated = false,
skip = false
): Promise<void> {
let args = `${scope} ${ids.join(" ")} ${permId} ${value}`;
if (scope === "server") args += ` ${negated ? 1 : 0} ${skip ? 1 : 0}`;
else if (scope === "client") args += ` ${skip ? 1 : 0}`;
this.child?.stdin.write(`permadd ${args}\n`);
}
async removePermission(scope: PermScope, ids: number[], permId: number): Promise<void> {
this.child?.stdin.write(`permdel ${scope} ${ids.join(" ")} ${permId}\n`);
}
async getFileList(channelId: number, path: string): Promise<void> {
const sanitized = (path || "/").replace(/[\r\n]+/g, " ").trim() || "/";
this.child?.stdin.write(`ftlist ${channelId} ${sanitized}\n`);
}
async createDirectory(channelId: number, dirname: string): Promise<void> {
const sanitized = dirname.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`ftmkdir ${channelId} ${sanitized}\n`);
}
async deleteFile(channelId: number, name: string): Promise<void> {
const sanitized = name.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`ftdelete ${channelId} ${sanitized}\n`);
}
async renameFile(channelId: number, oldName: string, newName: string): Promise<void> {
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
this.child?.stdin.write(`ftrename ${channelId}\t${sanitize(oldName)}\t${sanitize(newName)}\n`);
}
async downloadFile(channelId: number, path: string): Promise<void> {
const sanitized = path.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`ftdownload ${channelId} ${sanitized}\n`);
}
/** `dataBase64` is the raw file content, base64-encoded - the browser reads
* the picked File as a data URL/ArrayBuffer and sends it up already encoded. */
async uploadFile(channelId: number, path: string, dataBase64: string): Promise<void> {
const sanitizedPath = path.replace(/[\r\n\t]+/g, " ").trim();
this.child?.stdin.write(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}\n`);
}
async sendChatMessage(message: string): Promise<void> {
@@ -228,6 +799,79 @@ export class Ts3Connection {
this.child?.stdin.write(`audio ${pcmBase64}\n`);
}
/** Pulls a streaming client's stream details; answered with a
* `notifystreaminfo` streamEvent carrying the stream id. */
async requestStreamInfo(clientId: number): Promise<void> {
this.child?.stdin.write(`streaminfo ${clientId}\n`);
}
/** Ask the client publishing a TS6 stream to let us watch. The answer comes
* back as a `streamEvent` of type `notifyrespondjoinstreamrequest`, which
* carries the SDP offer. */
async joinStream(streamId: string, clientId: number, message = ""): Promise<void> {
const id = streamId.replace(/[\s]+/g, "");
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
if (id) this.child?.stdin.write(`streamjoin ${id} ${clientId} ${sanitized}\n`);
}
async leaveStream(streamId: string, clientId: number): Promise<void> {
const id = streamId.replace(/[\s]+/g, "");
if (id) this.child?.stdin.write(`streamleave ${id} ${clientId}\n`);
}
/** Relays one signaling payload (SDP answer, ICE candidate) to a stream peer.
* `payload` is passed straight through - the connector only escapes it for
* the TS wire, nobody in this path interprets it. Serializing here rather
* than accepting a string keeps literal newlines out of the line-based
* stdin protocol. */
async sendStreamSignal(streamId: string, clientId: number, payload: unknown): Promise<void> {
const id = streamId.replace(/[\s]+/g, "");
if (id) this.child?.stdin.write(`streamsignal ${id} ${clientId} ${JSON.stringify(payload)}\n`);
}
/** Announces a stream we publish. The server assigns the id and reports it
* back as a `notifystreamstarted` streamEvent naming our own client id. */
async setupStream(options: StreamSetupOptions): Promise<void> {
const payload = {
name: options.name.replace(/[\r\n]+/g, " ").trim() || "Stream",
type: options.type,
bitrate: options.bitrate,
accessibility: options.accessibility,
mode: options.mode,
viewerLimit: options.viewerLimit,
audio: options.audio,
};
this.child?.stdin.write(`streamsetup ${JSON.stringify(payload)}\n`);
}
/** Accepts or refuses a viewer that asked to watch our stream. On accept,
* `offer` is our SDP - the publisher offers, which is the mirror of how a
* TS6 publisher answered us. JSON-encoded because an SDP is multi-line. */
async respondJoinStream(
streamId: string,
clientId: number,
accept: boolean,
offer = "",
message = "",
): Promise<void> {
const id = streamId.replace(/[\s]+/g, "");
if (!id) return;
const payload = {
id,
clid: clientId,
msg: message.replace(/[\r\n]+/g, " ").trim(),
offer,
decision: accept ? 1 : 0,
};
this.child?.stdin.write(`streamrespond ${JSON.stringify(payload)}\n`);
}
async stopStream(streamId: string, reason = ""): Promise<void> {
const id = streamId.replace(/[\s]+/g, "");
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
if (id) this.child?.stdin.write(`streamstop ${id} ${sanitized}\n`);
}
async setAway(away: boolean, message: string): Promise<void> {
if (away) {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
@@ -245,11 +889,42 @@ export class Ts3Connection {
this.child?.stdin.write(`muteoutput ${muted ? "1" : "0"}\n`);
}
async setNickname(nickname: string): Promise<void> {
const sanitized = nickname.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`nickname ${sanitized}\n`);
}
/** Empty channelIds/clientIds clears whisper mode, returning outgoing
* voice to the normal current-channel broadcast. */
async setWhisperTargets(channelIds: number[], clientIds: number[]): Promise<void> {
if (channelIds.length === 0 && clientIds.length === 0) {
this.child?.stdin.write("unwhisper\n");
} else {
this.child?.stdin.write(`whisper ${channelIds.join(",")};${clientIds.join(",")}\n`);
}
}
async disconnect(message = ""): Promise<void> {
if (this.child && !this.child.killed) {
const child = this.child;
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
this.child.stdin.write(`disconnect ${sanitized}\n`);
this.child.stdin.end();
child.stdin.write(`disconnect ${sanitized}\n`);
child.stdin.end();
// Wait for the connector process to actually exit before returning, so a
// caller that immediately reconnects (index.ts's "connect" handler) never
// spawns a replacement while this one is still shutting down - two
// connector processes would otherwise briefly hold the same audio/socket
// resources. Fall back to a hard kill if it doesn't exit on its own.
await new Promise<void>((resolve) => {
const timeout = setTimeout(() => {
child.kill();
resolve();
}, 3000);
child.once("exit", () => {
clearTimeout(timeout);
resolve();
});
});
}
this.listeners.clear();
}
+70
View File
@@ -0,0 +1,70 @@
import os
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
BASE_URL = os.environ.get("BASE_URL", "https://client.webspeak3.de/")
RESULTS = Path("test-results")
RESULTS.mkdir(exist_ok=True)
def wait_for_text(driver: webdriver.Safari, selector: str, text: str) -> None:
WebDriverWait(driver, 15).until(
lambda current: text in current.find_element(By.CSS_SELECTOR, selector).text
)
def check_page(driver: webdriver.Safari, width: int, height: int, label: str) -> None:
driver.set_window_size(width, height)
driver.get(BASE_URL)
wait_for_text(driver, ".ts-app-title", "WebSpeak3")
assert "WebSpeak3" in driver.title
capabilities = driver.execute_script(
"""
return {
secureContext: window.isSecureContext,
mediaDevices: Boolean(navigator.mediaDevices),
getUserMedia: typeof navigator.mediaDevices?.getUserMedia === 'function',
audioContext: typeof (window.AudioContext || window.webkitAudioContext) === 'function',
webSocket: typeof window.WebSocket === 'function'
};
"""
)
assert capabilities["secureContext"]
assert capabilities["mediaDevices"]
assert capabilities["getUserMedia"]
assert capabilities["audioContext"]
assert capabilities["webSocket"]
connections_menu = driver.find_element(By.CSS_SELECTOR, ".ts-menubar-dropdown .ts-menubar-item")
driver.execute_script("arguments[0].click()", connections_menu)
connect_item = WebDriverWait(driver, 10).until(
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-menu .ts-menu-item")
)
driver.execute_script("arguments[0].click()", connect_item)
dialog = WebDriverWait(driver, 10).until(
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-connect-dialog")
)
assert dialog.is_displayed()
assert len(dialog.find_elements(By.CSS_SELECTOR, "input")) >= 3
driver.save_screenshot(str(RESULTS / f"safari-client-{label}.png"))
def main() -> None:
options = webdriver.SafariOptions()
driver = webdriver.Safari(options=options)
try:
check_page(driver, 1440, 1000, "desktop")
check_page(driver, 390, 844, "mobile")
finally:
driver.quit()
if __name__ == "__main__":
main()
+1
View File
@@ -9,6 +9,7 @@ lerna-debug.log*
node_modules
dist
dist-demo
dist-ssr
*.local
+10 -3
View File
@@ -7,19 +7,26 @@
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#03060d" />
<!-- iOS ignores most of the Web App Manifest — these are the fields it
actually reads for "Add to Home Screen" (standalone display, status
bar style, home-screen title). -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="WebSpeak3" />
<title>WebSpeak3</title>
<meta name="description" content="WebSpeak3 — an independent, self-hosted web client for TeamSpeak 3 servers." />
<meta property="og:type" content="website" />
<meta property="og:title" content="WebSpeak3" />
<meta property="og:description" content="An independent, self-hosted web client for TeamSpeak 3 servers." />
<meta property="og:url" content="https://ts.moepchi.de/" />
<meta property="og:image" content="https://ts.moepchi.de/og-image.png" />
<meta property="og:url" content="https://client.webspeak3.de/" />
<meta property="og:image" content="https://client.webspeak3.de/og-image.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="WebSpeak3" />
<meta name="twitter:description" content="An independent, self-hosted web client for TeamSpeak 3 servers." />
<meta name="twitter:image" content="https://ts.moepchi.de/og-image.png" />
<meta name="twitter:image" content="https://client.webspeak3.de/og-image.png" />
</head>
<body>
<div id="root"></div>
+5325 -3
View File
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"fflate": "^0.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
@@ -20,6 +21,7 @@
"@vitejs/plugin-react": "^6.0.3",
"oxlint": "^1.71.0",
"typescript": "~6.0.2",
"vite": "^8.1.1"
"vite": "^8.1.1",
"vite-plugin-pwa": "^1.3.0"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 379 KiB

+3016 -7
View File
File diff suppressed because it is too large. Load diff
+8255 -288
View File
File diff suppressed because it is too large. Load diff
+336
View File
@@ -0,0 +1,336 @@
/**
* Multi-join session bookkeeping. The active tab keeps its UI in React state
* (App.tsx); inactive tabs park a snapshot here and keep their WebSocket alive.
* Audio is intentionally active-tab-only (see README / known limits).
*/
export type ConnectionSessionId = string;
export type SelectedItem =
| { type: "server" }
| { type: "channel"; id: number }
| { type: "client"; id: number };
export type ChatEntry = { from: string; message: string; isLog?: boolean };
export type PmMessage = { fromSelf: boolean; message: string };
export type PmThread = {
partnerId: number;
partnerName: string;
messages: PmMessage[];
unread: boolean;
};
export type ActiveChatTab = "channel" | "server" | number;
export type PokeNotice = { id: number; from: string; message: string };
export type LogEntry = { text: string; kind: "info" | "error" };
export type ChannelInfo = {
id: number;
parent: number;
order: number;
name: string;
topic: string;
codec: string;
maxClients: number | null;
hasPassword: boolean;
};
export type ClientInfo = {
id: number;
channel: number;
name: string;
inputMuted: boolean;
outputMuted: boolean;
inputHardwareEnabled: boolean;
away: boolean;
awayMessage: string;
isChannelCommander: boolean;
country: string;
uid: string;
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
/** ServerQuery client; hidden in the tree unless the favorite enables them. */
isQuery?: boolean;
};
export type WhisperLogEntry = {
id: number;
timestamp: number;
description: string;
};
/** Snapshot of per-connection UI state for a parked (inactive) tab. */
export type ParkedSessionState = {
host: string;
nickname: string;
connected: boolean;
connecting: boolean;
connectError: string | null;
channels: ChannelInfo[];
clients: ClientInfo[];
ownClientId: number | null;
serverName: string;
serverMaxClients: number;
serverClientsOnline: number;
serverChannelsOnline: number;
serverVersion: string;
serverLicense: string;
serverLicenseId: number;
serverBannerUrl: string;
serverWelcomeMessage: string;
selected: SelectedItem | null;
chat: ChatEntry[];
serverChat: ChatEntry[];
pmThreads: Record<number, PmThread>;
pokes: PokeNotice[];
chatTab: ActiveChatTab;
talkers: number[];
whisperChannelIds: number[];
whisperClientIds: number[];
whisperLog: WhisperLogEntry[];
log: LogEntry[];
hasConnected: boolean;
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 = {
id: ConnectionSessionId;
label: string;
connected: boolean;
connecting: boolean;
};
export type SessionSocket = WebSocket | { close: () => void; readyState: number; send: (data: string) => void };
export type SessionRecord = {
id: ConnectionSessionId;
socket: SessionSocket | null;
/** null while this session is the active React UI. */
parked: ParkedSessionState | null;
};
export function emptyParkedState(partial?: Partial<ParkedSessionState>): ParkedSessionState {
return {
host: "",
nickname: "",
connected: false,
connecting: false,
connectError: null,
channels: [],
clients: [],
ownClientId: null,
serverName: "",
serverMaxClients: 0,
serverClientsOnline: 0,
serverChannelsOnline: 0,
serverVersion: "",
serverLicense: "",
serverLicenseId: 0,
serverBannerUrl: "",
serverWelcomeMessage: "",
selected: null,
chat: [],
serverChat: [],
pmThreads: {},
pokes: [],
chatTab: "channel",
talkers: [],
whisperChannelIds: [],
whisperClientIds: [],
whisperLog: [],
log: [],
hasConnected: false,
previousClients: null,
micWasOn: false,
favoriteId: null,
...partial,
};
}
export function sessionLabel(state: Pick<ParkedSessionState, "serverName" | "host">): string {
const name = state.serverName.trim() || state.host.trim();
return name || "…";
}
/** Apply a gateway event to a parked session. Returns whether the tab label may have changed. */
export function applyParkedGatewayEvent(
state: ParkedSessionState,
data: { type: string; [key: string]: unknown },
opts: { connectNickname: string; chatTab: ActiveChatTab }
): { state: ParkedSessionState; labelChanged: boolean } {
let labelChanged = false;
switch (data.type) {
case "connected": {
const serverName = String(data.serverName ?? "");
labelChanged = serverName !== state.serverName;
return {
labelChanged,
state: {
...state,
connecting: false,
connectError: null,
connected: true,
hasConnected: true,
serverName,
serverMaxClients: Number(data.serverMaxClients) || 0,
serverClientsOnline: 0,
serverChannelsOnline: 0,
serverVersion: String(data.serverVersion ?? ""),
serverLicense: String(data.serverLicense ?? ""),
serverLicenseId: typeof data.serverLicenseId === "number" ? data.serverLicenseId : 0,
serverBannerUrl: String(data.serverBannerUrl ?? ""),
serverWelcomeMessage: String(data.welcomeMessage ?? ""),
selected: { type: "server" },
serverChat: [
...state.serverChat,
{ from: "Server", message: String(data.welcomeMessage ?? "") },
],
previousClients: null,
},
};
}
case "channels": {
const newClients = (data.clients as ClientInfo[]) ?? [];
const ownClientId =
typeof data.ownClientId === "number" && data.ownClientId > 0
? data.ownClientId
: state.ownClientId;
return {
labelChanged: false,
state: {
...state,
channels: (data.channels as ChannelInfo[]) ?? state.channels,
clients: newClients,
ownClientId,
serverMaxClients:
typeof data.serverMaxClients === "number" && data.serverMaxClients > 0
? data.serverMaxClients
: state.serverMaxClients,
serverClientsOnline:
typeof data.serverClientsOnline === "number" && data.serverClientsOnline >= 0
? data.serverClientsOnline
: state.serverClientsOnline,
serverChannelsOnline:
typeof data.serverChannelsOnline === "number" && data.serverChannelsOnline >= 0
? data.serverChannelsOnline
: state.serverChannelsOnline,
previousClients: newClients,
},
};
}
case "chatMessage":
return {
labelChanged: false,
state: {
...state,
chat: [...state.chat, { from: String(data.from), message: String(data.message) }],
},
};
case "serverMessage":
return {
labelChanged: false,
state: {
...state,
serverChat: [
...state.serverChat,
{ from: String(data.from), message: String(data.message) },
],
},
};
case "privateMessage": {
const partnerId = Number(data.partnerId);
const existing = state.pmThreads[partnerId];
const thread: PmThread = existing ?? {
partnerId,
partnerName: String(data.partnerName),
messages: [],
unread: false,
};
return {
labelChanged: false,
state: {
...state,
pmThreads: {
...state.pmThreads,
[partnerId]: {
...thread,
partnerName: String(data.partnerName),
messages: [
...thread.messages,
{ fromSelf: Boolean(data.fromSelf), message: String(data.message) },
],
unread:
thread.unread || (!data.fromSelf && opts.chatTab !== partnerId),
},
},
},
};
}
case "talkers":
return {
labelChanged: false,
state: {
...state,
talkers: Array.isArray(data.clients) ? (data.clients as number[]) : [],
},
};
case "poke": {
const id = Date.now() + Math.floor(Math.random() * 1000);
return {
labelChanged: false,
state: {
...state,
pokes: [
...state.pokes,
{ id, from: String(data.from), message: String(data.message ?? "") },
],
},
};
}
case "disconnected":
return {
labelChanged: true,
state: {
...emptyParkedState({
host: state.host,
nickname: state.nickname,
}),
connecting: false,
connected: false,
hasConnected: false,
log: [
...state.log,
{ text: `Disconnected: ${String(data.reason ?? "")}`, kind: "info" },
],
},
};
case "error":
if (state.hasConnected) {
return {
labelChanged: false,
state: {
...state,
log: [...state.log, { text: String(data.message), kind: "error" }],
},
};
}
return {
labelChanged: false,
state: {
...state,
connecting: false,
connectError: String(data.message),
},
};
case "audioOut":
// Background tabs never play audio (active-tab-only shortcut).
return { state, labelChanged: false };
default:
return { state, labelChanged: false };
}
}
+648
View File
@@ -0,0 +1,648 @@
// Standalone frontend demo: no gateway, no real TeamSpeak server. Everything
// below simulates the WebSocket protocol the real gateway speaks (see
// gateway/src/index.ts) so App.tsx doesn't need to know it isn't talking to
// a real backend. Only enabled in the GitHub Pages build (VITE_DEMO_MODE=true)
// so the normal Docker image is completely unaffected.
export const DEMO_MODE = import.meta.env.VITE_DEMO_MODE === "true";
export const DEMO_HOST = "demo.webspeak3.example";
interface DemoChannel {
id: number;
parent: number;
order: number;
name: string;
topic: string;
codec: string;
maxClients: number | null;
hasPassword: boolean;
}
interface DemoClient {
id: number;
channel: number;
name: string;
inputMuted: boolean;
outputMuted: boolean;
inputHardwareEnabled: boolean;
away: boolean;
awayMessage: string;
isChannelCommander: boolean;
country: string;
uid: string;
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
}
const DEMO_CHANNELS: DemoChannel[] = [
{ id: 1, parent: 0, order: 0, name: "Lobby", topic: "Welcome to the WebSpeak3 demo!", codec: "Opus Voice", maxClients: null, hasPassword: false },
{ id: 2, parent: 0, order: 1, name: "Gaming", topic: "", codec: "Opus Voice", maxClients: 10, hasPassword: false },
{ id: 3, parent: 0, order: 2, name: "AFK", topic: "", codec: "Opus Voice", maxClients: null, hasPassword: false },
];
const DEMO_CHANNEL_GROUPS = [
{ id: 1, name: "Channel Admin", iconId: 0 },
{ id: 2, name: "Operator", iconId: 0 },
{ id: 3, name: "Voice", iconId: 0 },
{ id: 4, name: "Guest", iconId: 0 },
];
const DEMO_SERVER_GROUPS = [
{ id: 1, name: "Server Admin", iconId: 0 },
{ id: 2, name: "Moderator", iconId: 0 },
{ id: 3, name: "Trusted", iconId: 0 },
{ id: 4, name: "Guest", iconId: 0 },
];
const DEMO_NPCS: DemoClient[] = [
{ id: 102, channel: 1, name: "Alex", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: true, country: "US", uid: "demo-uid-alex", databaseId: 2, channelGroup: 2, serverGroups: [2], hasTalkPower: true },
{ id: 103, channel: 2, name: "Sam", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "GB", uid: "demo-uid-sam", databaseId: 3, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
{ id: 104, channel: 2, name: "Jordan", inputMuted: true, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "CA", uid: "demo-uid-jordan", databaseId: 4, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
{ id: 105, channel: 3, name: "Riley", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: true, awayMessage: "brb, grabbing coffee", isChannelCommander: false, country: "DE", uid: "demo-uid-riley", databaseId: 5, channelGroup: 4, serverGroups: [3, 4], hasTalkPower: true },
];
interface DemoFileEntry {
path: string;
name: string;
size: number;
isFile: boolean;
timestamp: string;
}
/** Keyed by "<channelId>:<path>" - a tiny in-memory filesystem so the
* channel file browser has something real to navigate/mutate in the demo. */
const DEMO_FILES: Record<string, DemoFileEntry[]> = {
"1:/": [
{ path: "/", name: "readme.txt", size: 182, isFile: true, timestamp: "2024-01-01 12:00:00" },
{ path: "/", name: "Musik", size: 0, isFile: false, timestamp: "2024-01-01 12:00:00" },
],
"1:/Musik": [
{ path: "/Musik", name: "lobby-theme.mp3", size: 4 * 1024 * 1024, isFile: true, timestamp: "2024-01-02 09:30:00" },
],
"2:/": [],
"3:/": [],
// Channel 0 is TS3's special server-wide icon repository, not a real channel.
"0:/": [
{ path: "/", name: "icon_100", size: 68, isFile: true, timestamp: "2024-01-01 12:00:00" },
{ path: "/", name: "icon_200", size: 68, isFile: true, timestamp: "2024-01-01 12:00:00" },
],
};
// A tiny 1x1 transparent PNG, reused as the fake image data for every demo icon.
const DEMO_ICON_PNG_BASE64 =
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=";
function demoFileKey(channelId: number, path: string): string {
return `${channelId}:${path}`;
}
function demoNowTimestamp(): string {
return new Date().toISOString().slice(0, 19).replace("T", " ");
}
interface DemoPermEntry {
name: string;
description: string;
value: number;
negated: boolean;
skip: boolean;
}
// A small fake permission catalog (real TS3 servers expose ~500 of these) -
// enough for the permissions editor's "add permission" picker to be usable.
const DEMO_PERMISSION_CATALOG: { id: number; name: string; description: string }[] = [
{ id: 1, name: "b_client_info_view", description: "View own client info" },
{ id: 2, name: "b_client_permissionoverview_view", description: "View permission overview" },
{ id: 3, name: "i_channel_join_power", description: "Power to join channels" },
{ id: 4, name: "i_client_talk_power", description: "Talk power" },
{ id: 5, name: "b_client_use_priority_speaker", description: "Use priority speaker" },
{ id: 6, name: "i_client_max_channel_subscriptions", description: "Max channel subscriptions" },
{ id: 7, name: "b_channel_join_permanent", description: "Join permanent channels" },
{ id: 8, name: "b_client_kick_from_channel", description: "Kick client from channel" },
{ id: 9, name: "b_client_kick_from_server", description: "Kick client from server" },
{ id: 10, name: "b_client_ban_client", description: "Ban client" },
{ id: 11, name: "i_channel_create_modify_power", description: "Power to create/modify channels" },
{ id: 12, name: "b_virtualserver_modify_name", description: "Modify server name" },
{ id: 13, name: "b_ft_file_upload", description: "Upload files" },
{ id: 14, name: "b_ft_file_download", description: "Download files" },
];
// Keyed by "<scope>:<id1>:<id2 ?? ->" - the fake permission set currently
// assigned to one server group / channel group / channel / client /
// channel+client combination.
const DEMO_PERM_LISTS: Record<string, DemoPermEntry[]> = {
"server:1:-": [
{ name: "b_client_kick_from_server", description: "Kick client from server", value: 1, negated: false, skip: false },
{ name: "b_client_ban_client", description: "Ban client", value: 1, negated: false, skip: false },
],
"server:4:-": [
{ name: "i_channel_join_power", description: "Power to join channels", value: 25, negated: false, skip: false },
],
"channelgroup:1:-": [
{ name: "i_channel_create_modify_power", description: "Power to create/modify channels", value: 75, negated: false, skip: false },
],
"client:1:-": [
{ name: "b_client_info_view", description: "View own client info", value: 1, negated: false, skip: false },
],
};
function demoPermKey(scope: string, id1: number, id2?: number): string {
return `${scope}:${id1}:${id2 ?? "-"}`;
}
const SELF_ID = 101;
/**
* Drop-in stand-in for a real WebSocket. Implements the subset of the
* WebSocket interface App.tsx actually uses (onopen/onmessage/onerror/
* onclose/send/close/readyState), so it can be assigned to the same
* socketRef without any changes to the event-handling code.
*/
export class DemoSocket {
onopen: ((ev: Event) => void) | null = null;
onmessage: ((ev: MessageEvent) => void) | null = null;
onerror: ((ev: Event) => void) | null = null;
onclose: ((ev: CloseEvent) => void) | null = null;
readyState: number = WebSocket.CONNECTING;
private closed = false;
private timers: number[] = [];
private selfChannel = 1;
private selfChannelGroup = 4;
private selfServerGroups = new Set<number>([4]);
constructor() {
this.after(400, () => {
this.readyState = WebSocket.OPEN;
this.onopen?.(new Event("open"));
});
}
send(raw: string) {
if (this.closed) return;
let msg: any;
try {
msg = JSON.parse(raw);
} catch {
return;
}
this.handle(msg);
}
close() {
if (this.closed) return;
// Mirrors the real gateway: a "disconnected" event arrives before the
// socket itself finishes closing (see gateway's disconnected event vs.
// the client-initiated WebSocket close in handleDisconnect).
this.emit({ type: "disconnected", reason: "client requested" });
this.closed = true;
this.readyState = WebSocket.CLOSED;
this.timers.forEach((id) => window.clearTimeout(id));
this.timers = [];
this.onclose?.({} as CloseEvent);
}
private after(ms: number, fn: () => void) {
const id = window.setTimeout(() => {
if (this.closed) return;
fn();
}, ms);
this.timers.push(id);
}
private emit(data: unknown) {
if (this.closed) return;
this.onmessage?.({ data: JSON.stringify(data) } as MessageEvent);
}
private handle(msg: any) {
switch (msg.type) {
case "connect": {
const nickname = String(msg.nickname || "Guest").trim() || "Guest";
this.after(900, () => {
this.emit({
type: "connected",
serverName: "WebSpeak3 Demo Server",
serverMaxClients: 32,
serverVersion: "3.13.7 [Build: demo]",
serverLicense: "Demo License",
serverLicenseId: 2,
serverBannerUrl: null,
welcomeMessage: "This is a simulated demo - no real TeamSpeak server is involved. Connect with any name/address you like.",
});
this.after(150, () => this.sendChannels(nickname));
this.scriptServerLog(nickname);
});
break;
}
case "switchChannel": {
const fromChannel = this.channelName(this.selfChannel);
this.selfChannel = msg.channelId;
const toChannel = this.channelName(this.selfChannel);
this.emit({
type: "serverLog",
kind: "clientChannelSwitch",
client: this.lastNickname,
fromChannel,
toChannel,
});
this.after(120, () => this.sendChannels(this.lastNickname));
break;
}
case "sendChatMessage":
this.after(80, () => this.emit({ type: "chatMessage", from: this.lastNickname, message: msg.message }));
break;
case "sendServerMessage":
this.after(80, () => this.emit({ type: "serverMessage", from: this.lastNickname, message: msg.message }));
break;
case "sendPrivateMessage": {
const partner = DEMO_NPCS.find((c) => c.id === msg.clientId);
this.after(80, () =>
this.emit({
type: "privateMessage",
partnerId: msg.clientId,
partnerName: partner?.name ?? "Unknown",
message: msg.message,
fromSelf: true,
})
);
break;
}
case "sendPoke": {
const partner = DEMO_NPCS.find((c) => c.id === msg.clientId);
this.after(400, () =>
this.emit({ type: "poke", from: partner?.name ?? "Someone", message: "(demo poke - no reply expected)" })
);
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({
type: "clientConnectionInfo",
clientId: msg.clientId,
pingMs: 12.4,
connectedSecs: 217,
ip: msg.clientId === SELF_ID ? "127.0.0.1" : null,
packetsSent: 4213,
bytesSent: 512_340,
packetsReceived: 3987,
bytesReceived: 498_120,
packetLossPercent: 0,
})
);
break;
}
case "getServerConnectionInfo": {
this.after(400, () =>
this.emit({
type: "serverConnectionInfo",
pingMs: 8.1,
connectedSecs: 217,
packetLossPercent: 0,
packetsSentTotal: 21_004,
bytesSentTotal: 2_411_000,
packetsReceivedTotal: 19_872,
bytesReceivedTotal: 2_198_500,
bandwidthSentLastSecond: 4200,
bandwidthReceivedLastSecond: 3900,
})
);
break;
}
case "getServerLog": {
this.after(400, () =>
this.emit({
type: "serverProtocolLog",
lines: [
"2026-08-05 10:12:03.421128|INFO |VirtualServerBase|1 |connect to server successful, connection accepted",
"2026-08-05 10:12:04.001912|INFO |VirtualServerBase|1 |client 'Guest'(id:101) connected",
"2026-08-05 10:14:19.552031|INFO |VirtualServerBase|1 |client 'Sam'(id:103) connected",
"2026-08-05 10:15:02.884120|INFO |VirtualServerBase|1 |client 'Jordan'(id:104) switched channel",
],
})
);
break;
}
case "getBanList": {
this.after(400, () =>
this.emit({
type: "banList",
entries: [
{
banId: 1,
ip: "203.0.113.42",
name: "TrollUser",
uid: "demo-uid-troll",
lastNickname: "TrollUser",
created: "2026-07-28 14:02:11",
durationSecs: 0,
invokerName: "Alex",
reason: "Spamming the server chat",
enforcements: 0,
},
{
banId: 2,
ip: "198.51.100.7",
name: "",
uid: "demo-uid-annoying",
lastNickname: "AnnoyingGuest",
created: "2026-08-01 09:44:53",
durationSecs: 3600,
invokerName: "Sam",
reason: "Repeated channel spam",
enforcements: 1,
},
],
})
);
break;
}
case "deleteBan":
case "deleteAllBans":
// No observable effect - the frontend already optimistically removes
// the deleted row(s) from its own state.
break;
case "getComplainList": {
this.after(400, () =>
this.emit({
type: "complainList",
entries: [
{
targetClientDbId: 104,
targetName: "Jordan",
fromClientDbId: 103,
fromName: "Sam",
message: "Kept talking over everyone in voice chat.",
timestamp: "2026-08-02 18:21:07",
},
],
})
);
break;
}
case "deleteComplaint":
case "deleteAllComplaintsFor":
break;
case "getOfflineMessageList": {
this.after(400, () =>
this.emit({
type: "offlineMessageList",
entries: [
{
messageId: 1,
clientUid: "demo-uid-sam",
subject: "Missed you online",
timestamp: "2026-08-03 20:11:44",
isRead: false,
},
],
})
);
break;
}
case "getOfflineMessage": {
this.after(300, () =>
this.emit({
type: "offlineMessage",
messageId: msg.messageId,
clientUid: "demo-uid-sam",
subject: "Missed you online",
message: "Hey, we were on last night in the Gaming channel - join us next time!",
timestamp: "2026-08-03 20:11:44",
})
);
break;
}
case "sendOfflineMessage":
case "deleteOfflineMessage":
case "markOfflineMessageRead":
// No observable effect - the frontend already optimistically updates
// its own state for delete/read, and there's no NPC to reply to a send.
break;
case "getChannelGroupList":
this.after(300, () => this.emit({ type: "channelGroupList", entries: DEMO_CHANNEL_GROUPS }));
break;
case "getServerGroupList":
this.after(300, () => this.emit({ type: "serverGroupList", entries: DEMO_SERVER_GROUPS }));
break;
case "setChannelGroup": {
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
if (npc) npc.channelGroup = msg.channelGroupId;
else if (msg.clientDbId === 1) this.selfChannelGroup = msg.channelGroupId;
this.after(200, () => this.sendChannels(this.lastNickname));
break;
}
case "addServerGroup": {
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
if (npc) {
if (!npc.serverGroups.includes(msg.serverGroupId)) npc.serverGroups.push(msg.serverGroupId);
} else if (msg.clientDbId === 1) {
this.selfServerGroups.add(msg.serverGroupId);
}
this.after(200, () => this.sendChannels(this.lastNickname));
break;
}
case "removeServerGroup": {
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
if (npc) {
npc.serverGroups = npc.serverGroups.filter((g) => g !== msg.serverGroupId);
} else if (msg.clientDbId === 1) {
this.selfServerGroups.delete(msg.serverGroupId);
}
this.after(200, () => this.sendChannels(this.lastNickname));
break;
}
case "serverQueryLogin":
// No observable effect - the demo has no real ServerQuery backend to
// authenticate against.
break;
case "getPermissionOverview": {
this.after(400, () =>
this.emit({
type: "permissionOverview",
entries: [
{ name: "b_client_info_view", description: "View own client info", value: 1, negated: false, skip: false },
{ name: "b_client_permissionoverview_view", description: "View permission overview", value: 1, negated: false, skip: false },
{ name: "i_channel_join_power", description: "Power to join channels", value: 25, negated: false, skip: false },
{ name: "i_client_talk_power", description: "Talk power", value: 25, negated: false, skip: false },
{ name: "b_client_use_priority_speaker", description: "Use priority speaker", value: 0, negated: true, skip: false },
{ name: "i_client_max_channel_subscriptions", description: "Max channel subscriptions", value: -1, negated: false, skip: false },
{ name: "b_channel_join_permanent", description: "Join permanent channels", value: 1, negated: false, skip: false },
],
})
);
break;
}
case "getPermissionCatalog": {
this.after(300, () => this.emit({ type: "permissionCatalog", entries: DEMO_PERMISSION_CATALOG }));
break;
}
case "getPermList": {
const key = demoPermKey(msg.scope, msg.id1, msg.id2);
this.after(300, () =>
this.emit({ type: "permList", scope: msg.scope, id1: msg.id1, id2: msg.id2 ?? null, entries: DEMO_PERM_LISTS[key] ?? [] })
);
break;
}
case "addPermission": {
const [id1, id2] = msg.ids as number[];
const key = demoPermKey(msg.scope, id1, id2);
const catalogEntry = DEMO_PERMISSION_CATALOG.find((p) => p.id === msg.permId);
const name = catalogEntry?.name ?? `#${msg.permId}`;
const description = catalogEntry?.description ?? "";
const list = (DEMO_PERM_LISTS[key] ?? []).filter((e) => e.name !== name);
list.push({ name, description, value: msg.value, negated: !!msg.negated, skip: !!msg.skip });
DEMO_PERM_LISTS[key] = list;
break;
}
case "removePermission": {
const [id1, id2] = msg.ids as number[];
const key = demoPermKey(msg.scope, id1, id2);
const catalogEntry = DEMO_PERMISSION_CATALOG.find((p) => p.id === msg.permId);
const name = catalogEntry?.name ?? `#${msg.permId}`;
if (DEMO_PERM_LISTS[key]) DEMO_PERM_LISTS[key] = DEMO_PERM_LISTS[key].filter((e) => e.name !== name);
break;
}
case "getFileList": {
const key = demoFileKey(msg.channelId, msg.path);
this.after(300, () =>
this.emit({ type: "fileList", cid: msg.channelId, path: msg.path, entries: DEMO_FILES[key] ?? [] })
);
break;
}
case "createDirectory": {
const dir = msg.dirname as string;
const parent = dir.slice(0, dir.lastIndexOf("/")) || "/";
const name = dir.slice(dir.lastIndexOf("/") + 1);
const parentKey = demoFileKey(msg.channelId, parent);
DEMO_FILES[parentKey] = (DEMO_FILES[parentKey] ?? []).filter((e) => e.name !== name);
DEMO_FILES[parentKey].push({ path: parent, name, size: 0, isFile: false, timestamp: demoNowTimestamp() });
DEMO_FILES[demoFileKey(msg.channelId, dir)] = [];
break;
}
case "deleteFile": {
const full = msg.name as string;
const parent = full.slice(0, full.lastIndexOf("/")) || "/";
const name = full.slice(full.lastIndexOf("/") + 1);
const parentKey = demoFileKey(msg.channelId, parent);
if (DEMO_FILES[parentKey]) DEMO_FILES[parentKey] = DEMO_FILES[parentKey].filter((e) => e.name !== name);
break;
}
case "renameFile": {
const oldFull = msg.oldName as string;
const newFull = msg.newName as string;
const parent = oldFull.slice(0, oldFull.lastIndexOf("/")) || "/";
const oldName = oldFull.slice(oldFull.lastIndexOf("/") + 1);
const newName = newFull.slice(newFull.lastIndexOf("/") + 1);
const entry = DEMO_FILES[demoFileKey(msg.channelId, parent)]?.find((e) => e.name === oldName);
if (entry) entry.name = newName;
break;
}
case "downloadFile": {
const full = msg.path as string;
const name = full.slice(full.lastIndexOf("/") + 1);
const data =
msg.channelId === 0
? DEMO_ICON_PNG_BASE64
: btoa(`This is a demo file. There is no real content behind "${name}" in WebSpeak3's demo mode.`);
this.after(400, () => this.emit({ type: "fileDownloadData", cid: msg.channelId, path: full, data }));
break;
}
case "uploadFile": {
const full = msg.path as string;
const parent = full.slice(0, full.lastIndexOf("/")) || "/";
const name = full.slice(full.lastIndexOf("/") + 1);
const parentKey = demoFileKey(msg.channelId, parent);
const sizeBytes = Math.floor(((msg.dataBase64 as string).length * 3) / 4);
DEMO_FILES[parentKey] = (DEMO_FILES[parentKey] ?? []).filter((e) => e.name !== name);
DEMO_FILES[parentKey].push({ path: parent, name, size: sizeBytes, isFile: true, timestamp: demoNowTimestamp() });
this.after(400, () => this.emit({ type: "fileUploadDone", cid: msg.channelId, path: full }));
break;
}
// "disconnect" is intentionally unhandled here: handleDisconnect() in
// App.tsx always calls socket.close() right after sending it, and
// close() already emits the "disconnected" event below.
// setAway, setInputMuted, setOutputMuted, sendAudio: no observable effect
// in a simulated single-user session, intentionally no-ops.
default:
break;
}
}
private lastNickname = "Guest";
private channelName(id: number): string {
return DEMO_CHANNELS.find((c) => c.id === id)?.name ?? "";
}
/** A short, scripted burst of Server-tab log lines so the feature is visible
* in the demo without needing a second real user to trigger them. */
private scriptServerLog(nickname: string) {
this.after(2500, () =>
this.emit({ type: "serverLog", kind: "clientJoin", client: "Sam", channel: this.channelName(2) })
);
this.after(5000, () =>
this.emit({
type: "serverLog",
kind: "clientChannelSwitch",
client: "Jordan",
fromChannel: this.channelName(2),
toChannel: this.channelName(1),
})
);
this.after(7500, () =>
this.emit({
type: "serverLog",
kind: "clientChannelGroupAssigned",
client: nickname,
group: "Guest",
})
);
}
private sendChannels(nickname: string) {
this.lastNickname = nickname;
const self: DemoClient = {
id: SELF_ID,
channel: this.selfChannel,
name: nickname,
inputMuted: false,
outputMuted: false,
inputHardwareEnabled: true,
away: false,
awayMessage: "",
isChannelCommander: false,
country: "",
uid: "demo-uid-self",
databaseId: 1,
channelGroup: this.selfChannelGroup,
serverGroups: [...this.selfServerGroups],
hasTalkPower: true,
};
this.emit({
type: "channels",
channels: DEMO_CHANNELS,
clients: [self, ...DEMO_NPCS],
ownClientId: SELF_ID,
serverMaxClients: 32,
serverClientsOnline: 1 + DEMO_NPCS.length,
serverChannelsOnline: DEMO_CHANNELS.length,
});
}
}
+26 -443
View File
@@ -1,456 +1,34 @@
import { createContext, useContext, useEffect, useState, type ReactNode } from "react";
import de from "./locales/de.json";
import en from "./locales/en.json";
import zhCN from "./locales/zh-CN.json";
import fa from "./locales/fa.json";
export type Lang = "de" | "en";
export type Lang = "de" | "en" | "zh-CN" | "fa";
const RTL_LANGS = new Set<Lang>(["fa"]);
export type LangPref = "auto" | Lang;
const LANGUAGE_KEY = "webspeak3:language";
// Keyed flat dictionary. Every user-facing string in the app should have an
// entry here in both languages - falls back to the English string (or the
// raw key) if a translation is missing, so a partial dictionary never blanks
// out the UI.
// Keyed flat dictionary, one JSON file per language under locales/. Every
// user-facing string in the app should have an entry in every file - falls
// back to the English string (or the raw key) if a translation is missing,
// so a partial dictionary never blanks out the UI. Plain JSON (not inline
// TS objects) so translation tools like Weblate can read/write these files
// directly.
const translations: Record<Lang, Record<string, string>> = {
de: {
"menu.connections": "Verbindungen",
"menu.connections.connect": "Verbinden",
"menu.connections.disconnectCurrent": "Aktuelle Verbindung trennen",
"menu.connections.disconnectAll": "Alle Verbindungen trennen",
"menu.favorites": "Favoriten",
"menu.favorites.add": "Zu Favoriten hinzufügen",
"menu.favorites.manage": "Favoriten verwalten",
"menu.self": "Selbst",
"menu.rights": "Rechte",
"menu.extras": "Extras",
"menu.help": "Hilfe",
"menu.extras.identities": "Identitäten",
"menu.extras.contacts": "Kontakte",
"menu.extras.collectedUrls": "Gesammelte URLs",
"menu.extras.fileTransfers": "Dateitransfers",
"menu.extras.inviteFriend": "Freund einladen",
"menu.extras.offlineMessages": "Offline Nachrichten",
"menu.extras.whisperLists": "Whisperlisten",
"menu.extras.whisperHistory": "Whisper Verlauf",
"menu.extras.clientLog": "Client Protokoll",
"menu.extras.banList": "Bannliste",
"menu.extras.complaintList": "Beschwerdeliste",
"menu.extras.serverQueryLogin": "ServerQuery Login",
"menu.extras.serverLog": "Server Protokoll",
"menu.extras.startRecording": "Aufnahme starten",
"menu.extras.startMultitrackRecording": "Start Multitrack Recording",
"menu.extras.stopRecording": "Aufnahme beenden",
"menu.extras.installOverwolf": "Overwolf installieren",
"menu.extras.options": "Optionen",
"toolbar.setAway": "Als abwesend markieren",
"toolbar.backOnline": "Wieder online",
"toolbar.awayOptions": "Abwesenheitsoptionen",
"toolbar.micEnable": "Mikrofon aktivieren",
"toolbar.micMute": "Mikrofon stummschalten",
"toolbar.micUnmute": "Mikrofon aktivieren (unmute)",
"toolbar.vadSensitivity": "Empfindlichkeit der Sprachaktivierung",
"toolbar.muteSound": "Ton stummschalten (Ausgabe stumm)",
"toolbar.unmuteSound": "Ton aktivieren (Ausgabe an)",
"toolbar.chooseOutputDevice": "Wiedergabegerät wählen",
"toolbar.toggleTheme": "Design wechseln",
"away.setGlobal": "Global abwesend setzen",
"away.setGlobalStatus": "Abwesenheit-Status global setzen",
"connect.title": "Verbinden",
"connect.serverAddress": "Server Nickname oder Adresse:",
"connect.serverPassword": "Server Passwort:",
"connect.nickname": "Nickname:",
"connect.phoneticNickname": "Phonetischer Nickname:",
"connect.identity": "Identität:",
"connect.defaultChannel": "Standard Channel:",
"connect.recordingProfile": "Aufnahmeprofil:",
"connect.channelPassword": "Channel Passwort:",
"connect.playbackProfile": "Wiedergabeprofil:",
"connect.onetimeGrant": "Einmalige Berechtigung:",
"connect.hotkeyProfile": "Hotkeyprofil:",
"connect.sendMyTeamSpeakId": "myTeamSpeak ID senden",
"connect.soundPack": "Sound Pack:",
"connect.more": "Mehr",
"connect.less": "Weniger",
"connect.connect": "Verbinden",
"connect.connecting": "Verbinde…",
"connect.newTab": "In neuem Tab",
"connect.cancel": "Abbrechen",
"favorites.title": "🔖 myTeamSpeak Favoriten",
"favorites.synced": "Synchronisierte Favoriten",
"favorites.notLoggedIn": "Nicht angemeldet",
"favorites.local": "Lokale Favoriten",
"favorites.unnamed": "(unbenannt)",
"favorites.bookmarkName": "Bookmark Name:",
"favorites.newFavoriteName": "Neuer Favorit",
"favorites.showServerQueryClients": "ServerQuery Clients anzeigen",
"favorites.connectOnStartup": "Beim Start verbinden",
"favorites.enableMyTeamSpeak": "Aktiviere myTeamSpeak Funktionen",
"favorites.new": "Neuer Favorit",
"favorites.newFolder": "Neuer Ordner",
"favorites.remove": "Entfernen",
"favorites.ok": "OK",
"favorites.cancel": "Abbrechen",
"favorites.apply": "Anwenden",
"away.dialog.title": "Abwesenheit-Nachricht setzen",
"away.dialog.message": "Nachricht:",
"away.dialog.template": "Vorlage:",
"away.dialog.none": "<Keine>",
"away.dialog.ok": "OK",
"away.dialog.save": "Speichern",
"away.dialog.cancel": "Abbrechen",
"options.title": "Optionen",
"options.ok": "OK",
"options.cancel": "Abbrechen",
"options.notImplemented": "Diese Einstellungen sind noch nicht implementiert.",
"options.section.anwendung": "Anwendung",
"options.section.wiedergabe": "Wiedergabe",
"options.section.aufnahme": "Aufnahme",
"options.section.design": "Design",
"options.section.erweiterungen": "Erweiterungen",
"options.section.hotkeys": "Hotkeys",
"options.section.whispern": "Whispern",
"options.section.downloads": "Downloads",
"options.section.chat": "Chat",
"options.section.sicherheit": "Sicherheit",
"options.section.nachrichten": "Nachrichten",
"options.section.meldungen": "Meldungen",
"options.section.sounds": "Sounds",
"app.title": "Anwendung",
"app.subtitle": "Allgemeine Anwendungseinstellungen",
"app.language": "Sprache",
"app.language.auto": "Systemvorgabe",
"app.language.de": "Deutsch",
"app.language.en": "English",
"playback.title": "Wiedergabe",
"playback.subtitle": "Ändern der Wiedergabeeinstellungen",
"playback.profile": "Profile",
"playback.default": "Standard",
"playback.device": "Wiedergabegerät:",
"playback.systemDefault": "System default",
"playback.quiet": "Leise",
"playback.loud": "Laut",
"playback.voiceVolume": "Sprachlautstärke",
"playback.playTestTone": "▶ Test Ton abspielen",
"playback.options": "Optionen",
"playback.autoVolume": "Automatische Lautstärkeanpassung",
"playback.ownMicClicks": "Eigener Client spielt Mikro Klicks",
"playback.otherMicClicks": "Andere Clients spielen Mikro Klicks",
"recording.title": "Aufnahme",
"recording.subtitle": "Ändern der Aufnahmeeinstellungen",
"recording.device": "Aufnahmegerät:",
"recording.activation": "Aktivierung",
"recording.pushToTalk": "Push-To-Talk",
"recording.continuous": "Dauersenden",
"recording.voiceActivation": "Automatische Spracherkennung",
"recording.testStart": "Test starten",
"recording.testStop": "Test beenden",
"recording.hangoverDelay": "Abschaltverzögerung:",
"recording.secondsUnit": "Sek",
"recording.dsp": "Digital Signal Processing",
"recording.typingAttenuation": "Typing attenuation",
"recording.echoCancellation": "Echo Dämpfung",
"recording.noiseSuppression": "Hintergrundgeräusche entfernen",
"info.address": "Adresse:",
"info.version": "Version:",
"info.license": "Lizenz:",
"info.currentClients": "Aktuelle Clients:",
"info.currentChannels": "Aktuelle Channel:",
"info.topic": "Topic:",
"info.audioCodec": "Audio Codec:",
"info.passwordProtected": "Passwort geschützt:",
"info.clients": "Clients:",
"info.yes": "Ja",
"info.no": "Nein",
"tree.notConnected": "Nicht verbunden",
"tree.clickToSelect": "Klicken zum Auswählen, Doppelklick zum Beitreten",
"tree.passwordProtected": "Passwortgeschützt",
"tree.privateChatWith": "Privater Chat mit",
"tree.poke": "Anstupsen",
"tree.channelCommander": "Channel Commander",
"tree.away": "Abwesend",
"tree.micMuted": "Mikrofon stummgeschaltet",
"tree.soundMuted": "Ton stummgeschaltet (deafened)",
"chat.server": "Server",
"chat.channel": "Channel",
"chat.notConnected": "Nicht verbunden",
"chat.messageChannel": "Nachricht an Channel...",
"chat.messageServer": "Nachricht an Server...",
"chat.messagePartner": "Nachricht an {name}...",
"chat.send": "Senden",
"chat.you": "Du",
"poke.title": "Anstupsen",
"poke.optionalMessage": "Optionale Nachricht...",
"poke.send": "Anstupsen",
"poke.cancel": "Abbrechen",
"poke.pokedYou": "hat dich angestupst",
"poke.dismiss": "Schließen",
"connectError.dismiss": "Schließen",
"dialog.close": "Schließen",
"sounds.title": "Sounds",
"sounds.subtitle": "Sound-Benachrichtigungen für Ereignisse festlegen",
"sounds.enable": "Sounds aktivieren",
"sounds.volume": "Lautstärke",
"sounds.eventEnable": "Diesen Sound aktivieren",
"sounds.event.connect": "Verbunden",
"sounds.event.disconnect": "Getrennt",
"sounds.event.clientJoin": "Client kommt",
"sounds.event.clientLeave": "Client geht",
"sounds.event.message": "Nachricht empfangen",
"sounds.event.poke": "Anstupsen erhalten",
"sounds.default": "Standard",
"sounds.custom": "Eigene Datei: {name}",
"sounds.test": "▶ Testen",
"sounds.upload": "Hochladen",
"sounds.reset": "Zurücksetzen",
"nachrichten.title": "Nachrichten",
"nachrichten.subtitle": "Nachrichten anpassen",
"nachrichten.disconnectMessage": "Verbindung trennen:",
"nachrichten.disconnectMessagePlaceholder": "verlassen",
"nachrichten.presetsTitle": "Voreingestellte Nachrichten",
"nachrichten.type": "Typ",
"nachrichten.type.away": "Abwesend",
"nachrichten.templateName": "Vorlagenname",
"nachrichten.message": "Nachricht",
"nachrichten.add": "Hinzufügen",
"nachrichten.delete": "Löschen",
},
en: {
"menu.connections": "Connections",
"menu.connections.connect": "Connect",
"menu.connections.disconnectCurrent": "Disconnect from current server",
"menu.connections.disconnectAll": "Disconnect from all servers",
"menu.favorites": "Bookmarks",
"menu.favorites.add": "Add bookmark",
"menu.favorites.manage": "Manage bookmarks",
"menu.self": "Self",
"menu.rights": "Permissions",
"menu.extras": "Tools",
"menu.help": "Help",
"menu.extras.identities": "Identities",
"menu.extras.contacts": "Contacts",
"menu.extras.collectedUrls": "Collected URLs",
"menu.extras.fileTransfers": "File Transfers",
"menu.extras.inviteFriend": "Invite a friend",
"menu.extras.offlineMessages": "Offline Messages",
"menu.extras.whisperLists": "Whisper Lists",
"menu.extras.whisperHistory": "Whisper History",
"menu.extras.clientLog": "Client Log",
"menu.extras.banList": "Ban List",
"menu.extras.complaintList": "Complaint List",
"menu.extras.serverQueryLogin": "ServerQuery Login",
"menu.extras.serverLog": "Server Log",
"menu.extras.startRecording": "Start Recording",
"menu.extras.startMultitrackRecording": "Start Multitrack Recording",
"menu.extras.stopRecording": "Stop Recording",
"menu.extras.installOverwolf": "Install Overwolf",
"menu.extras.options": "Options",
"toolbar.setAway": "Set away",
"toolbar.backOnline": "Back online",
"toolbar.awayOptions": "Away options",
"toolbar.micEnable": "Enable microphone",
"toolbar.micMute": "Mute microphone",
"toolbar.micUnmute": "Unmute microphone",
"toolbar.vadSensitivity": "Voice activation sensitivity",
"toolbar.muteSound": "Mute sound (deafen)",
"toolbar.unmuteSound": "Unmute sound (undeafen)",
"toolbar.chooseOutputDevice": "Choose output device",
"toolbar.toggleTheme": "Toggle theme",
"away.setGlobal": "Set globally away",
"away.setGlobalStatus": "Set global away status",
"connect.title": "Connect",
"connect.serverAddress": "Server nickname or address:",
"connect.serverPassword": "Server password:",
"connect.nickname": "Nickname:",
"connect.phoneticNickname": "Phonetic nickname:",
"connect.identity": "Identity:",
"connect.defaultChannel": "Default channel:",
"connect.recordingProfile": "Capture profile:",
"connect.channelPassword": "Channel password:",
"connect.playbackProfile": "Playback profile:",
"connect.onetimeGrant": "One-time privilege key:",
"connect.hotkeyProfile": "Hotkey profile:",
"connect.sendMyTeamSpeakId": "Send myTeamSpeak ID",
"connect.soundPack": "Sound pack:",
"connect.more": "More",
"connect.less": "Less",
"connect.connect": "Connect",
"connect.connecting": "Connecting…",
"connect.newTab": "In new tab",
"connect.cancel": "Cancel",
"favorites.title": "🔖 myTeamSpeak Bookmarks",
"favorites.synced": "Synced Bookmarks",
"favorites.notLoggedIn": "Not logged in",
"favorites.local": "Local Bookmarks",
"favorites.unnamed": "(unnamed)",
"favorites.bookmarkName": "Bookmark name:",
"favorites.newFavoriteName": "New bookmark",
"favorites.showServerQueryClients": "Show ServerQuery clients",
"favorites.connectOnStartup": "Connect on startup",
"favorites.enableMyTeamSpeak": "Enable myTeamSpeak features",
"favorites.new": "New bookmark",
"favorites.newFolder": "New folder",
"favorites.remove": "Remove",
"favorites.ok": "OK",
"favorites.cancel": "Cancel",
"favorites.apply": "Apply",
"away.dialog.title": "Set away message",
"away.dialog.message": "Message:",
"away.dialog.template": "Template:",
"away.dialog.none": "<None>",
"away.dialog.ok": "OK",
"away.dialog.save": "Save",
"away.dialog.cancel": "Cancel",
"options.title": "Options",
"options.ok": "OK",
"options.cancel": "Cancel",
"options.notImplemented": "This setting isn't implemented yet.",
"options.section.anwendung": "Application",
"options.section.wiedergabe": "Playback",
"options.section.aufnahme": "Capture",
"options.section.design": "Appearance",
"options.section.erweiterungen": "Addons",
"options.section.hotkeys": "Hotkeys",
"options.section.whispern": "Whisper",
"options.section.downloads": "Downloads",
"options.section.chat": "Chat",
"options.section.sicherheit": "Security",
"options.section.nachrichten": "Messages",
"options.section.meldungen": "Notifications",
"options.section.sounds": "Sounds",
"app.title": "Application",
"app.subtitle": "General application settings",
"app.language": "Language",
"app.language.auto": "System default",
"app.language.de": "Deutsch",
"app.language.en": "English",
"playback.title": "Playback",
"playback.subtitle": "Change your playback settings",
"playback.profile": "Profile",
"playback.default": "Default",
"playback.device": "Playback device:",
"playback.systemDefault": "System default",
"playback.quiet": "Quiet",
"playback.loud": "Loud",
"playback.voiceVolume": "Voice volume",
"playback.playTestTone": "▶ Play test sound",
"playback.options": "Options",
"playback.autoVolume": "Automatic volume adjustment",
"playback.ownMicClicks": "Play mic clicks for own client",
"playback.otherMicClicks": "Play mic clicks for other clients",
"recording.title": "Capture",
"recording.subtitle": "Change your capture settings",
"recording.device": "Capture device:",
"recording.activation": "Activation",
"recording.pushToTalk": "Push-To-Talk",
"recording.continuous": "Continuous transmission",
"recording.voiceActivation": "Voice activation detection",
"recording.testStart": "Start test",
"recording.testStop": "Stop test",
"recording.hangoverDelay": "Delay before deactivation:",
"recording.secondsUnit": "sec",
"recording.dsp": "Digital Signal Processing",
"recording.typingAttenuation": "Typing attenuation",
"recording.echoCancellation": "Echo cancellation",
"recording.noiseSuppression": "Remove background noise",
"info.address": "Address:",
"info.version": "Version:",
"info.license": "License:",
"info.currentClients": "Current clients:",
"info.currentChannels": "Current channels:",
"info.topic": "Topic:",
"info.audioCodec": "Audio codec:",
"info.passwordProtected": "Password protected:",
"info.clients": "Clients:",
"info.yes": "Yes",
"info.no": "No",
"tree.notConnected": "Not connected",
"tree.clickToSelect": "Click to select, double-click to join",
"tree.passwordProtected": "Password protected",
"tree.privateChatWith": "Private chat with",
"tree.poke": "Poke",
"tree.channelCommander": "Channel commander",
"tree.away": "Away",
"tree.micMuted": "Microphone muted",
"tree.soundMuted": "Sound muted (deafened)",
"chat.server": "Server",
"chat.channel": "Channel",
"chat.notConnected": "Not connected",
"chat.messageChannel": "Message channel...",
"chat.messageServer": "Message server...",
"chat.messagePartner": "Message {name}...",
"chat.send": "Send",
"chat.you": "You",
"poke.title": "Poke",
"poke.optionalMessage": "Optional message...",
"poke.send": "Poke",
"poke.cancel": "Cancel",
"poke.pokedYou": "poked you",
"poke.dismiss": "Dismiss",
"connectError.dismiss": "Dismiss",
"dialog.close": "Close",
"sounds.title": "Sounds",
"sounds.subtitle": "Configure sound notifications for events",
"sounds.enable": "Enable sounds",
"sounds.volume": "Volume",
"sounds.eventEnable": "Enable this sound",
"sounds.event.connect": "Connected",
"sounds.event.disconnect": "Disconnected",
"sounds.event.clientJoin": "Client joins",
"sounds.event.clientLeave": "Client leaves",
"sounds.event.message": "Message received",
"sounds.event.poke": "Poke received",
"sounds.default": "Default",
"sounds.custom": "Custom file: {name}",
"sounds.test": "▶ Test",
"sounds.upload": "Upload",
"sounds.reset": "Reset",
"nachrichten.title": "Messages",
"nachrichten.subtitle": "Customize messages",
"nachrichten.disconnectMessage": "Disconnect:",
"nachrichten.disconnectMessagePlaceholder": "leaving",
"nachrichten.presetsTitle": "Preset messages",
"nachrichten.type": "Type",
"nachrichten.type.away": "Away",
"nachrichten.templateName": "Template name",
"nachrichten.message": "Message",
"nachrichten.add": "Add",
"nachrichten.delete": "Delete",
},
de,
en,
"zh-CN": zhCN,
fa,
};
function detectSystemLang(): Lang {
const nav = typeof navigator !== "undefined" ? navigator.language : "en";
return nav?.toLowerCase().startsWith("de") ? "de" : "en";
const normalized = nav?.toLowerCase() ?? "en";
if (normalized.startsWith("zh")) return "zh-CN";
if (normalized.startsWith("fa")) return "fa";
return normalized.startsWith("de") ? "de" : "en";
}
export function resolveLang(pref: LangPref): Lang {
@@ -459,7 +37,7 @@ export function resolveLang(pref: LangPref): Lang {
export function loadLangPref(): LangPref {
const raw = localStorage.getItem(LANGUAGE_KEY);
return raw === "de" || raw === "en" || raw === "auto" ? raw : "auto";
return raw === "de" || raw === "en" || raw === "zh-CN" || raw === "fa" || raw === "auto" ? raw : "auto";
}
export function saveLangPref(pref: LangPref) {
@@ -488,6 +66,11 @@ export function LanguageProvider({ children }: { children: ReactNode }) {
saveLangPref(langPref);
}, [langPref]);
useEffect(() => {
document.documentElement.lang = lang;
document.documentElement.dir = RTL_LANGS.has(lang) ? "rtl" : "ltr";
}, [lang]);
const t: TranslateFn = (key, vars) =>
interpolate(translations[lang][key] ?? translations.en[key] ?? key, vars);
+114
View File
@@ -0,0 +1,114 @@
/** TeamSpeak / TeaSpeak / GreenTeaSpeak channel spacer helpers.
*
* Mirrors GreenTeaSpeak `ChannelTreeBuilder.parseChannelName` / oldclient
* `ChannelNameParser`: only root channels, tag must contain "spacer", alignment
* prefix l/c/r/* (empty → left), unique id after "spacer" may be any string
* (e.g. `[*spacer01]`, `[cspacerabc]`).
*/
export type SpacerAlignment = "left" | "center" | "right" | "repetitive";
export type ParsedChannelName = {
/** Label shown in the tree (tag stripped for spacers). */
name: string;
alignment: SpacerAlignment | null;
};
/** Pure line fillers that look better as a CSS rule than raw `---` / `***`. */
const LINE_FILLER_RE = /^[\-\u2013\u2014\u2500\u2501\u2550=\*\.·_\s]+$/;
/** Corners / verticals of box-frame spacers (not pure horizontal fills). */
const BOX_FRAME_RE = /[╔╗╚╝╒╓╕╖╘╙╛╜┌┐└┘├┤┬┴┼║│╟╢╤╧╪╫╬╒╓╕╖╘╙╛╜]/;
export function parseChannelName(name: string, isRoot: boolean): ParsedChannelName {
if (!isRoot || name.length < 3 || name.charAt(0) !== "[") {
return { name, alignment: null };
}
const end = name.indexOf("]");
if (end === -1) return { name, alignment: null };
let options = name.substring(1, end);
const spacerIndex = options.indexOf("spacer");
if (spacerIndex === -1) return { name, alignment: null };
options = options.substring(0, spacerIndex);
if (options.length === 0) {
options = "l";
} else if (options.length > 1) {
options = options.charAt(0);
}
const alignmentByPrefix: Record<string, SpacerAlignment> = {
l: "left",
c: "center",
r: "right",
"*": "repetitive",
};
const alignment = alignmentByPrefix[options];
if (!alignment) return { name, alignment: null };
return {
name: name.substring(end + 1),
alignment,
};
}
/** Same as oldclient `ChannelName`: repeat filler until it fills the tree row. */
export function expandRepetitiveSpacerName(name: string): string {
if (!name.length) return name;
let expanded = name;
while (expanded.length < 8000) {
expanded += expanded;
}
return expanded;
}
export function isLineSpacerFiller(text: string): boolean {
const trimmed = text.trim();
return trimmed.length > 0 && LINE_FILLER_RE.test(trimmed);
}
export function hasBoxArtChars(text: string): boolean {
return BOX_FRAME_RE.test(text);
}
export function spacerDisplayName(rawName: string, isRoot: boolean): {
label: string;
alignment: SpacerAlignment | null;
isSpacer: boolean;
/** Repetitive `---` / `***` / `═══` → render as CSS line, not character soup. */
isLine: boolean;
/** Box-frame spacers (╔╗ / ═) need monospace for GTS look. */
isBoxArt: boolean;
} {
const parsed = parseChannelName(rawName, isRoot);
if (!parsed.alignment) {
return {
label: rawName,
alignment: null,
isSpacer: false,
isLine: false,
isBoxArt: false,
};
}
const isBoxArt = hasBoxArtChars(parsed.name);
const isLine =
!isBoxArt &&
isLineSpacerFiller(parsed.name) &&
(parsed.alignment === "repetitive" || parsed.alignment === "center");
let label = parsed.name;
if (parsed.alignment === "repetitive" && !isLine) {
label = expandRepetitiveSpacerName(parsed.name);
}
return {
label,
alignment: parsed.alignment,
isSpacer: true,
isLine,
isBoxArt,
};
}
+622
View File
@@ -0,0 +1,622 @@
{
"menu.connections": "Verbindungen",
"menu.connections.connect": "Verbinden",
"menu.connections.disconnectCurrent": "Aktuelle Verbindung trennen",
"menu.connections.disconnectAll": "Alle Verbindungen trennen",
"menu.favorites": "Favoriten",
"menu.favorites.add": "Zu Favoriten hinzufügen",
"menu.favorites.manage": "Favoriten verwalten",
"menu.self": "Selbst",
"menu.rights": "Rechte",
"menu.rights.serverGroups": "Server-Gruppen bearbeiten...",
"menu.rights.channelGroups": "Channel-Gruppen bearbeiten...",
"menu.rights.serverPermissions": "Server-Rechte bearbeiten...",
"menu.rights.channelPermissions": "Channel-Rechte bearbeiten...",
"menu.rights.overview": "Rechteübersicht...",
"menu.rights.myRights": "Eigene Rechte anzeigen",
"menu.extras": "Extras",
"menu.help": "Hilfe",
"menu.help.about": "Über WebSpeak3",
"menu.help.github": "GitHub",
"menu.help.changelog": "Changelog",
"menu.help.translate": "Mitübersetzen (Weblate)",
"menu.extras.identities": "Identitäten",
"menu.extras.contacts": "Kontakte",
"menu.extras.collectedUrls": "Gesammelte URLs",
"menu.extras.inviteFriend": "Freund einladen",
"menu.extras.whisperLists": "Whisperlisten",
"menu.extras.whisperHistory": "Whisper Verlauf",
"menu.extras.clientLog": "Client Protokoll",
"menu.extras.banList": "Bannliste",
"menu.extras.complaintList": "Beschwerdeliste",
"menu.extras.offlineMessages": "Offline Nachrichten",
"menu.extras.serverQueryLogin": "ServerQuery Login",
"menu.extras.serverLog": "Server Protokoll",
"menu.extras.startRecording": "Aufnahme starten",
"menu.extras.startMultitrackRecording": "Start Multitrack Recording",
"menu.extras.stopRecording": "Aufnahme beenden",
"menu.extras.options": "Optionen",
"menu.extras.feedback": "Feedback geben",
"feedback.fab.nudge": "Was denkst du über WebSpeak3? Feedback ist willkommen!",
"donate.label": "Spenden",
"donate.title": "WebSpeak3 auf Ko-fi unterstützen",
"pwa.updateAvailable": "Neue Version verfügbar",
"pwa.reload": "Neu laden",
"feedback.dialog.title": "Feedback",
"feedback.dialog.intro": "Melde einen Fehler oder teile eine Idee zur Weiterentwicklung von WebSpeak3 mit.",
"feedback.dialog.category": "Kategorie",
"feedback.dialog.category.bug": "Fehler",
"feedback.dialog.category.idea": "Idee",
"feedback.dialog.category.report": "Meldung (Verstoß/Missbrauch)",
"feedback.dialog.category.other": "Sonstiges",
"feedback.dialog.reportHint": "Meldungen bleiben privat und werden nie als GitHub-Issue veröffentlicht. Gib bei Bedarf den betroffenen Server mit an.",
"feedback.dialog.message": "Nachricht",
"feedback.dialog.messagePlaceholder": "Was ist passiert, oder was schlägst du vor?",
"feedback.dialog.email": "E-Mail (optional, für Rückfragen)",
"feedback.dialog.publishAsIssue": "Als öffentliches GitHub-Issue veröffentlichen",
"feedback.dialog.publishAsIssueHint": "Ohne Haken bleibt dein Feedback privat und geht nur an den Betreiber.",
"feedback.dialog.publishAsIssueHintBug": "Fehlermeldungen werden immer als öffentliches GitHub-Issue veröffentlicht.",
"feedback.dialog.send": "Senden",
"feedback.dialog.cancel": "Abbrechen",
"restartNotice.title": "Kurze Unterbrechung",
"restartNotice.body": "Der Server wird gleich kurz neu gestartet. Deine Verbindung wird dabei kurz unterbrochen.",
"restartNotice.ack": "Verstanden",
"menu.extras.tos": "Nutzungsbedingungen",
"tos.title": "Nutzungsbedingungen für client.webspeak3.de",
"tos.rule1": "Dieser Client dient der privaten, nicht-kommerziellen Nutzung von TeamSpeak-/TeaSpeak-/GreenTeaSpeak-Servern über den Browser.",
"tos.rule2": "Verboten sind insbesondere: Straftaten jeder Art, Belästigung und Hassrede, Spam und Flooding, Störung des Dienstes sowie die Umgehung von Sperren.",
"tos.rule3": "Bei Verstößen kann der Zugang ohne Vorwarnung gesperrt werden; schwerwiegende Fälle werden ggf. an die zuständigen Behörden gemeldet.",
"tos.rule4Pre": "Zur Betriebssicherheit und Missbrauchserkennung werden Verbindungen protokolliert (Serveradresse, Servername, Zeitpunkt) und nach 90 Tagen automatisch gelöscht – siehe ",
"tos.rule4Post": ".",
"tos.privacyLinkText": "Datenschutzerklärung",
"tos.rule5Pre": "Bei Missbrauch oder Beschwerden: siehe ",
"tos.rule5Post": ".",
"tos.legalLinkText": "Impressum",
"tos.rule6": "Mit Klick auf „Akzeptieren\" stimmst du diesen Bedingungen zu. Die Zustimmung wird nur lokal in deinem Browser gespeichert; bei Regeländerungen wirst du erneut gefragt.",
"tos.accept": "Akzeptieren",
"tos.close": "Schließen",
"feedback.dialog.sending": "Wird gesendet…",
"feedback.dialog.success": "Danke für dein Feedback!",
"feedback.dialog.successWithIssue": "Danke! Issue erstellt:",
"feedback.dialog.error": "Senden fehlgeschlagen. Bitte später erneut versuchen.",
"toolbar.setAway": "Als abwesend markieren",
"toolbar.backOnline": "Wieder online",
"toolbar.awayOptions": "Abwesenheitsoptionen",
"toolbar.whisper": "Whisper-Ziele",
"whisper.channels": "Channels",
"whisper.clients": "Clients",
"whisper.clearAll": "Alle Whisper-Ziele entfernen",
"toolbar.micEnable": "Mikrofon aktivieren",
"toolbar.micMute": "Mikrofon stummschalten",
"toolbar.micUnmute": "Mikrofon aktivieren (unmute)",
"toolbar.vadSensitivity": "Empfindlichkeit der Sprachaktivierung",
"toolbar.muteSound": "Ton stummschalten (Ausgabe stumm)",
"toolbar.unmuteSound": "Ton aktivieren (Ausgabe an)",
"toolbar.chooseOutputDevice": "Wiedergabegerät wählen",
"toolbar.toggleTheme": "Design wechseln",
"away.setGlobal": "Global abwesend setzen",
"away.setGlobalStatus": "Abwesenheit-Status global setzen",
"connect.title": "Verbinden",
"connect.novaSubtitle": "WebSpeak3 läuft komplett im Browser — kein Download nötig",
"connect.serverAddress": "Server Nickname oder Adresse:",
"connect.serverPassword": "Server Passwort:",
"connect.nickname": "Nickname:",
"connect.phoneticNickname": "Phonetischer Nickname:",
"connect.identity": "Identität:",
"connect.defaultChannel": "Standard Channel:",
"connect.recordingProfile": "Aufnahmeprofil:",
"connect.channelPassword": "Channel Passwort:",
"connect.playbackProfile": "Wiedergabeprofil:",
"connect.onetimeGrant": "Einmalige Berechtigung:",
"connect.serverType": "Server-Typ:",
"connect.serverType.auto": "Auto",
"connect.serverType.teamspeak": "TeamSpeak",
"connect.serverType.teaspeak": "TeaSpeak",
"connect.hotkeyProfile": "Hotkeyprofil:",
"connect.soundPack": "Sound Pack:",
"connect.more": "Mehr",
"connect.less": "Weniger",
"connect.connect": "Verbinden",
"connect.connecting": "Verbinde…",
"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",
"collectedUrls.count": "Anzahl",
"collectedUrls.lastSeen": "Zuletzt erwähnt",
"collectedUrls.mentionedBy": "Erwähnt von",
"collectedUrls.clearList": "Liste löschen",
"inviteFriend.title": "Freund einladen",
"inviteFriend.type": "Art der Einladung",
"inviteFriend.includeChannel": "Aktuellen Channel einfügen",
"inviteFriend.link": "Link",
"inviteFriend.addPermissionKey": "Berechtigungsschlüssel hinzufügen",
"inviteFriend.copyToClipboard": "In Zwischenablage kopieren",
"inviteFriend.copied": "Kopiert!",
"clientLog.title": "Client Protokoll",
"clientLog.level.critical": "Kritisch",
"clientLog.level.error": "Fehler",
"clientLog.level.warning": "Warnungen",
"clientLog.level.info": "Info",
"clientLog.level.debug": "Debug",
"clientLog.search": "Suchen:",
"clientLog.filter": "Filter:",
"clientLog.caseSensitive": "Groß-/Kleinschreibung",
"clientLog.mark": "Markieren",
"whisperHistory.title": "Whisper Verlauf - {server}",
"whisperHistory.empty": "Kein Whisper-Verlauf vorhanden.",
"whisperHistory.started": "Whispern an: {targets}",
"whisperHistory.stopped": "Whispern beendet",
"whisperHistory.clear": "Löschen",
"whisperHistory.options": "Optionen",
"whisperLists.title": "Whisperlisten",
"whisperLists.namePlaceholder": "Name der Liste",
"whisperLists.saveCurrent": "Aktuelle Auswahl speichern",
"whisperLists.itemDetail": "{channels} Channel, {clients} Clients",
"whisperLists.activate": "Aktivieren",
"whisperLists.delete": "Löschen",
"whisperLists.empty": "Keine Whisperlisten gespeichert. Wähle Whisper-Ziele aus und speichere sie hier als Liste.",
"identities.title": "Identitäten",
"identities.activate": "Aktivieren",
"identities.add": "Neue Identität",
"identities.delete": "Löschen",
"identities.newName": "Neue Identität",
"identities.generated": "Erstellt",
"identities.pending": "Wird bei der nächsten Verbindung erstellt",
"identities.listLabel": "Lokale Identitäten",
"identities.name": "Identität Name:",
"identities.phoneticNickname": "Phonetischer Nickname:",
"identities.uniqueId": "Eindeutige ID:",
"identities.unknown": "Unbekannt",
"identities.setDefault": "Standard",
"identities.isDefault": "Aktuell als Standard verwendet",
"identities.export": "Exportieren",
"identities.import": "Importieren",
"connectionInfo.clientTitle": "Verbindungsinformationen - {name}",
"connectionInfo.serverTitle": "Serververbindungsinformationen",
"connectionInfo.loading": "Wird geladen…",
"connectionInfo.unavailable": "Keine Antwort vom Server (fehlende Berechtigung?).",
"connectionInfo.ping": "Ping:",
"connectionInfo.connectedSince": "Verbunden seit:",
"connectionInfo.uptime": "Uptime:",
"connectionInfo.name": "Name:",
"connectionInfo.avgPing": "Mittlerer Ping:",
"connectionInfo.avgPacketLoss": "Mittlerer Paketverlust:",
"connectionInfo.incoming": "Eingehend",
"connectionInfo.outgoing": "Ausgehend",
"connectionInfo.packetsTransferred": "Übertragene Pakete",
"connectionInfo.bytesTransferred": "Übertragene Bytes",
"connectionInfo.bandwidthLastSecond": "Bandbreite letzte Sekunde",
"connectionInfo.bandwidthLastMinute": "Bandbreite letzte Minute",
"connectionInfo.ftBandwidth": "Dateitransfer Bandbreite",
"connectionInfo.ftBytes": "Dateitransfer übertragene Bytes",
"connectionInfo.ip": "IP-Adresse:",
"connectionInfo.packetLoss": "Paketverlust:",
"connectionInfo.packetsSent": "Pakete gesendet:",
"connectionInfo.packetsReceived": "Pakete empfangen:",
"connectionInfo.bytesSent": "Daten gesendet:",
"connectionInfo.bytesReceived": "Daten empfangen:",
"connectionInfo.bandwidthSent": "Bandbreite gesendet:",
"connectionInfo.bandwidthReceived": "Bandbreite empfangen:",
"menu.self.recordingProfile": "Aufnahmeprofil",
"menu.self.playbackProfile": "Wiedergabeprofil",
"menu.self.hotkeyProfile": "Hotkeyprofil",
"menu.self.soundPack": "Sound Pack",
"menu.self.setAway": "Abwesend setzen",
"menu.self.enableMic": "Mikrofon aktivieren",
"menu.self.disableMic": "Mikrofon ausschalten",
"menu.self.muteOutput": "Lautsprecher/Kopfhörer ausschalten",
"menu.self.unmuteOutput": "Lautsprecher/Kopfhörer einschalten",
"menu.self.changeNickname": "Nickname ändern",
"menu.self.requestTalkPower": "Talk Power anfordern",
"menu.self.setAvatar": "Avatar setzen",
"menu.self.setPhoneticNickname": "Phonetischen Nicknamen setzen",
"menu.self.connectionInfo": "Verbindungsinformationen",
"contacts.title": "Kontakte",
"contacts.addOnlineClient": "Online-Client auswählen...",
"contacts.add": "Hinzufügen",
"contacts.remove": "Entfernen",
"contacts.empty": "Noch keine Kontakte.",
"contacts.customName": "Benutzerdefinierter Name:",
"contacts.category.acquaintance": "Bekannter",
"contacts.category.blocked": "Blockiert",
"contacts.category.friend": "Freund",
"contacts.phoneticName": "Phonetischer Name:",
"contacts.show": "Anzeige",
"contacts.ignore": "Ignorieren",
"contacts.unignore": "Nicht mehr ignorieren",
"contacts.whisper": "Whispern",
"contacts.preferences": "Voreinstellungen",
"favorites.title": "🔖 myTeamSpeak Favoriten",
"favorites.synced": "Synchronisierte Favoriten",
"favorites.notLoggedIn": "Nicht angemeldet",
"favorites.local": "Lokale Favoriten",
"favorites.unnamed": "(unbenannt)",
"favorites.bookmarkName": "Bookmark Name:",
"favorites.newFavoriteName": "Neuer Favorit",
"favorites.showServerQueryClients": "ServerQuery Clients anzeigen",
"favorites.connectOnStartup": "Beim Start verbinden",
"favorites.new": "Neuer Favorit",
"favorites.newFolder": "Neuer Ordner",
"favorites.remove": "Entfernen",
"favorites.ok": "OK",
"favorites.cancel": "Abbrechen",
"favorites.apply": "Anwenden",
"away.dialog.title": "Abwesenheit-Nachricht setzen",
"away.dialog.message": "Nachricht:",
"away.dialog.template": "Vorlage:",
"away.dialog.none": "<Keine>",
"away.dialog.ok": "OK",
"away.dialog.save": "Speichern",
"away.dialog.cancel": "Abbrechen",
"options.title": "Optionen",
"options.ok": "OK",
"options.cancel": "Abbrechen",
"options.notImplemented": "Diese Einstellungen sind noch nicht implementiert.",
"options.section.anwendung": "Anwendung",
"options.section.wiedergabe": "Wiedergabe",
"options.section.aufnahme": "Aufnahme",
"options.section.design": "Design",
"design.subtitle": "Wähle das Erscheinungsbild der Anwendung.",
"design.theme.standard": "Standard",
"design.theme.standard.desc": "Das originale WebSpeak3-Design.",
"design.theme.nova": "Nova",
"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",
"design.custom.edit": "Bearbeiten",
"design.custom.duplicate": "Duplizieren",
"design.custom.export": "Exportieren",
"design.custom.delete": "Löschen",
"design.custom.deleteConfirm": "Dieses Design wirklich löschen?",
"design.custom.newTitle": "Neues Design erstellen",
"design.custom.editTitle": "Design bearbeiten",
"design.custom.name": "Name",
"design.custom.base": "Basis-Layout",
"design.custom.css": "CSS",
"design.custom.hint": "Dieses CSS wird geladen, solange das Design aktiv ist. Nutze .ts-app { ... } und die vorhandenen CSS-Variablen (--accent, --bg, --text, --border, ...), um Farben, Radien und Abstände anzupassen - mit .ts-app .irgendeine-klasse { display: none } oder order lässt sich auch das Layout verändern.",
"design.custom.save": "Speichern",
"design.custom.copyOf": "Kopie von {name}",
"design.custom.importError": "Diese Datei konnte nicht als WebSpeak3-Design gelesen werden.",
"options.section.erweiterungen": "Erweiterungen",
"options.section.hotkeys": "Hotkeys",
"options.section.whispern": "Whispern",
"options.section.downloads": "Downloads",
"options.section.chat": "Chat",
"options.section.sicherheit": "Sicherheit",
"options.section.nachrichten": "Nachrichten",
"options.section.meldungen": "Meldungen",
"options.section.sounds": "Sounds",
"app.title": "Anwendung",
"app.subtitle": "Allgemeine Anwendungseinstellungen",
"app.language": "Sprache",
"app.language.auto": "Systemvorgabe",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? Hilf mit auf Weblate →",
"playback.title": "Wiedergabe",
"playback.subtitle": "Ändern der Wiedergabeeinstellungen",
"playback.profile": "Profile",
"playback.default": "Standard",
"playback.device": "Wiedergabegerät:",
"playback.systemDefault": "System default",
"playback.quiet": "Leise",
"playback.loud": "Laut",
"playback.voiceVolume": "Sprachlautstärke",
"playback.playTestTone": "▶ Test Ton abspielen",
"playback.options": "Optionen",
"playback.autoVolume": "Automatische Lautstärkeanpassung",
"playback.ownMicClicks": "Eigener Client spielt Mikro Klicks",
"playback.otherMicClicks": "Andere Clients spielen Mikro Klicks",
"recording.title": "Aufnahme",
"recording.subtitle": "Ändern der Aufnahmeeinstellungen",
"recording.device": "Aufnahmegerät:",
"recording.activation": "Aktivierung",
"recording.pushToTalk": "Push-To-Talk",
"recording.continuous": "Dauersenden",
"recording.voiceActivation": "Automatische Spracherkennung",
"recording.testStart": "Test starten",
"recording.testStop": "Test beenden",
"recording.hangoverDelay": "Abschaltverzögerung:",
"recording.secondsUnit": "Sek",
"recording.dsp": "Digital Signal Processing",
"recording.typingAttenuation": "Typing attenuation",
"recording.echoCancellation": "Echo Dämpfung",
"recording.noiseSuppression": "Hintergrundgeräusche entfernen",
"recording.autoGainControl": "Automatische Verstärkung",
"info.address": "Adresse:",
"info.version": "Version:",
"info.license": "Lizenz:",
"info.currentClients": "Aktuelle Clients:",
"info.currentChannels": "Aktuelle Channel:",
"info.topic": "Topic:",
"info.audioCodec": "Audio Codec:",
"info.spacer": "Spacer:",
"info.rawName": "Rohname:",
"info.passwordProtected": "Passwort geschützt:",
"info.clients": "Clients:",
"info.country": "Land:",
"info.muted": "Mikrofon stumm:",
"info.outputMuted": "Lautsprecher stumm:",
"info.serverGroups": "Servergruppen:",
"info.yes": "Ja",
"info.no": "Nein",
"tree.notConnected": "Nicht verbunden",
"tree.clickToSelect": "Klicken zum Auswählen, Doppelklick zum Beitreten",
"tree.clickToJoin": "Doppelklick zum Beitreten",
"tree.joinNotConnected": "Nicht verbunden — Channel-Wechsel nicht möglich",
"tree.passwordProtected": "Passwortgeschützt",
"tree.privateChatWith": "Privater Chat mit",
"tree.poke": "Anstupsen",
"tree.channelCommander": "Channel Commander",
"tree.away": "Abwesend",
"tree.micMuted": "Mikrofon stummgeschaltet",
"tree.talking": "Spricht",
"tree.noTalkPower": "Keine Redeerlaubnis in diesem Channel",
"tree.soundMuted": "Ton stummgeschaltet (deafened)",
"tree.streaming": "Überträgt einen Stream",
"publish.alpha": "Alpha",
"publish.alphaTitle": "Alpha – instabil, kann sich jederzeit ändern oder brechen",
"publish.demoUnavailable": "Übertragen ist in der Demo nicht verfügbar – dafür braucht es einen echten TeamSpeak-6-Server.",
"publish.alphaNote": "Streaming ist Alpha. Es spricht TeamSpeak 6s Stream/Call-Protokoll, das nicht dokumentiert ist – Verbindungsaufbau, Bildqualität und Zuschauerverwaltung können fehlschlagen oder sich ohne Vorankündigung ändern. Nicht für produktive Nutzung gedacht.",
"publish.start": "Bildschirm übertragen",
"publish.stop": "Übertragung beenden",
"publish.title": "Deine Übertragung",
"publish.screen": "Bildschirm",
"publish.starting": "Wird gestartet…",
"publish.viewers": "{count} Zuschauer",
"publish.request.allow": "Zulassen",
"publish.request.deny": "Ablehnen",
"publish.request.block": "Sperren",
"publish.request.blockHint": "Ablehnen und nicht erneut fragen",
"publish.dialog.title": "Stream-Einstellungen",
"publish.dialog.basic": "Grundeinstellungen",
"publish.dialog.advanced": "Erweiterte Einstellungen",
"publish.dialog.golive": "Live gehen",
"publish.dialog.cancel": "Zurück",
"publish.preset": "Voreinstellung",
"publish.preset.presentation": "Präsentation",
"publish.audio": "Audio aufnehmen",
"publish.privacy": "Privatsphäre",
"publish.privacy.public": "Öffentlich",
"publish.privacy.contacts": "Kontakte",
"publish.privacy.private": "Privat",
"publish.resolution": "Auflösung",
"publish.res.source": "Quelle",
"publish.fps": "FPS",
"publish.bitrate": "Bitrate",
"publish.audioBitrate": "Audio-Bitrate [Kbps]",
"publish.viewerLimit": "Zuschauerbegrenzung",
"publish.mode": "Verbindungsmodus",
"publish.mode.p2p": "P2P",
"publish.mode.server": "Server",
"publish.mode.serverUnavailable": "Der Server-Modus läuft über TS6s SFU und ist noch nicht implementiert.",
"stream.untitled": "Stream",
"stream.stop": "Stream schließen",
"stream.live": "Live",
"stream.state.new": "Warte auf Angebot…",
"stream.state.connecting": "Verbinde…",
"stream.state.connected": "Live",
"stream.state.disconnected": "Verbindung unterbrochen",
"stream.state.failed": "Verbindung fehlgeschlagen",
"stream.state.closed": "Beendet",
"chat.server": "Server",
"chat.channel": "Channel",
"chat.notConnected": "Nicht verbunden",
"chat.messageChannel": "Nachricht an Channel...",
"chat.messageServer": "Nachricht an Server...",
"chat.messagePartner": "Nachricht an {name}...",
"chat.send": "Senden",
"chat.you": "Du",
"serverLog.clientJoin": "{client} loggte sich in Channel \"{channel}\" ein",
"serverLog.clientLeave": "{client} hat die Verbindung getrennt (Verlassen)",
"serverLog.clientChannelSwitch": "{client} ging von Channel \"{fromChannel}\" in \"{toChannel}\"",
"serverLog.clientChannelGroupAssigned": "Die Channel-Gruppe \"{group}\" wurde {client} zugewiesen",
"serverLog.channelCreated": "Channel \"{channel}\" wurde erstellt",
"serverLog.channelDeleted": "Channel \"{channel}\" wurde gelöscht",
"serverLog.channelEdited": "Channel \"{channel}\" wurde bearbeitet",
"serverLog.serverEdited": "Die Servereinstellungen wurden geändert",
"serverLog.permissionError": "Fehlende Berechtigung: {action}",
"poke.title": "Anstupsen",
"poke.optionalMessage": "Optionale Nachricht...",
"poke.send": "Anstupsen",
"poke.cancel": "Abbrechen",
"poke.pokedYou": "hat dich angestupst",
"poke.dismiss": "Schließen",
"kick.title": "Kicken:",
"kick.reasonPlaceholder": "Grund (optional)...",
"kick.confirm": "Kicken",
"kick.cancel": "Abbrechen",
"ban.title": "Bannen:",
"ban.reasonPlaceholder": "Grund (optional)...",
"ban.duration": "Dauer:",
"ban.durationPermanent": "Permanent",
"ban.duration1h": "1 Stunde",
"ban.duration1d": "1 Tag",
"ban.duration1w": "1 Woche",
"ban.confirm": "Bannen",
"ban.cancel": "Abbrechen",
"serverEdit.title": "Virtuellen Server editieren",
"serverEdit.tab.host": "Host",
"serverEdit.tab.misc": "Verschiedenes",
"serverEdit.tab.transmission": "Übertragung",
"serverEdit.tab.antiflood": "Anti-Flood",
"serverEdit.tab.security": "Sicherheit",
"serverEdit.tab.log": "Protokoll",
"serverEdit.name": "Servername:",
"serverEdit.welcomeMessage": "Willkommensnachricht:",
"serverEdit.clearPassword": "Serverpasswort entfernen",
"serverEdit.newPassword": "Neues Serverpasswort:",
"serverEdit.hostmessage": "Hostnachricht:",
"serverEdit.hostmessageMode": "Anzeigemodus:",
"serverEdit.hostmessageMode.none": "Nicht anzeigen",
"serverEdit.hostmessageMode.log": "Im Protokoll anzeigen",
"serverEdit.hostmessageMode.modal": "Als Dialog anzeigen",
"serverEdit.hostmessageMode.modalquit": "Als Dialog anzeigen und trennen",
"serverEdit.hostbannerUrl": "Host-Banner URL:",
"serverEdit.hostbannerGfxUrl": "Host-Banner Bild-URL:",
"serverEdit.hostbannerGfxInterval": "Banner-Aktualisierung (Sekunden):",
"serverEdit.hostbannerMode": "Banner-Anpassung:",
"serverEdit.hostbannerMode.noadjust": "Nicht anpassen",
"serverEdit.hostbannerMode.adjustignoreaspect": "Anpassen (Seitenverhältnis ignorieren)",
"serverEdit.hostbannerMode.adjustkeepaspect": "Anpassen (Seitenverhältnis beibehalten)",
"serverEdit.hostbuttonTooltip": "Host-Button Tooltip:",
"serverEdit.hostbuttonUrl": "Host-Button URL:",
"serverEdit.hostbuttonGfxUrl": "Host-Button Bild-URL:",
"serverEdit.maxClients": "Maximale Clientanzahl:",
"serverEdit.nickname": "Server-Nickname:",
"serverEdit.phoneticName": "Phonetischer Name:",
"serverEdit.codecEncryptionMode": "Sprachverschlüsselung:",
"serverEdit.codecEncryptionMode.perchannel": "Pro Channel konfigurierbar",
"serverEdit.codecEncryptionMode.forcedoff": "Global deaktiviert",
"serverEdit.codecEncryptionMode.forcedon": "Global aktiviert",
"serverEdit.unchanged": "Unverändert lassen",
"serverEdit.save": "Speichern",
"serverEdit.cancel": "Abbrechen",
"serverProtocolLog.title": "Server Protokoll",
"serverProtocolLog.empty": "Keine Protokolleinträge vorhanden.",
"banList.title": "Bannliste",
"banList.empty": "Keine Bans vorhanden.",
"banList.name": "Name",
"banList.ip": "IP",
"banList.created": "Erstellt",
"banList.duration": "Dauer",
"banList.invoker": "Von",
"banList.reason": "Grund",
"banList.permanent": "Permanent",
"banList.delete": "Löschen",
"banList.deleteAll": "Alle löschen",
"complainList.title": "Beschwerdeliste",
"complainList.empty": "Keine Beschwerden vorhanden.",
"complainList.target": "Ziel",
"complainList.from": "Von",
"complainList.message": "Nachricht",
"complainList.timestamp": "Zeitpunkt",
"offlineMessages.title": "Offline Nachrichten",
"offlineMessages.empty": "Keine Nachrichten vorhanden.",
"offlineMessages.subject": "Betreff",
"offlineMessages.from": "Von",
"offlineMessages.timestamp": "Zeitpunkt",
"offlineMessages.targetUid": "Ziel-UID",
"offlineMessages.message": "Nachricht",
"offlineMessages.send": "Senden",
"offlineMessages.new": "Neue Nachricht",
"offlineMessages.markRead": "Als gelesen markieren",
"offlineMessages.backToList": "Zurück zur Liste",
"dialog.cancel": "Abbrechen",
"groupAssign.channelTitle": "Channel-Gruppe zuweisen",
"groupAssign.serverTitle": "Server-Gruppe zuweisen",
"groupAssign.empty": "Keine Gruppen vorhanden.",
"groupAssign.clickToRemove": "Klicken zum Entfernen",
"serverQueryLogin.username": "Benutzername",
"serverQueryLogin.password": "Passwort",
"serverQueryLogin.login": "Anmelden",
"permissionOverview.title": "Eigene Rechte",
"permissionOverview.empty": "Keine Rechte gefunden.",
"permissionOverview.name": "Recht",
"permissionOverview.value": "Wert",
"permissionOverview.negated": "Negiert",
"permissionOverview.skip": "Skip",
"permsEditor.title": "Rechte",
"permsEditor.tab.server": "Server Gruppen",
"permsEditor.tab.client": "Client Rechte",
"permsEditor.tab.channel": "Channel Rechte",
"permsEditor.tab.channelgroup": "Channel Gruppen",
"permsEditor.tab.channelclient": "Channel Client Rechte",
"permsEditor.clientDbId": "Eindeutige Client-DB-ID:",
"permsEditor.load": "Laden",
"permsEditor.pickOnlineClient": "Oder Online-Client wählen...",
"permsEditor.pickTarget": "Bitte links eine Gruppe/einen Channel wählen bzw. eine Client-ID eingeben.",
"permsEditor.addPermission": "Hinzufügen",
"permsEditor.searchPermission": "Recht suchen...",
"dialog.ok": "OK",
"channelContext.join": "Channel wechseln",
"channelContext.files": "Dateien...",
"fileBrowser.title": "Dateitransfers",
"fileBrowser.up": "Nach oben",
"fileBrowser.refresh": "Aktualisieren",
"fileBrowser.newFolder": "Neuer Ordner",
"fileBrowser.upload": "Hochladen",
"fileBrowser.folderName": "Ordnername",
"fileBrowser.empty": "Dieser Ordner ist leer.",
"fileBrowser.name": "Name",
"fileBrowser.size": "Größe",
"fileBrowser.modified": "Geändert",
"fileBrowser.download": "Herunterladen",
"fileBrowser.rename": "Umbenennen",
"fileBrowser.delete": "Löschen",
"fileBrowser.deleteConfirm": "Wirklich löschen?",
"fileBrowser.uploading": "Wird hochgeladen...",
"fileBrowser.downloading": "Wird heruntergeladen...",
"serverContext.icons": "Server-Icons...",
"serverIcons.title": "Server-Icons verwalten",
"serverIcons.upload": "Icon hochladen",
"serverIcons.iconId": "Icon-ID",
"serverIcons.empty": "Keine Icons vorhanden.",
"clientContext.privateChat": "Privater Chat",
"clientContext.poke": "Anstupsen",
"clientContext.watchStream": "Stream ansehen",
"clientContext.moveTo": "Verschieben in…",
"clientContext.copyName": "Namen kopieren",
"clientContext.connectionInfo": "Verbindungsinformationen anzeigen",
"clientContext.addWhisperTarget": "Als Whisper-Ziel hinzufügen",
"clientContext.removeWhisperTarget": "Als Whisper-Ziel entfernen",
"clientContext.assignChannelGroup": "Channel-Gruppe zuweisen",
"clientContext.assignServerGroup": "Server-Gruppe zuweisen",
"clientContext.kickChannel": "Aus dem Channel kicken",
"clientContext.kick": "Vom Server kicken",
"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",
"serverContext.disconnect": "Verbindung trennen",
"connectError.dismiss": "Schließen",
"dialog.close": "Schließen",
"sounds.title": "Sounds",
"sounds.subtitle": "Sound-Benachrichtigungen für Ereignisse festlegen",
"sounds.enable": "Sounds aktivieren",
"sounds.volume": "Lautstärke",
"sounds.eventEnable": "Diesen Sound aktivieren",
"sounds.event.connect": "Verbunden",
"sounds.event.disconnect": "Getrennt",
"sounds.event.clientJoin": "Client kommt",
"sounds.event.clientLeave": "Client geht",
"sounds.event.message": "Nachricht empfangen",
"sounds.event.poke": "Anstupsen erhalten",
"sounds.default": "Standard",
"sounds.custom": "Eigene Datei: {name}",
"sounds.test": "▶ Testen",
"sounds.upload": "Hochladen",
"sounds.reset": "Zurücksetzen",
"sounds.importSoundpack": "Soundpack importieren (.ts3soundpack)",
"sounds.importResult": "{matched} Sound(s) übernommen, {unmatched} Datei(en) nicht zugeordnet",
"nachrichten.title": "Nachrichten",
"nachrichten.subtitle": "Nachrichten anpassen",
"nachrichten.disconnectMessage": "Verbindung trennen:",
"nachrichten.disconnectMessagePlaceholder": "verlassen",
"nachrichten.presetsTitle": "Voreingestellte Nachrichten",
"nachrichten.type": "Typ",
"nachrichten.type.away": "Abwesend",
"nachrichten.templateName": "Vorlagenname",
"nachrichten.message": "Nachricht",
"nachrichten.add": "Hinzufügen",
"nachrichten.delete": "Löschen"
}
+622
View File
@@ -0,0 +1,622 @@
{
"menu.connections": "Connections",
"menu.connections.connect": "Connect",
"menu.connections.disconnectCurrent": "Disconnect from current server",
"menu.connections.disconnectAll": "Disconnect from all servers",
"menu.favorites": "Bookmarks",
"menu.favorites.add": "Add bookmark",
"menu.favorites.manage": "Manage bookmarks",
"menu.self": "Self",
"menu.rights": "Permissions",
"menu.rights.serverGroups": "Edit server groups...",
"menu.rights.channelGroups": "Edit channel groups...",
"menu.rights.serverPermissions": "Edit server permissions...",
"menu.rights.channelPermissions": "Edit channel permissions...",
"menu.rights.overview": "Permission overview...",
"menu.rights.myRights": "Show my permissions",
"menu.extras": "Tools",
"menu.help": "Help",
"menu.help.about": "About WebSpeak3",
"menu.help.github": "GitHub",
"menu.help.changelog": "Changelog",
"menu.help.translate": "Help translate (Weblate)",
"menu.extras.identities": "Identities",
"menu.extras.contacts": "Contacts",
"menu.extras.collectedUrls": "Collected URLs",
"menu.extras.inviteFriend": "Invite a friend",
"menu.extras.whisperLists": "Whisper Lists",
"menu.extras.whisperHistory": "Whisper History",
"menu.extras.clientLog": "Client Log",
"menu.extras.banList": "Ban List",
"menu.extras.complaintList": "Complaint List",
"menu.extras.offlineMessages": "Offline Messages",
"menu.extras.serverQueryLogin": "ServerQuery Login",
"menu.extras.serverLog": "Server Log",
"menu.extras.startRecording": "Start Recording",
"menu.extras.startMultitrackRecording": "Start Multitrack Recording",
"menu.extras.stopRecording": "Stop Recording",
"menu.extras.options": "Options",
"menu.extras.feedback": "Send Feedback",
"feedback.fab.nudge": "What do you think of WebSpeak3? Feedback welcome!",
"donate.label": "Donate",
"donate.title": "Support WebSpeak3 on Ko-fi",
"pwa.updateAvailable": "New version available",
"pwa.reload": "Reload",
"feedback.dialog.title": "Feedback",
"feedback.dialog.intro": "Report a bug or share an idea to help improve WebSpeak3.",
"feedback.dialog.category": "Category",
"feedback.dialog.category.bug": "Bug",
"feedback.dialog.category.idea": "Idea",
"feedback.dialog.category.report": "Report (violation/abuse)",
"feedback.dialog.category.other": "Other",
"feedback.dialog.reportHint": "Reports stay private and are never published as a GitHub issue. Feel free to name the affected server.",
"feedback.dialog.message": "Message",
"feedback.dialog.messagePlaceholder": "What happened, or what are you suggesting?",
"feedback.dialog.email": "Email (optional, for follow-up)",
"feedback.dialog.publishAsIssue": "Publish as a public GitHub issue",
"feedback.dialog.publishAsIssueHint": "Leave unchecked to keep your feedback private, visible only to the maintainer.",
"feedback.dialog.publishAsIssueHintBug": "Bug reports are always published as a public GitHub issue.",
"feedback.dialog.send": "Send",
"restartNotice.title": "Brief interruption",
"restartNotice.body": "The server is about to restart briefly. Your connection will drop for a moment.",
"restartNotice.ack": "Got it",
"menu.extras.tos": "Terms of use",
"tos.title": "Terms of use for client.webspeak3.de",
"tos.rule1": "This client is for private, non-commercial use of TeamSpeak/TeaSpeak/GreenTeaSpeak servers via the browser.",
"tos.rule2": "Prohibited in particular: any criminal activity, harassment and hate speech, spam and flooding, disrupting the service, and circumventing bans.",
"tos.rule3": "Violations may result in access being blocked without warning; serious cases may be reported to the relevant authorities.",
"tos.rule4Pre": "For operational security and abuse detection, connections are logged (server address, server name, timestamp) and automatically deleted after 90 days – see the ",
"tos.rule4Post": ".",
"tos.privacyLinkText": "privacy policy",
"tos.rule5Pre": "For abuse or complaints: see the ",
"tos.rule5Post": ".",
"tos.legalLinkText": "legal notice (Impressum)",
"tos.rule6": "By clicking \"Accept\" you agree to these terms. Your acceptance is stored only locally in your browser; you'll be asked again if the rules change.",
"tos.accept": "Accept",
"tos.close": "Close",
"feedback.dialog.cancel": "Cancel",
"feedback.dialog.sending": "Sending…",
"feedback.dialog.success": "Thanks for your feedback!",
"feedback.dialog.successWithIssue": "Thanks! Issue created:",
"feedback.dialog.error": "Failed to send. Please try again later.",
"toolbar.setAway": "Set away",
"toolbar.backOnline": "Back online",
"toolbar.awayOptions": "Away options",
"toolbar.whisper": "Whisper targets",
"whisper.channels": "Channels",
"whisper.clients": "Clients",
"whisper.clearAll": "Clear all whisper targets",
"toolbar.micEnable": "Enable microphone",
"toolbar.micMute": "Mute microphone",
"toolbar.micUnmute": "Unmute microphone",
"toolbar.vadSensitivity": "Voice activation sensitivity",
"toolbar.muteSound": "Mute sound (deafen)",
"toolbar.unmuteSound": "Unmute sound (undeafen)",
"toolbar.chooseOutputDevice": "Choose output device",
"toolbar.toggleTheme": "Toggle theme",
"away.setGlobal": "Set globally away",
"away.setGlobalStatus": "Set global away status",
"connect.title": "Connect",
"connect.novaSubtitle": "WebSpeak3 runs entirely in the browser — no download needed",
"connect.serverAddress": "Server nickname or address:",
"connect.serverPassword": "Server password:",
"connect.nickname": "Nickname:",
"connect.phoneticNickname": "Phonetic nickname:",
"connect.identity": "Identity:",
"connect.defaultChannel": "Default channel:",
"connect.recordingProfile": "Capture profile:",
"connect.channelPassword": "Channel password:",
"connect.playbackProfile": "Playback profile:",
"connect.onetimeGrant": "One-time privilege key:",
"connect.serverType": "Server type:",
"connect.serverType.auto": "Auto",
"connect.serverType.teamspeak": "TeamSpeak",
"connect.serverType.teaspeak": "TeaSpeak",
"connect.hotkeyProfile": "Hotkey profile:",
"connect.soundPack": "Sound pack:",
"connect.more": "More",
"connect.less": "Less",
"connect.connect": "Connect",
"connect.connecting": "Connecting…",
"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",
"collectedUrls.count": "Count",
"collectedUrls.lastSeen": "Last mentioned",
"collectedUrls.mentionedBy": "Mentioned by",
"collectedUrls.clearList": "Clear list",
"inviteFriend.title": "Invite a friend",
"inviteFriend.type": "Invitation type",
"inviteFriend.includeChannel": "Insert current channel",
"inviteFriend.link": "Link",
"inviteFriend.addPermissionKey": "Add permission key",
"inviteFriend.copyToClipboard": "Copy to clipboard",
"inviteFriend.copied": "Copied!",
"clientLog.title": "Client Log",
"clientLog.level.critical": "Critical",
"clientLog.level.error": "Errors",
"clientLog.level.warning": "Warnings",
"clientLog.level.info": "Info",
"clientLog.level.debug": "Debug",
"clientLog.search": "Search:",
"clientLog.filter": "Filter:",
"clientLog.caseSensitive": "Case sensitive",
"clientLog.mark": "Mark",
"whisperHistory.title": "Whisper History - {server}",
"whisperHistory.empty": "No whisper history yet.",
"whisperHistory.started": "Whispering to: {targets}",
"whisperHistory.stopped": "Stopped whispering",
"whisperHistory.clear": "Clear",
"whisperHistory.options": "Options",
"whisperLists.title": "Whisper Lists",
"whisperLists.namePlaceholder": "List name",
"whisperLists.saveCurrent": "Save current selection",
"whisperLists.itemDetail": "{channels} channels, {clients} clients",
"whisperLists.activate": "Activate",
"whisperLists.delete": "Delete",
"whisperLists.empty": "No whisper lists saved yet. Select whisper targets and save them here as a list.",
"identities.title": "Identities",
"identities.activate": "Activate",
"identities.add": "New Identity",
"identities.delete": "Delete",
"identities.newName": "New Identity",
"identities.generated": "Generated",
"identities.pending": "Will be generated on next connection",
"identities.listLabel": "Local Identities",
"identities.name": "Identity Name:",
"identities.phoneticNickname": "Phonetic Nickname:",
"identities.uniqueId": "Unique ID:",
"identities.unknown": "Unknown",
"identities.setDefault": "Set as Default",
"identities.isDefault": "Currently used as default",
"identities.export": "Export",
"identities.import": "Import",
"connectionInfo.clientTitle": "Connection Info - {name}",
"connectionInfo.serverTitle": "Server Connection Info",
"connectionInfo.loading": "Loading…",
"connectionInfo.unavailable": "No response from the server (missing permission?).",
"connectionInfo.ping": "Ping:",
"connectionInfo.connectedSince": "Connected since:",
"connectionInfo.uptime": "Uptime:",
"connectionInfo.name": "Name:",
"connectionInfo.avgPing": "Average ping:",
"connectionInfo.avgPacketLoss": "Average packet loss:",
"connectionInfo.incoming": "Incoming",
"connectionInfo.outgoing": "Outgoing",
"connectionInfo.packetsTransferred": "Packets transferred",
"connectionInfo.bytesTransferred": "Bytes transferred",
"connectionInfo.bandwidthLastSecond": "Bandwidth last second",
"connectionInfo.bandwidthLastMinute": "Bandwidth last minute",
"connectionInfo.ftBandwidth": "File transfer bandwidth",
"connectionInfo.ftBytes": "File transfer bytes",
"connectionInfo.ip": "IP address:",
"connectionInfo.packetLoss": "Packet loss:",
"connectionInfo.packetsSent": "Packets sent:",
"connectionInfo.packetsReceived": "Packets received:",
"connectionInfo.bytesSent": "Data sent:",
"connectionInfo.bytesReceived": "Data received:",
"connectionInfo.bandwidthSent": "Bandwidth sent:",
"connectionInfo.bandwidthReceived": "Bandwidth received:",
"menu.self.recordingProfile": "Recording Profile",
"menu.self.playbackProfile": "Playback Profile",
"menu.self.hotkeyProfile": "Hotkey Profile",
"menu.self.soundPack": "Sound Pack",
"menu.self.setAway": "Set Away",
"menu.self.enableMic": "Enable Microphone",
"menu.self.disableMic": "Disable Microphone",
"menu.self.muteOutput": "Mute Speakers/Headphones",
"menu.self.unmuteOutput": "Unmute Speakers/Headphones",
"menu.self.changeNickname": "Change Nickname",
"menu.self.requestTalkPower": "Request Talk Power",
"menu.self.setAvatar": "Set Avatar",
"menu.self.setPhoneticNickname": "Set Phonetic Nickname",
"menu.self.connectionInfo": "Connection Info",
"contacts.title": "Contacts",
"contacts.addOnlineClient": "Select an online client...",
"contacts.add": "Add",
"contacts.remove": "Remove",
"contacts.empty": "No contacts yet.",
"contacts.customName": "Custom Name:",
"contacts.category.acquaintance": "Acquaintance",
"contacts.category.blocked": "Blocked",
"contacts.category.friend": "Friend",
"contacts.phoneticName": "Phonetic Name:",
"contacts.show": "Show",
"contacts.ignore": "Ignore",
"contacts.unignore": "Unignore",
"contacts.whisper": "Whisper",
"contacts.preferences": "Preferences",
"favorites.title": "🔖 myTeamSpeak Bookmarks",
"favorites.synced": "Synced Bookmarks",
"favorites.notLoggedIn": "Not logged in",
"favorites.local": "Local Bookmarks",
"favorites.unnamed": "(unnamed)",
"favorites.bookmarkName": "Bookmark name:",
"favorites.newFavoriteName": "New bookmark",
"favorites.showServerQueryClients": "Show ServerQuery clients",
"favorites.connectOnStartup": "Connect on startup",
"favorites.new": "New bookmark",
"favorites.newFolder": "New folder",
"favorites.remove": "Remove",
"favorites.ok": "OK",
"favorites.cancel": "Cancel",
"favorites.apply": "Apply",
"away.dialog.title": "Set away message",
"away.dialog.message": "Message:",
"away.dialog.template": "Template:",
"away.dialog.none": "<None>",
"away.dialog.ok": "OK",
"away.dialog.save": "Save",
"away.dialog.cancel": "Cancel",
"options.title": "Options",
"options.ok": "OK",
"options.cancel": "Cancel",
"options.notImplemented": "This setting isn't implemented yet.",
"options.section.anwendung": "Application",
"options.section.wiedergabe": "Playback",
"options.section.aufnahme": "Capture",
"options.section.design": "Appearance",
"design.subtitle": "Choose the application's look.",
"design.theme.standard": "Standard",
"design.theme.standard.desc": "The original WebSpeak3 design.",
"design.theme.nova": "Nova",
"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",
"design.custom.edit": "Edit",
"design.custom.duplicate": "Duplicate",
"design.custom.export": "Export",
"design.custom.delete": "Delete",
"design.custom.deleteConfirm": "Really delete this design?",
"design.custom.newTitle": "Create a new design",
"design.custom.editTitle": "Edit design",
"design.custom.name": "Name",
"design.custom.base": "Base layout",
"design.custom.css": "CSS",
"design.custom.hint": "This CSS loads while the design is active. Use .ts-app { ... } and the existing CSS variables (--accent, --bg, --text, --border, ...) to adjust colors, radii and spacing - with .ts-app .some-class { display: none } or order you can even change the layout.",
"design.custom.save": "Save",
"design.custom.copyOf": "Copy of {name}",
"design.custom.importError": "This file couldn't be read as a WebSpeak3 design.",
"options.section.erweiterungen": "Addons",
"options.section.hotkeys": "Hotkeys",
"options.section.whispern": "Whisper",
"options.section.downloads": "Downloads",
"options.section.chat": "Chat",
"options.section.sicherheit": "Security",
"options.section.nachrichten": "Messages",
"options.section.meldungen": "Notifications",
"options.section.sounds": "Sounds",
"app.title": "Application",
"app.subtitle": "General application settings",
"app.language": "Language",
"app.language.auto": "System default",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "Missing your language or spotted a wrong translation? Help out on Weblate →",
"playback.title": "Playback",
"playback.subtitle": "Change your playback settings",
"playback.profile": "Profile",
"playback.default": "Default",
"playback.device": "Playback device:",
"playback.systemDefault": "System default",
"playback.quiet": "Quiet",
"playback.loud": "Loud",
"playback.voiceVolume": "Voice volume",
"playback.playTestTone": "▶ Play test sound",
"playback.options": "Options",
"playback.autoVolume": "Automatic volume adjustment",
"playback.ownMicClicks": "Play mic clicks for own client",
"playback.otherMicClicks": "Play mic clicks for other clients",
"recording.title": "Capture",
"recording.subtitle": "Change your capture settings",
"recording.device": "Capture device:",
"recording.activation": "Activation",
"recording.pushToTalk": "Push-To-Talk",
"recording.continuous": "Continuous transmission",
"recording.voiceActivation": "Voice activation detection",
"recording.testStart": "Start test",
"recording.testStop": "Stop test",
"recording.hangoverDelay": "Delay before deactivation:",
"recording.secondsUnit": "sec",
"recording.dsp": "Digital Signal Processing",
"recording.typingAttenuation": "Typing attenuation",
"recording.echoCancellation": "Echo cancellation",
"recording.noiseSuppression": "Remove background noise",
"recording.autoGainControl": "Automatic gain control",
"info.address": "Address:",
"info.version": "Version:",
"info.license": "License:",
"info.currentClients": "Current clients:",
"info.currentChannels": "Current channels:",
"info.topic": "Topic:",
"info.audioCodec": "Audio codec:",
"info.spacer": "Spacer:",
"info.rawName": "Raw name:",
"info.passwordProtected": "Password protected:",
"info.clients": "Clients:",
"info.country": "Country:",
"info.muted": "Microphone muted:",
"info.outputMuted": "Speakers muted:",
"info.serverGroups": "Server groups:",
"info.yes": "Yes",
"info.no": "No",
"tree.notConnected": "Not connected",
"tree.clickToSelect": "Click to select, double-click to join",
"tree.clickToJoin": "Double-click to join",
"tree.joinNotConnected": "Not connected — cannot switch channel",
"tree.passwordProtected": "Password protected",
"tree.privateChatWith": "Private chat with",
"tree.poke": "Poke",
"tree.channelCommander": "Channel commander",
"tree.away": "Away",
"tree.micMuted": "Microphone muted",
"tree.talking": "Talking",
"tree.noTalkPower": "No talk power in this channel",
"tree.soundMuted": "Sound muted (deafened)",
"tree.streaming": "Broadcasting a stream",
"publish.alpha": "Alpha",
"publish.alphaTitle": "Alpha - unstable, may change or break at any time",
"publish.demoUnavailable": "Streaming is not available in the demo - it needs a real TeamSpeak 6 server.",
"publish.alphaNote": "Streaming is alpha. It speaks TeamSpeak 6's undocumented Stream/Call protocol, so connecting, picture quality and viewer handling can fail or change without notice. Not meant for production use.",
"publish.start": "Share your screen",
"publish.stop": "Stop sharing",
"publish.title": "Your broadcast",
"publish.screen": "Screen",
"publish.starting": "Starting…",
"publish.viewers": "{count} watching",
"publish.request.allow": "Allow",
"publish.request.deny": "Deny",
"publish.request.block": "Block",
"publish.request.blockHint": "Deny and stop asking",
"publish.dialog.title": "Stream settings",
"publish.dialog.basic": "Basic settings",
"publish.dialog.advanced": "Advanced settings",
"publish.dialog.golive": "Go live",
"publish.dialog.cancel": "Back",
"publish.preset": "Preset",
"publish.preset.presentation": "Presentation",
"publish.audio": "Capture audio",
"publish.privacy": "Privacy",
"publish.privacy.public": "Public",
"publish.privacy.contacts": "Contacts",
"publish.privacy.private": "Private",
"publish.resolution": "Resolution",
"publish.res.source": "Source",
"publish.fps": "FPS",
"publish.bitrate": "Bitrate",
"publish.audioBitrate": "Audio bitrate [Kbps]",
"publish.viewerLimit": "Viewer limit",
"publish.mode": "Connection mode",
"publish.mode.p2p": "P2P",
"publish.mode.server": "Server",
"publish.mode.serverUnavailable": "Server mode goes through TS6's SFU and is not implemented yet.",
"stream.untitled": "Stream",
"stream.stop": "Close stream",
"stream.live": "Live",
"stream.state.new": "Waiting for offer…",
"stream.state.connecting": "Connecting…",
"stream.state.connected": "Live",
"stream.state.disconnected": "Connection interrupted",
"stream.state.failed": "Connection failed",
"stream.state.closed": "Ended",
"chat.server": "Server",
"chat.channel": "Channel",
"chat.notConnected": "Not connected",
"chat.messageChannel": "Message channel...",
"chat.messageServer": "Message server...",
"chat.messagePartner": "Message {name}...",
"chat.send": "Send",
"chat.you": "You",
"serverLog.clientJoin": "{client} entered channel \"{channel}\"",
"serverLog.clientLeave": "{client} disconnected (Left)",
"serverLog.clientChannelSwitch": "{client} moved from channel \"{fromChannel}\" to \"{toChannel}\"",
"serverLog.clientChannelGroupAssigned": "Channel group \"{group}\" was assigned to {client}",
"serverLog.channelCreated": "Channel \"{channel}\" was created",
"serverLog.channelDeleted": "Channel \"{channel}\" was deleted",
"serverLog.channelEdited": "Channel \"{channel}\" was edited",
"serverLog.serverEdited": "Server settings were changed",
"serverLog.permissionError": "Missing permission: {action}",
"poke.title": "Poke",
"poke.optionalMessage": "Optional message...",
"poke.send": "Poke",
"poke.cancel": "Cancel",
"poke.pokedYou": "poked you",
"poke.dismiss": "Dismiss",
"kick.title": "Kick:",
"kick.reasonPlaceholder": "Reason (optional)...",
"kick.confirm": "Kick",
"kick.cancel": "Cancel",
"ban.title": "Ban:",
"ban.reasonPlaceholder": "Reason (optional)...",
"ban.duration": "Duration:",
"ban.durationPermanent": "Permanent",
"ban.duration1h": "1 hour",
"ban.duration1d": "1 day",
"ban.duration1w": "1 week",
"ban.confirm": "Ban",
"ban.cancel": "Cancel",
"serverEdit.title": "Edit Virtual Server",
"serverEdit.tab.host": "Host",
"serverEdit.tab.misc": "Misc",
"serverEdit.tab.transmission": "Transmission",
"serverEdit.tab.antiflood": "Anti-Flood",
"serverEdit.tab.security": "Security",
"serverEdit.tab.log": "Log",
"serverEdit.name": "Server name:",
"serverEdit.welcomeMessage": "Welcome message:",
"serverEdit.clearPassword": "Remove server password",
"serverEdit.newPassword": "New server password:",
"serverEdit.hostmessage": "Host message:",
"serverEdit.hostmessageMode": "Display mode:",
"serverEdit.hostmessageMode.none": "Don't display",
"serverEdit.hostmessageMode.log": "Display in log",
"serverEdit.hostmessageMode.modal": "Display as dialog",
"serverEdit.hostmessageMode.modalquit": "Display as dialog and disconnect",
"serverEdit.hostbannerUrl": "Host banner URL:",
"serverEdit.hostbannerGfxUrl": "Host banner image URL:",
"serverEdit.hostbannerGfxInterval": "Banner refresh (seconds):",
"serverEdit.hostbannerMode": "Banner scaling:",
"serverEdit.hostbannerMode.noadjust": "Don't adjust",
"serverEdit.hostbannerMode.adjustignoreaspect": "Adjust (ignore aspect ratio)",
"serverEdit.hostbannerMode.adjustkeepaspect": "Adjust (keep aspect ratio)",
"serverEdit.hostbuttonTooltip": "Host button tooltip:",
"serverEdit.hostbuttonUrl": "Host button URL:",
"serverEdit.hostbuttonGfxUrl": "Host button image URL:",
"serverEdit.maxClients": "Max clients:",
"serverEdit.nickname": "Server nickname:",
"serverEdit.phoneticName": "Phonetic name:",
"serverEdit.codecEncryptionMode": "Voice encryption:",
"serverEdit.codecEncryptionMode.perchannel": "Configurable per channel",
"serverEdit.codecEncryptionMode.forcedoff": "Globally disabled",
"serverEdit.codecEncryptionMode.forcedon": "Globally enabled",
"serverEdit.unchanged": "Leave unchanged",
"serverEdit.save": "Save",
"serverEdit.cancel": "Cancel",
"serverProtocolLog.title": "Server Log",
"serverProtocolLog.empty": "No log entries.",
"banList.title": "Ban List",
"banList.empty": "No bans found.",
"banList.name": "Name",
"banList.ip": "IP",
"banList.created": "Created",
"banList.duration": "Duration",
"banList.invoker": "By",
"banList.reason": "Reason",
"banList.permanent": "Permanent",
"banList.delete": "Delete",
"banList.deleteAll": "Delete all",
"complainList.title": "Complaint List",
"complainList.empty": "No complaints found.",
"complainList.target": "Target",
"complainList.from": "From",
"complainList.message": "Message",
"complainList.timestamp": "Timestamp",
"offlineMessages.title": "Offline Messages",
"offlineMessages.empty": "No messages found.",
"offlineMessages.subject": "Subject",
"offlineMessages.from": "From",
"offlineMessages.timestamp": "Timestamp",
"offlineMessages.targetUid": "Target UID",
"offlineMessages.message": "Message",
"offlineMessages.send": "Send",
"offlineMessages.new": "New message",
"offlineMessages.markRead": "Mark as read",
"offlineMessages.backToList": "Back to list",
"dialog.cancel": "Cancel",
"groupAssign.channelTitle": "Assign Channel Group",
"groupAssign.serverTitle": "Assign Server Group",
"groupAssign.empty": "No groups found.",
"groupAssign.clickToRemove": "Click to remove",
"serverQueryLogin.username": "Username",
"serverQueryLogin.password": "Password",
"serverQueryLogin.login": "Login",
"permissionOverview.title": "My Permissions",
"permissionOverview.empty": "No permissions found.",
"permissionOverview.name": "Permission",
"permissionOverview.value": "Value",
"permissionOverview.negated": "Negated",
"permissionOverview.skip": "Skip",
"permsEditor.title": "Permissions",
"permsEditor.tab.server": "Server Groups",
"permsEditor.tab.client": "Client Permissions",
"permsEditor.tab.channel": "Channel Permissions",
"permsEditor.tab.channelgroup": "Channel Groups",
"permsEditor.tab.channelclient": "Channel Client Permissions",
"permsEditor.clientDbId": "Unique client DB ID:",
"permsEditor.load": "Load",
"permsEditor.pickOnlineClient": "Or pick an online client...",
"permsEditor.pickTarget": "Pick a group/channel on the left, or enter a client ID.",
"permsEditor.addPermission": "Add",
"permsEditor.searchPermission": "Search permission...",
"dialog.ok": "OK",
"channelContext.join": "Switch to channel",
"channelContext.files": "Files...",
"fileBrowser.title": "File Transfers",
"fileBrowser.up": "Up",
"fileBrowser.refresh": "Refresh",
"fileBrowser.newFolder": "New Folder",
"fileBrowser.upload": "Upload",
"fileBrowser.folderName": "Folder name",
"fileBrowser.empty": "This folder is empty.",
"fileBrowser.name": "Name",
"fileBrowser.size": "Size",
"fileBrowser.modified": "Modified",
"fileBrowser.download": "Download",
"fileBrowser.rename": "Rename",
"fileBrowser.delete": "Delete",
"fileBrowser.deleteConfirm": "Really delete?",
"fileBrowser.uploading": "Uploading...",
"fileBrowser.downloading": "Downloading...",
"serverContext.icons": "Server Icons...",
"serverIcons.title": "Manage Server Icons",
"serverIcons.upload": "Upload Icon",
"serverIcons.iconId": "Icon ID",
"serverIcons.empty": "No icons found.",
"clientContext.privateChat": "Private chat",
"clientContext.poke": "Poke",
"clientContext.watchStream": "Watch stream",
"clientContext.moveTo": "Move to…",
"clientContext.copyName": "Copy name",
"clientContext.connectionInfo": "Show connection info",
"clientContext.addWhisperTarget": "Add as whisper target",
"clientContext.removeWhisperTarget": "Remove as whisper target",
"clientContext.assignChannelGroup": "Assign channel group",
"clientContext.assignServerGroup": "Assign server group",
"clientContext.kickChannel": "Kick from channel",
"clientContext.kick": "Kick from server",
"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",
"serverContext.disconnect": "Disconnect",
"connectError.dismiss": "Dismiss",
"dialog.close": "Close",
"sounds.title": "Sounds",
"sounds.subtitle": "Configure sound notifications for events",
"sounds.enable": "Enable sounds",
"sounds.volume": "Volume",
"sounds.eventEnable": "Enable this sound",
"sounds.event.connect": "Connected",
"sounds.event.disconnect": "Disconnected",
"sounds.event.clientJoin": "Client joins",
"sounds.event.clientLeave": "Client leaves",
"sounds.event.message": "Message received",
"sounds.event.poke": "Poke received",
"sounds.default": "Default",
"sounds.custom": "Custom file: {name}",
"sounds.test": "▶ Test",
"sounds.upload": "Upload",
"sounds.reset": "Reset",
"sounds.importSoundpack": "Import soundpack (.ts3soundpack)",
"sounds.importResult": "{matched} sound(s) imported, {unmatched} file(s) not matched",
"nachrichten.title": "Messages",
"nachrichten.subtitle": "Customize messages",
"nachrichten.disconnectMessage": "Disconnect:",
"nachrichten.disconnectMessagePlaceholder": "leaving",
"nachrichten.presetsTitle": "Preset messages",
"nachrichten.type": "Type",
"nachrichten.type.away": "Away",
"nachrichten.templateName": "Template name",
"nachrichten.message": "Message",
"nachrichten.add": "Add",
"nachrichten.delete": "Delete"
}
+622
View File
@@ -0,0 +1,622 @@
{
"menu.connections": "اتصال‌ها",
"menu.connections.connect": "اتصال",
"menu.connections.disconnectCurrent": "قطع اتصال از سرور فعلی",
"menu.connections.disconnectAll": "قطع اتصال از همه سرورها",
"menu.favorites": "نشانک‌ها",
"menu.favorites.add": "افزودن نشانک",
"menu.favorites.manage": "مدیریت نشانک‌ها",
"menu.self": "خودم",
"menu.rights": "مجوزها",
"menu.rights.serverGroups": "ویرایش گروه‌های سرور...",
"menu.rights.channelGroups": "ویرایش گروه‌های کانال...",
"menu.rights.serverPermissions": "ویرایش مجوزهای سرور...",
"menu.rights.channelPermissions": "ویرایش مجوزهای کانال...",
"menu.rights.overview": "نمای کلی مجوزها...",
"menu.rights.myRights": "نمایش مجوزهای من",
"menu.extras": "ابزارها",
"menu.help": "راهنما",
"menu.help.about": "درباره WebSpeak3",
"menu.help.github": "گیت‌هاب",
"menu.help.changelog": "تاریخچه تغییرات",
"menu.help.translate": "کمک به ترجمه (Weblate)",
"menu.extras.identities": "هویت‌ها",
"menu.extras.contacts": "مخاطبین",
"menu.extras.collectedUrls": "لینک‌های جمع‌آوری‌شده",
"menu.extras.inviteFriend": "دعوت از یک دوست",
"menu.extras.whisperLists": "لیست‌های نجوا",
"menu.extras.whisperHistory": "تاریخچه نجوا",
"menu.extras.clientLog": "گزارش کلاینت",
"menu.extras.banList": "لیست مسدودشده‌ها",
"menu.extras.complaintList": "لیست شکایات",
"menu.extras.offlineMessages": "پیام‌های آفلاین",
"menu.extras.serverQueryLogin": "ورود ServerQuery",
"menu.extras.serverLog": "گزارش سرور",
"menu.extras.startRecording": "شروع ضبط",
"menu.extras.startMultitrackRecording": "شروع ضبط چندکاناله",
"menu.extras.stopRecording": "توقف ضبط",
"menu.extras.options": "تنظیمات",
"menu.extras.feedback": "ارسال بازخورد",
"feedback.fab.nudge": "نظرت درباره WebSpeak3 چیه؟ بازخوردت رو منتظریم!",
"donate.label": "حمایت مالی",
"donate.title": "حمایت از WebSpeak3 در Ko-fi",
"pwa.updateAvailable": "نسخه جدید موجود است",
"pwa.reload": "بارگذاری مجدد",
"feedback.dialog.title": "بازخورد",
"feedback.dialog.intro": "یک اشکال گزارش بده یا ایده‌ای برای بهبود WebSpeak3 به اشتراک بگذار.",
"feedback.dialog.category": "دسته",
"feedback.dialog.category.bug": "اشکال",
"feedback.dialog.category.idea": "ایده",
"feedback.dialog.category.report": "گزارش تخلف (نقض قوانین/سوءاستفاده)",
"feedback.dialog.category.other": "سایر",
"feedback.dialog.reportHint": "گزارش‌ها همیشه خصوصی می‌مانند و هرگز به‌صورت Issue عمومی در گیت‌هاب منتشر نمی‌شوند. در صورت نیاز می‌توانی نام سرور مربوطه را ذکر کنی.",
"feedback.dialog.message": "پیام",
"feedback.dialog.messagePlaceholder": "چه اتفاقی افتاد، یا چه پیشنهادی داری؟",
"feedback.dialog.email": "ایمیل (اختیاری، برای پیگیری)",
"feedback.dialog.publishAsIssue": "به‌صورت Issue عمومی در گیت‌هاب منتشر شود",
"feedback.dialog.publishAsIssueHint": "اگر تیک نزنی، بازخوردت خصوصی می‌ماند و فقط برای مدیر پروژه قابل مشاهده است.",
"feedback.dialog.publishAsIssueHintBug": "گزارش اشکال‌ها همیشه به‌صورت Issue عمومی در گیت‌هاب منتشر می‌شوند.",
"feedback.dialog.send": "ارسال",
"restartNotice.title": "وقفه کوتاه",
"restartNotice.body": "سرور به‌زودی برای مدت کوتاهی مجدداً راه‌اندازی می‌شود. اتصال شما لحظه‌ای قطع خواهد شد.",
"restartNotice.ack": "متوجه شدم",
"menu.extras.tos": "شرایط استفاده",
"tos.title": "شرایط استفاده از client.webspeak3.de",
"tos.rule1": "این کلاینت برای استفاده خصوصی و غیرتجاری از سرورهای TeamSpeak/TeaSpeak/GreenTeaSpeak از طریق مرورگر است.",
"tos.rule2": "به‌طور خاص ممنوع است: هرگونه فعالیت مجرمانه، آزار و سخنان نفرت‌پراکنانه، اسپم و سیل پیام، ایجاد اختلال در سرویس، و دور زدن مسدودیت‌ها.",
"tos.rule3": "تخلفات ممکن است بدون هشدار منجر به مسدود شدن دسترسی شوند؛ در موارد جدی، گزارش به مراجع ذی‌صلاح نیز ممکن است.",
"tos.rule4Pre": "به‌منظور امنیت عملیاتی و شناسایی سوءاستفاده، اطلاعات اتصال (آدرس سرور، نام سرور، زمان اتصال) ثبت می‌شود و پس از ۹۰ روز به‌صورت خودکار حذف می‌شود - برای جزئیات به ",
"tos.rule4Post": " مراجعه کن.",
"tos.privacyLinkText": "سیاست حریم خصوصی",
"tos.rule5Pre": "برای گزارش سوءاستفاده یا شکایات: به ",
"tos.rule5Post": " مراجعه کن.",
"tos.legalLinkText": "اطلاعیه حقوقی (Impressum)",
"tos.rule6": "با کلیک روی «پذیرفتن» این شرایط را می‌پذیری. تأیید تو فقط به‌صورت محلی در مرورگرت ذخیره می‌شود؛ در صورت تغییر قوانین، دوباره از تو پرسیده خواهد شد.",
"tos.accept": "پذیرفتن",
"tos.close": "بستن",
"feedback.dialog.cancel": "لغو",
"feedback.dialog.sending": "در حال ارسال…",
"feedback.dialog.success": "از بازخوردت متشکریم!",
"feedback.dialog.successWithIssue": "متشکریم! Issue ایجاد شد:",
"feedback.dialog.error": "ارسال ناموفق بود. لطفاً بعداً دوباره امتحان کن.",
"toolbar.setAway": "تنظیم به‌عنوان غایب",
"toolbar.backOnline": "بازگشت به آنلاین",
"toolbar.awayOptions": "گزینه‌های غیبت",
"toolbar.whisper": "مقصدهای نجوا",
"whisper.channels": "کانال‌ها",
"whisper.clients": "کاربران",
"whisper.clearAll": "پاک کردن همه مقصدهای نجوا",
"toolbar.micEnable": "فعال‌سازی میکروفون",
"toolbar.micMute": "بی‌صدا کردن میکروفون",
"toolbar.micUnmute": "فعال کردن صدای میکروفون",
"toolbar.vadSensitivity": "حساسیت فعال‌سازی صوتی",
"toolbar.muteSound": "بی‌صدا کردن صدا (کر کردن)",
"toolbar.unmuteSound": "فعال کردن صدا",
"toolbar.chooseOutputDevice": "انتخاب دستگاه خروجی",
"toolbar.toggleTheme": "تغییر پوسته",
"away.setGlobal": "تنظیم غیبت سراسری",
"away.setGlobalStatus": "تنظیم وضعیت غیبت سراسری",
"connect.title": "اتصال",
"connect.novaSubtitle": "WebSpeak3 به‌طور کامل در مرورگر اجرا می‌شود — بدون نیاز به دانلود",
"connect.serverAddress": "نام مستعار یا آدرس سرور:",
"connect.serverPassword": "رمز عبور سرور:",
"connect.nickname": "نام مستعار:",
"connect.phoneticNickname": "تلفظ نام مستعار:",
"connect.identity": "هویت:",
"connect.defaultChannel": "کانال پیش‌فرض:",
"connect.recordingProfile": "پروفایل ضبط:",
"connect.channelPassword": "رمز عبور کانال:",
"connect.playbackProfile": "پروفایل پخش:",
"connect.onetimeGrant": "کلید امتیاز یک‌بار مصرف:",
"connect.serverType": "نوع سرور:",
"connect.serverType.auto": "خودکار",
"connect.serverType.teamspeak": "TeamSpeak",
"connect.serverType.teaspeak": "TeaSpeak",
"connect.hotkeyProfile": "پروفایل کلید میانبر:",
"connect.soundPack": "بسته صوتی:",
"connect.more": "بیشتر",
"connect.less": "کمتر",
"connect.connect": "اتصال",
"connect.connecting": "در حال اتصال…",
"connect.newTab": "در تب جدید",
"connect.cancel": "لغو",
"channelPasswordDialog.title": "رمز عبور کانال لازم است",
"channelPasswordDialog.prompt": "این کانال با رمز عبور محافظت می‌شود. لطفاً رمز عبور را وارد کن:",
"channelPasswordDialog.wrongPassword": "رمز عبور اشتباه است، دوباره امتحان کن:",
"channelPasswordDialog.submit": "ورود",
"channelPasswordDialog.cancel": "لغو",
"collectedUrls.title": "لینک‌های جمع‌آوری‌شده",
"collectedUrls.search": "جستجو:",
"collectedUrls.url": "لینک",
"collectedUrls.count": "تعداد",
"collectedUrls.lastSeen": "آخرین اشاره",
"collectedUrls.mentionedBy": "ذکرشده توسط",
"collectedUrls.clearList": "پاک کردن لیست",
"inviteFriend.title": "دعوت از یک دوست",
"inviteFriend.type": "نوع دعوت",
"inviteFriend.includeChannel": "افزودن کانال فعلی",
"inviteFriend.link": "لینک",
"inviteFriend.addPermissionKey": "افزودن کلید مجوز",
"inviteFriend.copyToClipboard": "کپی در کلیپ‌بورد",
"inviteFriend.copied": "کپی شد!",
"clientLog.title": "گزارش کلاینت",
"clientLog.level.critical": "بحرانی",
"clientLog.level.error": "خطاها",
"clientLog.level.warning": "هشدارها",
"clientLog.level.info": "اطلاعات",
"clientLog.level.debug": "اشکال‌زدایی",
"clientLog.search": "جستجو:",
"clientLog.filter": "فیلتر:",
"clientLog.caseSensitive": "حساس به بزرگی/کوچکی حروف",
"clientLog.mark": "علامت‌گذاری",
"whisperHistory.title": "تاریخچه نجوا - {server}",
"whisperHistory.empty": "هنوز تاریخچه نجوایی وجود ندارد.",
"whisperHistory.started": "در حال نجوا با: {targets}",
"whisperHistory.stopped": "نجوا متوقف شد",
"whisperHistory.clear": "پاک کردن",
"whisperHistory.options": "گزینه‌ها",
"whisperLists.title": "لیست‌های نجوا",
"whisperLists.namePlaceholder": "نام لیست",
"whisperLists.saveCurrent": "ذخیره انتخاب فعلی",
"whisperLists.itemDetail": "{channels} کانال، {clients} کاربر",
"whisperLists.activate": "فعال‌سازی",
"whisperLists.delete": "حذف",
"whisperLists.empty": "هنوز لیست نجوایی ذخیره نشده است. مقصدهای نجوا را انتخاب کن و اینجا به‌صورت لیست ذخیره کن.",
"identities.title": "هویت‌ها",
"identities.activate": "فعال‌سازی",
"identities.add": "هویت جدید",
"identities.delete": "حذف",
"identities.newName": "هویت جدید",
"identities.generated": "ایجاد شد",
"identities.pending": "در اتصال بعدی ایجاد خواهد شد",
"identities.listLabel": "هویت‌های محلی",
"identities.name": "نام هویت:",
"identities.phoneticNickname": "تلفظ نام مستعار:",
"identities.uniqueId": "شناسه یکتا:",
"identities.unknown": "نامشخص",
"identities.setDefault": "تنظیم به‌عنوان پیش‌فرض",
"identities.isDefault": "در حال حاضر به‌عنوان پیش‌فرض استفاده می‌شود",
"identities.export": "خروجی گرفتن",
"identities.import": "وارد کردن",
"connectionInfo.clientTitle": "اطلاعات اتصال - {name}",
"connectionInfo.serverTitle": "اطلاعات اتصال سرور",
"connectionInfo.loading": "در حال بارگذاری…",
"connectionInfo.unavailable": "پاسخی از سرور دریافت نشد (شاید مجوز کافی وجود ندارد؟).",
"connectionInfo.ping": "پینگ:",
"connectionInfo.connectedSince": "متصل از:",
"connectionInfo.uptime": "مدت آنلاین بودن:",
"connectionInfo.name": "نام:",
"connectionInfo.avgPing": "میانگین پینگ:",
"connectionInfo.avgPacketLoss": "میانگین افت بسته:",
"connectionInfo.incoming": "ورودی",
"connectionInfo.outgoing": "خروجی",
"connectionInfo.packetsTransferred": "بسته‌های منتقل‌شده",
"connectionInfo.bytesTransferred": "بایت‌های منتقل‌شده",
"connectionInfo.bandwidthLastSecond": "پهنای باند ثانیه گذشته",
"connectionInfo.bandwidthLastMinute": "پهنای باند دقیقه گذشته",
"connectionInfo.ftBandwidth": "پهنای باند انتقال فایل",
"connectionInfo.ftBytes": "بایت‌های انتقال فایل",
"connectionInfo.ip": "آدرس IP:",
"connectionInfo.packetLoss": "افت بسته:",
"connectionInfo.packetsSent": "بسته‌های ارسالی:",
"connectionInfo.packetsReceived": "بسته‌های دریافتی:",
"connectionInfo.bytesSent": "داده ارسالی:",
"connectionInfo.bytesReceived": "داده دریافتی:",
"connectionInfo.bandwidthSent": "پهنای باند ارسالی:",
"connectionInfo.bandwidthReceived": "پهنای باند دریافتی:",
"menu.self.recordingProfile": "پروفایل ضبط",
"menu.self.playbackProfile": "پروفایل پخش",
"menu.self.hotkeyProfile": "پروفایل کلید میانبر",
"menu.self.soundPack": "بسته صوتی",
"menu.self.setAway": "تنظیم غیبت",
"menu.self.enableMic": "فعال‌سازی میکروفون",
"menu.self.disableMic": "غیرفعال‌سازی میکروفون",
"menu.self.muteOutput": "بی‌صدا کردن بلندگو/هدفون",
"menu.self.unmuteOutput": "فعال کردن بلندگو/هدفون",
"menu.self.changeNickname": "تغییر نام مستعار",
"menu.self.requestTalkPower": "درخواست حق صحبت",
"menu.self.setAvatar": "تنظیم آواتار",
"menu.self.setPhoneticNickname": "تنظیم تلفظ نام مستعار",
"menu.self.connectionInfo": "اطلاعات اتصال",
"contacts.title": "مخاطبین",
"contacts.addOnlineClient": "یک کاربر آنلاین را انتخاب کن...",
"contacts.add": "افزودن",
"contacts.remove": "حذف",
"contacts.empty": "هنوز مخاطبی وجود ندارد.",
"contacts.customName": "نام سفارشی:",
"contacts.category.acquaintance": "آشنا",
"contacts.category.blocked": "مسدود",
"contacts.category.friend": "دوست",
"contacts.phoneticName": "تلفظ نام:",
"contacts.show": "نمایش",
"contacts.ignore": "نادیده گرفتن",
"contacts.unignore": "لغو نادیده گرفتن",
"contacts.whisper": "نجوا",
"contacts.preferences": "ترجیحات",
"favorites.title": "🔖 نشانک‌های myTeamSpeak",
"favorites.synced": "نشانک‌های همگام‌سازی‌شده",
"favorites.notLoggedIn": "وارد نشده‌ای",
"favorites.local": "نشانک‌های محلی",
"favorites.unnamed": "(بدون نام)",
"favorites.bookmarkName": "نام نشانک:",
"favorites.newFavoriteName": "نشانک جدید",
"favorites.showServerQueryClients": "نمایش کاربران ServerQuery",
"favorites.connectOnStartup": "اتصال هنگام راه‌اندازی",
"favorites.new": "نشانک جدید",
"favorites.newFolder": "پوشه جدید",
"favorites.remove": "حذف",
"favorites.ok": "تأیید",
"favorites.cancel": "لغو",
"favorites.apply": "اعمال",
"away.dialog.title": "تنظیم پیام غیبت",
"away.dialog.message": "پیام:",
"away.dialog.template": "الگو:",
"away.dialog.none": "<هیچ‌کدام>",
"away.dialog.ok": "تأیید",
"away.dialog.save": "ذخیره",
"away.dialog.cancel": "لغو",
"options.title": "تنظیمات",
"options.ok": "تأیید",
"options.cancel": "لغو",
"options.notImplemented": "این تنظیم هنوز پیاده‌سازی نشده است.",
"options.section.anwendung": "برنامه",
"options.section.wiedergabe": "پخش",
"options.section.aufnahme": "ضبط",
"options.section.design": "ظاهر",
"design.subtitle": "ظاهر برنامه را انتخاب کن.",
"design.theme.standard": "استاندارد",
"design.theme.standard.desc": "طراحی اصلی WebSpeak3.",
"design.theme.nova": "Nova",
"design.theme.nova.desc": "طراحی مدرن‌تر و تیره با عناصر گرد.",
"design.theme.greenteaspeak": "GreenTeaSpeak",
"design.theme.greenteaspeak.desc": "چیدمان کلاسیک کلاینت GreenTeaSpeak با پنل‌های تیره و نوار منوی طلایی.",
"design.theme.pulse": "Pulse",
"design.theme.pulse.desc": "چیدمان کارتی با نوار مسیر و رنگ تأکیدی.",
"design.status.connected": "متصل",
"design.custom.new": "+ طراحی جدید",
"design.custom.import": "وارد کردن طراحی",
"design.custom.edit": "ویرایش",
"design.custom.duplicate": "تکثیر",
"design.custom.export": "خروجی گرفتن",
"design.custom.delete": "حذف",
"design.custom.deleteConfirm": "واقعاً این طراحی حذف شود؟",
"design.custom.newTitle": "ایجاد طراحی جدید",
"design.custom.editTitle": "ویرایش طراحی",
"design.custom.name": "نام",
"design.custom.base": "چیدمان پایه",
"design.custom.css": "CSS",
"design.custom.hint": "این CSS هنگام فعال بودن طراحی بارگذاری می‌شود. از .ts-app { ... } و متغیرهای CSS موجود (--accent، --bg، --text، --border و...) برای تنظیم رنگ‌ها، شعاع گوشه‌ها و فاصله‌ها استفاده کن - با .ts-app .some-class { display: none } یا تغییر ترتیب حتی می‌توانی چیدمان را هم تغییر دهی.",
"design.custom.save": "ذخیره",
"design.custom.copyOf": "کپی از {name}",
"design.custom.importError": "این فایل به‌عنوان طراحی WebSpeak3 خوانده نشد.",
"options.section.erweiterungen": "افزونه‌ها",
"options.section.hotkeys": "کلیدهای میانبر",
"options.section.whispern": "نجوا",
"options.section.downloads": "دانلودها",
"options.section.chat": "گفتگو",
"options.section.sicherheit": "امنیت",
"options.section.nachrichten": "پیام‌ها",
"options.section.meldungen": "اعلان‌ها",
"options.section.sounds": "صداها",
"app.title": "برنامه",
"app.subtitle": "تنظیمات عمومی برنامه",
"app.language": "زبان",
"app.language.auto": "پیش‌فرض سیستم",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "زبان شما موجود نیست یا ترجمه‌ای اشتباه دیدید؟ در Weblate کمک کنید →",
"playback.title": "پخش",
"playback.subtitle": "تنظیمات پخش را تغییر بده",
"playback.profile": "پروفایل",
"playback.default": "پیش‌فرض",
"playback.device": "دستگاه پخش:",
"playback.systemDefault": "پیش‌فرض سیستم",
"playback.quiet": "آرام",
"playback.loud": "بلند",
"playback.voiceVolume": "میزان صدای صحبت",
"playback.playTestTone": "▶ پخش صدای آزمایشی",
"playback.options": "گزینه‌ها",
"playback.autoVolume": "تنظیم خودکار میزان صدا",
"playback.ownMicClicks": "پخش کلیک میکروفون برای کاربر خودم",
"playback.otherMicClicks": "پخش کلیک میکروفون برای سایر کاربران",
"recording.title": "ضبط",
"recording.subtitle": "تنظیمات ضبط را تغییر بده",
"recording.device": "دستگاه ضبط:",
"recording.activation": "فعال‌سازی",
"recording.pushToTalk": "فشار برای صحبت (Push-To-Talk)",
"recording.continuous": "ارسال پیوسته",
"recording.voiceActivation": "تشخیص فعال‌سازی صوتی",
"recording.testStart": "شروع آزمایش",
"recording.testStop": "توقف آزمایش",
"recording.hangoverDelay": "تأخیر قبل از غیرفعال‌سازی:",
"recording.secondsUnit": "ثانیه",
"recording.dsp": "پردازش دیجیتال سیگنال",
"recording.typingAttenuation": "کاهش صدای تایپ",
"recording.echoCancellation": "حذف پژواک",
"recording.noiseSuppression": "حذف نویز پس‌زمینه",
"recording.autoGainControl": "کنترل خودکار میزان صدا",
"info.address": "آدرس:",
"info.version": "نسخه:",
"info.license": "مجوز:",
"info.currentClients": "کاربران فعلی:",
"info.currentChannels": "کانال‌های فعلی:",
"info.topic": "موضوع:",
"info.audioCodec": "کدک صوتی:",
"info.spacer": "فاصله‌گذار:",
"info.rawName": "نام خام:",
"info.passwordProtected": "محافظت‌شده با رمز عبور:",
"info.clients": "کاربران:",
"info.country": "کشور:",
"info.muted": "میکروفون بی‌صدا:",
"info.outputMuted": "بلندگو بی‌صدا:",
"info.serverGroups": "گروه‌های سرور:",
"info.yes": "بله",
"info.no": "خیر",
"tree.notConnected": "متصل نیست",
"tree.clickToSelect": "برای انتخاب کلیک کن، برای ورود دوبار کلیک کن",
"tree.clickToJoin": "برای ورود دوبار کلیک کن",
"tree.joinNotConnected": "متصل نیست — نمی‌توان کانال را تغییر داد",
"tree.passwordProtected": "محافظت‌شده با رمز عبور",
"tree.privateChatWith": "گفتگوی خصوصی با",
"tree.poke": "سقلمه",
"tree.channelCommander": "فرمانده کانال",
"tree.away": "غایب",
"tree.micMuted": "میکروفون بی‌صدا",
"tree.talking": "در حال صحبت",
"tree.noTalkPower": "در این کانال حق صحبت ندارد",
"tree.soundMuted": "صدا بی‌صدا (کر)",
"tree.streaming": "در حال پخش زنده",
"publish.alpha": "آلفا",
"publish.alphaTitle": "آلفا - ناپایدار، ممکن است هر زمان تغییر کند یا از کار بیفتد",
"publish.demoUnavailable": "پخش زنده در حالت دمو در دسترس نیست - به یک سرور واقعی TeamSpeak 6 نیاز دارد.",
"publish.alphaNote": "پخش زنده در مرحله آلفا است. این ویژگی از پروتکل مستندنشده Stream/Call در TeamSpeak 6 استفاده می‌کند، بنابراین اتصال، کیفیت تصویر و مدیریت بینندگان ممکن است بدون اطلاع قبلی دچار خطا شوند یا تغییر کنند. برای استفاده تولیدی مناسب نیست.",
"publish.start": "اشتراک‌گذاری صفحه",
"publish.stop": "توقف اشتراک‌گذاری",
"publish.title": "پخش زنده تو",
"publish.screen": "صفحه نمایش",
"publish.starting": "در حال شروع…",
"publish.viewers": "{count} بیننده",
"publish.request.allow": "اجازه دادن",
"publish.request.deny": "رد کردن",
"publish.request.block": "مسدود کردن",
"publish.request.blockHint": "رد کردن و دیگر نپرسیدن",
"publish.dialog.title": "تنظیمات پخش زنده",
"publish.dialog.basic": "تنظیمات پایه",
"publish.dialog.advanced": "تنظیمات پیشرفته",
"publish.dialog.golive": "شروع پخش زنده",
"publish.dialog.cancel": "بازگشت",
"publish.preset": "پیش‌تنظیم",
"publish.preset.presentation": "ارائه",
"publish.audio": "ضبط صدا",
"publish.privacy": "حریم خصوصی",
"publish.privacy.public": "عمومی",
"publish.privacy.contacts": "مخاطبین",
"publish.privacy.private": "خصوصی",
"publish.resolution": "وضوح تصویر",
"publish.res.source": "منبع اصلی",
"publish.fps": "فریم بر ثانیه",
"publish.bitrate": "بیت‌ریت",
"publish.audioBitrate": "بیت‌ریت صدا [کیلوبیت بر ثانیه]",
"publish.viewerLimit": "حداکثر تعداد بیننده",
"publish.mode": "حالت اتصال",
"publish.mode.p2p": "نظیر به نظیر (P2P)",
"publish.mode.server": "سرور",
"publish.mode.serverUnavailable": "حالت سرور از طریق SFU در TS6 انجام می‌شود و هنوز پیاده‌سازی نشده است.",
"stream.untitled": "پخش زنده",
"stream.stop": "بستن پخش زنده",
"stream.live": "زنده",
"stream.state.new": "در انتظار پیشنهاد اتصال…",
"stream.state.connecting": "در حال اتصال…",
"stream.state.connected": "زنده",
"stream.state.disconnected": "اتصال قطع شد",
"stream.state.failed": "اتصال ناموفق بود",
"stream.state.closed": "پایان یافت",
"chat.server": "سرور",
"chat.channel": "کانال",
"chat.notConnected": "متصل نیست",
"chat.messageChannel": "پیام به کانال...",
"chat.messageServer": "پیام به سرور...",
"chat.messagePartner": "پیام به {name}...",
"chat.send": "ارسال",
"chat.you": "شما",
"serverLog.clientJoin": "{client} وارد کانال «{channel}» شد",
"serverLog.clientLeave": "{client} قطع اتصال شد (خروج)",
"serverLog.clientChannelSwitch": "{client} از کانال «{fromChannel}» به «{toChannel}» منتقل شد",
"serverLog.clientChannelGroupAssigned": "گروه کانال «{group}» به {client} اختصاص یافت",
"serverLog.channelCreated": "کانال «{channel}» ایجاد شد",
"serverLog.channelDeleted": "کانال «{channel}» حذف شد",
"serverLog.channelEdited": "کانال «{channel}» ویرایش شد",
"serverLog.serverEdited": "تنظیمات سرور تغییر کرد",
"serverLog.permissionError": "مجوز کافی نیست: {action}",
"poke.title": "سقلمه",
"poke.optionalMessage": "پیام اختیاری...",
"poke.send": "سقلمه",
"poke.cancel": "لغو",
"poke.pokedYou": "به تو سقلمه زد",
"poke.dismiss": "رد کردن",
"kick.title": "اخراج:",
"kick.reasonPlaceholder": "دلیل (اختیاری)...",
"kick.confirm": "اخراج",
"kick.cancel": "لغو",
"ban.title": "مسدود کردن:",
"ban.reasonPlaceholder": "دلیل (اختیاری)...",
"ban.duration": "مدت زمان:",
"ban.durationPermanent": "دائمی",
"ban.duration1h": "۱ ساعت",
"ban.duration1d": "۱ روز",
"ban.duration1w": "۱ هفته",
"ban.confirm": "مسدود کردن",
"ban.cancel": "لغو",
"serverEdit.title": "ویرایش سرور مجازی",
"serverEdit.tab.host": "میزبان",
"serverEdit.tab.misc": "متفرقه",
"serverEdit.tab.transmission": "انتقال",
"serverEdit.tab.antiflood": "ضد سیل پیام",
"serverEdit.tab.security": "امنیت",
"serverEdit.tab.log": "گزارش",
"serverEdit.name": "نام سرور:",
"serverEdit.welcomeMessage": "پیام خوش‌آمدگویی:",
"serverEdit.clearPassword": "حذف رمز عبور سرور",
"serverEdit.newPassword": "رمز عبور جدید سرور:",
"serverEdit.hostmessage": "پیام میزبان:",
"serverEdit.hostmessageMode": "حالت نمایش:",
"serverEdit.hostmessageMode.none": "نمایش داده نشود",
"serverEdit.hostmessageMode.log": "نمایش در گزارش",
"serverEdit.hostmessageMode.modal": "نمایش به‌صورت پنجره",
"serverEdit.hostmessageMode.modalquit": "نمایش به‌صورت پنجره و قطع اتصال",
"serverEdit.hostbannerUrl": "آدرس بنر میزبان:",
"serverEdit.hostbannerGfxUrl": "آدرس تصویر بنر میزبان:",
"serverEdit.hostbannerGfxInterval": "بازه به‌روزرسانی بنر (ثانیه):",
"serverEdit.hostbannerMode": "مقیاس بنر:",
"serverEdit.hostbannerMode.noadjust": "تنظیم نشود",
"serverEdit.hostbannerMode.adjustignoreaspect": "تنظیم (نادیده گرفتن نسبت ابعاد)",
"serverEdit.hostbannerMode.adjustkeepaspect": "تنظیم (حفظ نسبت ابعاد)",
"serverEdit.hostbuttonTooltip": "راهنمای دکمه میزبان:",
"serverEdit.hostbuttonUrl": "آدرس دکمه میزبان:",
"serverEdit.hostbuttonGfxUrl": "آدرس تصویر دکمه میزبان:",
"serverEdit.maxClients": "حداکثر کاربران:",
"serverEdit.nickname": "نام مستعار سرور:",
"serverEdit.phoneticName": "تلفظ نام:",
"serverEdit.codecEncryptionMode": "رمزنگاری صدا:",
"serverEdit.codecEncryptionMode.perchannel": "قابل تنظیم برای هر کانال",
"serverEdit.codecEncryptionMode.forcedoff": "غیرفعال سراسری",
"serverEdit.codecEncryptionMode.forcedon": "فعال سراسری",
"serverEdit.unchanged": "بدون تغییر",
"serverEdit.save": "ذخیره",
"serverEdit.cancel": "لغو",
"serverProtocolLog.title": "گزارش سرور",
"serverProtocolLog.empty": "هیچ رکورد گزارشی وجود ندارد.",
"banList.title": "لیست مسدودشده‌ها",
"banList.empty": "هیچ مسدودی‌ای یافت نشد.",
"banList.name": "نام",
"banList.ip": "IP",
"banList.created": "ایجادشده",
"banList.duration": "مدت زمان",
"banList.invoker": "توسط",
"banList.reason": "دلیل",
"banList.permanent": "دائمی",
"banList.delete": "حذف",
"banList.deleteAll": "حذف همه",
"complainList.title": "لیست شکایات",
"complainList.empty": "هیچ شکایتی یافت نشد.",
"complainList.target": "هدف",
"complainList.from": "از طرف",
"complainList.message": "پیام",
"complainList.timestamp": "زمان",
"offlineMessages.title": "پیام‌های آفلاین",
"offlineMessages.empty": "هیچ پیامی یافت نشد.",
"offlineMessages.subject": "موضوع",
"offlineMessages.from": "از طرف",
"offlineMessages.timestamp": "زمان",
"offlineMessages.targetUid": "شناسه یکتای مقصد",
"offlineMessages.message": "پیام",
"offlineMessages.send": "ارسال",
"offlineMessages.new": "پیام جدید",
"offlineMessages.markRead": "علامت‌گذاری به‌عنوان خوانده‌شده",
"offlineMessages.backToList": "بازگشت به لیست",
"dialog.cancel": "لغو",
"groupAssign.channelTitle": "اختصاص گروه کانال",
"groupAssign.serverTitle": "اختصاص گروه سرور",
"groupAssign.empty": "هیچ گروهی یافت نشد.",
"groupAssign.clickToRemove": "برای حذف کلیک کن",
"serverQueryLogin.username": "نام کاربری",
"serverQueryLogin.password": "رمز عبور",
"serverQueryLogin.login": "ورود",
"permissionOverview.title": "مجوزهای من",
"permissionOverview.empty": "هیچ مجوزی یافت نشد.",
"permissionOverview.name": "مجوز",
"permissionOverview.value": "مقدار",
"permissionOverview.negated": "معکوس‌شده",
"permissionOverview.skip": "رد شدن",
"permsEditor.title": "مجوزها",
"permsEditor.tab.server": "گروه‌های سرور",
"permsEditor.tab.client": "مجوزهای کاربر",
"permsEditor.tab.channel": "مجوزهای کانال",
"permsEditor.tab.channelgroup": "گروه‌های کانال",
"permsEditor.tab.channelclient": "مجوزهای کاربر در کانال",
"permsEditor.clientDbId": "شناسه یکتای پایگاه‌داده کاربر:",
"permsEditor.load": "بارگذاری",
"permsEditor.pickOnlineClient": "یا یک کاربر آنلاین را انتخاب کن...",
"permsEditor.pickTarget": "یک گروه/کانال را از سمت چپ انتخاب کن یا شناسه کاربر را وارد کن.",
"permsEditor.addPermission": "افزودن",
"permsEditor.searchPermission": "جستجوی مجوز...",
"dialog.ok": "تأیید",
"channelContext.join": "تغییر به این کانال",
"channelContext.files": "فایل‌ها...",
"fileBrowser.title": "انتقال فایل",
"fileBrowser.up": "بالا",
"fileBrowser.refresh": "بارگذاری مجدد",
"fileBrowser.newFolder": "پوشه جدید",
"fileBrowser.upload": "بارگذاری",
"fileBrowser.folderName": "نام پوشه",
"fileBrowser.empty": "این پوشه خالی است.",
"fileBrowser.name": "نام",
"fileBrowser.size": "حجم",
"fileBrowser.modified": "آخرین تغییر",
"fileBrowser.download": "دانلود",
"fileBrowser.rename": "تغییر نام",
"fileBrowser.delete": "حذف",
"fileBrowser.deleteConfirm": "واقعاً حذف شود؟",
"fileBrowser.uploading": "در حال بارگذاری...",
"fileBrowser.downloading": "در حال دانلود...",
"serverContext.icons": "آیکون‌های سرور...",
"serverIcons.title": "مدیریت آیکون‌های سرور",
"serverIcons.upload": "بارگذاری آیکون",
"serverIcons.iconId": "شناسه آیکون",
"serverIcons.empty": "هیچ آیکونی یافت نشد.",
"clientContext.privateChat": "گفتگوی خصوصی",
"clientContext.poke": "سقلمه",
"clientContext.watchStream": "تماشای پخش زنده",
"clientContext.moveTo": "انتقال به…",
"clientContext.copyName": "کپی نام",
"clientContext.connectionInfo": "نمایش اطلاعات اتصال",
"clientContext.addWhisperTarget": "افزودن به مقصدهای نجوا",
"clientContext.removeWhisperTarget": "حذف از مقصدهای نجوا",
"clientContext.assignChannelGroup": "اختصاص گروه کانال",
"clientContext.assignServerGroup": "اختصاص گروه سرور",
"clientContext.kickChannel": "اخراج از کانال",
"clientContext.kick": "اخراج از سرور",
"clientContext.ban": "مسدود کردن",
"clientContext.notSupported": "هنوز در کلاینت وب پشتیبانی نمی‌شود",
"moveClient.title": "انتقال",
"moveClient.empty": "هیچ کانالی موجود نیست.",
"moveClient.current": "کانال فعلی",
"moveClient.spacer": "فاصله‌گذار",
"serverContext.connectionInfo": "اطلاعات اتصال سرور",
"serverContext.copyAddress": "کپی آدرس سرور",
"serverContext.addFavorite": "افزودن به نشانک‌ها",
"serverContext.disconnect": "قطع اتصال",
"connectError.dismiss": "رد کردن",
"dialog.close": "بستن",
"sounds.title": "صداها",
"sounds.subtitle": "پیکربندی اعلان‌های صوتی برای رویدادها",
"sounds.enable": "فعال‌سازی صداها",
"sounds.volume": "میزان صدا",
"sounds.eventEnable": "فعال‌سازی این صدا",
"sounds.event.connect": "متصل شد",
"sounds.event.disconnect": "قطع اتصال شد",
"sounds.event.clientJoin": "ورود کاربر",
"sounds.event.clientLeave": "خروج کاربر",
"sounds.event.message": "پیام دریافت شد",
"sounds.event.poke": "سقلمه دریافت شد",
"sounds.default": "پیش‌فرض",
"sounds.custom": "فایل سفارشی: {name}",
"sounds.test": "▶ آزمایش",
"sounds.upload": "بارگذاری",
"sounds.reset": "بازنشانی",
"sounds.importSoundpack": "وارد کردن بسته صوتی (.ts3soundpack)",
"sounds.importResult": "{matched} صدا وارد شد، {unmatched} فایل مطابقت نداشت",
"nachrichten.title": "پیام‌ها",
"nachrichten.subtitle": "سفارشی‌سازی پیام‌ها",
"nachrichten.disconnectMessage": "قطع اتصال:",
"nachrichten.disconnectMessagePlaceholder": "خروج",
"nachrichten.presetsTitle": "پیام‌های از پیش تنظیم‌شده",
"nachrichten.type": "نوع",
"nachrichten.type.away": "غیبت",
"nachrichten.templateName": "نام الگو",
"nachrichten.message": "پیام",
"nachrichten.add": "افزودن",
"nachrichten.delete": "حذف"
}
+622
View File
@@ -0,0 +1,622 @@
{
"menu.connections": "连接",
"menu.connections.connect": "连接",
"menu.connections.disconnectCurrent": "断开当前服务器",
"menu.connections.disconnectAll": "断开所有服务器",
"menu.favorites": "收藏夹",
"menu.favorites.add": "添加到收藏夹",
"menu.favorites.manage": "管理收藏夹",
"menu.self": "自己",
"menu.rights": "权限",
"menu.rights.serverGroups": "编辑服务器组...",
"menu.rights.channelGroups": "编辑频道组...",
"menu.rights.serverPermissions": "编辑服务器权限...",
"menu.rights.channelPermissions": "编辑频道权限...",
"menu.rights.overview": "权限概览...",
"menu.rights.myRights": "查看我的权限",
"menu.extras": "工具",
"menu.help": "帮助",
"menu.extras.identities": "身份",
"menu.extras.contacts": "联系人",
"menu.extras.collectedUrls": "收集的链接",
"menu.extras.inviteFriend": "邀请好友",
"menu.extras.whisperLists": "悄悄话列表",
"menu.extras.whisperHistory": "悄悄话历史",
"menu.extras.clientLog": "客户端日志",
"menu.extras.banList": "封禁列表",
"menu.extras.complaintList": "投诉列表",
"menu.extras.offlineMessages": "离线消息",
"menu.extras.serverQueryLogin": "ServerQuery 登录",
"menu.extras.serverLog": "服务器日志",
"menu.extras.startRecording": "开始录音",
"menu.extras.startMultitrackRecording": "开始多轨录音",
"menu.extras.stopRecording": "停止录音",
"menu.extras.options": "选项",
"toolbar.setAway": "设为离开",
"toolbar.backOnline": "恢复在线",
"toolbar.awayOptions": "离开选项",
"toolbar.whisper": "悄悄话目标",
"whisper.channels": "频道",
"whisper.clients": "用户",
"whisper.clearAll": "清除所有悄悄话目标",
"toolbar.micEnable": "启用麦克风",
"toolbar.micMute": "麦克风静音",
"toolbar.micUnmute": "取消麦克风静音",
"toolbar.vadSensitivity": "语音激活灵敏度",
"toolbar.muteSound": "关闭声音(拒听)",
"toolbar.unmuteSound": "开启声音(取消拒听)",
"toolbar.chooseOutputDevice": "选择输出设备",
"toolbar.toggleTheme": "切换主题",
"away.setGlobal": "全局设为离开",
"away.setGlobalStatus": "设置全局离开状态",
"connect.title": "连接",
"connect.serverAddress": "服务器昵称或地址:",
"connect.serverPassword": "服务器密码:",
"connect.nickname": "昵称:",
"connect.phoneticNickname": "昵称读音:",
"connect.identity": "身份:",
"connect.defaultChannel": "默认频道:",
"connect.recordingProfile": "录音配置:",
"connect.channelPassword": "频道密码:",
"connect.playbackProfile": "播放配置:",
"connect.onetimeGrant": "一次性权限密钥:",
"connect.serverType": "服务器类型:",
"connect.serverType.auto": "自动",
"connect.serverType.teamspeak": "TeamSpeak",
"connect.serverType.teaspeak": "TeaSpeak",
"connect.hotkeyProfile": "快捷键配置:",
"connect.soundPack": "声音包:",
"connect.more": "更多",
"connect.less": "收起",
"connect.connect": "连接",
"connect.connecting": "正在连接…",
"connect.newTab": "在新标签页中打开",
"connect.cancel": "取消",
"collectedUrls.title": "收集的链接",
"collectedUrls.search": "搜索:",
"collectedUrls.url": "链接",
"collectedUrls.count": "次数",
"collectedUrls.lastSeen": "最后提及",
"collectedUrls.mentionedBy": "提及者",
"collectedUrls.clearList": "清空列表",
"inviteFriend.title": "邀请好友",
"inviteFriend.type": "邀请类型",
"inviteFriend.includeChannel": "包含当前频道",
"inviteFriend.link": "链接",
"inviteFriend.addPermissionKey": "添加权限密钥",
"inviteFriend.copyToClipboard": "复制到剪贴板",
"inviteFriend.copied": "已复制!",
"clientLog.title": "客户端日志",
"clientLog.level.critical": "严重",
"clientLog.level.error": "错误",
"clientLog.level.warning": "警告",
"clientLog.level.info": "信息",
"clientLog.level.debug": "调试",
"clientLog.search": "搜索:",
"clientLog.filter": "筛选:",
"clientLog.caseSensitive": "区分大小写",
"clientLog.mark": "标记",
"whisperHistory.title": "悄悄话历史 - {server}",
"whisperHistory.empty": "暂无悄悄话历史。",
"whisperHistory.started": "正在向以下目标发送悄悄话:{targets}",
"whisperHistory.stopped": "已停止悄悄话",
"whisperHistory.clear": "清除",
"whisperHistory.options": "选项",
"whisperLists.title": "悄悄话列表",
"whisperLists.namePlaceholder": "列表名称",
"whisperLists.saveCurrent": "保存当前选择",
"whisperLists.itemDetail": "{channels} 个频道,{clients} 个用户",
"whisperLists.activate": "启用",
"whisperLists.delete": "删除",
"whisperLists.empty": "尚未保存悄悄话列表。请选择悄悄话目标并在此保存为列表。",
"identities.title": "身份",
"identities.activate": "启用",
"identities.add": "新建身份",
"identities.delete": "删除",
"identities.newName": "新身份",
"identities.generated": "已生成",
"identities.pending": "将在下次连接时生成",
"identities.listLabel": "本地身份",
"identities.name": "身份名称:",
"identities.phoneticNickname": "昵称读音:",
"identities.uniqueId": "唯一 ID:",
"identities.unknown": "未知",
"identities.setDefault": "设为默认",
"identities.isDefault": "当前用作默认身份",
"identities.export": "导出",
"identities.import": "导入",
"connectionInfo.clientTitle": "连接信息 - {name}",
"connectionInfo.serverTitle": "服务器连接信息",
"connectionInfo.loading": "正在加载…",
"connectionInfo.unavailable": "服务器无响应(可能缺少权限)。",
"connectionInfo.ping": "延迟:",
"connectionInfo.connectedSince": "连接时间:",
"connectionInfo.uptime": "运行时间:",
"connectionInfo.name": "名称:",
"connectionInfo.avgPing": "平均延迟:",
"connectionInfo.avgPacketLoss": "平均丢包率:",
"connectionInfo.incoming": "传入",
"connectionInfo.outgoing": "传出",
"connectionInfo.packetsTransferred": "传输数据包",
"connectionInfo.bytesTransferred": "传输字节",
"connectionInfo.bandwidthLastSecond": "上一秒带宽",
"connectionInfo.bandwidthLastMinute": "上一分钟带宽",
"connectionInfo.ftBandwidth": "文件传输带宽",
"connectionInfo.ftBytes": "文件传输字节",
"connectionInfo.ip": "IP 地址:",
"connectionInfo.packetLoss": "丢包率:",
"connectionInfo.packetsSent": "已发送数据包:",
"connectionInfo.packetsReceived": "已接收数据包:",
"connectionInfo.bytesSent": "已发送数据:",
"connectionInfo.bytesReceived": "已接收数据:",
"connectionInfo.bandwidthSent": "发送带宽:",
"connectionInfo.bandwidthReceived": "接收带宽:",
"menu.self.recordingProfile": "录音配置",
"menu.self.playbackProfile": "播放配置",
"menu.self.hotkeyProfile": "快捷键配置",
"menu.self.soundPack": "声音包",
"menu.self.setAway": "设为离开",
"menu.self.enableMic": "启用麦克风",
"menu.self.disableMic": "禁用麦克风",
"menu.self.muteOutput": "关闭扬声器/耳机",
"menu.self.unmuteOutput": "开启扬声器/耳机",
"menu.self.changeNickname": "更改昵称",
"menu.self.requestTalkPower": "申请发言权限",
"menu.self.setAvatar": "设置头像",
"menu.self.setPhoneticNickname": "设置昵称读音",
"menu.self.connectionInfo": "连接信息",
"contacts.title": "联系人",
"contacts.addOnlineClient": "选择在线用户...",
"contacts.add": "添加",
"contacts.remove": "移除",
"contacts.empty": "暂无联系人。",
"contacts.customName": "自定义名称:",
"contacts.category.acquaintance": "熟人",
"contacts.category.blocked": "已屏蔽",
"contacts.category.friend": "好友",
"contacts.phoneticName": "名称读音:",
"contacts.show": "显示",
"contacts.ignore": "忽略",
"contacts.unignore": "取消忽略",
"contacts.whisper": "悄悄话",
"contacts.preferences": "偏好设置",
"favorites.title": "🔖 myTeamSpeak 收藏夹",
"favorites.synced": "已同步的收藏",
"favorites.notLoggedIn": "未登录",
"favorites.local": "本地收藏",
"favorites.unnamed": "(未命名)",
"favorites.bookmarkName": "收藏名称:",
"favorites.newFavoriteName": "新收藏",
"favorites.showServerQueryClients": "显示 ServerQuery 用户",
"favorites.connectOnStartup": "启动时连接",
"favorites.new": "新建收藏",
"favorites.newFolder": "新建文件夹",
"favorites.remove": "移除",
"favorites.ok": "确定",
"favorites.cancel": "取消",
"favorites.apply": "应用",
"away.dialog.title": "设置离开消息",
"away.dialog.message": "消息:",
"away.dialog.template": "模板:",
"away.dialog.none": "<无>",
"away.dialog.ok": "确定",
"away.dialog.save": "保存",
"away.dialog.cancel": "取消",
"options.title": "选项",
"options.ok": "确定",
"options.cancel": "取消",
"options.notImplemented": "此设置尚未实现。",
"options.section.anwendung": "应用",
"options.section.wiedergabe": "播放",
"options.section.aufnahme": "录音",
"options.section.design": "外观",
"design.subtitle": "选择应用外观。",
"design.theme.standard": "标准",
"design.theme.standard.desc": "原始 WebSpeak3 设计。",
"design.theme.nova": "Nova",
"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": "快捷键",
"options.section.whispern": "悄悄话",
"options.section.downloads": "下载",
"options.section.chat": "聊天",
"options.section.sicherheit": "安全",
"options.section.nachrichten": "消息",
"options.section.meldungen": "通知",
"options.section.sounds": "声音",
"app.title": "应用",
"app.subtitle": "常规应用设置",
"app.language": "语言",
"app.language.auto": "跟随系统",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →",
"playback.title": "播放",
"playback.subtitle": "更改播放设置",
"playback.profile": "配置",
"playback.default": "默认",
"playback.device": "播放设备:",
"playback.systemDefault": "系统默认",
"playback.quiet": "安静",
"playback.loud": "响亮",
"playback.voiceVolume": "语音音量",
"playback.playTestTone": "▶ 播放测试音",
"playback.options": "选项",
"playback.autoVolume": "自动调节音量",
"playback.ownMicClicks": "播放自己的麦克风按键音",
"playback.otherMicClicks": "播放其他用户的麦克风按键音",
"recording.title": "录音",
"recording.subtitle": "更改录音设置",
"recording.device": "录音设备:",
"recording.activation": "激活方式",
"recording.pushToTalk": "按键说话",
"recording.continuous": "持续传输",
"recording.voiceActivation": "语音激活检测",
"recording.testStart": "开始测试",
"recording.testStop": "停止测试",
"recording.hangoverDelay": "停止前延迟:",
"recording.secondsUnit": "秒",
"recording.dsp": "数字信号处理",
"recording.typingAttenuation": "键盘声衰减",
"recording.echoCancellation": "回声消除",
"recording.noiseSuppression": "消除背景噪声",
"info.address": "地址:",
"info.version": "版本:",
"info.license": "许可证:",
"info.currentClients": "当前用户:",
"info.currentChannels": "当前频道:",
"info.topic": "主题:",
"info.audioCodec": "音频编解码器:",
"info.spacer": "间隔符:",
"info.rawName": "原始名称:",
"info.passwordProtected": "密码保护:",
"info.clients": "用户:",
"info.country": "国家:",
"info.muted": "麦克风静音:",
"info.outputMuted": "扬声器静音:",
"info.serverGroups": "服务器组:",
"info.yes": "是",
"info.no": "否",
"tree.notConnected": "未连接",
"tree.clickToSelect": "单击选择,双击加入",
"tree.clickToJoin": "双击加入",
"tree.joinNotConnected": "未连接 — 无法切换频道",
"tree.passwordProtected": "受密码保护",
"tree.privateChatWith": "与其私聊",
"tree.poke": "戳一戳",
"tree.channelCommander": "频道指挥官",
"tree.away": "离开",
"tree.micMuted": "麦克风已静音",
"tree.talking": "正在说话",
"tree.noTalkPower": "在此频道中没有发言权限",
"tree.soundMuted": "声音已关闭(拒听)",
"chat.server": "服务器",
"chat.channel": "频道",
"chat.notConnected": "未连接",
"chat.messageChannel": "向频道发送消息...",
"chat.messageServer": "向服务器发送消息...",
"chat.messagePartner": "向 {name} 发送消息...",
"chat.send": "发送",
"chat.you": "你",
"serverLog.clientJoin": "{client} 进入了频道“{channel}”",
"serverLog.clientLeave": "{client} 已断开连接(离开)",
"serverLog.clientChannelSwitch": "{client} 从频道“{fromChannel}”移动到“{toChannel}”",
"serverLog.clientChannelGroupAssigned": "已将频道组“{group}”分配给 {client}",
"serverLog.channelCreated": "频道“{channel}”已创建",
"serverLog.channelDeleted": "频道“{channel}”已删除",
"serverLog.channelEdited": "频道“{channel}”已编辑",
"serverLog.serverEdited": "服务器设置已更改",
"serverLog.permissionError": "缺少权限:{action}",
"poke.title": "戳一戳",
"poke.optionalMessage": "可选消息...",
"poke.send": "发送",
"poke.cancel": "取消",
"poke.pokedYou": "戳了你一下",
"poke.dismiss": "关闭",
"kick.title": "踢出:",
"kick.reasonPlaceholder": "原因(可选)...",
"kick.confirm": "踢出",
"kick.cancel": "取消",
"ban.title": "封禁:",
"ban.reasonPlaceholder": "原因(可选)...",
"ban.duration": "时长:",
"ban.durationPermanent": "永久",
"ban.duration1h": "1 小时",
"ban.duration1d": "1 天",
"ban.duration1w": "1 周",
"ban.confirm": "封禁",
"ban.cancel": "取消",
"serverEdit.title": "编辑虚拟服务器",
"serverEdit.tab.host": "主机",
"serverEdit.tab.misc": "其他",
"serverEdit.tab.transmission": "传输",
"serverEdit.tab.antiflood": "防刷屏",
"serverEdit.tab.security": "安全",
"serverEdit.tab.log": "日志",
"serverEdit.name": "服务器名称:",
"serverEdit.welcomeMessage": "欢迎消息:",
"serverEdit.clearPassword": "移除服务器密码",
"serverEdit.newPassword": "新服务器密码:",
"serverEdit.hostmessage": "主机消息:",
"serverEdit.hostmessageMode": "显示模式:",
"serverEdit.hostmessageMode.none": "不显示",
"serverEdit.hostmessageMode.log": "在日志中显示",
"serverEdit.hostmessageMode.modal": "以对话框显示",
"serverEdit.hostmessageMode.modalquit": "以对话框显示并断开连接",
"serverEdit.hostbannerUrl": "主机横幅链接:",
"serverEdit.hostbannerGfxUrl": "主机横幅图片链接:",
"serverEdit.hostbannerGfxInterval": "横幅刷新间隔(秒):",
"serverEdit.hostbannerMode": "横幅缩放:",
"serverEdit.hostbannerMode.noadjust": "不调整",
"serverEdit.hostbannerMode.adjustignoreaspect": "调整(忽略宽高比)",
"serverEdit.hostbannerMode.adjustkeepaspect": "调整(保持宽高比)",
"serverEdit.hostbuttonTooltip": "主机按钮提示:",
"serverEdit.hostbuttonUrl": "主机按钮链接:",
"serverEdit.hostbuttonGfxUrl": "主机按钮图片链接:",
"serverEdit.maxClients": "最大用户数:",
"serverEdit.nickname": "服务器昵称:",
"serverEdit.phoneticName": "名称读音:",
"serverEdit.codecEncryptionMode": "语音加密:",
"serverEdit.codecEncryptionMode.perchannel": "可按频道配置",
"serverEdit.codecEncryptionMode.forcedoff": "全局禁用",
"serverEdit.codecEncryptionMode.forcedon": "全局启用",
"serverEdit.unchanged": "保持不变",
"serverEdit.save": "保存",
"serverEdit.cancel": "取消",
"serverProtocolLog.title": "服务器日志",
"serverProtocolLog.empty": "暂无日志条目。",
"banList.title": "封禁列表",
"banList.empty": "未找到封禁记录。",
"banList.name": "名称",
"banList.ip": "IP",
"banList.created": "创建时间",
"banList.duration": "时长",
"banList.invoker": "执行者",
"banList.reason": "原因",
"banList.permanent": "永久",
"banList.delete": "删除",
"banList.deleteAll": "全部删除",
"complainList.title": "投诉列表",
"complainList.empty": "未找到投诉记录。",
"complainList.target": "对象",
"complainList.from": "来自",
"complainList.message": "消息",
"complainList.timestamp": "时间",
"offlineMessages.title": "离线消息",
"offlineMessages.empty": "暂无消息。",
"offlineMessages.subject": "主题",
"offlineMessages.from": "来自",
"offlineMessages.timestamp": "时间",
"offlineMessages.targetUid": "目标 UID",
"offlineMessages.message": "消息",
"offlineMessages.send": "发送",
"offlineMessages.new": "新消息",
"offlineMessages.markRead": "标记为已读",
"offlineMessages.backToList": "返回列表",
"dialog.cancel": "取消",
"groupAssign.channelTitle": "分配频道组",
"groupAssign.serverTitle": "分配服务器组",
"groupAssign.empty": "未找到组。",
"groupAssign.clickToRemove": "单击移除",
"serverQueryLogin.username": "用户名",
"serverQueryLogin.password": "密码",
"serverQueryLogin.login": "登录",
"permissionOverview.title": "我的权限",
"permissionOverview.empty": "未找到权限。",
"permissionOverview.name": "权限",
"permissionOverview.value": "值",
"permissionOverview.negated": "否定",
"permissionOverview.skip": "跳过",
"permsEditor.title": "权限",
"permsEditor.tab.server": "服务器组",
"permsEditor.tab.client": "用户权限",
"permsEditor.tab.channel": "频道权限",
"permsEditor.tab.channelgroup": "频道组",
"permsEditor.tab.channelclient": "频道用户权限",
"permsEditor.clientDbId": "唯一用户数据库 ID:",
"permsEditor.load": "加载",
"permsEditor.pickOnlineClient": "或选择在线用户...",
"permsEditor.pickTarget": "请在左侧选择组或频道,或输入用户 ID。",
"permsEditor.addPermission": "添加",
"permsEditor.searchPermission": "搜索权限...",
"dialog.ok": "确定",
"channelContext.join": "切换到频道",
"channelContext.files": "文件...",
"fileBrowser.title": "文件传输",
"fileBrowser.up": "上一级",
"fileBrowser.refresh": "刷新",
"fileBrowser.newFolder": "新建文件夹",
"fileBrowser.upload": "上传",
"fileBrowser.folderName": "文件夹名称",
"fileBrowser.empty": "此文件夹为空。",
"fileBrowser.name": "名称",
"fileBrowser.size": "大小",
"fileBrowser.modified": "修改时间",
"fileBrowser.download": "下载",
"fileBrowser.rename": "重命名",
"fileBrowser.delete": "删除",
"fileBrowser.deleteConfirm": "确定要删除吗?",
"fileBrowser.uploading": "正在上传...",
"fileBrowser.downloading": "正在下载...",
"serverContext.icons": "服务器图标...",
"serverIcons.title": "管理服务器图标",
"serverIcons.upload": "上传图标",
"serverIcons.iconId": "图标 ID",
"serverIcons.empty": "未找到图标。",
"clientContext.privateChat": "私聊",
"clientContext.poke": "戳一戳",
"clientContext.moveTo": "移动到…",
"clientContext.copyName": "复制名称",
"clientContext.connectionInfo": "查看连接信息",
"clientContext.addWhisperTarget": "添加为悄悄话目标",
"clientContext.removeWhisperTarget": "从悄悄话目标中移除",
"clientContext.assignChannelGroup": "分配频道组",
"clientContext.assignServerGroup": "分配服务器组",
"clientContext.kickChannel": "踢出频道",
"clientContext.kick": "踢出服务器",
"clientContext.ban": "封禁",
"clientContext.notSupported": "网页客户端暂不支持此功能",
"moveClient.title": "移动",
"moveClient.empty": "没有可用频道。",
"moveClient.current": "当前频道",
"moveClient.spacer": "间隔频道",
"serverContext.connectionInfo": "服务器连接信息",
"serverContext.copyAddress": "复制服务器地址",
"serverContext.addFavorite": "添加到收藏夹",
"serverContext.disconnect": "断开连接",
"connectError.dismiss": "关闭",
"dialog.close": "关闭",
"sounds.title": "声音",
"sounds.subtitle": "配置事件提示音",
"sounds.enable": "启用声音",
"sounds.volume": "音量",
"sounds.eventEnable": "启用此声音",
"sounds.event.connect": "已连接",
"sounds.event.disconnect": "已断开",
"sounds.event.clientJoin": "用户加入",
"sounds.event.clientLeave": "用户离开",
"sounds.event.message": "收到消息",
"sounds.event.poke": "收到戳一戳",
"sounds.default": "默认",
"sounds.custom": "自定义文件:{name}",
"sounds.test": "▶ 测试",
"sounds.upload": "上传",
"sounds.reset": "重置",
"sounds.importSoundpack": "导入声音包(.ts3soundpack)",
"sounds.importResult": "已导入 {matched} 个声音,{unmatched} 个文件未匹配",
"nachrichten.title": "消息",
"nachrichten.subtitle": "自定义消息",
"nachrichten.disconnectMessage": "断开连接:",
"nachrichten.disconnectMessagePlaceholder": "离开",
"nachrichten.presetsTitle": "预设消息",
"nachrichten.type": "类型",
"nachrichten.type.away": "离开",
"nachrichten.templateName": "模板名称",
"nachrichten.message": "消息",
"nachrichten.add": "添加",
"nachrichten.delete": "删除",
"menu.help.about": "关于 WebSpeak3",
"menu.help.github": "GitHub",
"menu.help.changelog": "更新日志",
"menu.help.translate": "参与翻译(Weblate)",
"menu.extras.feedback": "发送反馈",
"feedback.fab.nudge": "你觉得 WebSpeak3 怎么样?欢迎反馈!",
"donate.label": "捐助",
"donate.title": "在 Ko-fi 上支持 WebSpeak3",
"pwa.updateAvailable": "有新版本可用",
"pwa.reload": "重新加载",
"feedback.dialog.title": "反馈",
"feedback.dialog.intro": "报告一个问题,或分享改进 WebSpeak3 的想法。",
"feedback.dialog.category": "类别",
"feedback.dialog.category.bug": "错误",
"feedback.dialog.category.idea": "建议",
"feedback.dialog.category.report": "举报(违规/滥用)",
"feedback.dialog.category.other": "其他",
"feedback.dialog.reportHint": "举报内容保持私密,不会作为 GitHub Issue 公开。如有需要可注明相关服务器。",
"feedback.dialog.message": "消息",
"feedback.dialog.messagePlaceholder": "发生了什么,或者你有什么建议?",
"feedback.dialog.email": "邮箱(可选,用于回复)",
"feedback.dialog.publishAsIssue": "作为公开的 GitHub Issue 发布",
"feedback.dialog.publishAsIssueHint": "不勾选则反馈保持私密,仅维护者可见。",
"feedback.dialog.publishAsIssueHintBug": "错误报告将始终作为公开的 GitHub Issue 发布。",
"feedback.dialog.send": "发送",
"feedback.dialog.cancel": "取消",
"feedback.dialog.sending": "发送中…",
"feedback.dialog.success": "感谢你的反馈!",
"feedback.dialog.successWithIssue": "谢谢!已创建 Issue:",
"feedback.dialog.error": "发送失败,请稍后重试。",
"restartNotice.title": "短暂中断",
"restartNotice.body": "服务器即将短暂重启,你的连接会中断片刻。",
"restartNotice.ack": "知道了",
"menu.extras.tos": "使用条款",
"tos.title": "client.webspeak3.de 使用条款",
"tos.rule1": "本客户端仅供通过浏览器私人、非商业使用 TeamSpeak / TeaSpeak / GreenTeaSpeak 服务器。",
"tos.rule2": "尤其禁止:任何违法行为、骚扰与仇恨言论、垃圾信息与刷屏、干扰服务运行,以及规避封禁。",
"tos.rule3": "违规可能导致访问权限被无预警封禁;严重情况可能会上报相关部门。",
"tos.rule4Pre": "出于运行安全和滥用检测的目的,连接信息(服务器地址、服务器名称、连接时间)会被记录,并在 90 天后自动删除 —— 详见",
"tos.rule4Post": "。",
"tos.privacyLinkText": "隐私政策",
"tos.rule5Pre": "如遇滥用或投诉:详见",
"tos.rule5Post": "。",
"tos.legalLinkText": "法律声明(Impressum)",
"tos.rule6": "点击“接受”即表示你同意本条款。你的同意状态仅保存在本地浏览器中;若条款更新,系统会再次询问。",
"tos.accept": "接受",
"tos.close": "关闭",
"connect.novaSubtitle": "WebSpeak3 完全在浏览器中运行 —— 无需下载",
"channelPasswordDialog.title": "需要频道密码",
"channelPasswordDialog.prompt": "此频道受密码保护,请输入密码:",
"channelPasswordDialog.wrongPassword": "密码错误,请重试:",
"channelPasswordDialog.submit": "加入",
"channelPasswordDialog.cancel": "取消",
"design.custom.new": "+ 新建设计",
"design.custom.import": "导入设计",
"design.custom.edit": "编辑",
"design.custom.duplicate": "复制",
"design.custom.export": "导出",
"design.custom.delete": "删除",
"design.custom.deleteConfirm": "确定要删除此设计吗?",
"design.custom.newTitle": "创建新设计",
"design.custom.editTitle": "编辑设计",
"design.custom.name": "名称",
"design.custom.base": "基础布局",
"design.custom.css": "CSS",
"design.custom.hint": "此 CSS 会在设计启用时加载。使用 .ts-app { ... } 以及现有的 CSS 变量(--accent、--bg、--text、--border 等)来调整颜色、圆角和间距 —— 通过 .ts-app .some-class { display: none } 或调整顺序,甚至可以改变布局。",
"design.custom.save": "保存",
"design.custom.copyOf": "{name} 的副本",
"design.custom.importError": "该文件无法作为 WebSpeak3 设计读取。",
"recording.autoGainControl": "自动增益控制",
"tree.streaming": "正在直播",
"publish.alpha": "内测",
"publish.alphaTitle": "内测阶段 —— 不稳定,可能随时变更或失效",
"publish.demoUnavailable": "演示模式下无法使用直播功能 —— 需要真实的 TeamSpeak 6 服务器。",
"publish.alphaNote": "直播功能处于内测阶段,使用的是 TeamSpeak 6 未公开文档的 Stream/Call 协议,因此连接、画质和观众处理可能会出错或在无预警的情况下发生变化,不建议用于正式场合。",
"publish.start": "共享屏幕",
"publish.stop": "停止共享",
"publish.title": "你的直播",
"publish.screen": "屏幕",
"publish.starting": "启动中…",
"publish.viewers": "{count} 人观看",
"publish.request.allow": "允许",
"publish.request.deny": "拒绝",
"publish.request.block": "屏蔽",
"publish.request.blockHint": "拒绝并不再询问",
"publish.dialog.title": "直播设置",
"publish.dialog.basic": "基本设置",
"publish.dialog.advanced": "高级设置",
"publish.dialog.golive": "开始直播",
"publish.dialog.cancel": "返回",
"publish.preset": "预设",
"publish.preset.presentation": "演示",
"publish.audio": "采集音频",
"publish.privacy": "可见范围",
"publish.privacy.public": "公开",
"publish.privacy.contacts": "联系人",
"publish.privacy.private": "私密",
"publish.resolution": "分辨率",
"publish.res.source": "源画质",
"publish.fps": "帧率",
"publish.bitrate": "码率",
"publish.audioBitrate": "音频码率 [Kbps]",
"publish.viewerLimit": "观众人数上限",
"publish.mode": "连接模式",
"publish.mode.p2p": "点对点(P2P)",
"publish.mode.server": "服务器",
"publish.mode.serverUnavailable": "服务器模式需经过 TS6 的 SFU,尚未实现。",
"stream.untitled": "直播",
"stream.stop": "关闭直播",
"stream.live": "直播中",
"stream.state.new": "等待推流…",
"stream.state.connecting": "连接中…",
"stream.state.connected": "直播中",
"stream.state.disconnected": "连接中断",
"stream.state.failed": "连接失败",
"stream.state.closed": "已结束",
"clientContext.watchStream": "观看直播"
}
+1
View File
@@ -1,6 +1,7 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import './styles/greenteaspeak.css'
import App from './App.tsx'
createRoot(document.getElementById('root')!).render(
+499
View File
@@ -0,0 +1,499 @@
// Publishing a stream that TeamSpeak 6 clients can watch.
//
// The mirror image of stream.ts. Where a viewer answers an offer, a publisher
// makes one - TS6 puts the first SDP in `respondjoinstreamrequest`, so the
// side that owns the stream is the side that offers.
//
// The exchange, from our side:
//
// 1. setupStream -> notifystreamstarted naming our own clid + the id
// 2. wait <- notifyjoinstreamrequest, one per viewer
// 3. offer respondJoinStream(accept, <our SDP>)
// 4. answer <- {cmd:"answer", args:{answer:"<sdp>"}}
// 5. trickle ICE both directions via {cmd:"iceCandidate"}
//
// TS6's P2P mode is a mesh: there is no SFU in the path, so every viewer gets
// its own peer connection and its own copy of the encoded media.
import type { StreamEvent } from "./stream";
// The three enums below are read straight out of TS6's own UI bundle
// (main.js), not inferred - see ts6-re/findings §10.
/** `type` in `setupstream`: what is being captured. */
export const StreamSource = {
NONE: 0,
CAMERA: 1,
SCREEN: 2,
WINDOW: 3,
EXISTING_SESSION: 4,
} as const;
/** `accessibility` in `setupstream`: TS6's Privacy setting. */
export const StreamAccess = {
NONE: 0,
PUBLIC: 1,
CONTACTS_ONLY: 2,
PRIVATE: 3,
} as const;
/** `mode` in `setupstream`: TS6's Connection Mode. */
export const StreamMode = {
NONE: 0,
P2P: 1,
SFU: 2,
} as const;
const DEFAULT_ICE_SERVERS: RTCIceServer[] = [
{ urls: "stun:turn.teamspeak.com:3478" },
{ urls: "stun:turn2.teamspeak.com:3478" },
{ urls: "stun:stun.l.google.com:19302" },
];
export interface StreamPublishOptions {
name: string;
/** Send the capture's audio track too, when the source has one. */
audio: boolean;
/** One of StreamAccess. */
accessibility: number;
/** One of StreamMode. Only P2P is implemented; SFU needs the mediasoup path. */
mode: number;
/** 0 means unlimited. */
viewerLimit: number;
/** Capture height in pixels; 0 keeps the source's own resolution. */
height: number;
/** Capture frame rate; 0 leaves it to the browser. */
fps: number;
videoBitrateKbps: number;
audioBitrateKbps: number;
/**
* What the encoder should protect when it runs out of bitrate. Slides and
* code want "detail" (keep text sharp, drop frames); a game wants "motion".
*/
contentHint: "motion" | "detail";
}
export interface StreamPublisherOptions {
send: (message: Record<string, unknown>) => void;
/** Needed to recognise our own `notifystreamstarted` among everyone's. */
ownClientId: number;
onStateChange?: (state: PublishState) => void;
onViewersChange?: (viewers: number[]) => void;
/** Join requests awaiting a decision, as [clid, message] pairs. */
onPendingChange?: (pending: [number, string][]) => void;
onError?: (error: string) => void;
iceServers?: RTCIceServer[];
}
export type PublishState = "idle" | "starting" | "live" | "stopped";
interface Viewer {
pc: RTCPeerConnection;
/** Candidates that arrived before the answer; replayed after. */
pending: RTCIceCandidateInit[];
answered: boolean;
}
export class StreamPublisher {
private readonly opts: StreamPublisherOptions;
private readonly viewers = new Map<number, Viewer>();
/** Requests waiting for the user to decide: clid -> the viewer's message. */
private readonly pending = new Map<number, string>();
/** Clients denied with "block"; they are refused without asking again. */
private readonly blocked = new Set<number>();
private media: MediaStream | null = null;
private state: PublishState = "idle";
private options: StreamPublishOptions | null = null;
/** Assigned by the server, not by us; null until notifystreamstarted. */
streamId: string | null = null;
/** The local capture, for showing the user what they are sending. */
get previewStream(): MediaStream | null {
return this.media;
}
constructor(opts: StreamPublisherOptions) {
this.opts = opts;
}
/**
* Captures a screen and announces the stream.
*
* `getDisplayMedia` is secure-context-only, so this throws on a plain-http
* origin - the same limitation the microphone already has.
*/
async start(options: StreamPublishOptions): Promise<void> {
if (this.state === "live" || this.state === "starting") return;
if (!navigator.mediaDevices?.getDisplayMedia) {
this.fail("Screen sharing requires HTTPS (or localhost) - the site is not a secure context.");
return;
}
this.setState("starting");
this.options = options;
const video: MediaTrackConstraints = {};
if (options.height > 0) video.height = { ideal: options.height };
if (options.fps > 0) video.frameRate = { ideal: options.fps };
try {
this.media = await navigator.mediaDevices.getDisplayMedia({
video: Object.keys(video).length > 0 ? video : true,
audio: options.audio,
});
} catch (err) {
this.setState("idle");
this.fail(`Could not capture the screen: ${describe(err)}`);
return;
}
for (const track of this.media.getVideoTracks()) track.contentHint = options.contentHint;
// The browser's own "stop sharing" bar bypasses our UI entirely, so the
// track ending is the authoritative signal that the stream is over.
for (const track of this.media.getTracks()) {
track.onended = () => this.stop();
}
this.opts.send({
type: "setupStream",
name: options.name,
// The browser's own picker decides whether this is a whole screen or a
// single window, so the type is read back off the track rather than
// asked for up front.
streamType: this.detectSourceType(),
bitrate: options.videoBitrateKbps * 1000,
accessibility: options.accessibility,
mode: options.mode,
viewerLimit: options.viewerLimit,
audio: options.audio && this.media.getAudioTracks().length > 0,
});
}
/** Feeds one `streamEvent` in; events for other streams are ignored. */
handleEvent(event: StreamEvent): void {
switch (event.name) {
case "notifystreamstarted":
// Everyone in the channel sees this, so the clid decides whether it
// is the answer to our own setupstream.
if (Number(event.args.clid) === this.opts.ownClientId && event.args.id) {
this.streamId = event.args.id;
this.setState("live");
}
break;
case "notifyjoinstreamrequest":
if (event.args.id === this.streamId) void this.admit(event.args);
break;
case "notifystreamsignaling":
if (event.args.id === this.streamId) void this.handleSignaling(event.args);
break;
case "notifystreamclientleft":
if (event.args.id === this.streamId) this.dropViewer(Number(event.args.clid));
break;
case "notifystreamstopped":
if (event.args.id === this.streamId) this.teardown("stopped");
break;
}
}
/**
* Decides what to do with an incoming join request.
*
* This mirrors TS6's own publisher-side rule, which is the only place either
* setting is enforced at all - the server stores `accessibility` and
* `viewer_limit`, echoes them back, and then forwards every request anyway
* (verified live: a PRIVATE stream at viewer_limit=1 still had both viewers
* announced to us).
*
* The important half is what happens to a request we do not take: TS6 leaves
* it *pending* rather than refusing it. A refusal is not sticky - TS6's own
* "block" path is deny plus a ban - so a refused client simply asks again, in
* a loop, and shows its user nothing. Left pending, it asks once and displays
* "waiting for access" until we answer.
*/
private async admit(args: Record<string, string>): Promise<void> {
const clid = Number(args.clid);
if (!Number.isFinite(clid) || !this.media || !this.streamId) return;
// is_remove=1 is how TS6 says "stop watching"; the same notify carries it.
if (args.is_remove === "1") {
this.dropViewer(clid);
return;
}
if (this.viewers.has(clid) || this.pending.has(clid)) return;
// Explicitly blocked earlier: refuse without bothering the user again.
if (this.blocked.has(clid)) {
this.refuse(clid, "Blocked");
return;
}
const limit = this.options?.viewerLimit ?? 0;
const full = limit > 0 && this.viewers.size >= limit;
const autoAccept = this.options?.accessibility === StreamAccess.PUBLIC && !full;
if (!autoAccept) {
// CONTACTS_ONLY behaves as PRIVATE here: the contact list is a TS6
// account feature webspeak3 has no access to, so it cannot be consulted.
this.pending.set(clid, args.msg ?? "");
this.notifyPending();
return;
}
await this.openTo(clid);
}
/** Lets a pending viewer in. Called by admit() or by the user. */
async approve(clid: number): Promise<void> {
if (!this.pending.delete(clid)) return;
this.notifyPending();
await this.openTo(clid);
}
/**
* Turns a pending viewer away. `block` also remembers the refusal, which is
* what makes it stick - TS6 pairs its deny with a ban for the same reason.
*/
deny(clid: number, block = false): void {
this.pending.delete(clid);
if (block) this.blocked.add(clid);
this.notifyPending();
this.refuse(clid, block ? "Blocked" : "Denied");
}
private refuse(clid: number, message: string): void {
if (!this.streamId) return;
this.opts.send({
type: "respondJoinStream",
streamId: this.streamId,
clientId: clid,
accept: false,
message,
});
}
/** Builds the peer connection for a viewer we have decided to let in. */
private async openTo(clid: number): Promise<void> {
if (!this.media || !this.streamId || this.viewers.has(clid)) return;
const pc = new RTCPeerConnection({ iceServers: this.opts.iceServers ?? DEFAULT_ICE_SERVERS });
const viewer: Viewer = { pc, pending: [], answered: false };
this.viewers.set(clid, viewer);
for (const track of this.media.getTracks()) pc.addTrack(track, this.media);
pc.onicecandidate = (ev) => {
if (!ev.candidate) return;
this.signal(clid, "iceCandidate", {
sdp: ev.candidate.candidate,
mid: ev.candidate.sdpMid ?? "0",
mLine: ev.candidate.sdpMLineIndex ?? 0,
});
};
pc.onconnectionstatechange = () => {
if (pc.connectionState === "failed" || pc.connectionState === "closed") this.dropViewer(clid);
};
try {
const offer = await pc.createOffer();
await pc.setLocalDescription(offer);
await this.applySendParameters(pc);
this.opts.send({
type: "respondJoinStream",
streamId: this.streamId,
clientId: clid,
accept: true,
offer: offer.sdp ?? "",
});
this.notifyViewers();
} catch (err) {
this.dropViewer(clid);
this.fail(`Could not offer the stream to client ${clid}: ${describe(err)}`);
}
}
private async handleSignaling(args: Record<string, string>): Promise<void> {
const clid = Number(args.clid);
const viewer = this.viewers.get(clid);
if (!viewer) return;
let msg: { cmd: string; args: unknown };
try {
msg = JSON.parse(args.json ?? "");
} catch {
return;
}
const payload = msg.args as Record<string, unknown> | string | null;
switch (msg.cmd) {
case "answer": {
// Same key rule as the sending side: the key is named after the cmd.
const sdp =
typeof payload === "string"
? payload
: typeof payload?.answer === "string"
? payload.answer
: typeof payload?.sdp === "string"
? payload.sdp
: null;
if (!sdp) return;
try {
await viewer.pc.setRemoteDescription({ type: "answer", sdp });
viewer.answered = true;
const pending = viewer.pending;
viewer.pending = [];
for (const c of pending) {
try {
await viewer.pc.addIceCandidate(c);
} catch (err) {
console.warn("[publish] ignoring buffered ICE candidate:", describe(err));
}
}
} catch (err) {
this.fail(`Could not accept the viewer's answer: ${describe(err)}`);
}
break;
}
case "iceCandidate": {
if (typeof payload !== "object" || payload === null) return;
const candidate = payload.sdp;
if (typeof candidate !== "string" || !candidate) return;
const init: RTCIceCandidateInit = {
candidate,
sdpMid: typeof payload.mid === "string" ? payload.mid : undefined,
sdpMLineIndex: typeof payload.mLine === "number" ? payload.mLine : undefined,
};
// TS6 trickles from the moment it gets the offer, so these routinely
// beat its own answer. Holding them is not an edge case.
if (!viewer.answered) {
viewer.pending.push(init);
return;
}
try {
await viewer.pc.addIceCandidate(init);
} catch (err) {
console.warn("[publish] ignoring ICE candidate:", describe(err));
}
break;
}
}
}
/**
* Caps each sender at the configured bitrate and pins the resolution.
*
* `setupstream`'s `bitrate` is only what the stream *advertises* - the
* server does not even echo our value back unchanged, and it certainly does
* not reach the encoder. The actual limit is a sender parameter, and the
* encodings it lives on only exist once a local description is set.
*
* `degradationPreference` matters just as much. Its default for a track
* hinted "motion" is to protect the frame rate and shrink the picture, which
* for a screen share is exactly backwards: the user picked 1080p, so 1080p is
* the thing to keep. Measured on a 1440x1080 capture at a 6000 kbps cap:
*
* default / maintain-framerate / balanced -> 480x270, a 3x downscale
* maintain-resolution -> 1440x810, no downscale
*
* Without this the encoder collapses within seconds of the connection coming
* up and never recovers, and every resolution setting above 360p is a lie.
*/
private async applySendParameters(pc: RTCPeerConnection): Promise<void> {
const options = this.options;
if (!options) return;
for (const sender of pc.getSenders()) {
if (!sender.track) continue;
const video = sender.track.kind === "video";
const kbps = video ? options.videoBitrateKbps : options.audioBitrateKbps;
const params = sender.getParameters();
if (video) params.degradationPreference = "maintain-resolution";
if (kbps > 0) {
if (!params.encodings || params.encodings.length === 0) params.encodings = [{}];
for (const encoding of params.encodings) encoding.maxBitrate = kbps * 1000;
}
try {
await sender.setParameters(params);
} catch (err) {
// Not fatal - the stream still runs, just uncapped and free to shrink.
console.warn("[publish] could not apply the send parameters:", describe(err));
}
}
}
/**
* Maps the capture to TS6's source enum.
*
* `displaySurface` is what the user actually picked in the browser's own
* share dialog, so it is more truthful than anything we could ask for in
* advance. A browser tab has no TS6 equivalent and reads closest to a window.
*/
private detectSourceType(): number {
const surface = this.media?.getVideoTracks()[0]?.getSettings().displaySurface;
return surface === "monitor" ? StreamSource.SCREEN : StreamSource.WINDOW;
}
private dropViewer(clid: number): void {
// Someone can also leave while their request is still queued - by closing
// TS6, or by giving up on "waiting for access". The row has to go with
// them, or the user is left approving a viewer who is no longer there.
if (this.pending.delete(clid)) this.notifyPending();
const viewer = this.viewers.get(clid);
if (!viewer) return;
this.viewers.delete(clid);
viewer.pc.close();
this.notifyViewers();
}
/** Stops the capture and takes the stream down. Safe to call twice. */
stop(): void {
if (this.state === "idle" || this.state === "stopped") return;
if (this.streamId) this.opts.send({ type: "stopStream", streamId: this.streamId });
this.teardown("stopped");
}
private teardown(state: PublishState): void {
for (const [, viewer] of this.viewers) viewer.pc.close();
this.viewers.clear();
this.pending.clear();
this.blocked.clear();
for (const track of this.media?.getTracks() ?? []) track.stop();
this.media = null;
this.streamId = null;
this.options = null;
this.notifyViewers();
this.notifyPending();
this.setState(state);
}
private signal(clid: number, cmd: string, args: unknown): void {
this.opts.send({
type: "streamSignal",
streamId: this.streamId,
clientId: clid,
payload: { cmd, args },
});
}
private setState(state: PublishState): void {
this.state = state;
this.opts.onStateChange?.(state);
}
private notifyViewers(): void {
this.opts.onViewersChange?.([...this.viewers.keys()]);
}
private notifyPending(): void {
this.opts.onPendingChange?.([...this.pending.entries()]);
}
private fail(message: string): void {
this.opts.onError?.(message);
}
}
function describe(err: unknown): string {
return err instanceof Error ? err.message : String(err);
}
+71
View File
@@ -0,0 +1,71 @@
import { unzipSync } from "fflate";
import type { SoundEventId } from "./sounds";
const AUDIO_EXTENSIONS = [".wav", ".mp3", ".ogg", ".m4a"];
const MIME_BY_EXTENSION: Record<string, string> = {
".wav": "audio/wav",
".mp3": "audio/mpeg",
".ogg": "audio/ogg",
".m4a": "audio/mp4",
};
/** Real .ts3soundpack files use TeamSpeak's own internal event names, which
* vary between client versions and aren't documented anywhere stable - so
* this matches by keyword against the filename (soundpacks are zips of
* individual audio files, not proprietary-encoded) rather than depending on
* an exact manifest format. Falls back to a "not matched" list the caller
* can surface, instead of silently dropping unrecognized files. */
const EVENT_KEYWORDS: Record<SoundEventId, string[]> = {
connect: ["connectionaccepted", "connectionestablished", "youhaveconnected", "connect"],
disconnect: ["connectionlost", "connectiondisconnected", "youhavebeendisconnected", "disconnect"],
clientJoin: ["userenteredchannel", "userenteredvisibility", "cliententerview", "userjoined", "enter"],
clientLeave: ["userleftchannel", "userleftvisibility", "clientleftview", "userleave", "userleft", "leave"],
message: ["textmessagereceived", "chatmessage", "newmessage", "message"],
poke: ["gotpoked", "poke"],
};
function normalize(filename: string): string {
const base = filename.slice(filename.lastIndexOf("/") + 1);
const dot = base.lastIndexOf(".");
return (dot === -1 ? base : base.slice(0, dot)).toLowerCase().replace(/[^a-z0-9]/g, "");
}
function extensionOf(filename: string): string | null {
const lower = filename.toLowerCase();
return AUDIO_EXTENSIONS.find((ext) => lower.endsWith(ext)) ?? null;
}
export interface SoundpackImportResult {
matched: Partial<Record<SoundEventId, { name: string; blob: Blob }>>;
unmatchedFiles: string[];
}
export async function parseSoundpack(file: File): Promise<SoundpackImportResult> {
const buffer = new Uint8Array(await file.arrayBuffer());
const entries = unzipSync(buffer, {
filter: (entry) => extensionOf(entry.name) !== null,
});
const matched: SoundpackImportResult["matched"] = {};
const unmatchedFiles: string[] = [];
for (const [name, data] of Object.entries(entries)) {
const ext = extensionOf(name);
if (!ext) continue;
const key = normalize(name);
const eventId = (Object.keys(EVENT_KEYWORDS) as SoundEventId[]).find(
(id) => !matched[id] && EVENT_KEYWORDS[id].some((keyword) => key.includes(keyword))
);
if (eventId) {
matched[eventId] = {
name: name.slice(name.lastIndexOf("/") + 1),
blob: new Blob([data.slice()], { type: MIME_BY_EXTENSION[ext] }),
};
} else {
unmatchedFiles.push(name);
}
}
return { matched, unmatchedFiles };
}
+315
View File
@@ -0,0 +1,315 @@
// Viewing a TeamSpeak 6 Stream/Call broadcast in the browser.
//
// TS6's stream signaling rides the ordinary TS3 command channel, so everything
// here travels the same WebSocket as the rest of the session: the connector
// unescapes the TS wire format and hands us the JSON payload untouched (see
// ts6-re/findings/ts6-stream-protocol-static-analysis.md).
//
// The exchange, from our side:
//
// 1. discover client_is_streaming=1 on a client in view
// 2. joinStream -> notifyrespondjoinstreamrequest (decision=1 + SDP offer)
// 3. answer <- streamSignal {cmd:"answer"}
// 4. trickle ICE both directions via {cmd:"iceCandidate"}
//
// TS6 publishes sendonly, so this is a receive-only peer connection.
/** A `streamEvent` as the connector emits it. */
export interface StreamEvent {
type: "streamEvent";
name: string;
args: Record<string, string>;
}
/**
* The payload shape inside `notifystreamsignaling`'s `json` argument.
*
* Each `cmd` names its own key inside `args`, and the key is *not* `sdp`
* except for `iceCandidate`: an answer is `{answer: "<sdp>"}`, an offer
* `{offer: "<sdp>"}`, a candidate `{sdp, mid, mLine}`. Live-verified against
* TS6 6.0.0-beta12.1 - `{sdp: "<sdp>"}` and a bare string are both accepted
* by the server and then silently dropped by the client.
*/
interface SignalingMessage {
cmd: string;
args: unknown;
}
export interface StreamInfo {
id: string;
clientId: number;
name: string;
/** Current viewer count as of the last notifystreaminfo. */
viewers: number;
hasAudio: boolean;
bitrate: number;
}
export interface StreamViewerOptions {
/** Sends one message up the session WebSocket. */
send: (message: Record<string, unknown>) => void;
/** The remote media, once the first track arrives. */
onTrack: (stream: MediaStream) => void;
onStateChange?: (state: RTCPeerConnectionState) => void;
onError?: (error: string) => void;
/** The viewer shut down — by us, or because the publisher stopped. */
onClosed?: () => void;
/**
* ICE servers to use. TS6 itself only ever configures `stun:` URLs and so
* never gathers a relay candidate, but it will happily *connect* to one we
* offer - which is how webspeak3 can work on networks where TS6 cannot.
*/
iceServers?: RTCIceServer[];
}
const DEFAULT_ICE_SERVERS: RTCIceServer[] = [
{ urls: "stun:turn.teamspeak.com:3478" },
{ urls: "stun:turn2.teamspeak.com:3478" },
{ urls: "stun:stun.l.google.com:19302" },
];
/**
* Reads a stream's properties out of a `notifystreaminfo` / `notifystreamstarted`.
*
* The two notifies disagree on one name: `notifystreaminfo` says
* `accessibility`, `notifystreamstarted` shortens it to `access`. Only
* `notifystreaminfo` carries `viewer`.
*/
export function parseStreamInfo(args: Record<string, string>): StreamInfo | null {
const id = args.id;
const clientId = Number(args.clid);
if (!id || !Number.isFinite(clientId)) return null;
return {
id,
clientId,
name: args.name ?? "",
viewers: Number(args.viewer ?? 0) || 0,
hasAudio: args.audio === "1",
bitrate: Number(args.bitrate ?? 0) || 0,
};
}
export class StreamViewer {
private pc: RTCPeerConnection | null = null;
private readonly opts: StreamViewerOptions;
private readonly remote = new MediaStream();
/** Candidates that arrived before setRemoteDescription; replayed after. */
private pendingRemoteCandidates: RTCIceCandidateInit[] = [];
private remoteDescriptionSet = false;
private closed = false;
readonly streamId: string;
readonly peerClientId: number;
constructor(streamId: string, peerClientId: number, opts: StreamViewerOptions) {
this.streamId = streamId;
this.peerClientId = peerClientId;
this.opts = opts;
}
/** Asks the publishing client to let us watch. The offer arrives asynchronously. */
join(message = ""): void {
this.opts.send({
type: "joinStream",
streamId: this.streamId,
clientId: this.peerClientId,
message,
});
}
/**
* Feeds one `streamEvent` in. Events for other streams are ignored, so the
* caller can pass everything it receives without filtering.
*/
handleEvent(event: StreamEvent): void {
if (this.closed) return;
if (event.args.id && event.args.id !== this.streamId) return;
switch (event.name) {
case "notifyrespondjoinstreamrequest":
void this.handleJoinResponse(event.args);
break;
case "notifystreamsignaling":
void this.handleSignaling(event.args);
break;
case "notifystreamstopped":
case "notifystreamclientleft":
this.close();
break;
}
}
private async handleJoinResponse(args: Record<string, string>): Promise<void> {
if (args.decision !== "1") {
this.fail(args.msg ? `Stream join refused: ${args.msg}` : "Stream join refused");
return;
}
if (!args.offer) {
this.fail("Stream join accepted but no SDP offer was sent");
return;
}
await this.acceptOffer(args.offer);
}
private async acceptOffer(sdp: string): Promise<void> {
const pc = this.ensurePeerConnection();
try {
await pc.setRemoteDescription({ type: "offer", sdp });
this.remoteDescriptionSet = true;
await this.flushRemoteCandidates();
const answer = await pc.createAnswer();
await pc.setLocalDescription(answer);
this.signal("answer", { answer: answer.sdp ?? "" });
} catch (err) {
this.fail(`Could not answer the stream offer: ${describe(err)}`);
}
}
private async handleSignaling(args: Record<string, string>): Promise<void> {
let msg: SignalingMessage;
try {
msg = JSON.parse(args.json ?? "");
} catch {
this.fail("Received malformed stream signaling payload");
return;
}
switch (msg.cmd) {
case "iceCandidate": {
const candidate =
typeof msg.args === "object" && msg.args !== null
? candidateFromArgs(msg.args as Record<string, unknown>)
: null;
if (!candidate) return;
if (!this.remoteDescriptionSet) {
// TS6 starts trickling immediately, so these routinely beat the
// offer's setRemoteDescription. Holding them is not an edge case.
this.pendingRemoteCandidates.push(candidate);
return;
}
try {
await this.ensurePeerConnection().addIceCandidate(candidate);
} catch (err) {
// A single unusable candidate must not tear the session down; ICE
// only needs one working pair.
console.warn("[stream] ignoring ICE candidate:", describe(err));
}
break;
}
case "offer":
case "reconnectOffer": {
// Renegotiation from the publisher, e.g. after it switches source.
// `offer` mirrors the `answer` key we send; the other two are cheap
// to tolerate and cost nothing if they never arrive.
const a = msg.args as Record<string, unknown> | string | null;
const sdp =
typeof a === "string"
? a
: typeof a?.offer === "string"
? a.offer
: typeof a?.sdp === "string"
? a.sdp
: null;
if (sdp) await this.acceptOffer(sdp);
break;
}
default:
break;
}
}
private async flushRemoteCandidates(): Promise<void> {
const pending = this.pendingRemoteCandidates;
this.pendingRemoteCandidates = [];
const pc = this.ensurePeerConnection();
for (const candidate of pending) {
try {
await pc.addIceCandidate(candidate);
} catch (err) {
console.warn("[stream] ignoring buffered ICE candidate:", describe(err));
}
}
}
private ensurePeerConnection(): RTCPeerConnection {
if (this.pc) return this.pc;
const pc = new RTCPeerConnection({
iceServers: this.opts.iceServers ?? DEFAULT_ICE_SERVERS,
});
pc.ontrack = (ev) => {
this.remote.addTrack(ev.track);
this.opts.onTrack(this.remote);
};
pc.onicecandidate = (ev) => {
if (!ev.candidate) return; // end-of-candidates; TS6 sends no such marker
this.signal("iceCandidate", {
sdp: ev.candidate.candidate,
mid: ev.candidate.sdpMid ?? "0",
mLine: ev.candidate.sdpMLineIndex ?? 0,
});
};
pc.onconnectionstatechange = () => {
this.opts.onStateChange?.(pc.connectionState);
if (pc.connectionState === "failed") this.fail("The stream connection failed");
};
this.pc = pc;
return pc;
}
private signal(cmd: string, args: unknown): void {
this.opts.send({
type: "streamSignal",
streamId: this.streamId,
clientId: this.peerClientId,
payload: { cmd, args },
});
}
private fail(message: string): void {
this.opts.onError?.(message);
}
/** Leaves the stream and releases the peer connection. Safe to call twice. */
close(): void {
if (this.closed) return;
this.closed = true;
this.opts.send({
type: "leaveStream",
streamId: this.streamId,
clientId: this.peerClientId,
});
for (const track of this.remote.getTracks()) track.stop();
this.pc?.close();
this.pc = null;
this.opts.onClosed?.();
}
}
/**
* Builds an `RTCIceCandidateInit` from TS6's `iceCandidate` args.
*
* TS6 names them `sdp`, `mid` and `mLine`, which map to `candidate`, `sdpMid`
* and `sdpMLineIndex`.
*/
function candidateFromArgs(args: Record<string, unknown>): RTCIceCandidateInit | null {
const candidate = args.sdp;
if (typeof candidate !== "string" || !candidate) return null;
return {
candidate,
sdpMid: typeof args.mid === "string" ? args.mid : undefined,
sdpMLineIndex: typeof args.mLine === "number" ? args.mLine : undefined,
};
}
function describe(err: unknown): string {
return err instanceof Error ? err.message : String(err);
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,87 @@
import type { ReactNode } from "react";
export type ConnectionTabItem = {
id: string;
label: string;
connected?: boolean;
connecting?: boolean;
};
export type GreenteaSpeakChromeProps = {
/** @deprecated Prefer `tabs` + `activeTabId` for multi-join. */
connected?: boolean;
/** @deprecated Prefer `tabs`. */
serverName?: string;
tabs?: ConnectionTabItem[];
activeTabId?: string | null;
onSelectTab?: (id: string) => void;
onCloseTab?: (id: string) => void;
children?: ReactNode;
};
/**
* GTS branding chrome: connection-tab strip (multi-join) + brand label when empty.
* Renders children unchanged — WebSpeak keeps its own React state/handlers.
*/
export function GreenteaSpeakChrome({
connected,
serverName,
tabs,
activeTabId,
onSelectTab,
onCloseTab,
children,
}: GreenteaSpeakChromeProps) {
const resolvedTabs: ConnectionTabItem[] =
tabs ??
(connected
? [{ id: "legacy", label: (serverName ?? "").trim() || "GreenTeaSpeak", connected: true }]
: []);
const hasTabs = resolvedTabs.length > 0;
return (
<>
{hasTabs ? (
<div className="gts-connection-tabs" role="tablist" aria-label="Server-Verbindungen">
{resolvedTabs.map((tab) => {
const isActive = tab.id === (activeTabId ?? resolvedTabs[0]?.id);
return (
<div
key={tab.id}
role="tab"
aria-selected={isActive}
className={`gts-connection-tab${isActive ? " gts-connection-tab-active" : ""}${
tab.connecting ? " gts-connection-tab-connecting" : ""
}`}
onClick={() => onSelectTab?.(tab.id)}
title={tab.label}
>
<span className="gts-connection-tab-label">{tab.label}</span>
{onCloseTab ? (
<button
type="button"
className="gts-connection-tab-close"
title="Verbindung trennen"
aria-label={`Tab schließen: ${tab.label}`}
onClick={(e) => {
e.stopPropagation();
onCloseTab(tab.id);
}}
>
×
</button>
) : null}
</div>
);
})}
</div>
) : (
<div className="gts-connection-tabs gts-brand-strip">
<span className="gts-brand-label">GreenTeaSpeak</span>
</div>
)}
{children}
</>
);
}
@@ -0,0 +1,56 @@
/**
* Maps WebSpeak gateway WebSocket payloads to the shape the GreenTeaSpeak
* shell expects. The browser UI still uses App.tsx state; this module is the
* contract layer so GTS chrome never talks to Electron IPC.
*/
export type GatewayServerType = "auto" | "teamspeak" | "teaspeak";
export type GatewayConnectPayload = {
type: "connect";
host: string;
nickname: string;
serverPassword?: string;
channelPassword?: string;
defaultChannel?: string;
identity?: string;
privilegeKey?: string;
serverType?: GatewayServerType;
};
export type GatewayOutboundAction =
| GatewayConnectPayload
| { type: "disconnect" }
| { type: "switchChannel"; channelId: number }
| { type: "sendChat"; message: string; target?: "channel" | "server" | number }
| { type: string; [key: string]: unknown };
/** Build the connect message sent on the WebSpeak gateway socket. */
export function buildGatewayConnect(input: {
host: string;
nickname: string;
serverPassword?: string;
channelPassword?: string;
defaultChannel?: string;
identity?: string;
privilegeKey?: string;
serverType?: GatewayServerType;
}): GatewayConnectPayload {
return {
type: "connect",
host: input.host.trim(),
nickname: input.nickname.trim(),
serverPassword: input.serverPassword?.trim() || undefined,
channelPassword: input.channelPassword?.trim() || undefined,
defaultChannel: input.defaultChannel?.trim() || undefined,
identity: input.identity || undefined,
privilegeKey: input.privilegeKey?.trim() || undefined,
serverType: input.serverType || "auto",
};
}
export function sendGatewayAction(ws: WebSocket | null, action: GatewayOutboundAction): boolean {
if (!ws || ws.readyState !== WebSocket.OPEN) return false;
ws.send(JSON.stringify(action));
return true;
}
+19
View File
@@ -0,0 +1,19 @@
export const GREENTEASPEAK_THEME_ID = "greenteaspeak" as const;
export function isGreenteaSpeakTheme(theme: string): boolean {
return theme === GREENTEASPEAK_THEME_ID;
}
export {
GreenteaSpeakChrome,
type GreenteaSpeakChromeProps,
type ConnectionTabItem,
} from "./GreenteaSpeakChrome";
export {
buildGatewayConnect,
sendGatewayAction,
type GatewayConnectPayload,
type GatewayOutboundAction,
type GatewayServerType,
} from "./gatewayAdapter";
+6
View File
@@ -0,0 +1,6 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/client" />
/// <reference types="vite-plugin-pwa/react" />
/** Injected by vite.config.ts; matches the `buildId` in version.json. */
declare const __BUILD_ID__: string
+64 -5
View File
@@ -36,6 +36,11 @@ export interface MicCaptureOptions {
deviceId?: string;
echoCancellation?: boolean;
noiseSuppression?: boolean;
/** Automatic gain control. Exposed as its own toggle (rather than folded into
* echoCancellation) because AGC re-amplifying the mic signal after the
* browser's own AEC runs can bring back audible echo residue in speaker+mic
* (no headset) setups - some users get a cleaner result with it off. */
autoGainControl?: boolean;
}
/**
@@ -61,13 +66,13 @@ export class MicCapture {
private deviceId?: string;
private echoCancellation: boolean;
private noiseSuppression: boolean;
private autoGainControl: boolean;
private context: AudioContext;
threshold: number;
hangoverSeconds: number;
constructor(
private context: AudioContext,
options: MicCaptureOptions
) {
constructor(context: AudioContext, options: MicCaptureOptions) {
this.context = context;
this.onFrame = options.onFrame;
this.onActivity = options.onActivity;
this.onLevel = options.onLevel;
@@ -76,6 +81,7 @@ export class MicCapture {
this.deviceId = options.deviceId;
this.echoCancellation = options.echoCancellation ?? true;
this.noiseSuppression = options.noiseSuppression ?? true;
this.autoGainControl = options.autoGainControl ?? true;
}
async start(): Promise<void> {
@@ -85,8 +91,15 @@ export class MicCapture {
this.stream = await navigator.mediaDevices.getUserMedia({
audio: {
channelCount: 1,
// Requesting the pipeline's own rate (rather than leaving it to the
// device/OS default) avoids an extra internal resampling step ahead
// of the browser's own echo canceller - standard constraint, honored
// by both Chromium and Firefox, "ideal" so it's not fatal if a device
// genuinely can't provide it.
sampleRate: { ideal: SAMPLE_RATE },
echoCancellation: this.echoCancellation,
noiseSuppression: this.noiseSuppression,
autoGainControl: this.autoGainControl,
...(this.deviceId ? { deviceId: { exact: this.deviceId } } : {}),
},
});
@@ -135,6 +148,11 @@ export class MicCapture {
this.silence.connect(this.context.destination);
}
/** The raw mic input node, e.g. to additionally route it into a recorder. */
getSourceNode(): AudioNode | null {
return this.source;
}
/** Routes the raw mic signal to `destination` too, so you can hear yourself (a mic test), until disabled again. */
setMonitoring(enabled: boolean, destination: AudioNode): void {
if (!this.source) return;
@@ -167,6 +185,45 @@ export class MicCapture {
}
}
function writeAsciiString(view: DataView, offset: number, text: string): void {
for (let i = 0; i < text.length; i++) view.setUint8(offset + i, text.charCodeAt(i));
}
/** Encodes raw stereo float samples (range -1..1) as an uncompressed 16-bit PCM WAV file. */
export function encodeWavStereo(left: Float32Array, right: Float32Array, sampleRate: number): Blob {
const numChannels = 2;
const bytesPerSample = 2;
const blockAlign = numChannels * bytesPerSample;
const dataSize = left.length * blockAlign;
const buffer = new ArrayBuffer(44 + dataSize);
const view = new DataView(buffer);
writeAsciiString(view, 0, "RIFF");
view.setUint32(4, 36 + dataSize, true);
writeAsciiString(view, 8, "WAVE");
writeAsciiString(view, 12, "fmt ");
view.setUint32(16, 16, true);
view.setUint16(20, 1, true); // PCM
view.setUint16(22, numChannels, true);
view.setUint32(24, sampleRate, true);
view.setUint32(28, sampleRate * blockAlign, true);
view.setUint16(32, blockAlign, true);
view.setUint16(34, 16, true);
writeAsciiString(view, 36, "data");
view.setUint32(40, dataSize, true);
let offset = 44;
for (let i = 0; i < left.length; i++) {
const l = Math.max(-1, Math.min(1, left[i]));
const r = Math.max(-1, Math.min(1, right[i]));
view.setInt16(offset, l < 0 ? l * 0x8000 : l * 0x7fff, true);
view.setInt16(offset + 2, r < 0 ? r * 0x8000 : r * 0x7fff, true);
offset += blockAlign;
}
return new Blob([buffer], { type: "audio/wav" });
}
/** Output ("audiooutput") devices available for playback, e.g. for a device picker. */
export async function listAudioOutputDevices(): Promise<MediaDeviceInfo[]> {
if (!navigator.mediaDevices) return [];
@@ -222,8 +279,10 @@ export class AudioPlayer {
private destination: MediaStreamAudioDestinationNode;
private element: SinkableElement;
private gain: GainNode;
private context: AudioContext;
constructor(private context: AudioContext) {
constructor(context: AudioContext) {
this.context = context;
this.destination = context.createMediaStreamDestination();
this.gain = context.createGain();
this.gain.connect(this.destination);
+1
View File
@@ -7,6 +7,7 @@
"types": ["vite/client"],
"allowArbitraryExtensions": true,
"skipLibCheck": true,
"resolveJsonModule": true,
/* Bundler mode */
"moduleResolution": "bundler",
+99 -2
View File
@@ -1,7 +1,104 @@
import { defineConfig } from 'vite'
import { execSync } from 'node:child_process'
import { defineConfig, type Plugin } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
// Identifies the build a bundle came from. Only has to differ between two
// builds — the client compares its own baked-in value against version.json to
// notice when it is running something the server no longer serves.
function resolveBuildId(): string {
const fromCi = process.env.CF_PAGES_COMMIT_SHA || process.env.GITHUB_SHA
if (fromCi) return fromCi.slice(0, 12)
try {
return execSync('git rev-parse --short=12 HEAD', { stdio: ['ignore', 'pipe', 'ignore'] })
.toString()
.trim()
} catch {
// No git checkout (the Docker build copies sources in without .git).
return String(Date.now())
}
}
const buildId = resolveBuildId()
// version.json must never be precached, or a stuck client would ask the very
// cache it is stuck in what the server has. `.json` is not in globPatterns
// below, so Workbox leaves it alone and the fetch always hits the network.
function versionManifest(): Plugin {
return {
name: 'webspeak3-version-manifest',
apply: 'build',
generateBundle() {
this.emitFile({
type: 'asset',
fileName: 'version.json',
source: `${JSON.stringify({ buildId })}\n`,
})
},
}
}
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
define: {
__BUILD_ID__: JSON.stringify(buildId),
},
plugins: [
react(),
versionManifest(),
VitePWA({
// The generated worker takes over as soon as it has installed
// (skipWaiting + clientsClaim). It must NOT wait for the page to ask it
// to: between 2026-09-07 and 2026-09-10 this was `prompt`, and every
// client cached in that window froze — the new worker sat in `waiting`
// forever because the only code that could have released it (the update
// toast) lived in the version behind that worker. Deciding *when* to
// reload is a UI concern and stays one: `onNeedReload` in App.tsx shows
// the toast instead of pulling the page out from under an active
// connection.
registerType: 'autoUpdate',
// We register from inside the app (virtual:pwa-register/react) rather
// than through an injected registerSW.js, because that script would
// reload the page on its own the moment a new worker activates.
injectRegister: false,
// Dev-time Workbox would sit in front of Vite's own HMR/WS traffic and
// stale-cache the app shell while iterating — only ever ship the SW in
// production builds.
devOptions: { enabled: false },
includeAssets: ['favicon.ico', 'apple-touch-icon.png'],
manifest: {
name: 'WebSpeak3',
short_name: 'WebSpeak3',
description: 'An independent, self-hosted web client for TeamSpeak 3 servers.',
theme_color: '#03060d',
background_color: '#03060d',
display: 'standalone',
start_url: '.',
icons: [
{ src: 'favicon-192.png', sizes: '192x192', type: 'image/png' },
{ src: 'icon-512.png', sizes: '512x512', type: 'image/png' },
{ src: 'icon-512-maskable.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
],
},
workbox: {
// Both are what `registerType: 'autoUpdate'` is supposed to imply, but
// the plugin only sets them when it also injects registerSW.js (see
// resolveOptions: `injectRegister === 'auto' || injectRegister == null`)
// — with injectRegister: false they have to be spelled out, or the
// generated worker is byte-identical to the `prompt` one and strands
// clients all over again. Verified in dist/sw.js after building.
skipWaiting: true,
clientsClaim: true,
// Precache the built app shell (JS/CSS/HTML/icons) only. The gateway's
// /ws endpoint and any file-transfer/API traffic must never be
// intercepted or cached — Workbox's default fetch handler already
// ignores non-GET and non-http(s) requests (ws:// isn't touched), so
// no extra runtimeCaching exclusions are needed here.
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
},
}),
],
// Set by the GitHub Pages workflow to the repo subpath (e.g. /webspeak3/);
// the normal Docker build serves from the domain root and leaves this unset.
base: process.env.VITE_BASE_PATH || '/',
})