Compare commits

...
Author SHA1 Message Date
MoepchiandClaude Sonnet 5 395aa3e6b6 Centralize design store URL to the maintainer's VPS
The store was previously derived per-instance from VITE_GATEWAY_URL,
so every self-hosted Docker image silently got its own empty,
isolated catalog instead of sharing the curated one. The store is a
single curated catalog (gateway/src/store.ts), unrelated to which
TS3/TeaSpeak gateway a build otherwise talks to, so all builds now
default to the same central endpoint. VITE_STORE_URL still lets a
self-hoster point at their own store instead. DEMO_MODE keeps the old
same-origin derivation, which 404s on the static demo host, so the
public demo can never write to the real production store.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 11:22:40 +00:00
MoepchiandClaude Sonnet 5 da4f416e32 Extract feedback/connection logging into a swappable module
Same pattern as the recent store.ts extraction: feedback-log writes and
connection-event logging move from inline file/console I/O in index.ts
into activity-log.ts, called via logFeedback()/logConnectionEvent(). The
public default behavior is unchanged (JSON-lines file with rotation,
console logging gated by LOG_CONNECTIONS).

This is the piece of the private SQLite overlay's persistence swap that's
a clean drop-in replacement - the private VPS gateway now imports the same
two function names from its own activity-log.ts (SQLite-backed) instead of
patching these call sites into a forked index.ts.

Note: the private overlay's live host-ban enforcement (blocked_hosts
table, heartbeat-driven disconnect) is NOT extracted here - it has no
public equivalent and touches the WS connection/heartbeat control flow
directly, not just a persistence call. Left as-is for now.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 11:09:37 +00:00
MoepchiandClaude Sonnet 5 d54c4d0dc2 Extract design store into its own module
Moved all store code (constants, cache, handlers) from index.ts into
store.ts verbatim, no behavior change. It has zero private-VPS
modifications (unlike feedback/connection persistence, which the private
overlay patches to use SQLite), so this file can be copied unmodified into
the private overlay - future store changes there no longer need a manual
diff/patch against a hand-patched index.ts.

A full separate microservice was considered but rejected: this repo builds
one Docker image (connector + web + gateway) and self-hosters run one
container via docker-compose.yml; splitting the store into its own service
would force a second mandatory container for what's an opt-in, currently
tiny feature. A module boundary gets the actual pain point (patch-merge
friction) without that cost.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 11:00:11 +00:00
MoepchiandClaude Sonnet 5 c0e7f7412e Lower design store cap to bound worst-case RAM usage
STORE_MAX_THEMES was 2000, meaning the in-memory store cache could
theoretically grow to ~900MB (2000 * up to 450KB CSS+screenshot each) with
no eviction. 300 bounds that to ~135MB, which is proportionate for what is
currently a niche community design store.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:47:35 +00:00
MoepchiandClaude Sonnet 5 cfd9503313 Design store: make the delete button red in every design
Explicit red instead of the theme's accent color, so it stays visually
distinct as a destructive action regardless of the active design. The
confirm() prompt before deletion was already there.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:32:59 +00:00
MoepchiandClaude Sonnet 5 ed9fb80a9b Design store: fix root cause - icon row never actually spanned full width
.ts-design-theme-card has align-items:flex-start, so its flex children
shrink to content width unless given width:100% explicitly (like
.ts-design-theme-card-select already does). The actions row was
missing that, so flex:1 on its buttons had no extra width to grow
into - they stayed small and left-aligned no matter how the buttons
themselves were styled. That's why nothing helped until now.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:28:59 +00:00
MoepchiandClaude Sonnet 5 9285e50412 Design store: revert icon row to 4-across, they already spanned full width
The 2x2 layout looked worse. flex:1 on a 4-in-a-row already makes the
four buttons together fill the card's full width - that was right the
first time, just needed the mismatched-glyph fix, not a layout change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:25:41 +00:00
MoepchiandClaude Sonnet 5 f113dbbecb Design store: lay out icon action row as 2x2 instead of 4 across
Taller wasn't what was asked for - wider was. A 2x2 grid gives each
button the full card-half width instead of a cramped quarter.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:22:42 +00:00
MoepchiandClaude Sonnet 5 d319d989da Design store: enlarge icon action buttons further
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:19:37 +00:00
MoepchiandClaude Sonnet 5 f29a1da7d4 Design store: replace mismatched icon glyphs with consistent SVG icons
The edit/duplicate/export/delete row mixed three text glyphs with a
color emoji (🗑), which render at different sizes and weights across
platforms - that was the actual cause of the row looking uneven, not
just sizing. Swapped all four for matching stroke-style SVG icons.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 10:16:18 +00:00
MoepchiandClaude Sonnet 5 587c0048e3 Design store: fix button sizing/theming, move back button to header
The store's install button had accidentally inherited the icon-row's
big-icon sizing (shared class) and rendered huge. Gave it and the
publish/new-design/import/store buttons proper themed gradient styling
instead of the browser default, and moved "back" to a top-left header
button instead of stacking it under publish.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 06:58:07 +00:00
MoepchiandClaude Sonnet 5 a98cf59111 Design store: fix hasScreenshot/rating defaults for pre-existing themes
Themes published before this schema existed have no screenshot/rating
fields at all, so `t.screenshot !== null` (undefined) and the rating
counters (undefined += n) were both wrong for them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 06:46:38 +00:00
MoepchiandClaude Sonnet 5 eb7cb78042 Design store: reserved author names, screenshots, ratings, descriptions
Möpchi/Moepchi can only be used as an author name with a matching
STORE_ADMIN_TOKEN bearer token. Submissions can now include an optional
description and a manually uploaded screenshot (data URL, capped size),
shown on browse cards, plus a simple 1-5 star rating (one vote per IP
per theme).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 06:38:25 +00:00
MoepchiandClaude Sonnet 5 dd8528d3cb Make custom-theme card action icons noticeably bigger
15px/0.4rem padding still read as tiny per user feedback. Bump to 20px with
a fixed 2.4rem min-height so the icons are unmistakably buttons, not text.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 06:28:46 +00:00
MoepchiandClaude Sonnet 5 dcb57aedbe Enlarge and improve contrast of custom-theme card action icons
The edit/duplicate/export/delete row used 12px muted-color icons with no
horizontal padding - hard to hit and easy to lose against darker custom
themes. Bump size/padding and switch to the full-contrast text color.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-18 06:24:36 +00:00
MoepchiandClaude Sonnet 5 bd33b962fe Add client-only Design Store MVP
Opt-in gateway endpoints (STORE_ENABLED=1, off by default like every other
optional feature here) to browse and publish community themes, reusing the
existing {name, baseTheme, css} export/import shape so no new packaging
format is needed. CSS is sanitized against @import and remote url() before
being accepted, since it's rendered on other users' pages. Client side adds
a "Store" button to the design picker with a browse/install and a publish
view built on the same DesignPanel patterns as import/export.

No website-side store yet - deliberately client-only for the MVP.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 21:22:57 +00:00
MoepchiandClaude Sonnet 5 7b52c0baa4 Route mic self-test monitoring through the (possibly AEC3-cancelled) signal
setMonitoring() connected the raw pre-AEC3 mic source straight to playback,
so the self-test howled regardless of AEC3 - it was bypassing the whole
cancellation path entirely, not failing to cancel. Mirror the processed
signal into the ScriptProcessorNode's own output and monitor that instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 18:41:31 +00:00
MoepchiandClaude Sonnet 5 effabafa23 Fix AEC3 pitch drift by using the AudioContext's actual sample rate
The requested AudioContext sampleRate is only a hint - some backends
(notably Linux/PulseAudio) silently run at their own native rate anyway.
AEC3 was told the requested rate (48000) regardless, so its internal
frame timing drifted from the actual sample rate its buffers came in at,
audibly heard as the echo's pitch descending with each repeat instead of
being cancelled.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 18:33:33 +00:00
MoepchiandClaude Sonnet 5 258d108f59 Add opt-in WASM AEC3 echo canceller for speaker+mic setups
Off-by-default toggle in the recording options (Aufnahmeoptionen), using
@ennuicastr/webrtcaec3.js (Google WebRTC's AEC3, compiled to WASM) as a
stronger supplement to native browser echo cancellation - addresses the
speaker+studio-mic (no headset) case from issue #2. Native echoCancellation
is turned off while this is enabled since running both fights the same
signal. Assets are synced from node_modules into public/vendor/ at
dev/build time rather than committed, since the module's glue code needs
its .wasm co-located under an exact, unhashed filename.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 18:12:52 +00:00
MoepchiandClaude Sonnet 5 390a2b5749 Remove implicit database/analytics contrast from feedback log comment
Wording implied a fancier database-backed variant exists elsewhere;
just describe what this file actually is.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 17:48:09 +00:00
MoepchiandClaude Sonnet 5 41e415d98b Trim env var docs to exclude the feedback/connection-logging pipeline
LOG_CONNECTIONS and the FEEDBACK_*/GITHUB_* vars are the same toggles
that data collection for the private stats panel is built on; leaving
those undocumented here on purpose.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 17:42:47 +00:00
MoepchiandClaude Sonnet 5 934c41fefd Document gateway environment variables in README
WEB_STATIC/WEB_DIST were mentioned once in passing for local dev; the
rest (feedback, broadcast, TLS, connection logging) weren't documented
at all, so self-hosters had to read gateway/src/index.ts to discover
them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 17:41:03 +00:00
MoepchiandClaude Sonnet 5 83afe6c2cd Fix path-traversal-adjacent bypass in static file containment check
The WEB_STATIC file server checked containment with a plain string
prefix (filePath.startsWith(WEB_DIST)), which a sibling directory
sharing that prefix passes without actually being inside WEB_DIST -
e.g. WEB_DIST "/app/web/dist" also accepts "/app/web/dist-backup/...".
Now requires an exact match or a path-separator boundary.

WEB_STATIC defaults to on, so this affects any self-hoster serving the
UI from the gateway with the stock config, not just this deployment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 17:35:54 +00:00
MoepchiandClaude Sonnet 5 667012d710 Fix WS message handler crash and stdin command injection in gateway
socket.on("message") parsed JSON and ran the whole handler switch with no
try/catch. Since the callback is async, any throw - malformed JSON from
any connected browser tab, or a handler throwing on unexpected input -
became an unhandled rejection and crashed the entire gateway process,
dropping every other connected user's live session. Now wrapped so one bad
message only errors back to that socket.

connection.ts wrote several fields (permission scope/ids, whisper targets)
straight into the connector's line-based stdin protocol without stripping
embedded CR/LF, unlike the sanitization already applied to every other
free-text field in the file - a newline in one of them could smuggle in a
second, attacker-chosen connector command. All stdin writes now go through
one writeLine() helper that strips embedded CR/LF, closing this for every
call site at once instead of patching each one individually.

Bumps the tsclientlib submodule for the matching SSRF/panic fixes there.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 11:06:16 +00:00
MoepchiandClaude Sonnet 5 3ffd7e5ce5 Fix unstyled "In new tab" button in Nova connect dialog
The Nova connect dialog styles its buttons per-class rather than via
the shared wrapper selector Standard/Pulse use. The Cancel and Connect
buttons had their Nova classes, but "In new tab" had none, so it fell
back to unstyled browser-default chrome instead of matching Cancel's
outline style.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 07:22:05 +00:00
MoepchiandClaude Sonnet 5 ae8f1f764b Fix dialog backdrop rendering below floating donate/feedback buttons
.ts-dialog-backdrop was z-index:15 while the donate/feedback FABs are
z-index:500, so any modal (connect dialog, settings, etc.) opened while
those buttons are visible left them floating undimmed in front of the
backdrop instead of behind it. Bumped the backdrop above the FABs but
below the update-available toast (600).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 06:58:37 +00:00
MoepchiandClaude Sonnet 5 42ac4e9aaa Fix Nova design: floating FABs overlapping chat composer, textarea stuck collapsed
Nova relocates the self/voice toolbar below the chat panel, adding ~6.7rem
of footprint the fixed-position donate/feedback buttons didn't account for,
so they landed on top of the composer's send button. Also the chat
textarea's auto-resize effect only ran on chatInput/theme change, so on
first mount (while the chat panel was hidden pre-connect, scrollHeight 0)
it locked in a near-zero height that never got recalculated after
connecting.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-17 06:40:34 +00:00
MoepchiandClaude Sonnet 5 961084e9a0 README: expand auto-connect blurb into a full tutorial section
Own top-level section with a share-link table and the build-time
default walkthrough, instead of a two-line paragraph buried in the
Docker install steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-16 13:52:44 +00:00
MoepchiandClaude Sonnet 5 faeb269fdd Add URL-based and build-time auto-connect (closes #10)
Landing pages can now send visitors straight into a TeamSpeak server:
a ?connect=host&nickname=&channel=&token= share link auto-connects on
any deployment, or a self-hoster can bake in a default server at build
time (VITE_DEFAULT_SERVER/VITE_DEFAULT_CHANNEL, mirroring the existing
DONATE_URL Docker ARG pattern) so every visitor auto-joins with zero
params. A share link always overrides the build-time default. Waits
for the mandatory first-visit ToS gate where applicable, falls back to
a prefilled reopened connect dialog on failure, and generates a
Guest-XXXX nickname when none is available.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-16 12:34:14 +00:00
MoepchiandClaude Sonnet 5 f44327aabc ROADMAP: add concrete accessibility milestone for the web client
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-15 18:03:32 +00:00
MoepchiandClaude Sonnet 5 7357dfa85d Bump tsclientlib: fix live stream start/stop not seen by connected clients
An already-connected client only learned about another client's TS6
stream via the initial snapshot; a live start/stop toggle mid-session
went out via notifyclientupdated, whose attribute list didn't include
client_is_streaming, so tsclientlib silently dropped it. Fixed upstream
in tsdeclarations/Messages.toml; only a reconnect used to pick it up.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-15 17:37:00 +00:00
MoepchiandClaude Sonnet 5 ceeba24f86 ROADMAP: fix stale note about streaming UI flag being off
client.webspeak3.de's gateway has answered setupStream/joinStream/
sendStreamSignal since v0.11.0-beta.1 (2026-09-11); STREAM_UI_ENABLED
was flipped back on then but this doc never caught up.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-15 17:16:13 +00:00
MoepchiandClaude Sonnet 5 817aa0f5f6 Gracefully disconnect live sessions on SIGTERM before exiting
Previously the container was killed with connector child processes still
mid-session, so the target TS3/TeaSpeak server only noticed the drop via
its own timeout. A client's automatic reconnect (see App.tsx's
scheduleReconnect) landing before that timeout got rejected as a
duplicate identity (e.g. ClientTooManyClonesConnected).

Now SIGTERM disconnects every live connection first (bounded to 5s) so
the target server frees the slot immediately. The connector's own
resulting "disconnected" event is suppressed from reaching the browser
during shutdown (shuttingDown flag) so the browser sees a raw socket
close, which it treats as an unexpected drop and retries, rather than an
explicit disconnect, which it treats as deliberate and gives up on.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-15 06:56:19 +00:00
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
22 changed files with 3710 additions and 1620 deletions

No files matched your search

+3
View File
@@ -13,3 +13,6 @@ CLAUDE.md
# TLS material for local HTTPS - a private key never belongs in the repo.
gateway/certs/
# Prebuilt WASM assets synced from node_modules by scripts/sync-aec3-assets.mjs
web/public/vendor/
+8 -2
View File
@@ -29,10 +29,16 @@ COPY web/ ./
# 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
# A self-hosted build can bake in a server to auto-connect to with zero user
# input (see web/src/App.tsx's AUTO_CONNECT_FROM_URL/DEFAULT_SERVER, GitHub
# issue #10). Unlike DONATE_URL, unset already means "no default" - no "keep"
# sentinel needed.
ARG DEFAULT_SERVER=
ARG DEFAULT_CHANNEL=
# tsc -b currently fails on pre-existing type errors unrelated to this build;
# vite build alone is enough to produce the production bundle.
RUN if [ "$DONATE_URL" = "keep" ]; then npx vite build; \
else VITE_DONATE_URL="$DONATE_URL" npx vite build; fi
RUN if [ "$DONATE_URL" = "keep" ]; then DONATE_URL_ENV=; else DONATE_URL_ENV="VITE_DONATE_URL=$DONATE_URL"; fi; \
env $DONATE_URL_ENV VITE_DEFAULT_SERVER="$DEFAULT_SERVER" VITE_DEFAULT_CHANNEL="$DEFAULT_CHANNEL" npx vite build
# --- Gateway ----------------------------------------------------------------
FROM node:22-bookworm-slim AS gateway-builder
+53
View File
@@ -180,6 +180,18 @@ 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/`.
#### Environment variables
All optional; add them under `environment:` in your compose override next to `PORT`.
| Variable | Default | Purpose |
|---|---|---|
| `PORT` | `8080` | Port the gateway listens on. |
| `WEB_STATIC` | on | Set to `0` to disable serving the built UI (`web/dist`) entirely — the gateway then only answers `/ws`, `/api/feedback` and `/healthz`. Use this when the UI is hosted elsewhere (e.g. a CDN/static host) and the gateway is purely a backend. |
| `WEB_DIST` | `web/dist` next to the gateway | Overrides the directory served when `WEB_STATIC` is on. Only needed for non-standard layouts. |
| `BROADCAST_TOKEN` | unset | Bearer token required to call `/api/broadcast` (send an in-app notice to all connected clients before a maintenance restart). Endpoint 404s while unset. |
| `TLS_CERT` / `TLS_KEY` | unset | Paths to serve the gateway over HTTPS/WSS directly instead of behind a reverse proxy/tunnel. Both must be set together. |
<details>
<summary><b>🛠️ Manual installation (without Docker)</b></summary>
@@ -259,6 +271,47 @@ In the web UI, enter the address of a TeamSpeak server and a nickname, then clic
</details>
## 🔗 Auto-Connect Links
Skip the connect dialog entirely and drop visitors straight into a TeamSpeak server. Two ways to do it — use either, or both together.
### 1. Share a link
Add a `connect` parameter to your instance's URL and send that link out — in a Discord post, a landing page button, a QR code, wherever:
```
https://your-instance/?connect=voice.example.com&nickname=Guest&channel=Lobby&token=abc123
```
| Parameter | Required | What it does |
|------------|----------|--------------|
| `connect` | yes | Server address to join, `host` or `host:port` |
| `nickname` | no | Nickname to connect with — omit it and the visitor gets an auto-generated `Guest-XXXX` |
| `channel` | no | Default channel to join |
| `token` | no | Server/channel privilege key, if the target requires one |
This works on **any** deployment — no rebuild, no configuration. WebSpeak3 connects as soon as the page loads and immediately strips these parameters from the address bar, so refreshing the tab (or someone screenshotting/forwarding the URL later) won't silently reconnect off a stale link.
### 2. Bake in a default server
Running a dedicated instance for one community or event? Set a default at build time so **every** visitor auto-connects with zero parameters, no link needed:
```bash
docker compose build --build-arg DEFAULT_SERVER=voice.example.com --build-arg DEFAULT_CHANNEL=Lobby
```
Outside Docker, the same thing is a build-time variable:
```bash
VITE_DEFAULT_SERVER=voice.example.com VITE_DEFAULT_CHANNEL=Lobby npm run build
```
(in `web/`). Leave `DEFAULT_CHANNEL`/`VITE_DEFAULT_CHANNEL` out to just join the server's default channel.
A share link (above) always takes priority over the baked-in default when both are present — so you can point most visitors at your default server while still sending specific people somewhere else via link.
Either way: on your own hosted instance, the mandatory first-visit Terms of Use is shown and accepted before anything auto-connects; and if the connection fails, the connect dialog opens prefilled so the visitor can fix it and retry by hand.
## Credits
The vast majority of this project's code was written by [Claude Code](https://claude.com/claude-code) (Anthropic's Claude), working iteratively with the repo owner one feature at a time.
+27 -8
View File
@@ -25,13 +25,15 @@ This roadmap is intentionally outcome-focused. It does not promise fixed dates.
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.
not implemented; only direct P2P works. The UI is gated 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 — on since 2026-09-11 for
client.webspeak3.de now that its gateway answers setupStream/joinStream/
sendStreamSignal (v0.11.0-beta.1+). The durable 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 whenever the frontend gains a stream
feature the deployed gateway doesn't have yet.
- Safari and Mobile Safari audio/microphone behavior
- Uncommon TeamSpeak permission combinations and large permission sets
- Very large servers and long-running browser sessions
@@ -44,9 +46,26 @@ This roadmap is intentionally outcome-focused. It does not promise fixed dates.
- 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
### Accessibility
The interface currently assumes a mouse and sighted use; a real pass is
still needed:
- Replace clickable `<div>`s that aren't real `<button>`s with actual
buttons, so they're reachable and operable by keyboard
- Add keyboard handlers next to the many click-only interactions (channel
tree, context menus, client list)
- Label icon-only toggle controls (mute, away, streaming, recording, ...)
with `aria-label`/`aria-pressed` so their state is announced, not just shown
as a color/icon change
- Fix the document's `lang` attribute to follow the active UI language
instead of staying fixed
- Manage focus in modals and dialogs: move it in on open, return it on close
- Do a full screen-reader pass (NVDA/VoiceOver) through a real connect
session to find what else is missing beyond the above
### Deployment experience
- Keep the one-command Docker path reliable
+69
View File
@@ -0,0 +1,69 @@
// --- Activity logging (feedback + connection events) -----------------------
//
// Narrow interface so the private VPS overlay can swap in SQLite persistence
// (see mem:reference_webspeak3_private_sqlite_persistence) without forking
// index.ts - only this module differs between public and private; index.ts's
// two call sites just call logFeedback/logConnectionEvent unconditionally.
// This file itself has zero private modifications, same as store.ts.
import { appendFile, rename, stat } from "node:fs/promises";
import path from "node:path";
// Plain JSON-lines file. 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;
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);
}
}
}
export interface FeedbackEntry {
at: string;
category: string;
message: string;
email?: string;
}
export async function logFeedback(entry: FeedbackEntry): Promise<void> {
try {
await rotateFeedbackLogIfNeeded();
await appendFile(FEEDBACK_LOG_FILE, JSON.stringify(entry) + "\n", "utf-8");
} catch (err) {
console.error("[feedback] Failed to write feedback log:", err);
}
}
// 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.
export const LOG_CONNECTIONS = process.env.LOG_CONNECTIONS === "1";
export interface ConnectionEvent {
type: "connected" | "disconnected";
host: string;
server?: string;
}
export function logConnectionEvent(event: ConnectionEvent): void {
if (!LOG_CONNECTIONS) return;
if (event.type === "connected") {
console.log(`[connections] connected host=${event.host} server=${event.server} at=${new Date().toISOString()}`);
} else {
console.log(`[connections] disconnected host=${event.host} at=${new Date().toISOString()}`);
}
}
+165 -52
View File
@@ -1,11 +1,14 @@
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 { readFile } 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 ServerType, type Ts3ConnectOptions } from "./ts3/connection.js";
import { handleStore } from "./store.js";
import { logFeedback, logConnectionEvent } from "./activity-log.js";
const SERVER_TYPES = new Set<ServerType>(["teamspeak", "teaspeak", "auto"]);
@@ -24,12 +27,6 @@ function parsePrivilegeKey(msg: { privilegeKey?: unknown; token?: unknown }): st
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.
@@ -72,30 +69,85 @@ const FEEDBACK_ALLOWED_ORIGIN = process.env.FEEDBACK_ALLOWED_ORIGIN ?? "*";
// 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;
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);
// --- 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 }));
}
// Small in-memory rate limit: a handful of submissions per IP per hour is
@@ -221,13 +273,7 @@ async function handleFeedback(req: IncomingMessage, res: ServerResponse) {
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);
}
await logFeedback({ at: new Date().toISOString(), category, message, email });
let githubIssueUrl: string | undefined;
if (publishAsIssue) {
@@ -242,6 +288,9 @@ async function handleFeedback(req: IncomingMessage, res: ServerResponse) {
res.end(JSON.stringify({ ok: true, githubIssueUrl }));
}
// --- Design Store endpoint --------------------------------------------------
// Moved to store.ts - see that file's header comment for why.
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>
@@ -278,6 +327,14 @@ const requestHandler = (req: IncomingMessage, res: ServerResponse) => {
await handleFeedback(req, res);
return;
}
if (requestUrl.pathname === "/api/broadcast") {
await handleBroadcast(req, res);
return;
}
if (requestUrl.pathname === "/api/store/themes" || requestUrl.pathname.startsWith("/api/store/themes/")) {
await handleStore(req, res, requestUrl.pathname);
return;
}
// Container healthcheck target (see Dockerfile). Deliberately its own
// route rather than "/": with WEB_STATIC=0 every browser-facing path
@@ -300,7 +357,7 @@ const requestHandler = (req: IncomingMessage, res: ServerResponse) => {
return;
}
let filePath = path.join(WEB_DIST, decodeURIComponent(requestUrl.pathname));
if (!filePath.startsWith(WEB_DIST)) {
if (filePath !== WEB_DIST && !filePath.startsWith(WEB_DIST + path.sep)) {
res.writeHead(403);
res.end();
return;
@@ -345,6 +402,17 @@ interface HeartbeatState {
const heartbeats = new WeakMap<WebSocket, HeartbeatState>();
// Tracked so SIGTERM (below) can tell every live TS3/TeaSpeak session to
// disconnect properly before the process exits, instead of leaving the
// target server to notice on its own timeout.
const liveConnections = new Set<Ts3Connection>();
// Set right before that graceful disconnect: suppresses forwarding the
// connector's own "disconnected" event to the browser during shutdown, so
// the browser sees a raw socket close (which it auto-reconnects from) rather
// than an explicit disconnect (which it treats as deliberate and gives up
// on) — see the SIGTERM handler.
let shuttingDown = false;
const heartbeatTimer = setInterval(() => {
for (const socket of wss.clients) {
const state = heartbeats.get(socket);
@@ -365,16 +433,35 @@ wss.on("close", () => clearInterval(heartbeatTimer));
// 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 */
void (async () => {
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);
console.log(`[gateway] SIGTERM received, notified ${wss.clients.size} client(s), disconnecting ${liveConnections.size} live session(s)`);
// Tell every connector to leave its TS3/TeaSpeak server *before* the
// process exits. Without this, `docker stop`'s grace period expires and
// the container is killed, taking the connector child processes with it
// mid-session - the target server only notices via its own timeout
// (which can take a while), during which a client's automatic reconnect
// (see App.tsx's scheduleReconnect) gets rejected by the server as a
// duplicate identity (e.g. "ClientTooManyClonesConnected"). shuttingDown
// suppresses forwarding the resulting "disconnected" event to the
// browser - the browser must see a raw socket close here, not an
// explicit disconnect, or it treats it as deliberate and won't retry.
shuttingDown = true;
await Promise.race([
Promise.all([...liveConnections].map((c) => c.disconnect().catch(() => {}))),
new Promise((resolve) => setTimeout(resolve, 5000)),
]);
console.log(`[gateway] shutting down`);
process.exit(0);
})();
});
server.listen(PORT, () => {
@@ -402,8 +489,31 @@ wss.on("connection", (socket: WebSocket) => {
});
socket.on("message", async (raw) => {
const msg = JSON.parse(raw.toString());
// Everything below runs inside this try/catch on purpose: any exception
// here - malformed JSON, a handler throwing on unexpected input - would
// otherwise become an unhandled rejection (this callback is async) and
// take the whole process down with it, dropping every other connected
// user's live session. One bad message from one tab must never do that.
let msg: any;
try {
msg = JSON.parse(raw.toString());
} catch {
socket.send(JSON.stringify({ type: "error", message: "Invalid JSON" }));
return;
}
try {
await handleMessage(msg);
} catch (err) {
console.error("[gateway] Error handling WS message:", err);
try {
socket.send(JSON.stringify({ type: "error", message: "Internal error handling message" }));
} catch {
/* socket already gone */
}
}
async function handleMessage(msg: any): Promise<void> {
switch (msg.type) {
case "connect": {
// Replacing a connection on the same socket: tear down the previous
@@ -414,6 +524,7 @@ wss.on("connection", (socket: WebSocket) => {
} catch {
/* ignore */
}
liveConnections.delete(connection);
connection = undefined;
}
const options: Ts3ConnectOptions = {
@@ -427,15 +538,13 @@ wss.on("connection", (socket: WebSocket) => {
privilegeKey: parsePrivilegeKey(msg),
};
connection = new Ts3Connection(options);
liveConnections.add(connection);
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()}`);
}
if (shuttingDown) return;
if (event.type === "connected") {
logConnectionEvent({ type: "connected", host: options.host, server: event.serverName });
} else if (event.type === "disconnected") {
logConnectionEvent({ type: "disconnected", host: options.host });
}
socket.send(JSON.stringify(event));
});
@@ -694,6 +803,8 @@ wss.on("connection", (socket: WebSocket) => {
}
case "disconnect": {
await connection?.disconnect(msg.message ?? "");
if (connection) liveConnections.delete(connection);
connection = undefined;
break;
}
default:
@@ -701,10 +812,12 @@ wss.on("connection", (socket: WebSocket) => {
JSON.stringify({ type: "error", message: `Unknown message type: ${msg.type}` })
);
}
}
});
socket.on("close", () => {
heartbeats.delete(socket);
if (connection) liveConnections.delete(connection);
connection?.disconnect();
});
});
+389
View File
@@ -0,0 +1,389 @@
// --- Design Store endpoint -------------------------------------------------
//
// Opt-in only, same convention as LOG_CONNECTIONS/FEEDBACK_ENABLED/BROADCAST_TOKEN
// in index.ts: public CSS uploads need moderation attention a plain self-hosted
// instance shouldn't inherit just because the code exists. Set STORE_ENABLED=1
// to turn it on.
//
// Kept in its own module (unlike feedback/broadcast, which stay inline in
// index.ts) so the private VPS overlay - a hand-patched fork of index.ts that
// swaps feedback/connection persistence to SQLite - never needs this file
// touched. It has zero private modifications, so the overlay just copies it
// verbatim; only index.ts's small SQLite-persistence sections need patching.
import type { IncomingMessage, ServerResponse } from "node:http";
import { readFile, writeFile } from "node:fs/promises";
import { timingSafeEqual, randomUUID } from "node:crypto";
import path from "node:path";
const STORE_ENABLED = process.env.STORE_ENABLED === "1";
const STORE_ALLOWED_ORIGIN = process.env.STORE_ALLOWED_ORIGIN ?? "*";
// Plain JSON file (whole-array read-modify-write, not JSON-lines like
// feedback.log in index.ts): the store needs to list and look up by id, and
// the expected volume (community theme submissions) is small enough that
// rewriting the whole file each time is simpler than a real DB - see the
// "never add SQLite to the public gateway" note in mem:reference_webspeak3_private_sqlite_persistence.
const STORE_DATA_FILE = process.env.STORE_DATA_FILE ?? path.resolve(process.cwd(), "store-themes.json");
const STORE_NAME_MAX_LENGTH = 60;
const STORE_AUTHOR_MAX_LENGTH = 40;
const STORE_DESCRIPTION_MAX_LENGTH = 300;
const STORE_CSS_MAX_LENGTH = 50_000;
// ~300KB image after base64 overhead - screenshots live inline in the same
// flat JSON file as everything else, so this also bounds that file's growth.
const STORE_SCREENSHOT_MAX_DATA_URL_LENGTH = 400_000;
const STORE_SCREENSHOT_RE = /^data:image\/(png|jpe?g|webp);base64,[A-Za-z0-9+/]+=*$/;
// Hard cap so the flat file - and the in-memory cache mirroring it - can't
// grow unbounded from spam that slips past rate limiting (a fresh IP per
// submission, say). Bounds worst case to ~300 * 450KB =~ 135MB in RAM.
const STORE_MAX_THEMES = 300;
const STORE_BASE_THEMES = new Set(["standard", "nova", "greenteaspeak", "pulse"]);
// A handful of names (the operator's own) that only whoever holds
// STORE_ADMIN_TOKEN may publish under - stops anyone else from impersonating
// the maintainer in the author field. Everyone else's name is first-come,
// unenforced, same as any other free-text field here.
const STORE_RESERVED_AUTHORS = new Set(
(process.env.STORE_RESERVED_AUTHORS ?? "Möpchi,Moepchi")
.split(",")
.map((s) => s.trim().toLowerCase())
.filter(Boolean)
);
const STORE_ADMIN_TOKEN = process.env.STORE_ADMIN_TOKEN;
function isValidStoreAdminToken(provided: string): boolean {
if (!STORE_ADMIN_TOKEN) return false;
const a = Buffer.from(provided);
const b = Buffer.from(STORE_ADMIN_TOKEN);
return a.length === b.length && timingSafeEqual(a, b);
}
interface StoreTheme {
id: string;
name: string;
baseTheme: string;
css: string;
author: string;
description: string;
screenshot: string | null;
ratingSum: number;
ratingCount: number;
createdAt: string;
// ponytail: no moderation queue/admin UI yet - everything publishes as
// "approved" immediately. The field exists so a bad submission can be
// hidden by hand-editing STORE_DATA_FILE (status: "rejected") without a
// schema change, once there's an actual admin surface to do that from.
status: "approved" | "rejected";
}
// Rendered CSS reaches other users' browsers, so block the two ways a
// stylesheet can reach outside itself. Everything else (colors, selectors,
// animations, pseudo-elements) is harmless - it only ever applies inside the
// app's own theme wrapper class.
const CSS_IMPORT_RE = /@import/i;
const CSS_REMOTE_URL_RE = /url\s*\(\s*["']?\s*(?:https?:)?\/\//i;
function sanitizeThemeCss(css: string): string | null {
return CSS_IMPORT_RE.test(css) || CSS_REMOTE_URL_RE.test(css) ? null : css;
}
let storeCache: StoreTheme[] | null = null;
async function loadStoreThemes(): Promise<StoreTheme[]> {
if (storeCache) return storeCache;
try {
storeCache = JSON.parse(await readFile(STORE_DATA_FILE, "utf-8")) as StoreTheme[];
} catch {
storeCache = [];
}
return storeCache;
}
async function saveStoreThemes(themes: StoreTheme[]): Promise<void> {
storeCache = themes;
await writeFile(STORE_DATA_FILE, JSON.stringify(themes), "utf-8");
}
// Same in-memory-per-IP approach as FEEDBACK_RATE_LIMIT in index.ts; kept as a
// separate map since the two endpoints are independent.
const STORE_RATE_LIMIT = 5;
const STORE_RATE_WINDOW_MS = 60 * 60 * 1000;
const storeSubmissionTimes = new Map<string, number[]>();
function isStoreRateLimited(ip: string): boolean {
const now = Date.now();
const recent = (storeSubmissionTimes.get(ip) ?? []).filter((t) => now - t < STORE_RATE_WINDOW_MS);
recent.push(now);
storeSubmissionTimes.set(ip, recent);
return recent.length > STORE_RATE_LIMIT;
}
// One rating per IP per theme - not robust against a determined multi-IP
// spammer, but it stops the trivial "click again" case with no accounts to
// build. Memory-only, so it resets on redeploy; a repeat vote after that just
// counts twice, which is an acceptable ceiling for a beta feature.
const storeRatingsSeen = new Set<string>();
function setStoreCors(res: ServerResponse) {
res.setHeader("Access-Control-Allow-Origin", STORE_ALLOWED_ORIGIN);
res.setHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
}
function storeRating(theme: StoreTheme): { average: number; count: number } {
// theme.ratingCount is undefined for themes submitted before this field existed.
const count = theme.ratingCount ?? 0;
return { average: count ? theme.ratingSum / count : 0, count };
}
async function handleStoreList(res: ServerResponse) {
const themes = await loadStoreThemes();
const listing = themes
.filter((t) => t.status === "approved")
.sort((a, b) => b.createdAt.localeCompare(a.createdAt))
.map((t) => ({
id: t.id,
name: t.name,
baseTheme: t.baseTheme,
author: t.author,
description: t.description ?? "",
hasScreenshot: Boolean(t.screenshot),
rating: storeRating(t),
createdAt: t.createdAt,
}));
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify(listing));
}
async function handleStoreDownload(res: ServerResponse, id: string) {
const themes = await loadStoreThemes();
const theme = themes.find((t) => t.id === id && t.status === "approved");
if (!theme) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
// Same shape as the client's own .webspeak3theme.json export/import, so the
// browsed result feeds straight into the existing import validator.
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ name: theme.name, baseTheme: theme.baseTheme, css: theme.css }));
}
async function handleStoreScreenshot(res: ServerResponse, id: string) {
const themes = await loadStoreThemes();
const theme = themes.find((t) => t.id === id && t.status === "approved");
if (!theme?.screenshot) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
const match = /^data:(image\/[a-z]+);base64,(.+)$/.exec(theme.screenshot);
if (!match) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
res.writeHead(200, { "Content-Type": match[1], "Cache-Control": "public, max-age=3600" });
res.end(Buffer.from(match[2], "base64"));
}
async function handleStoreRate(req: IncomingMessage, res: ServerResponse, id: string) {
const ip = (req.socket.remoteAddress ?? "unknown").replace(/^::ffff:/, "");
const seenKey = `${ip}:${id}`;
if (storeRatingsSeen.has(seenKey)) {
res.writeHead(409, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "already_rated" }));
return;
}
let raw = "";
for await (const chunk of req) {
raw += chunk;
if (raw.length > 200) {
res.writeHead(413, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "payload_too_large" }));
return;
}
}
let body: { stars?: unknown };
try {
body = JSON.parse(raw || "{}");
} catch {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "invalid_json" }));
return;
}
const stars = typeof body.stars === "number" ? Math.round(body.stars) : NaN;
if (!Number.isInteger(stars) || stars < 1 || stars > 5) {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "invalid_stars" }));
return;
}
const themes = await loadStoreThemes();
const theme = themes.find((t) => t.id === id && t.status === "approved");
if (!theme) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
theme.ratingSum = (theme.ratingSum ?? 0) + stars;
theme.ratingCount = (theme.ratingCount ?? 0) + 1;
try {
await saveStoreThemes(themes);
} catch (err) {
console.error("[store] Failed to save rating:", err);
res.writeHead(500, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "save_failed" }));
return;
}
storeRatingsSeen.add(seenKey);
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true, rating: storeRating(theme) }));
}
async function handleStoreSubmit(req: IncomingMessage, res: ServerResponse) {
const ip = (req.socket.remoteAddress ?? "unknown").replace(/^::ffff:/, "");
if (isStoreRateLimited(ip)) {
res.writeHead(429, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "rate_limited" }));
return;
}
let raw = "";
const maxBytes = STORE_CSS_MAX_LENGTH + STORE_SCREENSHOT_MAX_DATA_URL_LENGTH + 5_000;
for await (const chunk of req) {
raw += chunk;
if (raw.length > maxBytes) {
res.writeHead(413, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "payload_too_large" }));
return;
}
}
let body: {
name?: unknown;
baseTheme?: unknown;
css?: unknown;
author?: unknown;
description?: unknown;
screenshot?: 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, same as /api/feedback in index.ts.
if (typeof body.website === "string" && body.website.trim() !== "") {
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true }));
return;
}
const name = typeof body.name === "string" ? body.name.trim().slice(0, STORE_NAME_MAX_LENGTH) : "";
const baseTheme = typeof body.baseTheme === "string" && STORE_BASE_THEMES.has(body.baseTheme) ? body.baseTheme : "";
const rawCss = typeof body.css === "string" ? body.css.slice(0, STORE_CSS_MAX_LENGTH) : "";
const author =
typeof body.author === "string" ? body.author.trim().slice(0, STORE_AUTHOR_MAX_LENGTH) || "Anonymous" : "Anonymous";
const description = typeof body.description === "string" ? body.description.trim().slice(0, STORE_DESCRIPTION_MAX_LENGTH) : "";
if (!name || !baseTheme || !rawCss) {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "invalid_theme" }));
return;
}
if (STORE_RESERVED_AUTHORS.has(author.toLowerCase())) {
const authHeader = req.headers.authorization ?? "";
const token = authHeader.startsWith("Bearer ") ? authHeader.slice("Bearer ".length) : "";
if (!isValidStoreAdminToken(token)) {
res.writeHead(403, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "author_reserved" }));
return;
}
}
const css = sanitizeThemeCss(rawCss);
if (css === null) {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "css_rejected" }));
return;
}
let screenshot: string | null = null;
if (typeof body.screenshot === "string" && body.screenshot !== "") {
if (body.screenshot.length > STORE_SCREENSHOT_MAX_DATA_URL_LENGTH || !STORE_SCREENSHOT_RE.test(body.screenshot)) {
res.writeHead(400, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "invalid_screenshot" }));
return;
}
screenshot = body.screenshot;
}
const themes = await loadStoreThemes();
if (themes.length >= STORE_MAX_THEMES) {
res.writeHead(507, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "store_full" }));
return;
}
const theme: StoreTheme = {
id: randomUUID(),
name,
baseTheme,
css,
author,
description,
screenshot,
ratingSum: 0,
ratingCount: 0,
createdAt: new Date().toISOString(),
status: "approved",
};
themes.push(theme);
try {
await saveStoreThemes(themes);
} catch (err) {
console.error("[store] Failed to save theme:", err);
res.writeHead(500, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "save_failed" }));
return;
}
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true, id: theme.id }));
}
export async function handleStore(req: IncomingMessage, res: ServerResponse, pathname: string) {
setStoreCors(res);
if (req.method === "OPTIONS") {
res.writeHead(204);
res.end();
return;
}
if (!STORE_ENABLED) {
res.writeHead(404, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "not_found" }));
return;
}
if (pathname === "/api/store/themes") {
if (req.method === "GET") return handleStoreList(res);
if (req.method === "POST") return handleStoreSubmit(req, res);
} else {
const [id, sub] = pathname.slice("/api/store/themes/".length).split("/");
if (id && !sub && req.method === "GET") return handleStoreDownload(res, id);
if (id && sub === "screenshot" && req.method === "GET") return handleStoreScreenshot(res, id);
if (id && sub === "rate" && req.method === "POST") return handleStoreRate(req, res, id);
}
res.writeHead(405, { "Content-Type": "application/json" });
res.end(JSON.stringify({ error: "method_not_allowed" }));
}
+70 -57
View File
@@ -248,6 +248,16 @@ export class Ts3Connection {
for (const listener of this.listeners) listener(event);
}
/** Every connector command is exactly one line on this stdin protocol.
* Several call sites forward fields (permission scope/ids, whisper
* targets, ...) without stripping embedded CR/LF first - routing every
* write through here means a stray newline in any of them can never
* smuggle in a second, attacker-chosen command. */
private writeLine(line: string): void {
if (!this.child || this.child.killed) return;
this.child.stdin.write(`${line.replace(/[\r\n]+/g, " ")}\n`);
}
async connect(): Promise<void> {
const args = ["--address", this.options.host, "--nickname", this.options.nickname];
if (this.options.serverPassword) args.push("--server-password", this.options.serverPassword);
@@ -576,7 +586,7 @@ export class Ts3Connection {
// 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`);
this.writeLine(`switch ${id}${passwordArg}`);
}
async moveClient(clientId: number, channelId: number, channelPassword?: string): Promise<void> {
@@ -584,30 +594,30 @@ export class Ts3Connection {
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`);
this.writeLine(`moveclient ${clid} ${cid}${passwordArg}`);
}
async getClientConnectionInfo(clientId: number): Promise<void> {
this.child?.stdin.write(`clientconninfo ${clientId}\n`);
this.writeLine(`clientconninfo ${clientId}`);
}
async getServerConnectionInfo(): Promise<void> {
this.child?.stdin.write(`serverconninfo\n`);
this.writeLine(`serverconninfo`);
}
async kickFromChannel(clientId: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`kickchannel ${clientId} ${sanitized}\n`);
this.writeLine(`kickchannel ${clientId} ${sanitized}`);
}
async kickFromServer(clientId: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`kickserver ${clientId} ${sanitized}\n`);
this.writeLine(`kickserver ${clientId} ${sanitized}`);
}
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`);
this.writeLine(`banclient ${clientId} ${Math.max(0, Math.floor(seconds))} ${sanitized}`);
}
/** Every field is optional - only send what actually changed. JSON.stringify
@@ -631,95 +641,95 @@ export class Ts3Connection {
phoneticName?: string;
codecEncryptionMode?: string;
}): Promise<void> {
this.child?.stdin.write(`serveredit ${JSON.stringify(payload)}\n`);
this.writeLine(`serveredit ${JSON.stringify(payload)}`);
}
async getServerLog(): Promise<void> {
this.child?.stdin.write(`serverlog\n`);
this.writeLine(`serverlog`);
}
async getBanList(): Promise<void> {
this.child?.stdin.write(`banlist\n`);
this.writeLine(`banlist`);
}
async deleteBan(banId: number): Promise<void> {
this.child?.stdin.write(`bandel ${banId}\n`);
this.writeLine(`bandel ${banId}`);
}
async deleteAllBans(): Promise<void> {
this.child?.stdin.write(`bandelall\n`);
this.writeLine(`bandelall`);
}
async getComplainList(): Promise<void> {
this.child?.stdin.write(`complainlist\n`);
this.writeLine(`complainlist`);
}
async deleteComplaint(targetClientDbId: number, fromClientDbId: number): Promise<void> {
this.child?.stdin.write(`complaindel ${targetClientDbId} ${fromClientDbId}\n`);
this.writeLine(`complaindel ${targetClientDbId} ${fromClientDbId}`);
}
async deleteAllComplaintsFor(targetClientDbId: number): Promise<void> {
this.child?.stdin.write(`complaindelall ${targetClientDbId}\n`);
this.writeLine(`complaindelall ${targetClientDbId}`);
}
async getOfflineMessageList(): Promise<void> {
this.child?.stdin.write(`messagelist\n`);
this.writeLine(`messagelist`);
}
async getOfflineMessage(messageId: number): Promise<void> {
this.child?.stdin.write(`messageget ${messageId}\n`);
this.writeLine(`messageget ${messageId}`);
}
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`);
this.writeLine(`messageadd ${sanitize(clientUid)}\t${sanitize(subject)}\t${sanitize(message)}`);
}
async deleteOfflineMessage(messageId: number): Promise<void> {
this.child?.stdin.write(`messagedel ${messageId}\n`);
this.writeLine(`messagedel ${messageId}`);
}
async markOfflineMessageRead(messageId: number): Promise<void> {
this.child?.stdin.write(`messageupdateflag ${messageId} 1\n`);
this.writeLine(`messageupdateflag ${messageId} 1`);
}
async getChannelGroupList(): Promise<void> {
this.child?.stdin.write(`channelgrouplist\n`);
this.writeLine(`channelgrouplist`);
}
async getServerGroupList(): Promise<void> {
this.child?.stdin.write(`servergrouplist\n`);
this.writeLine(`servergrouplist`);
}
async setChannelGroup(channelGroupId: number, channelId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}\n`);
this.writeLine(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}`);
}
async addServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`addservergroup ${serverGroupId} ${clientDbId}\n`);
this.writeLine(`addservergroup ${serverGroupId} ${clientDbId}`);
}
async removeServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`delservergroup ${serverGroupId} ${clientDbId}\n`);
this.writeLine(`delservergroup ${serverGroupId} ${clientDbId}`);
}
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`);
this.writeLine(`serverquerylogin ${u} ${p}`);
}
async getPermissionOverview(): Promise<void> {
this.child?.stdin.write(`permoverview\n`);
this.writeLine(`permoverview`);
}
async getPermissionCatalog(): Promise<void> {
this.child?.stdin.write(`permissionlist\n`);
this.writeLine(`permissionlist`);
}
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`);
this.writeLine(`permlist ${args}`);
}
/** `negated`/`skip` only apply to the "server" and "client" scopes - the
@@ -736,73 +746,73 @@ export class Ts3Connection {
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`);
this.writeLine(`permadd ${args}`);
}
async removePermission(scope: PermScope, ids: number[], permId: number): Promise<void> {
this.child?.stdin.write(`permdel ${scope} ${ids.join(" ")} ${permId}\n`);
this.writeLine(`permdel ${scope} ${ids.join(" ")} ${permId}`);
}
async getFileList(channelId: number, path: string): Promise<void> {
const sanitized = (path || "/").replace(/[\r\n]+/g, " ").trim() || "/";
this.child?.stdin.write(`ftlist ${channelId} ${sanitized}\n`);
this.writeLine(`ftlist ${channelId} ${sanitized}`);
}
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`);
if (sanitized) this.writeLine(`ftmkdir ${channelId} ${sanitized}`);
}
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`);
if (sanitized) this.writeLine(`ftdelete ${channelId} ${sanitized}`);
}
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`);
this.writeLine(`ftrename ${channelId}\t${sanitize(oldName)}\t${sanitize(newName)}`);
}
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`);
if (sanitized) this.writeLine(`ftdownload ${channelId} ${sanitized}`);
}
/** `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`);
this.writeLine(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}`);
}
async sendChatMessage(message: string): Promise<void> {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`chat ${sanitized}\n`);
if (sanitized) this.writeLine(`chat ${sanitized}`);
}
async sendServerMessage(message: string): Promise<void> {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`serverchat ${sanitized}\n`);
if (sanitized) this.writeLine(`serverchat ${sanitized}`);
}
async sendPrivateMessage(clientId: number, message: string): Promise<void> {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`pm ${clientId} ${sanitized}\n`);
if (sanitized) this.writeLine(`pm ${clientId} ${sanitized}`);
}
async sendPoke(clientId: number, message: string): Promise<void> {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`poke ${clientId} ${sanitized}\n`);
this.writeLine(`poke ${clientId} ${sanitized}`);
}
async sendAudio(pcmBase64: string): Promise<void> {
this.child?.stdin.write(`audio ${pcmBase64}\n`);
this.writeLine(`audio ${pcmBase64}`);
}
/** 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`);
this.writeLine(`streaminfo ${clientId}`);
}
/** Ask the client publishing a TS6 stream to let us watch. The answer comes
@@ -811,12 +821,12 @@ export class Ts3Connection {
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`);
if (id) this.writeLine(`streamjoin ${id} ${clientId} ${sanitized}`);
}
async leaveStream(streamId: string, clientId: number): Promise<void> {
const id = streamId.replace(/[\s]+/g, "");
if (id) this.child?.stdin.write(`streamleave ${id} ${clientId}\n`);
if (id) this.writeLine(`streamleave ${id} ${clientId}`);
}
/** Relays one signaling payload (SDP answer, ICE candidate) to a stream peer.
@@ -826,7 +836,7 @@ export class Ts3Connection {
* 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`);
if (id) this.writeLine(`streamsignal ${id} ${clientId} ${JSON.stringify(payload)}`);
}
/** Announces a stream we publish. The server assigns the id and reports it
@@ -841,7 +851,7 @@ export class Ts3Connection {
viewerLimit: options.viewerLimit,
audio: options.audio,
};
this.child?.stdin.write(`streamsetup ${JSON.stringify(payload)}\n`);
this.writeLine(`streamsetup ${JSON.stringify(payload)}`);
}
/** Accepts or refuses a viewer that asked to watch our stream. On accept,
@@ -863,44 +873,47 @@ export class Ts3Connection {
offer,
decision: accept ? 1 : 0,
};
this.child?.stdin.write(`streamrespond ${JSON.stringify(payload)}\n`);
this.writeLine(`streamrespond ${JSON.stringify(payload)}`);
}
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`);
if (id) this.writeLine(`streamstop ${id} ${sanitized}`);
}
async setAway(away: boolean, message: string): Promise<void> {
if (away) {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`away ${sanitized}\n`);
this.writeLine(`away ${sanitized}`);
} else {
this.child?.stdin.write("unaway\n");
this.writeLine("unaway");
}
}
async setInputMuted(muted: boolean): Promise<void> {
this.child?.stdin.write(`muteinput ${muted ? "1" : "0"}\n`);
this.writeLine(`muteinput ${muted ? "1" : "0"}`);
}
async setOutputMuted(muted: boolean): Promise<void> {
this.child?.stdin.write(`muteoutput ${muted ? "1" : "0"}\n`);
this.writeLine(`muteoutput ${muted ? "1" : "0"}`);
}
async setNickname(nickname: string): Promise<void> {
const sanitized = nickname.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`nickname ${sanitized}\n`);
if (sanitized) this.writeLine(`nickname ${sanitized}`);
}
/** 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");
const chans = channelIds.map(Number);
const clients = clientIds.map(Number);
if (chans.some((n) => !Number.isFinite(n)) || clients.some((n) => !Number.isFinite(n))) return;
if (chans.length === 0 && clients.length === 0) {
this.writeLine("unwhisper");
} else {
this.child?.stdin.write(`whisper ${channelIds.join(",")};${clientIds.join(",")}\n`);
this.writeLine(`whisper ${chans.join(",")};${clients.join(",")}`);
}
}
+7 -96
View File
@@ -8,6 +8,7 @@
"name": "webspeak3-web",
"version": "0.0.0",
"dependencies": {
"@ennuicastr/webrtcaec3.js": "^0.3.0",
"fflate": "^0.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7"
@@ -1619,6 +1620,12 @@
"tslib": "^2.4.0"
}
},
"node_modules/@ennuicastr/webrtcaec3.js": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@ennuicastr/webrtcaec3.js/-/webrtcaec3.js-0.3.0.tgz",
"integrity": "sha512-ZfijX3Pzqr2zY2nTBE+APGB4X8q3up5vqQgmuolCvC2WTYYWvivf3GGVFZnTr6n/kZa9w3Y5P4ugwcrOmsqXZQ==",
"license": "BSD-3-Clause"
},
"node_modules/@isaacs/cliui": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz",
@@ -1698,9 +1705,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1869,9 +1873,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1889,9 +1890,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1909,9 +1907,6 @@
"ppc64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1929,9 +1924,6 @@
"riscv64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1949,9 +1941,6 @@
"riscv64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1969,9 +1958,6 @@
"s390x"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -1989,9 +1975,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2009,9 +1992,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2182,9 +2162,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2202,9 +2179,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2222,9 +2196,6 @@
"ppc64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2242,9 +2213,6 @@
"s390x"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2262,9 +2230,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2282,9 +2247,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2617,9 +2579,6 @@
"arm"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2634,9 +2593,6 @@
"arm"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2651,9 +2607,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2668,9 +2621,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2685,9 +2635,6 @@
"loong64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2702,9 +2649,6 @@
"loong64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2719,9 +2663,6 @@
"ppc64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2736,9 +2677,6 @@
"ppc64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2753,9 +2691,6 @@
"riscv64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2770,9 +2705,6 @@
"riscv64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2787,9 +2719,6 @@
"s390x"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2804,9 +2733,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -2821,9 +2747,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -4891,9 +4814,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4915,9 +4835,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4939,9 +4856,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -4963,9 +4877,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
+3
View File
@@ -4,12 +4,15 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"predev": "node scripts/sync-aec3-assets.mjs",
"dev": "vite",
"prebuild": "node scripts/sync-aec3-assets.mjs",
"build": "tsc -b && vite build",
"lint": "oxlint",
"preview": "vite preview"
},
"dependencies": {
"@ennuicastr/webrtcaec3.js": "^0.3.0",
"fflate": "^0.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7"
+20
View File
@@ -0,0 +1,20 @@
// Copies the AEC3 WASM module's prebuilt assets into public/vendor/ so they're
// served unhashed, at the exact filenames the module's own glue code expects
// (it resolves its .wasm next to its own <script src> by a hardcoded literal
// name - see web/src/aec3.ts). Run via predev/prebuild rather than committed,
// so the binary blobs never enter git.
import { copyFileSync, mkdirSync, readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const webRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const pkgDir = path.join(webRoot, "node_modules/@ennuicastr/webrtcaec3.js");
const { version } = JSON.parse(readFileSync(path.join(pkgDir, "package.json"), "utf8"));
const outDir = path.join(webRoot, "public/vendor");
mkdirSync(outDir, { recursive: true });
// The .js is renamed to a stable name (we choose its <script src>, so nothing
// depends on this filename); the .wasm keeps its exact original name (the glue
// code's own lookup is hardcoded to it).
copyFileSync(path.join(pkgDir, "dist", `webrtcaec3-${version}.js`), path.join(outDir, "webrtcaec3.js"));
copyFileSync(path.join(pkgDir, "dist", `webrtcaec3-${version}.wasm`), path.join(outDir, `webrtcaec3-${version}.wasm`));
+144 -12
View File
@@ -744,6 +744,19 @@
color: var(--bg-toolbar-1);
}
/* Nova moves the self/voice toolbar below the chat panel instead of above it
(see the > .ts-toolbar reorder rule further up), which adds ~6.7rem of
vertical footprint the fixed-position feedback/donate FABs don't know
about - without this they land on top of the chat composer's send button. */
.ts-app.ts-design-nova .ts-donate-fab,
.ts-app.ts-design-nova .ts-feedback-fab-wrap {
bottom: 12.25rem;
}
.ts-app.ts-design-nova .ts-feedback-fab-wrap-stacked {
bottom: 15.25rem;
}
/* Client avatar chips: colored initial squares, Nova-only (Standard theme
keeps its plain icon + name row). */
.ts-client-avatar {
@@ -2466,7 +2479,7 @@
display: flex;
align-items: center;
justify-content: center;
z-index: 15;
z-index: 550;
}
.ts-dialog {
@@ -3269,6 +3282,11 @@
margin: 0 0 0.75rem;
}
.ts-options-hint {
font-size: 11px;
margin: 0.35rem 0 0;
}
.ts-design-theme-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -3360,28 +3378,142 @@
background: conic-gradient(from 180deg, #7fb0e8, #ff8fab, #ffd166, #7fb0e8);
}
.ts-design-theme-card-screenshot {
width: 100%;
border-radius: 4px;
border: 1px solid var(--border-soft);
object-fit: cover;
max-height: 120px;
}
.ts-design-theme-card-rating {
display: flex;
align-items: center;
gap: 0.1rem;
margin-top: 0.3rem;
}
.ts-design-theme-card-star {
padding: 0;
border: none;
background: transparent;
color: var(--accent);
cursor: pointer;
font-size: 16px;
line-height: 1;
}
.ts-design-theme-card-star:disabled {
cursor: default;
}
.ts-design-theme-card-rating-count {
margin-left: 0.3rem;
font-size: 11px;
color: var(--text-muted);
}
.ts-design-theme-card-actions {
display: flex;
gap: 0.3rem;
width: 100%;
gap: 0.4rem;
margin-top: 0.5rem;
}
.ts-design-theme-card-actions button {
flex: 1;
padding: 0.25rem 0;
border: 1px solid var(--border-soft);
border-radius: 3px;
background: var(--input-bg);
color: var(--text-muted);
.ts-design-theme-card-actions button,
.ts-design-store-card-actions button,
.ts-design-store-publish-submit,
.ts-design-custom-actions button {
border: 1px solid var(--border);
border-radius: 4px;
background: linear-gradient(to bottom, var(--button-bg-1), var(--button-bg-2));
color: var(--text);
cursor: pointer;
font-size: 12px;
}
.ts-design-theme-card-actions button:hover {
color: var(--text);
.ts-design-theme-card-actions button:hover:not(:disabled),
.ts-design-store-card-actions button:hover:not(:disabled),
.ts-design-store-publish-submit:hover:not(:disabled),
.ts-design-custom-actions button:hover:not(:disabled) {
background: linear-gradient(to bottom, var(--button-bg-hover-1), var(--button-bg-hover-2));
border-color: var(--accent);
}
.ts-design-theme-card-actions button:disabled,
.ts-design-store-card-actions button:disabled,
.ts-design-store-publish-submit:disabled,
.ts-design-custom-actions button:disabled {
opacity: 0.4;
cursor: default;
}
/* Icon row (edit/duplicate/export/delete) - side by side, flex:1 so the four
of them together always fill the card's full width. */
.ts-design-theme-card-actions button {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 2.6rem;
padding: 0.5rem 0;
}
/* Delete is destructive - always red, regardless of the active design's
accent color. Selector nests one level deeper than the shared rules
above so it reliably wins the cascade instead of relying on source order. */
.ts-design-theme-card-actions .ts-design-theme-card-delete {
background: linear-gradient(to bottom, #d64545, #b23a3a);
border-color: #8f2c2c;
color: #fff;
}
.ts-design-theme-card-actions .ts-design-theme-card-delete:hover:not(:disabled) {
background: linear-gradient(to bottom, #e85d5d, #c94444);
border-color: #e85d5d;
}
.ts-design-store-card-actions {
margin-top: 0.5rem;
}
.ts-design-store-card-actions button {
width: 100%;
padding: 0.5rem;
font-size: 13px;
}
.ts-design-store-header {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 0.5rem;
}
.ts-design-store-header h3 {
margin: 0;
}
.ts-design-store-back {
border: none;
background: transparent;
color: var(--accent);
cursor: pointer;
padding: 0.2rem 0;
font-size: 13px;
}
.ts-design-store-publish-submit {
display: block;
margin-top: 0.75rem;
padding: 0.5rem 1rem;
font-size: 13px;
}
.ts-design-custom-actions button {
padding: 0.5rem 1rem;
font-size: 13px;
}
.ts-design-custom-actions {
display: flex;
gap: 0.5rem;
+511 -7
View File
@@ -1,4 +1,4 @@
import { useEffect, useMemo, useRef, useState } from "react";
import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
import { useRegisterSW } from "virtual:pwa-register/react";
import "./App.css";
@@ -25,6 +25,7 @@ import {
listAudioOutputDevices,
pickAudioOutputDevice,
} from "./voice";
import { createAec3, type Aec3Instance } from "./aec3";
import { LanguageProvider, useLanguage, useT, type LangPref } from "./i18n";
import {
StreamAccess,
@@ -96,6 +97,21 @@ const FEEDBACK_URL = import.meta.env.DEV
? `${import.meta.env.VITE_GATEWAY_URL.replace(/\/$/, "").replace(/^ws(s?):\/\//, "http$1://")}/api/feedback`
: `${window.location.protocol}//${window.location.host}/api/feedback`;
// Unlike GATEWAY_URL/FEEDBACK_URL above, the design store is NOT per-instance:
// it's a single, centrally curated catalog run on the maintainer's own VPS
// (see gateway/src/store.ts), so every build - official and self-hosted
// Docker image alike - points at the same one by default, regardless of
// which TS3/TeaSpeak gateway that build otherwise talks to. A self-hoster who
// wants to run their own separate community store instead (their own
// gateway's STORE_ENABLED=1) can override with VITE_STORE_URL at build time.
// DEMO_MODE keeps the old same-origin derivation instead, which 404s on the
// static demo host - the public demo has no write access to the real store.
const STORE_URL = import.meta.env.DEV
? "http://localhost:8080/api/store/themes"
: DEMO_MODE
? `${window.location.protocol}//${window.location.host}/api/store/themes`
: import.meta.env.VITE_STORE_URL || "https://gateway.webspeak3.de/api/store/themes";
// Ko-fi page of the project (.github/FUNDING.yml). Unlike the feedback button
// below this is not limited to the maintainer's own instance: it ships in
// every build, the Docker image included. Self-hosters who would rather not
@@ -115,6 +131,34 @@ const DONATE_URL = import.meta.env.VITE_DONATE_URL ?? "https://ko-fi.com/moepchi
const OWN_HOSTED_HOSTNAMES = new Set(["client.webspeak3.de"]);
const IS_OWN_HOSTED_INSTANCE = !DEMO_MODE && OWN_HOSTED_HOSTNAMES.has(window.location.hostname);
// Auto-connect from a share link (?connect=host[:port]&nickname=&channel=&token=,
// see GitHub issue #10). Parsed once at module load and immediately stripped
// from the URL via replaceState so a reload/refresh doesn't silently
// reconnect off a stale link sitting in the address bar or browser history.
const AUTO_CONNECT_FROM_URL = (() => {
const params = new URLSearchParams(window.location.search);
const connectHost = params.get("connect");
if (!connectHost) return null;
const target = {
host: connectHost,
nickname: params.get("nickname") || undefined,
defaultChannel: params.get("channel") || undefined,
privilegeKey: params.get("token") || undefined,
};
for (const key of ["connect", "nickname", "channel", "token"]) params.delete(key);
const rest = params.toString();
window.history.replaceState(null, "", window.location.pathname + (rest ? `?${rest}` : "") + window.location.hash);
return target;
})();
// A self-hosted build can also bake in a default server so the page
// auto-connects with zero URL params at all - set via `docker compose build
// --build-arg DEFAULT_SERVER=...` (see Dockerfile/README) or plain
// VITE_DEFAULT_SERVER= at build time. AUTO_CONNECT_FROM_URL above always wins
// when a share link is present.
const DEFAULT_SERVER = import.meta.env.VITE_DEFAULT_SERVER || null;
const DEFAULT_CHANNEL = import.meta.env.VITE_DEFAULT_CHANNEL || "";
// Terms of use, own-hosted instance only (see TODO.md #2/#7.1). Versioned so
// a rule change can re-surface the modal: bump TOS_VERSION and everyone who
// accepted an older version is asked again.
@@ -238,6 +282,7 @@ const PLAYBACK_VOLUME_KEY = "webspeak3:playback-volume";
const NOISE_SUPPRESSION_KEY = "webspeak3:noise-suppression";
const ECHO_CANCELLATION_KEY = "webspeak3:echo-cancellation";
const AUTO_GAIN_CONTROL_KEY = "webspeak3:auto-gain-control";
const AEC3_ENABLED_KEY = "webspeak3:aec3-enabled";
const VAD_HANGOVER_KEY = "webspeak3:vad-hangover";
const DESIGN_THEME_KEY = "webspeak3:design-theme";
// The user's actual pick - "standard" | "nova" | "greenteaspeak" | "custom:<id>".
@@ -261,6 +306,31 @@ type CustomTheme = {
css: string;
};
/** Metadata for one theme listed by GET /api/store/themes - deliberately
* without `css`, so browsing the store doesn't pull every submission's full
* stylesheet up front. The full package (matching CustomTheme's export
* shape) is fetched separately per-id on install, see STORE_URL above. */
type StoreThemeSummary = {
id: string;
name: string;
baseTheme: DesignTheme;
author: string;
description: string;
hasScreenshot: boolean;
rating: { average: number; count: number };
createdAt: string;
};
// The operator's own admin token for publishing under a reserved author name
// (see STORE_RESERVED_AUTHORS in gateway/src/index.ts) - kept in localStorage
// so it only has to be entered once per browser, same idea as the last-used
// connection fields above.
const STORE_ADMIN_TOKEN_KEY = "webspeak3:store-admin-token";
// Mirrors the gateway's STORE_SCREENSHOT_MAX_DATA_URL_LENGTH - checked client-side
// too so a rejected upload doesn't cost a round trip.
const STORE_SCREENSHOT_MAX_DATA_URL_LENGTH = 400_000;
function isDesignTheme(value: string): value is DesignTheme {
return value === "standard" || value === "nova" || value === "greenteaspeak" || value === "pulse";
}
@@ -1513,6 +1583,7 @@ function ConnectDialog({
</button>
)}
<button
className={nova ? "ts-connect-cancel" : undefined}
onClick={onConnectNewTab}
disabled={connecting || !host || !nickname || !canOpenNewTab}
title={canOpenNewTab ? undefined : t("connect.newTab")}
@@ -4899,6 +4970,9 @@ interface AudioSettings {
onToggleEchoCancellation: () => void;
autoGainControlEnabled: boolean;
onToggleAutoGainControl: () => void;
aec3Enabled: boolean;
aec3Loading: boolean;
onToggleAec3: () => void;
}
function MicLevelBar({ levelRef, active }: { levelRef: React.MutableRefObject<number>; active: boolean }) {
@@ -5077,6 +5151,7 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) {
<input
type="checkbox"
checked={audio.echoCancellationEnabled}
disabled={audio.aec3Enabled}
onChange={audio.onToggleEchoCancellation}
/>
{t("recording.echoCancellation")}
@@ -5097,6 +5172,16 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) {
/>
{t("recording.autoGainControl")}
</label>
<label className="ts-options-checkbox">
<input
type="checkbox"
checked={audio.aec3Enabled}
disabled={audio.aec3Loading}
onChange={audio.onToggleAec3}
/>
{t("recording.aec3")}
{audio.aec3Loading ? "…" : ""}
</label>
</div>
</fieldset>
</div>
@@ -5119,14 +5204,41 @@ function AnwendungPanel() {
<option value="de">{t("app.language.de")}</option>
<option value="en">{t("app.language.en")}</option>
<option value="zh-CN">{t("app.language.zh-CN")}</option>
<option value="fa">{t("app.language.fa")}</option>
</select>
</label>
<p className="ts-options-hint">
<a href="https://hosted.weblate.org/projects/webspeak3/" target="_blank" rel="noreferrer">
{t("app.language.helpTranslate")}
</a>
</p>
</>
);
}
type CustomThemeDraft = { id: string | null; name: string; baseTheme: DesignTheme; css: string };
/** Shared stroke-icon wrapper for the custom-theme-card action row, so all
* four icons (edit/duplicate/export/delete) render at the same size and
* color - mixing text glyphs with an emoji (as before) made them look
* inconsistent across fonts/platforms. */
function ActionIcon({ children }: { children: ReactNode }) {
return (
<svg
viewBox="0 0 24 24"
width="20"
height="20"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
{children}
</svg>
);
}
function DesignPanel({
designSelection,
onSelectionChange,
@@ -5142,6 +5254,7 @@ function DesignPanel({
}) {
const t = useT();
const [editing, setEditing] = useState<CustomThemeDraft | null>(null);
const [storeOpen, setStoreOpen] = useState(false);
const importInputRef = useRef<HTMLInputElement | null>(null);
const builtins: { id: DesignTheme; name: string; desc: string }[] = [
@@ -5199,6 +5312,20 @@ function DesignPanel({
}
};
if (storeOpen) {
return (
<DesignStorePanel
customThemes={customThemes}
onInstall={(theme) => {
const id = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
onSaveCustomTheme({ id, name: theme.name, baseTheme: theme.baseTheme, css: theme.css });
onSelectionChange(`custom:${id}`);
}}
onClose={() => setStoreOpen(false)}
/>
);
}
if (editing) {
return (
<>
@@ -5275,7 +5402,9 @@ function DesignPanel({
onClick={() => setEditing({ id: theme.id, name: theme.name, baseTheme: theme.baseTheme, css: theme.css })}
title={t("design.custom.edit")}
>
✎
<ActionIcon>
<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" />
</ActionIcon>
</button>
<button
onClick={() =>
@@ -5283,18 +5412,31 @@ function DesignPanel({
}
title={t("design.custom.duplicate")}
>
⧉
<ActionIcon>
<rect x="9" y="9" width="13" height="13" rx="2" ry="2" />
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
</ActionIcon>
</button>
<button onClick={() => handleExport(theme)} title={t("design.custom.export")}>
⭳
<ActionIcon>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<polyline points="7 10 12 15 17 10" />
<line x1="12" y1="15" x2="12" y2="3" />
</ActionIcon>
</button>
<button
className="ts-design-theme-card-delete"
onClick={() => {
if (window.confirm(t("design.custom.deleteConfirm"))) onDeleteCustomTheme(theme.id);
}}
title={t("design.custom.delete")}
>
🗑
<ActionIcon>
<polyline points="3 6 5 6 21 6" />
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
<line x1="10" y1="11" x2="10" y2="17" />
<line x1="14" y1="11" x2="14" y2="17" />
</ActionIcon>
</button>
</div>
</div>
@@ -5312,11 +5454,274 @@ function DesignPanel({
style={{ display: "none" }}
onChange={handleImportSelected}
/>
<button onClick={() => setStoreOpen(true)}>{t("design.store.open")}</button>
</div>
</>
);
}
/** Browse community-submitted designs (GET STORE_URL) and publish one of the
* viewer's own custom themes (POST STORE_URL) - see gateway/src/index.ts's
* /api/store/themes handler. Reports "unavailable" rather than erroring when
* the gateway has STORE_ENABLED off (the default), same as a 404. */
function DesignStorePanel({
customThemes,
onInstall,
onClose,
}: {
customThemes: CustomTheme[];
onInstall: (theme: { name: string; baseTheme: DesignTheme; css: string }) => void;
onClose: () => void;
}) {
const t = useT();
const [themes, setThemes] = useState<StoreThemeSummary[] | null>(null);
const [unavailable, setUnavailable] = useState(false);
const [installedIds, setInstalledIds] = useState<Set<string>>(new Set());
const [publishTarget, setPublishTarget] = useState("");
const [publishAuthor, setPublishAuthor] = useState("");
const [publishDescription, setPublishDescription] = useState("");
const [publishScreenshot, setPublishScreenshot] = useState<string | null>(null);
const [publishAdminToken, setPublishAdminToken] = useState(
() => localStorage.getItem(STORE_ADMIN_TOKEN_KEY) ?? ""
);
const [publishing, setPublishing] = useState(false);
const [publishResult, setPublishResult] = useState<"ok" | "error" | null>(null);
const [ratedIds, setRatedIds] = useState<Set<string>>(new Set());
const refreshThemes = () =>
fetch(STORE_URL)
.then((res) => {
if (!res.ok) throw new Error(String(res.status));
return res.json() as Promise<StoreThemeSummary[]>;
})
.then(setThemes)
.catch(() => setUnavailable(true));
useEffect(() => {
refreshThemes();
// Only ever needs to run once per panel open - refreshThemes is re-created
// each render but doesn't depend on any prop/state that would need it here.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleInstall = async (id: string) => {
try {
const res = await fetch(`${STORE_URL}/${id}`);
if (!res.ok) throw new Error(String(res.status));
const parsed = await res.json();
if (
!parsed ||
typeof parsed.name !== "string" ||
!isDesignTheme(parsed.baseTheme) ||
typeof parsed.css !== "string"
) {
throw new Error("invalid");
}
onInstall({ name: parsed.name, baseTheme: parsed.baseTheme, css: parsed.css });
setInstalledIds((prev) => new Set(prev).add(id));
} catch {
window.alert(t("design.custom.importError"));
}
};
const handleScreenshotChange = (file: File | undefined) => {
if (!file) {
setPublishScreenshot(null);
return;
}
const reader = new FileReader();
reader.onload = () => {
const dataUrl = reader.result as string;
if (dataUrl.length > STORE_SCREENSHOT_MAX_DATA_URL_LENGTH) {
window.alert(t("design.store.publish.screenshotTooLarge"));
return;
}
setPublishScreenshot(dataUrl);
};
reader.readAsDataURL(file);
};
const handlePublish = async () => {
const theme = customThemes.find((c) => c.id === publishTarget);
if (!theme) return;
setPublishing(true);
setPublishResult(null);
try {
const token = publishAdminToken.trim();
if (token) localStorage.setItem(STORE_ADMIN_TOKEN_KEY, token);
const res = await fetch(STORE_URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
...(token ? { Authorization: `Bearer ${token}` } : {}),
},
body: JSON.stringify({
name: theme.name,
baseTheme: theme.baseTheme,
css: theme.css,
author: publishAuthor.trim() || undefined,
description: publishDescription.trim() || undefined,
screenshot: publishScreenshot ?? undefined,
}),
});
if (!res.ok) throw new Error(String(res.status));
setPublishResult("ok");
setPublishAuthor("");
setPublishDescription("");
setPublishScreenshot(null);
await refreshThemes();
} catch {
setPublishResult("error");
} finally {
setPublishing(false);
}
};
const handleRate = async (id: string, stars: number) => {
setRatedIds((prev) => new Set(prev).add(id));
try {
const res = await fetch(`${STORE_URL}/${id}/rate`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ stars }),
});
if (!res.ok) throw new Error(String(res.status));
const parsed = await res.json();
setThemes(
(prev) => prev?.map((th) => (th.id === id ? { ...th, rating: parsed.rating } : th)) ?? prev
);
} catch {
// Vote didn't count (already rated, offline, etc.) - the star stays marked
// used locally so the person doesn't just click it again; no error UI needed
// for what's a nice-to-have.
}
};
return (
<>
<div className="ts-design-store-header">
<button className="ts-design-store-back" onClick={onClose}>
← {t("design.store.back")}
</button>
<h3>{t("design.store.title")}</h3>
</div>
{unavailable ? (
<p className="ts-options-subtitle">{t("design.store.unavailable")}</p>
) : themes === null ? (
<p className="ts-options-subtitle">{t("design.store.loading")}</p>
) : (
<>
<div className="ts-design-theme-grid">
{themes.length === 0 && <p className="ts-options-subtitle">{t("design.store.empty")}</p>}
{themes.map((theme) => (
<div key={theme.id} className="ts-design-theme-card ts-design-theme-card-custom">
{theme.hasScreenshot && (
<img
className="ts-design-theme-card-screenshot"
src={`${STORE_URL}/${theme.id}/screenshot`}
alt={t("design.store.screenshotAlt", { name: theme.name })}
/>
)}
<div className="ts-design-theme-card-select">
<span className="ts-design-theme-swatch ts-design-theme-swatch-custom" />
<span className="ts-design-theme-card-name">{theme.name}</span>
<span className="ts-design-theme-card-desc">{t("design.store.by", { author: theme.author })}</span>
</div>
{theme.description && <p className="ts-design-theme-card-desc">{theme.description}</p>}
<div className="ts-design-theme-card-rating">
{[1, 2, 3, 4, 5].map((star) => (
<button
key={star}
className="ts-design-theme-card-star"
disabled={ratedIds.has(theme.id)}
onClick={() => handleRate(theme.id, star)}
title={t("design.store.rating.rate", { stars: String(star) })}
>
{star <= Math.round(theme.rating.average) ? "★" : "☆"}
</button>
))}
<span className="ts-design-theme-card-rating-count">
{theme.rating.count > 0
? t("design.store.rating.summary", {
average: theme.rating.average.toFixed(1),
count: String(theme.rating.count),
})
: t("design.store.rating.none")}
</span>
</div>
<div className="ts-design-store-card-actions">
<button onClick={() => handleInstall(theme.id)} disabled={installedIds.has(theme.id)}>
{installedIds.has(theme.id) ? t("design.store.installed") : t("design.store.install")}
</button>
</div>
</div>
))}
</div>
<h3>{t("design.store.publishTitle")}</h3>
{customThemes.length === 0 ? (
<p className="ts-options-subtitle">{t("design.store.publish.none")}</p>
) : (
<>
<label className="ts-options-field">
{t("design.store.publish.select")}
<select value={publishTarget} onChange={(e) => setPublishTarget(e.target.value)}>
<option value="" />
{customThemes.map((theme) => (
<option key={theme.id} value={theme.id}>
{theme.name}
</option>
))}
</select>
</label>
<label className="ts-options-field">
{t("design.store.publish.author")}
<input
value={publishAuthor}
onChange={(e) => setPublishAuthor(e.target.value)}
placeholder={t("design.store.publish.authorPlaceholder")}
/>
</label>
<label className="ts-options-field">
{t("design.store.publish.description")}
<textarea
value={publishDescription}
onChange={(e) => setPublishDescription(e.target.value)}
placeholder={t("design.store.publish.descriptionPlaceholder")}
maxLength={300}
rows={3}
/>
</label>
<label className="ts-options-field">
{t("design.store.publish.screenshot")}
<input
type="file"
accept="image/png,image/jpeg,image/webp"
onChange={(e) => handleScreenshotChange(e.target.files?.[0])}
/>
</label>
<label className="ts-options-field">
{t("design.store.publish.adminToken")}
<input
type="password"
value={publishAdminToken}
onChange={(e) => setPublishAdminToken(e.target.value)}
placeholder={t("design.store.publish.adminTokenPlaceholder")}
/>
</label>
<button className="ts-design-store-publish-submit" onClick={handlePublish} disabled={!publishTarget || publishing}>
{t("design.store.publish.submit")}
</button>
{publishResult === "ok" && <p className="ts-options-subtitle">{t("design.store.publish.success")}</p>}
{publishResult === "error" && <p className="ts-options-subtitle">{t("design.store.publish.error")}</p>}
</>
)}
</>
)}
</>
);
}
function SoundsPanel() {
const t = useT();
const [enabled, setEnabled] = useState(() => loadSoundsEnabled());
@@ -6125,6 +6530,11 @@ function AppInner() {
const [autoGainControlEnabled, setAutoGainControlEnabled] = useState(() =>
loadBoolPref(AUTO_GAIN_CONTROL_KEY, true)
);
// Off by default: a heavier, opt-in alternative/supplement to native AEC for
// speaker+mic (no headset) setups (github.com/Moepchi/webspeak3 issue #2).
const [aec3Enabled, setAec3Enabled] = useState(() => loadBoolPref(AEC3_ENABLED_KEY, false));
const [aec3Loading, setAec3Loading] = useState(false);
const aec3Ref = useRef<Aec3Instance | null>(null);
const [micTestOn, setMicTestOn] = useState(false);
const [connectionsMenuOpen, setConnectionsMenuOpen] = useState(false);
// Nova-theme-only: collapses the classic menu items behind a hamburger button.
@@ -6304,6 +6714,10 @@ function AppInner() {
localStorage.setItem(AUTO_GAIN_CONTROL_KEY, autoGainControlEnabled ? "1" : "0");
}, [autoGainControlEnabled]);
useEffect(() => {
localStorage.setItem(AEC3_ENABLED_KEY, aec3Enabled ? "1" : "0");
}, [aec3Enabled]);
useEffect(() => {
if (inputDeviceId) localStorage.setItem(INPUT_DEVICE_KEY, inputDeviceId);
}, [inputDeviceId]);
@@ -7185,6 +7599,43 @@ function AppInner() {
wireSocket(sessionId, socket, params);
};
// Auto-connect from a ?connect=... share link or a build-time default
// server (issue #10). Fires once, after the mandatory first-visit ToS gate
// (if any) is out of the way, so it never races the gate or connects
// before the user has had a chance to accept it.
const autoConnectedRef = useRef(false);
const autoConnectPendingRef = useRef(false);
useEffect(() => {
if (autoConnectedRef.current) return;
if (tosMandatory && tosOpen) return;
const target = AUTO_CONNECT_FROM_URL ??
(DEFAULT_SERVER
? { host: DEFAULT_SERVER, nickname: undefined, defaultChannel: DEFAULT_CHANNEL, privilegeKey: undefined }
: null);
if (!target) return;
autoConnectedRef.current = true;
autoConnectPendingRef.current = true;
handleConnect({
host: target.host,
nickname: target.nickname || nickname || `Guest-${Math.floor(1000 + Math.random() * 9000)}`,
defaultChannel: target.defaultChannel,
privilegeKey: target.privilegeKey,
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tosMandatory, tosOpen]);
// A manual connect attempt leaves its error as a dismissable banner with the
// dialog already closed - fine, since the user just closed it themselves.
// An auto-connect attempt has no dialog open at all, so on failure reopen it
// prefilled with the attempted host, letting the user fix and retry by hand.
useEffect(() => {
if (!autoConnectPendingRef.current || !connectError) return;
autoConnectPendingRef.current = false;
setHost(AUTO_CONNECT_FROM_URL?.host ?? DEFAULT_SERVER ?? host);
setConnectDialogOpen(true);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [connectError]);
// Opens a fresh socket for a session that already exists (active or
// parked) and re-runs the same connect handshake, reusing the params
// stored at connect time. Used to recover from an unexpected drop —
@@ -7729,9 +8180,12 @@ function AppInner() {
threshold: vadThreshold,
hangoverSeconds: vadHangover,
deviceId: overrides?.deviceId ?? (inputDeviceId || undefined),
echoCancellation: overrides?.echoCancellation ?? echoCancellationEnabled,
// AEC3 replaces (not stacks with) the native canceller - running both
// fights over the same signal.
echoCancellation: aec3Ref.current ? false : (overrides?.echoCancellation ?? echoCancellationEnabled),
noiseSuppression: overrides?.noiseSuppression ?? noiseSuppressionEnabled,
autoGainControl: overrides?.autoGainControl ?? autoGainControlEnabled,
aec3: aec3Ref.current ?? undefined,
});
await mic.start();
micCaptureRef.current = mic;
@@ -7796,6 +8250,43 @@ function AppInner() {
if (micCaptureRef.current) void restartMic({ autoGainControl: next });
};
const teardownAec3 = () => {
audioPlayerRef.current?.detachAecRenderTap();
aec3Ref.current?.free();
aec3Ref.current = null;
};
const handleToggleAec3 = async () => {
if (aec3Enabled) {
setAec3Enabled(false);
teardownAec3();
if (micCaptureRef.current) void restartMic({});
return;
}
setAec3Loading(true);
try {
const audioContext = ensureAudioContext();
if (audioContext.state === "suspended") await audioContext.resume();
// The context is *requested* at SAMPLE_RATE, but that constructor hint
// isn't guaranteed - some audio backends (notably Linux/PulseAudio) run
// it at their own native rate regardless. AEC3 must be told the rate
// its ScriptProcessorNode buffers are actually sampled at, or its
// internal frame timing drifts - audibly, as a progressively descending
// pitch on repeated echo.
const aec3 = await createAec3(audioContext.sampleRate, 2, 1);
aec3Ref.current = aec3;
audioPlayerRef.current?.attachAecRenderTap(aec3);
setAec3Enabled(true);
if (micCaptureRef.current) await restartMic({});
} catch (error) {
appendLog({ text: `Advanced echo cancellation failed to load: ${(error as Error).message}`, kind: "error" });
teardownAec3();
setAec3Enabled(false);
} finally {
setAec3Loading(false);
}
};
const handleToggleMicTest = () => {
const next = !micTestOn;
setMicTestOn(next);
@@ -7952,7 +8443,7 @@ function AppInner() {
if (!el) return;
el.style.height = "auto";
el.style.height = `${el.scrollHeight}px`;
}, [chatInput]);
}, [chatInput, designTheme, connected]);
const handleSendChat = () => {
const message = chatInput.trim();
@@ -9262,6 +9753,16 @@ function AppInner() {
<span className="ts-menu-item-icon">📋</span>
<span className="ts-menu-item-label">{t("menu.help.changelog")}</span>
</a>
<a
className="ts-menu-item"
href="https://hosted.weblate.org/projects/webspeak3/"
target="_blank"
rel="noreferrer"
onClick={() => setHelpMenuOpen(false)}
>
<span className="ts-menu-item-icon">🌐</span>
<span className="ts-menu-item-label">{t("menu.help.translate")}</span>
</a>
{IS_OWN_HOSTED_INSTANCE && (
<button
className="ts-menu-item"
@@ -9858,6 +10359,9 @@ function AppInner() {
onToggleEchoCancellation: handleToggleEchoCancellation,
autoGainControlEnabled,
onToggleAutoGainControl: handleToggleAutoGainControl,
aec3Enabled,
aec3Loading,
onToggleAec3: handleToggleAec3,
}}
/>
)}
+58
View File
@@ -0,0 +1,58 @@
// Lazy loader for Google WebRTC's AEC3 (compiled to WASM via
// @ennuicastr/webrtcaec3.js), an opt-in, stronger alternative to the browser's
// native echo cancellation for speaker+mic (no headset) setups where native
// AEC often isn't enough (github.com/Moepchi/webspeak3 issue #2). Loaded as a
// plain <script> tag rather than bundled: the module's own glue code resolves
// its .wasm file next to its own <script src>, by a name it decides itself -
// see scripts/sync-aec3-assets.mjs for how that file gets there.
export interface Aec3Instance {
free(): void;
analyze(data: Float32Array[]): void;
processSize(data: Float32Array[]): number;
process(out: Float32Array[], data: Float32Array[]): void;
}
interface Aec3Module {
AEC3: new (sampleRate: number, renderChannels: number, captureChannels: number) => Aec3Instance;
}
declare global {
interface Window {
WebRtcAec3?: () => Promise<Aec3Module>;
}
}
let modulePromise: Promise<Aec3Module> | null = null;
function loadScript(src: string): Promise<void> {
return new Promise((resolve, reject) => {
const el = document.createElement("script");
el.src = src;
el.onload = () => resolve();
el.onerror = () => reject(new Error(`Failed to load ${src}`));
document.head.appendChild(el);
});
}
function loadModule(): Promise<Aec3Module> {
if (!modulePromise) {
modulePromise = loadScript("/vendor/webrtcaec3.js").then(() => {
if (!window.WebRtcAec3) throw new Error("AEC3 script loaded but did not register window.WebRtcAec3");
return window.WebRtcAec3();
});
}
return modulePromise;
}
/** Creates a fresh AEC3 instance. `renderChannels` must match the channel
* count passed to `analyze()`, `captureChannels` the count passed to
* `process()`. */
export async function createAec3(
sampleRate: number,
renderChannels: number,
captureChannels: number,
): Promise<Aec3Instance> {
const mod = await loadModule();
return new mod.AEC3(sampleRate, renderChannels, captureChannels);
}
+18 -1335
View File
File diff suppressed because it is too large. Load diff
+650
View File
@@ -0,0 +1,650 @@
{
"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.",
"design.store.open": "Store",
"design.store.title": "Design-Store",
"design.store.back": "Zurück",
"design.store.loading": "Lädt…",
"design.store.unavailable": "Der Design-Store ist auf diesem Server nicht verfügbar.",
"design.store.empty": "Noch keine Designs im Store.",
"design.store.install": "Installieren",
"design.store.installed": "Installiert",
"design.store.by": "von {author}",
"design.store.screenshotAlt": "Screenshot von {name}",
"design.store.rating.rate": "Mit {stars} Sternen bewerten",
"design.store.rating.summary": "{average} ({count})",
"design.store.rating.none": "Noch keine Bewertungen",
"design.store.publishTitle": "Ein Design veröffentlichen",
"design.store.publish.select": "Eigenes Design auswählen",
"design.store.publish.none": "Du hast noch kein eigenes Design zum Veröffentlichen.",
"design.store.publish.author": "Dein Name (optional)",
"design.store.publish.authorPlaceholder": "Anonym",
"design.store.publish.description": "Beschreibung (optional)",
"design.store.publish.descriptionPlaceholder": "Was macht dieses Design besonders?",
"design.store.publish.screenshot": "Screenshot (optional)",
"design.store.publish.screenshotTooLarge": "Das Bild ist zu groß. Bitte ein kleineres Screenshot verwenden.",
"design.store.publish.adminToken": "Admin-Token (nur für reservierte Namen nötig)",
"design.store.publish.adminTokenPlaceholder": "Leer lassen, außer du weißt, was das ist",
"design.store.publish.submit": "Im Store veröffentlichen",
"design.store.publish.success": "Design wurde veröffentlicht!",
"design.store.publish.error": "Veröffentlichen fehlgeschlagen.",
"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",
"recording.aec3": "Erweiterte Echounterdrückung (Beta, mehr CPU-Last)",
"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"
}
+650
View File
@@ -0,0 +1,650 @@
{
"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.",
"design.store.open": "Store",
"design.store.title": "Design store",
"design.store.back": "Back",
"design.store.loading": "Loading…",
"design.store.unavailable": "The design store isn't available on this server.",
"design.store.empty": "No designs in the store yet.",
"design.store.install": "Install",
"design.store.installed": "Installed",
"design.store.by": "by {author}",
"design.store.screenshotAlt": "Screenshot of {name}",
"design.store.rating.rate": "Rate {stars} stars",
"design.store.rating.summary": "{average} ({count})",
"design.store.rating.none": "No ratings yet",
"design.store.publishTitle": "Publish a design",
"design.store.publish.select": "Choose one of your own designs",
"design.store.publish.none": "You don't have a custom design to publish yet.",
"design.store.publish.author": "Your name (optional)",
"design.store.publish.authorPlaceholder": "Anonymous",
"design.store.publish.description": "Description (optional)",
"design.store.publish.descriptionPlaceholder": "What makes this design special?",
"design.store.publish.screenshot": "Screenshot (optional)",
"design.store.publish.screenshotTooLarge": "That image is too large. Please use a smaller screenshot.",
"design.store.publish.adminToken": "Admin token (only needed for reserved names)",
"design.store.publish.adminTokenPlaceholder": "Leave empty unless you know what this is",
"design.store.publish.submit": "Publish to the store",
"design.store.publish.success": "Design published!",
"design.store.publish.error": "Publishing failed.",
"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",
"recording.aec3": "Advanced echo cancellation (Beta, more CPU load)",
"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"
}
+649
View File
@@ -0,0 +1,649 @@
{
"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 خوانده نشد.",
"design.store.open": "فروشگاه",
"design.store.title": "فروشگاه طراحی‌ها",
"design.store.back": "بازگشت",
"design.store.loading": "در حال بارگذاری…",
"design.store.unavailable": "فروشگاه طراحی روی این سرور در دسترس نیست.",
"design.store.empty": "هنوز طراحی در فروشگاه نیست.",
"design.store.install": "نصب",
"design.store.installed": "نصب شد",
"design.store.by": "از {author}",
"design.store.screenshotAlt": "اسکرین‌شات {name}",
"design.store.rating.rate": "امتیاز {stars} ستاره",
"design.store.rating.summary": "{average} ({count})",
"design.store.rating.none": "هنوز امتیازی ثبت نشده",
"design.store.publishTitle": "انتشار یک طراحی",
"design.store.publish.select": "یکی از طراحی‌های خودت را انتخاب کن",
"design.store.publish.none": "هنوز طراحی سفارشی برای انتشار نداری.",
"design.store.publish.author": "نام تو (اختیاری)",
"design.store.publish.authorPlaceholder": "ناشناس",
"design.store.publish.description": "توضیحات (اختیاری)",
"design.store.publish.descriptionPlaceholder": "چه چیزی این طراحی را خاص می‌کند؟",
"design.store.publish.screenshot": "اسکرین‌شات (اختیاری)",
"design.store.publish.screenshotTooLarge": "این تصویر خیلی بزرگ است. لطفاً تصویر کوچک‌تری استفاده کن.",
"design.store.publish.adminToken": "توکن ادمین (فقط برای نام‌های رزرو شده لازم است)",
"design.store.publish.adminTokenPlaceholder": "اگر نمی‌دانی این چیست، خالی بگذار",
"design.store.publish.submit": "انتشار در فروشگاه",
"design.store.publish.success": "طراحی منتشر شد!",
"design.store.publish.error": "انتشار ناموفق بود.",
"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": "حذف"
}
@@ -1,4 +1,4 @@
export const zhCN: Record<string, string> = {
{
"menu.connections": "连接",
"menu.connections.connect": "连接",
"menu.connections.disconnectCurrent": "断开当前服务器",
@@ -32,7 +32,6 @@ export const zhCN: Record<string, string> = {
"menu.extras.startMultitrackRecording": "开始多轨录音",
"menu.extras.stopRecording": "停止录音",
"menu.extras.options": "选项",
"toolbar.setAway": "设为离开",
"toolbar.backOnline": "恢复在线",
"toolbar.awayOptions": "离开选项",
@@ -48,10 +47,8 @@ export const zhCN: Record<string, string> = {
"toolbar.unmuteSound": "开启声音(取消拒听)",
"toolbar.chooseOutputDevice": "选择输出设备",
"toolbar.toggleTheme": "切换主题",
"away.setGlobal": "全局设为离开",
"away.setGlobalStatus": "设置全局离开状态",
"connect.title": "连接",
"connect.serverAddress": "服务器昵称或地址:",
"connect.serverPassword": "服务器密码:",
@@ -68,7 +65,6 @@ export const zhCN: Record<string, string> = {
"connect.serverType.teamspeak": "TeamSpeak",
"connect.serverType.teaspeak": "TeaSpeak",
"connect.hotkeyProfile": "快捷键配置:",
"connect.sendMyTeamSpeakId": "发送 myTeamSpeak ID",
"connect.soundPack": "声音包:",
"connect.more": "更多",
"connect.less": "收起",
@@ -76,7 +72,6 @@ export const zhCN: Record<string, string> = {
"connect.connecting": "正在连接…",
"connect.newTab": "在新标签页中打开",
"connect.cancel": "取消",
"collectedUrls.title": "收集的链接",
"collectedUrls.search": "搜索:",
"collectedUrls.url": "链接",
@@ -84,7 +79,6 @@ export const zhCN: Record<string, string> = {
"collectedUrls.lastSeen": "最后提及",
"collectedUrls.mentionedBy": "提及者",
"collectedUrls.clearList": "清空列表",
"inviteFriend.title": "邀请好友",
"inviteFriend.type": "邀请类型",
"inviteFriend.includeChannel": "包含当前频道",
@@ -92,7 +86,6 @@ export const zhCN: Record<string, string> = {
"inviteFriend.addPermissionKey": "添加权限密钥",
"inviteFriend.copyToClipboard": "复制到剪贴板",
"inviteFriend.copied": "已复制!",
"clientLog.title": "客户端日志",
"clientLog.level.critical": "严重",
"clientLog.level.error": "错误",
@@ -103,14 +96,12 @@ export const zhCN: Record<string, string> = {
"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": "保存当前选择",
@@ -118,7 +109,6 @@ export const zhCN: Record<string, string> = {
"whisperLists.activate": "启用",
"whisperLists.delete": "删除",
"whisperLists.empty": "尚未保存悄悄话列表。请选择悄悄话目标并在此保存为列表。",
"identities.title": "身份",
"identities.activate": "启用",
"identities.add": "新建身份",
@@ -135,7 +125,6 @@ export const zhCN: Record<string, string> = {
"identities.isDefault": "当前用作默认身份",
"identities.export": "导出",
"identities.import": "导入",
"connectionInfo.clientTitle": "连接信息 - {name}",
"connectionInfo.serverTitle": "服务器连接信息",
"connectionInfo.loading": "正在加载…",
@@ -162,7 +151,6 @@ export const zhCN: Record<string, string> = {
"connectionInfo.bytesReceived": "已接收数据:",
"connectionInfo.bandwidthSent": "发送带宽:",
"connectionInfo.bandwidthReceived": "接收带宽:",
"menu.self.recordingProfile": "录音配置",
"menu.self.playbackProfile": "播放配置",
"menu.self.hotkeyProfile": "快捷键配置",
@@ -177,7 +165,6 @@ export const zhCN: Record<string, string> = {
"menu.self.setAvatar": "设置头像",
"menu.self.setPhoneticNickname": "设置昵称读音",
"menu.self.connectionInfo": "连接信息",
"contacts.title": "联系人",
"contacts.addOnlineClient": "选择在线用户...",
"contacts.add": "添加",
@@ -193,7 +180,6 @@ export const zhCN: Record<string, string> = {
"contacts.unignore": "取消忽略",
"contacts.whisper": "悄悄话",
"contacts.preferences": "偏好设置",
"favorites.title": "🔖 myTeamSpeak 收藏夹",
"favorites.synced": "已同步的收藏",
"favorites.notLoggedIn": "未登录",
@@ -203,14 +189,12 @@ export const zhCN: Record<string, string> = {
"favorites.newFavoriteName": "新收藏",
"favorites.showServerQueryClients": "显示 ServerQuery 用户",
"favorites.connectOnStartup": "启动时连接",
"favorites.enableMyTeamSpeak": "启用 myTeamSpeak 功能",
"favorites.new": "新建收藏",
"favorites.newFolder": "新建文件夹",
"favorites.remove": "移除",
"favorites.ok": "确定",
"favorites.cancel": "取消",
"favorites.apply": "应用",
"away.dialog.title": "设置离开消息",
"away.dialog.message": "消息:",
"away.dialog.template": "模板:",
@@ -218,7 +202,6 @@ export const zhCN: Record<string, string> = {
"away.dialog.ok": "确定",
"away.dialog.save": "保存",
"away.dialog.cancel": "取消",
"options.title": "选项",
"options.ok": "确定",
"options.cancel": "取消",
@@ -246,7 +229,6 @@ export const zhCN: Record<string, string> = {
"options.section.nachrichten": "消息",
"options.section.meldungen": "通知",
"options.section.sounds": "声音",
"app.title": "应用",
"app.subtitle": "常规应用设置",
"app.language": "语言",
@@ -254,7 +236,8 @@ export const zhCN: Record<string, string> = {
"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": "配置",
@@ -269,7 +252,6 @@ export const zhCN: Record<string, string> = {
"playback.autoVolume": "自动调节音量",
"playback.ownMicClicks": "播放自己的麦克风按键音",
"playback.otherMicClicks": "播放其他用户的麦克风按键音",
"recording.title": "录音",
"recording.subtitle": "更改录音设置",
"recording.device": "录音设备:",
@@ -285,7 +267,6 @@ export const zhCN: Record<string, string> = {
"recording.typingAttenuation": "键盘声衰减",
"recording.echoCancellation": "回声消除",
"recording.noiseSuppression": "消除背景噪声",
"info.address": "地址:",
"info.version": "版本:",
"info.license": "许可证:",
@@ -303,7 +284,6 @@ export const zhCN: Record<string, string> = {
"info.serverGroups": "服务器组:",
"info.yes": "是",
"info.no": "否",
"tree.notConnected": "未连接",
"tree.clickToSelect": "单击选择,双击加入",
"tree.clickToJoin": "双击加入",
@@ -317,7 +297,6 @@ export const zhCN: Record<string, string> = {
"tree.talking": "正在说话",
"tree.noTalkPower": "在此频道中没有发言权限",
"tree.soundMuted": "声音已关闭(拒听)",
"chat.server": "服务器",
"chat.channel": "频道",
"chat.notConnected": "未连接",
@@ -326,7 +305,6 @@ export const zhCN: Record<string, string> = {
"chat.messagePartner": "向 {name} 发送消息...",
"chat.send": "发送",
"chat.you": "你",
"serverLog.clientJoin": "{client} 进入了频道“{channel}”",
"serverLog.clientLeave": "{client} 已断开连接(离开)",
"serverLog.clientChannelSwitch": "{client} 从频道“{fromChannel}”移动到“{toChannel}”",
@@ -336,19 +314,16 @@ export const zhCN: Record<string, string> = {
"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": "时长:",
@@ -358,7 +333,6 @@ export const zhCN: Record<string, string> = {
"ban.duration1w": "1 周",
"ban.confirm": "封禁",
"ban.cancel": "取消",
"serverEdit.title": "编辑虚拟服务器",
"serverEdit.tab.host": "主机",
"serverEdit.tab.misc": "其他",
@@ -396,7 +370,6 @@ export const zhCN: Record<string, string> = {
"serverEdit.unchanged": "保持不变",
"serverEdit.save": "保存",
"serverEdit.cancel": "取消",
"serverProtocolLog.title": "服务器日志",
"serverProtocolLog.empty": "暂无日志条目。",
"banList.title": "封禁列表",
@@ -428,23 +401,19 @@ export const zhCN: Record<string, string> = {
"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": "用户权限",
@@ -457,7 +426,6 @@ export const zhCN: Record<string, string> = {
"permsEditor.pickTarget": "请在左侧选择组或频道,或输入用户 ID。",
"permsEditor.addPermission": "添加",
"permsEditor.searchPermission": "搜索权限...",
"dialog.ok": "确定",
"channelContext.join": "切换到频道",
"channelContext.files": "文件...",
@@ -477,13 +445,11 @@ export const zhCN: Record<string, string> = {
"fileBrowser.deleteConfirm": "确定要删除吗?",
"fileBrowser.uploading": "正在上传...",
"fileBrowser.downloading": "正在下载...",
"serverContext.icons": "服务器图标...",
"serverIcons.title": "管理服务器图标",
"serverIcons.upload": "上传图标",
"serverIcons.iconId": "图标 ID",
"serverIcons.empty": "未找到图标。",
"clientContext.privateChat": "私聊",
"clientContext.poke": "戳一戳",
"clientContext.moveTo": "移动到…",
@@ -497,20 +463,16 @@ export const zhCN: Record<string, string> = {
"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": "启用声音",
@@ -529,7 +491,6 @@ export const zhCN: Record<string, string> = {
"sounds.reset": "重置",
"sounds.importSoundpack": "导入声音包(.ts3soundpack)",
"sounds.importResult": "已导入 {matched} 个声音,{unmatched} 个文件未匹配",
"nachrichten.title": "消息",
"nachrichten.subtitle": "自定义消息",
"nachrichten.disconnectMessage": "断开连接:",
@@ -541,4 +502,148 @@ export const zhCN: Record<string, string> = {
"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 设计读取。",
"design.store.open": "商店",
"design.store.title": "设计商店",
"design.store.back": "返回",
"design.store.loading": "加载中…",
"design.store.unavailable": "此服务器未启用设计商店。",
"design.store.empty": "商店里还没有设计。",
"design.store.install": "安装",
"design.store.installed": "已安装",
"design.store.by": "作者:{author}",
"design.store.screenshotAlt": "{name} 的截图",
"design.store.rating.rate": "评{stars}星",
"design.store.rating.summary": "{average}({count})",
"design.store.rating.none": "暂无评分",
"design.store.publishTitle": "发布设计",
"design.store.publish.select": "选择你自己的设计",
"design.store.publish.none": "你还没有可发布的自定义设计。",
"design.store.publish.author": "你的名字(可选)",
"design.store.publish.authorPlaceholder": "匿名",
"design.store.publish.description": "描述(可选)",
"design.store.publish.descriptionPlaceholder": "这个设计有什么特别之处?",
"design.store.publish.screenshot": "截图(可选)",
"design.store.publish.screenshotTooLarge": "图片太大,请使用更小的截图。",
"design.store.publish.adminToken": "管理员令牌(仅保留名称需要)",
"design.store.publish.adminTokenPlaceholder": "不确定的话请留空",
"design.store.publish.submit": "发布到商店",
"design.store.publish.success": "设计已发布!",
"design.store.publish.error": "发布失败。",
"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": "观看直播"
}
+66 -7
View File
@@ -4,6 +4,8 @@
// microphone -> server direction (which it Opus-encodes), stereo mixed
// for the server -> speakers direction (already decoded/mixed for us).
import type { Aec3Instance } from "./aec3";
export const SAMPLE_RATE = 48000;
export const FRAME_SAMPLES = 960; // 20ms @ 48kHz
@@ -41,6 +43,10 @@ export interface MicCaptureOptions {
* 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;
/** When set, mic audio is run through this AEC3 instance (opts:
* captureNumChannels=1) before VAD/encoding, in place of relying solely on
* the browser's native echoCancellation. */
aec3?: Aec3Instance;
}
/**
@@ -67,6 +73,8 @@ export class MicCapture {
private echoCancellation: boolean;
private noiseSuppression: boolean;
private autoGainControl: boolean;
private aec3?: Aec3Instance;
private aec3Out: Float32Array[] | null = null;
private context: AudioContext;
threshold: number;
hangoverSeconds: number;
@@ -82,6 +90,7 @@ export class MicCapture {
this.echoCancellation = options.echoCancellation ?? true;
this.noiseSuppression = options.noiseSuppression ?? true;
this.autoGainControl = options.autoGainControl ?? true;
this.aec3 = options.aec3;
}
async start(): Promise<void> {
@@ -110,7 +119,20 @@ export class MicCapture {
this.source = this.context.createMediaStreamSource(this.stream);
this.processor = this.context.createScriptProcessor(2048, 1, 1);
this.processor.onaudioprocess = (event) => {
const input = event.inputBuffer.getChannelData(0);
const raw = event.inputBuffer.getChannelData(0);
let input: Float32Array = raw;
if (this.aec3) {
const captureIn = [raw];
const outSize = this.aec3.processSize(captureIn);
if (!this.aec3Out || this.aec3Out[0].length !== outSize) this.aec3Out = [new Float32Array(outSize)];
this.aec3.process(this.aec3Out, captureIn);
input = this.aec3Out[0];
}
// Mirrors the (possibly AEC3-cancelled) signal to the output buffer, so
// setMonitoring() below can tap what's actually being sent rather than
// the raw pre-cancellation mic feed - a self-test through the raw feed
// always howls, whether or not AEC3 is on.
event.outputBuffer.getChannelData(0).set(input);
let sumSquares = 0;
for (let i = 0; i < input.length; i++) sumSquares += input[i] * input[i];
@@ -153,21 +175,25 @@ export class MicCapture {
return this.source;
}
/** Routes the raw mic signal to `destination` too, so you can hear yourself (a mic test), until disabled again. */
/** Routes the (possibly AEC3-cancelled) mic signal to `destination` too, so
* you can hear yourself - a mic test - until disabled again. Taps the
* processor's output rather than the raw source, so the test actually
* reflects AEC3 when it's on, instead of always howling via the
* uncancelled raw feed. */
setMonitoring(enabled: boolean, destination: AudioNode): void {
if (!this.source) return;
if (!this.processor) return;
if (enabled && this.monitorTarget !== destination) {
if (this.monitorTarget) this.source.disconnect(this.monitorTarget);
this.source.connect(destination);
if (this.monitorTarget) this.processor.disconnect(this.monitorTarget);
this.processor.connect(destination);
this.monitorTarget = destination;
} else if (!enabled && this.monitorTarget) {
this.source.disconnect(this.monitorTarget);
this.processor.disconnect(this.monitorTarget);
this.monitorTarget = null;
}
}
stop(): void {
if (this.source && this.monitorTarget) this.source.disconnect(this.monitorTarget);
if (this.processor && this.monitorTarget) this.processor.disconnect(this.monitorTarget);
this.monitorTarget = null;
this.processor?.disconnect();
this.silence?.disconnect();
@@ -280,6 +306,8 @@ export class AudioPlayer {
private element: SinkableElement;
private gain: GainNode;
private context: AudioContext;
private aecTap: ScriptProcessorNode | null = null;
private aecSink: GainNode | null = null;
constructor(context: AudioContext) {
this.context = context;
@@ -352,6 +380,36 @@ export class AudioPlayer {
};
}
/** Feeds everything played back through this player into `aec3.analyze()` as
* the far-end/render reference, so a paired `MicCapture`'s aec3 `process()`
* calls can cancel it back out of the mic signal. Taps post-gain: what's
* actually reaching the speakers is what needs cancelling, not the
* pre-volume mix. */
attachAecRenderTap(aec3: Pick<Aec3Instance, "analyze">): void {
this.detachAecRenderTap();
const tap = this.context.createScriptProcessor(2048, 2, 2);
tap.onaudioprocess = (e) => {
aec3.analyze([e.inputBuffer.getChannelData(0), e.inputBuffer.getChannelData(1)]);
};
const sink = this.context.createGain();
sink.gain.value = 0;
this.gain.connect(tap);
tap.connect(sink);
sink.connect(this.context.destination);
this.aecTap = tap;
this.aecSink = sink;
}
detachAecRenderTap(): void {
if (this.aecTap) {
this.gain.disconnect(this.aecTap);
this.aecTap.disconnect();
this.aecTap = null;
}
this.aecSink?.disconnect();
this.aecSink = null;
}
/** Routes playback to a specific device (empty string = system default). */
async setOutputDevice(deviceId: string): Promise<void> {
if (typeof this.element.setSinkId === "function") {
@@ -366,6 +424,7 @@ export class AudioPlayer {
}
dispose(): void {
this.detachAecRenderTap();
this.element.pause();
this.element.srcObject = null;
this.element.remove();
+1
View File
@@ -7,6 +7,7 @@
"types": ["vite/client"],
"allowArbitraryExtensions": true,
"skipLibCheck": true,
"resolveJsonModule": true,
/* Bundler mode */
"moduleResolution": "bundler",