Compare commits

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: moepchi
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+85
View File
@@ -0,0 +1,85 @@
name: Bug Report
description: Something isn't working as expected
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a bug! Please fill in as much detail as you can.
- type: textarea
id: description
attributes:
label: What happened?
description: A clear description of the bug.
placeholder: e.g. The Connect dialog closes unexpectedly when I select text inside it.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: How can we reproduce this?
placeholder: |
1. Open the Connect dialog
2. Click and drag to select the server address text
3. Release the mouse outside the dialog
4. Dialog closes unexpectedly
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: What did you expect to happen instead?
validations:
required: false
- type: dropdown
id: browser
attributes:
label: Browser
options:
- Chrome / Chromium
- Firefox
- Safari
- Edge
- Other (mention in description)
validations:
required: true
- type: input
id: deployment
attributes:
label: Deployment method
description: How are you running WebSpeak3?
placeholder: e.g. Docker Hub image moepchi/webspeak3:latest, built from source, docker-compose
validations:
required: true
- type: input
id: version
attributes:
label: Version / commit
description: Docker tag, commit hash, or release version if known
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant logs / console output
description: Browser console errors, gateway logs, or connector output, if any.
render: shell
validations:
required: false
- type: textarea
id: additional
attributes:
label: Additional context
description: Screenshots, TeamSpeak server version, anything else relevant.
validations:
required: false
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question / Discussion
url: https://github.com/Moepchi/webspeak3/discussions
about: Ask a question or discuss an idea before filing an issue.
@@ -0,0 +1,42 @@
name: Feature Request
description: Suggest an idea or improvement for WebSpeak3
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for the suggestion! Note that some native TeamSpeak 3 client features (myTeamSpeak integration,
badges, plugins) are intentionally out of scope — see the README for details.
- type: textarea
id: problem
attributes:
label: What problem does this solve?
description: Is this related to something that's currently missing or annoying?
placeholder: e.g. I can't send a targeted whisper to specific clients like in the native client.
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed solution
description: What would you like to see happen?
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Any workarounds or alternative approaches you've thought of?
validations:
required: false
- type: textarea
id: additional
attributes:
label: Additional context
description: Screenshots of the native client, links, or other context that helps explain the request.
validations:
required: false
+75
View File
@@ -0,0 +1,75 @@
name: Safari WebSpeak3 client check
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "web/src/**"
- "web/index.html"
- "web/public/**"
- ".github/workflows/safari-check.yml"
- "tests/safari_smoke.py"
schedule:
- cron: "17 5 * * 1"
permissions:
contents: read
concurrency:
group: safari-landing-${{ github.ref }}
cancel-in-progress: true
jobs:
safari:
name: Safari on macOS
runs-on: macos-15
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install and build WebSpeak3 client
working-directory: web
run: |
npm ci
npm run build
- name: Start local preview
working-directory: web
run: |
npm run preview -- --host 127.0.0.1 --port 4173 > /tmp/webspeak3-preview.log 2>&1 &
for attempt in {1..30}; do
curl --fail --silent http://127.0.0.1:4173/ > /dev/null && exit 0
sleep 1
done
cat /tmp/webspeak3-preview.log
exit 1
- name: Prepare Safari automation
run: |
sudo safaridriver --enable
python3 -m venv .venv-safari
.venv-safari/bin/python -m pip install selenium
- name: Test WebSpeak3 client in Safari
env:
BASE_URL: http://127.0.0.1:4173/
run: .venv-safari/bin/python tests/safari_smoke.py
- name: Upload Safari screenshots
if: always()
uses: actions/upload-artifact@v5
with:
name: safari-client-screenshots
path: test-results/safari-client-*.png
if-no-files-found: ignore
retention-days: 14
+2
View File
@@ -7,3 +7,5 @@ dist-ssr/
.env.local
.DS_Store
docker-compose.override.yml
.claude/
CLAUDE.md
+2
View File
@@ -0,0 +1,2 @@
/cache
/project.local.yml
+170
View File
@@ -0,0 +1,170 @@
# the name by which the project can be referenced within Serena/when chatting with the LLM.
project_name: "ts-web-client"
# list of language servers to start when using the LSP backend; choose from:
# ada al angular ansible bash
# bsl clojure cpp cpp_ccls crystal
# csharp csharp_omnisharp cue dart deno
# elixir elm erlang fortran fsharp
# gdscript gleam go groovy haskell
# haxe hlsl html java json
# julia kotlin latex lean4 lua
# luau markdown matlab msl nextflow
# nix ocaml pascal perl php
# php_phpactor php_phpantom powershell python python_basedpyright
# python_jedi python_pyrefly python_ty qml r
# rego ruby ruby_solargraph rust scala
# scss solidity svelte swift systemverilog
# terraform toml typescript typescript_vts vue
# wolfram yaml zig
# (This list may be outdated; generated with scripts/print_language_list.py;
# For the current list, see values of the LanguageServerId enum here:
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
# For some languages, there are several alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
# Note:
# - For C, use cpp
# - For JavaScript, use typescript
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
# - For Deno projects, use deno (serves the same .ts/.js files as typescript; requires the deno CLI on PATH)
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
# - For Free Pascal/Lazarus, use pascal
# Special requirements:
# Some language servers require additional setup/installations.
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
# When using multiple language servers, the first language server that supports a given file will be used for that file.
# The first language server is the default language and the respective language server will be used as a fallback.
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
language_servers:
- rust
- typescript
# the encoding used by text files in the project
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
encoding: "utf-8"
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
# the command runs in the project root directory and is only executed if the project is trusted
# (see trusted_project_path_patterns in the global configuration).
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
# example: activation_command: "npx nx run-many -t build"
activation_command:
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
# must be a positive number.
activation_command_timeout: 180.0
# line ending convention to use when writing source files.
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
line_ending:
# The language backend to use for this project.
# If not set, the global setting from serena_config.yml is used.
# Valid values: LSP, JetBrains
# Note: the backend is fixed at startup. If a project with a different backend
# is activated post-init, an error will be returned.
language_backend:
# whether to use project's .gitignore files to ignore files
ignore_all_files_in_gitignore: true
# advanced configuration option allowing to configure language server-specific options.
# Maps the language key to the options.
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
ls_specific_settings: {}
# list of workspace folder paths (LSP backend only).
# These folders will be used to build up Serena's symbol index.
# Paths must be within the project root and should thus be relative to the project root.
# Furthermore, the paths should not be filtered by ignore settings.
# Default setting: The entire project root folder (".") is considered.
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
# ls_workspace_folders:
# - "./subproject1"
# - "./subproject2"
ls_workspace_folders:
- "."
# list of additional workspace folder paths for cross-package reference support.
# Paths can be absolute or relative to the project root.
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
# symbols and references across package boundaries, but these folders are not indexed by Serena,
# i.e. the respective symbols will not be found using Serena's symbol search tools.
# Example:
# additional_workspace_folders:
# - ../sibling-package
# - ../shared-lib
ls_additional_workspace_folders: []
# list of additional paths to ignore in this project.
# Same syntax as gitignore, so you can use * and **.
# Important: quote patterns that start with `*`, otherwise YAML treats them as aliases.
# Example:
# ignored_paths:
# - "examples/**"
# - ".worktrees/**"
# - "**/bin/**"
# - "**/obj/**"
# Note: global ignored_paths from serena_config.yml are also applied additively.
ignored_paths: []
# whether the project is in read-only mode
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
# Added on 2025-04-18
read_only: false
# list of tool names to exclude.
# This extends the existing exclusions (e.g. from the global configuration)
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
excluded_tools: []
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
# This extends the existing inclusions (e.g. from the global configuration).
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
included_optional_tools: []
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
fixed_tools: []
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
# for this project.
# This setting can, in turn, be overridden by CLI parameters (--mode).
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
default_modes:
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
added_modes:
# initial prompt for the project. It will always be given to the LLM upon activating the project
# (contrary to the memories, which are loaded on demand).
initial_prompt: ""
# time budget (seconds) per tool call for the retrieval of additional symbol information
# such as docstrings or parameter information.
# This overrides the corresponding setting in the global configuration; see the documentation there.
# If null or missing, use the setting from the global configuration.
symbol_info_budget:
# list of regex patterns which, when matched, mark a memory entry as read‑only.
# Extends the list from the global configuration, merging the two lists.
read_only_memory_patterns: []
# list of regex patterns for memories to completely ignore.
# Matching memories will not appear in list_memories or activate_project output
# and cannot be accessed via read_memory or write_memory.
# To access ignored memory files, use the read_file tool on the raw file path.
# Extends the list from the global configuration, merging the two lists.
# Example: ["_archive/.*", "_episodes/.*"]
ignored_memory_patterns: []
+15 -2
View File
@@ -17,11 +17,16 @@
</p>
<p align="center">
<a href="https://webspeak3.de">🌐 Website</a> ·
<a href="https://client.webspeak3.de">💬 Open Client</a> ·
<a href="https://demo.webspeak3.de">🕹️ Live Demo</a> ·
<a href="#-installation">🚀 Quick Start</a> ·
<a href="#-installation">📖 Installation</a> ·
<a href="https://github.com/Moepchi/webspeak3/issues">🐛 Report Bug</a>
</p>
> The [live demo](https://demo.webspeak3.de) runs entirely in your browser with simulated data — no real TeamSpeak server involved. It's there to show the UI, not the real connection.
---
## 📸 Preview
@@ -43,10 +48,18 @@
|---|---|
| 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6 servers over a WebSocket gateway — the server stays exactly as-is |
| 🎙️ **Low-latency voice** | Opus-encoded voice with voice activation ("Sprachaktivierung") and adjustable sensitivity |
| 🤫 **Whisper** | Target your voice at specific channels or clients instead of your whole current channel |
| 🔊 **Custom audio output picker** | Route playback to any output device — works even in browsers without `AudioContext.setSinkId` |
| 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab |
| 🌳 **Live channel/client tree** | Correct ordering, status icons (channel commander, away, muted, deafened), click to switch channels |
| 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab — Shift+Enter for a newline |
| 🌳 **Live channel/client tree** | Correct ordering, status icons (channel commander, away, muted, deafened), country flags, click to switch channels |
| 🖱️ **Right-click context menu** | Private chat, poke, copy name, and whisper-target toggle straight from a client's row |
| 📜 **Server log** | Join/leave/switch, channel-group, and channel/server-change events shown inline, like the native client |
| 🔔 **Custom sound notifications** | Per-event sounds (connect, poke, messages, ...) with volume control and `.ts3soundpack` import |
| 🪪 **Persistent identity** | Keeps the same client UID across sessions instead of generating a new one every connect |
| 👉 **Poke & away status** | Poke clients with an optional message; set yourself away with presets or a custom status |
| ⭐ **Favorites & reconnect** | Remembers your last server/nickname; switch servers without leaving your tab |
| 📱 **Mobile-friendly layout** | Responsive single-column layout for narrow screens, not just a shrunk desktop UI |
| 🌍 **Localized UI** | Interface available in German and English, detected automatically or switchable in Options |
| 🌗 **Dark / light theme** | Clean, modern UI that adapts to your preference |
| 🔁 **Seamless reconnect** | Switch connections mid-session — old state tears down cleanly, no leaks or duplicates |
+1
View File
@@ -2641,6 +2641,7 @@ dependencies = [
"futures",
"serde",
"serde_json",
"time",
"tokio",
"tracing-subscriber",
"tsclientlib",
+1
View File
@@ -15,3 +15,4 @@ clap = { version = "4", features = ["derive"] }
anyhow = "1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
base64 = "0.22"
time = "0.3"
+1796 -26
View File
File diff suppressed because it is too large. Load diff
+12
View File
@@ -16,3 +16,15 @@ services:
# webspeak3:
# ports:
# - "8080:8080"
cloudflared:
image: cloudflare/cloudflared:latest
container_name: webspeak3-cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
# Token comes from a gitignored .env file next to this compose file:
# CLOUDFLARE_TUNNEL_TOKEN=eyJ...
# No depends_on/network wiring needed - the tunnel's Public Hostname
# config (set in the Cloudflare dashboard) points at the webspeak3
# service by its Compose service name (http://webspeak3:8080), and
# Compose puts both services on the same default network automatically.
+149
View File
@@ -71,6 +71,7 @@ wss.on("connection", (socket: WebSocket) => {
serverPassword: msg.serverPassword,
channelPassword: msg.channelPassword,
defaultChannel: msg.defaultChannel,
identity: msg.identity,
};
connection = new Ts3Connection(options);
connection.onEvent((event) => socket.send(JSON.stringify(event)));
@@ -113,6 +114,154 @@ wss.on("connection", (socket: WebSocket) => {
await connection?.setOutputMuted(msg.muted);
break;
}
case "setNickname": {
await connection?.setNickname(msg.nickname);
break;
}
case "setWhisperTargets": {
await connection?.setWhisperTargets(msg.channelIds ?? [], msg.clientIds ?? []);
break;
}
case "getClientConnectionInfo": {
await connection?.getClientConnectionInfo(msg.clientId);
break;
}
case "getServerConnectionInfo": {
await connection?.getServerConnectionInfo();
break;
}
case "kickFromChannel": {
await connection?.kickFromChannel(msg.clientId, msg.reason ?? "");
break;
}
case "kickFromServer": {
await connection?.kickFromServer(msg.clientId, msg.reason ?? "");
break;
}
case "banClient": {
await connection?.banClient(msg.clientId, msg.seconds ?? 0, msg.reason ?? "");
break;
}
case "editServer": {
await connection?.editServer(msg.payload ?? {});
break;
}
case "getServerLog": {
await connection?.getServerLog();
break;
}
case "getBanList": {
await connection?.getBanList();
break;
}
case "deleteBan": {
await connection?.deleteBan(msg.banId);
break;
}
case "deleteAllBans": {
await connection?.deleteAllBans();
break;
}
case "getComplainList": {
await connection?.getComplainList();
break;
}
case "deleteComplaint": {
await connection?.deleteComplaint(msg.targetClientDbId, msg.fromClientDbId);
break;
}
case "deleteAllComplaintsFor": {
await connection?.deleteAllComplaintsFor(msg.targetClientDbId);
break;
}
case "getOfflineMessageList": {
await connection?.getOfflineMessageList();
break;
}
case "getOfflineMessage": {
await connection?.getOfflineMessage(msg.messageId);
break;
}
case "sendOfflineMessage": {
await connection?.sendOfflineMessage(msg.clientUid, msg.subject, msg.message);
break;
}
case "deleteOfflineMessage": {
await connection?.deleteOfflineMessage(msg.messageId);
break;
}
case "markOfflineMessageRead": {
await connection?.markOfflineMessageRead(msg.messageId);
break;
}
case "getChannelGroupList": {
await connection?.getChannelGroupList();
break;
}
case "getServerGroupList": {
await connection?.getServerGroupList();
break;
}
case "setChannelGroup": {
await connection?.setChannelGroup(msg.channelGroupId, msg.channelId, msg.clientDbId);
break;
}
case "addServerGroup": {
await connection?.addServerGroup(msg.serverGroupId, msg.clientDbId);
break;
}
case "removeServerGroup": {
await connection?.removeServerGroup(msg.serverGroupId, msg.clientDbId);
break;
}
case "serverQueryLogin": {
await connection?.serverQueryLogin(msg.username, msg.password);
break;
}
case "getPermissionOverview": {
await connection?.getPermissionOverview();
break;
}
case "getFileList": {
await connection?.getFileList(msg.channelId, msg.path);
break;
}
case "createDirectory": {
await connection?.createDirectory(msg.channelId, msg.dirname);
break;
}
case "deleteFile": {
await connection?.deleteFile(msg.channelId, msg.name);
break;
}
case "renameFile": {
await connection?.renameFile(msg.channelId, msg.oldName, msg.newName);
break;
}
case "downloadFile": {
await connection?.downloadFile(msg.channelId, msg.path);
break;
}
case "uploadFile": {
await connection?.uploadFile(msg.channelId, msg.path, msg.dataBase64);
break;
}
case "getPermissionCatalog": {
await connection?.getPermissionCatalog();
break;
}
case "getPermList": {
await connection?.getPermList(msg.scope, msg.id1, msg.id2);
break;
}
case "addPermission": {
await connection?.addPermission(msg.scope, msg.ids, msg.permId, msg.value, msg.negated, msg.skip);
break;
}
case "removePermission": {
await connection?.removePermission(msg.scope, msg.ids, msg.permId);
break;
}
case "disconnect": {
await connection?.disconnect(msg.message ?? "");
break;
+501 -2
View File
@@ -31,8 +31,85 @@ export interface ClientInfo {
away: boolean;
awayMessage: string;
isChannelCommander: boolean;
country: string;
uid: string;
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
}
export interface GroupEntry {
id: number;
name: string;
iconId: number;
}
export interface PermissionOverviewEntry {
name: string;
description: string;
value: number;
negated: boolean;
skip: boolean;
}
export interface PermissionCatalogEntry {
id: number;
name: string;
description: string;
}
export type PermScope = "server" | "channelgroup" | "channel" | "client" | "channelclient";
export interface BanListEntry {
banId: number;
ip: string;
name: string;
uid: string;
lastNickname: string;
created: string;
durationSecs: number;
invokerName: string;
reason: string;
enforcements: number;
}
export interface ComplainListEntry {
targetClientDbId: number;
targetName: string;
fromClientDbId: number;
fromName: string;
message: string;
timestamp: string;
}
export interface OfflineMessageListEntry {
messageId: number;
clientUid: string;
subject: string;
timestamp: string;
isRead: boolean;
}
export interface FileListEntry {
path: string;
name: string;
size: number;
isFile: boolean;
timestamp: string;
}
export type ServerLogEntry =
| { kind: "clientJoin"; client: string; channel: string }
| { kind: "clientLeave"; client: string }
| { kind: "clientChannelSwitch"; client: string; fromChannel: string; toChannel: string }
| { kind: "clientChannelGroupAssigned"; client: string; group: string }
| { kind: "channelCreated"; channel: string }
| { kind: "channelDeleted"; channel: string }
| { kind: "channelEdited"; channel: string }
| { kind: "serverEdited" }
| { kind: "permissionError"; action: string };
export type Ts3ConnectionEvent =
| {
type: "connected";
@@ -42,6 +119,7 @@ export type Ts3ConnectionEvent =
serverVersion: string;
serverLicense: string;
serverBannerUrl: string;
identity: string;
}
| { type: "channels"; channels: ChannelInfo[]; clients: ClientInfo[] }
| { type: "chatMessage"; from: string; message: string }
@@ -51,7 +129,52 @@ export type Ts3ConnectionEvent =
| { type: "audioOut"; pcm: string }
| { type: "talkers"; clients: number[] }
| { type: "disconnected"; reason: string }
| { type: "error"; message: string };
| { type: "error"; message: string }
| ({ type: "serverLog" } & ServerLogEntry)
| {
type: "clientConnectionInfo";
clientId: number;
pingMs: number | null;
connectedSecs: number | null;
ip: string | null;
packetsSent: number;
bytesSent: number;
packetsReceived: number;
bytesReceived: number;
packetLossPercent: number;
}
| {
type: "serverConnectionInfo";
pingMs: number;
connectedSecs: number;
packetLossPercent: number;
packetsSentTotal: number;
bytesSentTotal: number;
packetsReceivedTotal: number;
bytesReceivedTotal: number;
bandwidthSentLastSecond: number;
bandwidthReceivedLastSecond: number;
}
| { type: "serverProtocolLog"; lines: string[] }
| { type: "banList"; entries: BanListEntry[] }
| { type: "complainList"; entries: ComplainListEntry[] }
| { type: "offlineMessageList"; entries: OfflineMessageListEntry[] }
| {
type: "offlineMessage";
messageId: number;
clientUid: string;
subject: string;
message: string;
timestamp: string;
}
| { type: "channelGroupList"; entries: GroupEntry[] }
| { type: "serverGroupList"; entries: GroupEntry[] }
| { type: "permissionOverview"; entries: PermissionOverviewEntry[] }
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
| { type: "fileDownloadData"; cid: number; path: string; data: string }
| { type: "fileUploadDone"; cid: number; path: string }
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] };
export interface Ts3ConnectOptions {
host: string;
@@ -59,6 +182,9 @@ export interface Ts3ConnectOptions {
serverPassword?: string;
channelPassword?: string;
defaultChannel?: string;
/** Previously-issued identity (from a prior "connected" event) to keep
* the same client UID across sessions. Omit to get a freshly generated one. */
identity?: string;
}
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -89,6 +215,7 @@ export class Ts3Connection {
if (this.options.serverPassword) args.push("--server-password", this.options.serverPassword);
if (this.options.channelPassword) args.push("--channel-password", this.options.channelPassword);
if (this.options.defaultChannel) args.push("--default-channel", this.options.defaultChannel);
if (this.options.identity) args.push("--identity", this.options.identity);
this.child = spawn(CONNECTOR_BIN, args);
createInterface({ input: this.child.stdout }).on("line", (line) => {
@@ -103,6 +230,12 @@ export class Ts3Connection {
away: boolean;
away_message: string;
is_channel_commander: boolean;
country: string;
uid: string;
database_id: number;
channel_group: number;
server_groups: number[];
has_talk_power: boolean;
}
interface RawChannelInfo {
@@ -125,6 +258,7 @@ export class Ts3Connection {
server_version: string;
server_license: string;
server_banner_url: string;
identity: string;
}
| { type: "channels"; channels: RawChannelInfo[]; clients: RawClientInfo[] }
| { type: "chatMessage"; from: string; message: string }
@@ -134,7 +268,88 @@ export class Ts3Connection {
| { type: "audioOut"; pcm: string }
| { type: "talkers"; clients: number[] }
| { type: "disconnected"; reason: string }
| { type: "error"; message: string };
| { type: "error"; message: string }
| ({ type: "serverLog" } & ServerLogEntry)
| {
type: "clientConnectionInfo";
client_id: number;
ping_ms: number | null;
connected_secs: number | null;
ip: string | null;
packets_sent: number;
bytes_sent: number;
packets_received: number;
bytes_received: number;
packet_loss_percent: number;
}
| {
type: "serverConnectionInfo";
ping_ms: number;
connected_secs: number;
packet_loss_percent: number;
packets_sent_total: number;
bytes_sent_total: number;
packets_received_total: number;
bytes_received_total: number;
bandwidth_sent_last_second: number;
bandwidth_received_last_second: number;
}
| { type: "serverProtocolLog"; lines: string[] }
| {
type: "banList";
entries: {
ban_id: number;
ip: string;
name: string;
uid: string;
last_nickname: string;
created: string;
duration_secs: number;
invoker_name: string;
reason: string;
enforcements: number;
}[];
}
| {
type: "complainList";
entries: {
target_client_db_id: number;
target_name: string;
from_client_db_id: number;
from_name: string;
message: string;
timestamp: string;
}[];
}
| {
type: "offlineMessageList";
entries: {
message_id: number;
client_uid: string;
subject: string;
timestamp: string;
is_read: boolean;
}[];
}
| {
type: "offlineMessage";
message_id: number;
client_uid: string;
subject: string;
message: string;
timestamp: string;
}
| { type: "channelGroupList"; entries: GroupEntry[] }
| { type: "serverGroupList"; entries: GroupEntry[] }
| {
type: "permissionOverview";
entries: { name: string; description: string; value: number; negated: boolean; skip: boolean }[];
}
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
| { type: "fileDownloadData"; cid: number; path: string; data: string }
| { type: "fileUploadDone"; cid: number; path: string }
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] };
if (event.type === "connected") {
this.emit({
@@ -145,6 +360,7 @@ export class Ts3Connection {
serverVersion: event.server_version,
serverLicense: event.server_license,
serverBannerUrl: event.server_banner_url,
identity: event.identity,
});
} else if (event.type === "channels") {
this.emit({
@@ -169,6 +385,12 @@ export class Ts3Connection {
away: c.away,
awayMessage: c.away_message,
isChannelCommander: c.is_channel_commander,
country: c.country,
uid: c.uid,
databaseId: c.database_id,
channelGroup: c.channel_group,
serverGroups: c.server_groups,
hasTalkPower: c.has_talk_power,
})),
});
} else if (event.type === "privateMessage") {
@@ -179,6 +401,80 @@ export class Ts3Connection {
fromSelf: event.from_self,
message: event.message,
});
} else if (event.type === "clientConnectionInfo") {
this.emit({
type: "clientConnectionInfo",
clientId: event.client_id,
pingMs: event.ping_ms,
connectedSecs: event.connected_secs,
ip: event.ip,
packetsSent: event.packets_sent,
bytesSent: event.bytes_sent,
packetsReceived: event.packets_received,
bytesReceived: event.bytes_received,
packetLossPercent: event.packet_loss_percent,
});
} else if (event.type === "serverConnectionInfo") {
this.emit({
type: "serverConnectionInfo",
pingMs: event.ping_ms,
connectedSecs: event.connected_secs,
packetLossPercent: event.packet_loss_percent,
packetsSentTotal: event.packets_sent_total,
bytesSentTotal: event.bytes_sent_total,
packetsReceivedTotal: event.packets_received_total,
bytesReceivedTotal: event.bytes_received_total,
bandwidthSentLastSecond: event.bandwidth_sent_last_second,
bandwidthReceivedLastSecond: event.bandwidth_received_last_second,
});
} else if (event.type === "banList") {
this.emit({
type: "banList",
entries: event.entries.map((e) => ({
banId: e.ban_id,
ip: e.ip,
name: e.name,
uid: e.uid,
lastNickname: e.last_nickname,
created: e.created,
durationSecs: e.duration_secs,
invokerName: e.invoker_name,
reason: e.reason,
enforcements: e.enforcements,
})),
});
} else if (event.type === "complainList") {
this.emit({
type: "complainList",
entries: event.entries.map((e) => ({
targetClientDbId: e.target_client_db_id,
targetName: e.target_name,
fromClientDbId: e.from_client_db_id,
fromName: e.from_name,
message: e.message,
timestamp: e.timestamp,
})),
});
} else if (event.type === "offlineMessageList") {
this.emit({
type: "offlineMessageList",
entries: event.entries.map((e) => ({
messageId: e.message_id,
clientUid: e.client_uid,
subject: e.subject,
timestamp: e.timestamp,
isRead: e.is_read,
})),
});
} else if (event.type === "offlineMessage") {
this.emit({
type: "offlineMessage",
messageId: event.message_id,
clientUid: event.client_uid,
subject: event.subject,
message: event.message,
timestamp: event.timestamp,
});
} else {
this.emit(event);
}
@@ -204,6 +500,194 @@ export class Ts3Connection {
this.child?.stdin.write(`switch ${channelId}\n`);
}
async getClientConnectionInfo(clientId: number): Promise<void> {
this.child?.stdin.write(`clientconninfo ${clientId}\n`);
}
async getServerConnectionInfo(): Promise<void> {
this.child?.stdin.write(`serverconninfo\n`);
}
async kickFromChannel(clientId: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`kickchannel ${clientId} ${sanitized}\n`);
}
async kickFromServer(clientId: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`kickserver ${clientId} ${sanitized}\n`);
}
async banClient(clientId: number, seconds: number, reason: string): Promise<void> {
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
this.child?.stdin.write(`banclient ${clientId} ${Math.max(0, Math.floor(seconds))} ${sanitized}\n`);
}
/** Every field is optional - only send what actually changed. JSON.stringify
* already escapes embedded newlines, so this is safe as a single stdin line
* without extra sanitization. */
async editServer(payload: {
name?: string;
welcomeMessage?: string;
password?: string;
maxClients?: number;
hostmessage?: string;
hostmessageMode?: string;
hostbannerUrl?: string;
hostbannerGfxUrl?: string;
hostbannerGfxIntervalSecs?: number;
hostbannerMode?: string;
hostbuttonTooltip?: string;
hostbuttonUrl?: string;
hostbuttonGfxUrl?: string;
nickname?: string;
phoneticName?: string;
codecEncryptionMode?: string;
}): Promise<void> {
this.child?.stdin.write(`serveredit ${JSON.stringify(payload)}\n`);
}
async getServerLog(): Promise<void> {
this.child?.stdin.write(`serverlog\n`);
}
async getBanList(): Promise<void> {
this.child?.stdin.write(`banlist\n`);
}
async deleteBan(banId: number): Promise<void> {
this.child?.stdin.write(`bandel ${banId}\n`);
}
async deleteAllBans(): Promise<void> {
this.child?.stdin.write(`bandelall\n`);
}
async getComplainList(): Promise<void> {
this.child?.stdin.write(`complainlist\n`);
}
async deleteComplaint(targetClientDbId: number, fromClientDbId: number): Promise<void> {
this.child?.stdin.write(`complaindel ${targetClientDbId} ${fromClientDbId}\n`);
}
async deleteAllComplaintsFor(targetClientDbId: number): Promise<void> {
this.child?.stdin.write(`complaindelall ${targetClientDbId}\n`);
}
async getOfflineMessageList(): Promise<void> {
this.child?.stdin.write(`messagelist\n`);
}
async getOfflineMessage(messageId: number): Promise<void> {
this.child?.stdin.write(`messageget ${messageId}\n`);
}
async sendOfflineMessage(clientUid: string, subject: string, message: string): Promise<void> {
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
this.child?.stdin.write(`messageadd ${sanitize(clientUid)}\t${sanitize(subject)}\t${sanitize(message)}\n`);
}
async deleteOfflineMessage(messageId: number): Promise<void> {
this.child?.stdin.write(`messagedel ${messageId}\n`);
}
async markOfflineMessageRead(messageId: number): Promise<void> {
this.child?.stdin.write(`messageupdateflag ${messageId} 1\n`);
}
async getChannelGroupList(): Promise<void> {
this.child?.stdin.write(`channelgrouplist\n`);
}
async getServerGroupList(): Promise<void> {
this.child?.stdin.write(`servergrouplist\n`);
}
async setChannelGroup(channelGroupId: number, channelId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}\n`);
}
async addServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`addservergroup ${serverGroupId} ${clientDbId}\n`);
}
async removeServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
this.child?.stdin.write(`delservergroup ${serverGroupId} ${clientDbId}\n`);
}
async serverQueryLogin(username: string, password: string): Promise<void> {
const u = Buffer.from(username, "utf8").toString("base64");
const p = Buffer.from(password, "utf8").toString("base64");
this.child?.stdin.write(`serverquerylogin ${u} ${p}\n`);
}
async getPermissionOverview(): Promise<void> {
this.child?.stdin.write(`permoverview\n`);
}
async getPermissionCatalog(): Promise<void> {
this.child?.stdin.write(`permissionlist\n`);
}
async getPermList(scope: PermScope, id1: number, id2?: number): Promise<void> {
const args = id2 !== undefined ? `${scope} ${id1} ${id2}` : `${scope} ${id1}`;
this.child?.stdin.write(`permlist ${args}\n`);
}
/** `negated`/`skip` only apply to the "server" and "client" scopes - the
* connector ignores extra trailing args for scopes that don't use them, so
* it's safe to always pass through what the caller gave. */
async addPermission(
scope: PermScope,
ids: number[],
permId: number,
value: number,
negated = false,
skip = false
): Promise<void> {
let args = `${scope} ${ids.join(" ")} ${permId} ${value}`;
if (scope === "server") args += ` ${negated ? 1 : 0} ${skip ? 1 : 0}`;
else if (scope === "client") args += ` ${skip ? 1 : 0}`;
this.child?.stdin.write(`permadd ${args}\n`);
}
async removePermission(scope: PermScope, ids: number[], permId: number): Promise<void> {
this.child?.stdin.write(`permdel ${scope} ${ids.join(" ")} ${permId}\n`);
}
async getFileList(channelId: number, path: string): Promise<void> {
const sanitized = (path || "/").replace(/[\r\n]+/g, " ").trim() || "/";
this.child?.stdin.write(`ftlist ${channelId} ${sanitized}\n`);
}
async createDirectory(channelId: number, dirname: string): Promise<void> {
const sanitized = dirname.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`ftmkdir ${channelId} ${sanitized}\n`);
}
async deleteFile(channelId: number, name: string): Promise<void> {
const sanitized = name.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`ftdelete ${channelId} ${sanitized}\n`);
}
async renameFile(channelId: number, oldName: string, newName: string): Promise<void> {
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
this.child?.stdin.write(`ftrename ${channelId}\t${sanitize(oldName)}\t${sanitize(newName)}\n`);
}
async downloadFile(channelId: number, path: string): Promise<void> {
const sanitized = path.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`ftdownload ${channelId} ${sanitized}\n`);
}
/** `dataBase64` is the raw file content, base64-encoded - the browser reads
* the picked File as a data URL/ArrayBuffer and sends it up already encoded. */
async uploadFile(channelId: number, path: string, dataBase64: string): Promise<void> {
const sanitizedPath = path.replace(/[\r\n\t]+/g, " ").trim();
this.child?.stdin.write(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}\n`);
}
async sendChatMessage(message: string): Promise<void> {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`chat ${sanitized}\n`);
@@ -245,6 +729,21 @@ export class Ts3Connection {
this.child?.stdin.write(`muteoutput ${muted ? "1" : "0"}\n`);
}
async setNickname(nickname: string): Promise<void> {
const sanitized = nickname.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.child?.stdin.write(`nickname ${sanitized}\n`);
}
/** Empty channelIds/clientIds clears whisper mode, returning outgoing
* voice to the normal current-channel broadcast. */
async setWhisperTargets(channelIds: number[], clientIds: number[]): Promise<void> {
if (channelIds.length === 0 && clientIds.length === 0) {
this.child?.stdin.write("unwhisper\n");
} else {
this.child?.stdin.write(`whisper ${channelIds.join(",")};${clientIds.join(",")}\n`);
}
}
async disconnect(message = ""): Promise<void> {
if (this.child && !this.child.killed) {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
+70
View File
@@ -0,0 +1,70 @@
import os
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
BASE_URL = os.environ.get("BASE_URL", "https://client.webspeak3.de/")
RESULTS = Path("test-results")
RESULTS.mkdir(exist_ok=True)
def wait_for_text(driver: webdriver.Safari, selector: str, text: str) -> None:
WebDriverWait(driver, 15).until(
lambda current: text in current.find_element(By.CSS_SELECTOR, selector).text
)
def check_page(driver: webdriver.Safari, width: int, height: int, label: str) -> None:
driver.set_window_size(width, height)
driver.get(BASE_URL)
wait_for_text(driver, ".ts-app-title", "WebSpeak3")
assert "WebSpeak3" in driver.title
capabilities = driver.execute_script(
"""
return {
secureContext: window.isSecureContext,
mediaDevices: Boolean(navigator.mediaDevices),
getUserMedia: typeof navigator.mediaDevices?.getUserMedia === 'function',
audioContext: typeof (window.AudioContext || window.webkitAudioContext) === 'function',
webSocket: typeof window.WebSocket === 'function'
};
"""
)
assert capabilities["secureContext"]
assert capabilities["mediaDevices"]
assert capabilities["getUserMedia"]
assert capabilities["audioContext"]
assert capabilities["webSocket"]
connections_menu = driver.find_element(By.CSS_SELECTOR, ".ts-menubar-dropdown .ts-menubar-item")
driver.execute_script("arguments[0].click()", connections_menu)
connect_item = WebDriverWait(driver, 10).until(
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-menu .ts-menu-item")
)
driver.execute_script("arguments[0].click()", connect_item)
dialog = WebDriverWait(driver, 10).until(
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-connect-dialog")
)
assert dialog.is_displayed()
assert len(dialog.find_elements(By.CSS_SELECTOR, "input")) >= 3
driver.save_screenshot(str(RESULTS / f"safari-client-{label}.png"))
def main() -> None:
options = webdriver.SafariOptions()
driver = webdriver.Safari(options=options)
try:
check_page(driver, 1440, 1000, "desktop")
check_page(driver, 390, 844, "mobile")
finally:
driver.quit()
if __name__ == "__main__":
main()
+1
View File
@@ -9,6 +9,7 @@ lerna-debug.log*
node_modules
dist
dist-demo
dist-ssr
*.local
+68
View File
@@ -0,0 +1,68 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#071018" />
<meta name="color-scheme" content="dark" />
<link rel="icon" href="../favicon.ico" />
<link rel="canonical" href="https://webspeak3.de/" />
<title>WebSpeak3 – TeamSpeak 3 im Browser | Open Source</title>
<meta name="description" content="WebSpeak3 bringt TeamSpeak 3 mit Voice, Chat, Channel Tree und Whisper in den Browser. Open Source, mobil und vollständig selbst hostbar per Docker." />
<meta name="keywords" content="TeamSpeak 3 Browser, TS3 Web Client, TeamSpeak Web Client, WebSpeak3, self-hosted voice chat, Docker, Open Source" />
<meta name="author" content="Moepchi" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<meta name="googlebot" content="index, follow" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="de_DE" />
<meta property="og:site_name" content="WebSpeak3" />
<meta property="og:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
<meta property="og:description" content="Der moderne, quelloffene und selbst gehostete Browser-Client für TeamSpeak 3 – mit Voice, Chat, Whisper und mobiler Oberfläche." />
<meta property="og:url" content="https://webspeak3.de/" />
<meta property="og:image" content="https://webspeak3.de/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
<meta name="twitter:description" content="Open Source, mobil und selbst hostbar: Voice, Chat, Channel Tree und Whisper direkt im Browser." />
<meta name="twitter:image" content="https://webspeak3.de/og-image.png" />
<meta name="twitter:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "WebSpeak3",
"description": "Ein moderner, quelloffener und selbst gehosteter Browser-Client für TeamSpeak 3 Server.",
"url": "https://webspeak3.de/",
"downloadUrl": "https://github.com/Moepchi/webspeak3",
"softwareHelp": "https://github.com/Moepchi/webspeak3#-installation",
"applicationCategory": "CommunicationApplication",
"applicationSubCategory": "VoiceChatApplication",
"operatingSystem": "Any modern web browser",
"isAccessibleForFree": true,
"license": "https://github.com/Moepchi/webspeak3/blob/main/LICENSE",
"codeRepository": "https://github.com/Moepchi/webspeak3",
"image": "https://webspeak3.de/og-image.png",
"author": {
"@type": "Person",
"name": "Moepchi",
"url": "https://github.com/Moepchi"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "EUR"
}
}
</script>
</head>
<body>
<div id="landing-root"></div>
<script type="module" src="../src/landing.tsx"></script>
</body>
</html>
+9 -2
View File
@@ -1,13 +1,14 @@
{
"name": "web",
"name": "webspeak3-web",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "web",
"name": "webspeak3-web",
"version": "0.0.0",
"dependencies": {
"fflate": "^0.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
@@ -855,6 +856,12 @@
}
}
},
"node_modules/fflate": {
"version": "0.8.3",
"resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
"integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
"license": "MIT"
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+1
View File
@@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"fflate": "^0.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
+4
View File
@@ -0,0 +1,4 @@
/landing/ / 301
/landing / 301
/index.html / 301
/ /landing/index.html 200
Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 379 KiB

+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://webspeak3.de/sitemap.xml
Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://webspeak3.de/</loc>
<lastmod>2026-08-11</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>
+937 -2
View File
File diff suppressed because it is too large. Load diff
+4885 -99
View File
File diff suppressed because it is too large. Load diff
+625
View File
@@ -0,0 +1,625 @@
// Standalone frontend demo: no gateway, no real TeamSpeak server. Everything
// below simulates the WebSocket protocol the real gateway speaks (see
// gateway/src/index.ts) so App.tsx doesn't need to know it isn't talking to
// a real backend. Only enabled in the GitHub Pages build (VITE_DEMO_MODE=true)
// so the normal Docker image is completely unaffected.
export const DEMO_MODE = import.meta.env.VITE_DEMO_MODE === "true";
export const DEMO_HOST = "demo.webspeak3.example";
interface DemoChannel {
id: number;
parent: number;
order: number;
name: string;
topic: string;
codec: string;
maxClients: number | null;
hasPassword: boolean;
}
interface DemoClient {
id: number;
channel: number;
name: string;
inputMuted: boolean;
outputMuted: boolean;
inputHardwareEnabled: boolean;
away: boolean;
awayMessage: string;
isChannelCommander: boolean;
country: string;
uid: string;
databaseId: number;
channelGroup: number;
serverGroups: number[];
hasTalkPower: boolean;
}
const DEMO_CHANNELS: DemoChannel[] = [
{ id: 1, parent: 0, order: 0, name: "Lobby", topic: "Welcome to the WebSpeak3 demo!", codec: "Opus Voice", maxClients: null, hasPassword: false },
{ id: 2, parent: 0, order: 1, name: "Gaming", topic: "", codec: "Opus Voice", maxClients: 10, hasPassword: false },
{ id: 3, parent: 0, order: 2, name: "AFK", topic: "", codec: "Opus Voice", maxClients: null, hasPassword: false },
];
const DEMO_CHANNEL_GROUPS = [
{ id: 1, name: "Channel Admin", iconId: 0 },
{ id: 2, name: "Operator", iconId: 0 },
{ id: 3, name: "Voice", iconId: 0 },
{ id: 4, name: "Guest", iconId: 0 },
];
const DEMO_SERVER_GROUPS = [
{ id: 1, name: "Server Admin", iconId: 0 },
{ id: 2, name: "Moderator", iconId: 0 },
{ id: 3, name: "Trusted", iconId: 0 },
{ id: 4, name: "Guest", iconId: 0 },
];
const DEMO_NPCS: DemoClient[] = [
{ id: 102, channel: 1, name: "Alex", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: true, country: "US", uid: "demo-uid-alex", databaseId: 2, channelGroup: 2, serverGroups: [2], hasTalkPower: true },
{ id: 103, channel: 2, name: "Sam", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "GB", uid: "demo-uid-sam", databaseId: 3, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
{ id: 104, channel: 2, name: "Jordan", inputMuted: true, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "CA", uid: "demo-uid-jordan", databaseId: 4, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
{ id: 105, channel: 3, name: "Riley", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: true, awayMessage: "brb, grabbing coffee", isChannelCommander: false, country: "DE", uid: "demo-uid-riley", databaseId: 5, channelGroup: 4, serverGroups: [3, 4], hasTalkPower: true },
];
interface DemoFileEntry {
path: string;
name: string;
size: number;
isFile: boolean;
timestamp: string;
}
/** Keyed by "<channelId>:<path>" - a tiny in-memory filesystem so the
* channel file browser has something real to navigate/mutate in the demo. */
const DEMO_FILES: Record<string, DemoFileEntry[]> = {
"1:/": [
{ path: "/", name: "readme.txt", size: 182, isFile: true, timestamp: "2024-01-01 12:00:00" },
{ path: "/", name: "Musik", size: 0, isFile: false, timestamp: "2024-01-01 12:00:00" },
],
"1:/Musik": [
{ path: "/Musik", name: "lobby-theme.mp3", size: 4 * 1024 * 1024, isFile: true, timestamp: "2024-01-02 09:30:00" },
],
"2:/": [],
"3:/": [],
// Channel 0 is TS3's special server-wide icon repository, not a real channel.
"0:/": [
{ path: "/", name: "icon_100", size: 68, isFile: true, timestamp: "2024-01-01 12:00:00" },
{ path: "/", name: "icon_200", size: 68, isFile: true, timestamp: "2024-01-01 12:00:00" },
],
};
// A tiny 1x1 transparent PNG, reused as the fake image data for every demo icon.
const DEMO_ICON_PNG_BASE64 =
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=";
function demoFileKey(channelId: number, path: string): string {
return `${channelId}:${path}`;
}
function demoNowTimestamp(): string {
return new Date().toISOString().slice(0, 19).replace("T", " ");
}
interface DemoPermEntry {
name: string;
description: string;
value: number;
negated: boolean;
skip: boolean;
}
// A small fake permission catalog (real TS3 servers expose ~500 of these) -
// enough for the permissions editor's "add permission" picker to be usable.
const DEMO_PERMISSION_CATALOG: { id: number; name: string; description: string }[] = [
{ id: 1, name: "b_client_info_view", description: "View own client info" },
{ id: 2, name: "b_client_permissionoverview_view", description: "View permission overview" },
{ id: 3, name: "i_channel_join_power", description: "Power to join channels" },
{ id: 4, name: "i_client_talk_power", description: "Talk power" },
{ id: 5, name: "b_client_use_priority_speaker", description: "Use priority speaker" },
{ id: 6, name: "i_client_max_channel_subscriptions", description: "Max channel subscriptions" },
{ id: 7, name: "b_channel_join_permanent", description: "Join permanent channels" },
{ id: 8, name: "b_client_kick_from_channel", description: "Kick client from channel" },
{ id: 9, name: "b_client_kick_from_server", description: "Kick client from server" },
{ id: 10, name: "b_client_ban_client", description: "Ban client" },
{ id: 11, name: "i_channel_create_modify_power", description: "Power to create/modify channels" },
{ id: 12, name: "b_virtualserver_modify_name", description: "Modify server name" },
{ id: 13, name: "b_ft_file_upload", description: "Upload files" },
{ id: 14, name: "b_ft_file_download", description: "Download files" },
];
// Keyed by "<scope>:<id1>:<id2 ?? ->" - the fake permission set currently
// assigned to one server group / channel group / channel / client /
// channel+client combination.
const DEMO_PERM_LISTS: Record<string, DemoPermEntry[]> = {
"server:1:-": [
{ name: "b_client_kick_from_server", description: "Kick client from server", value: 1, negated: false, skip: false },
{ name: "b_client_ban_client", description: "Ban client", value: 1, negated: false, skip: false },
],
"server:4:-": [
{ name: "i_channel_join_power", description: "Power to join channels", value: 25, negated: false, skip: false },
],
"channelgroup:1:-": [
{ name: "i_channel_create_modify_power", description: "Power to create/modify channels", value: 75, negated: false, skip: false },
],
"client:1:-": [
{ name: "b_client_info_view", description: "View own client info", value: 1, negated: false, skip: false },
],
};
function demoPermKey(scope: string, id1: number, id2?: number): string {
return `${scope}:${id1}:${id2 ?? "-"}`;
}
const SELF_ID = 101;
/**
* Drop-in stand-in for a real WebSocket. Implements the subset of the
* WebSocket interface App.tsx actually uses (onopen/onmessage/onerror/
* onclose/send/close/readyState), so it can be assigned to the same
* socketRef without any changes to the event-handling code.
*/
export class DemoSocket {
onopen: ((ev: Event) => void) | null = null;
onmessage: ((ev: MessageEvent) => void) | null = null;
onerror: ((ev: Event) => void) | null = null;
onclose: ((ev: CloseEvent) => void) | null = null;
readyState: number = WebSocket.CONNECTING;
private closed = false;
private timers: number[] = [];
private selfChannel = 1;
private selfChannelGroup = 4;
private selfServerGroups = new Set<number>([4]);
constructor() {
this.after(400, () => {
this.readyState = WebSocket.OPEN;
this.onopen?.(new Event("open"));
});
}
send(raw: string) {
if (this.closed) return;
let msg: any;
try {
msg = JSON.parse(raw);
} catch {
return;
}
this.handle(msg);
}
close() {
if (this.closed) return;
// Mirrors the real gateway: a "disconnected" event arrives before the
// socket itself finishes closing (see gateway's disconnected event vs.
// the client-initiated WebSocket close in handleDisconnect).
this.emit({ type: "disconnected", reason: "client requested" });
this.closed = true;
this.readyState = WebSocket.CLOSED;
this.timers.forEach((id) => window.clearTimeout(id));
this.timers = [];
this.onclose?.({} as CloseEvent);
}
private after(ms: number, fn: () => void) {
const id = window.setTimeout(() => {
if (this.closed) return;
fn();
}, ms);
this.timers.push(id);
}
private emit(data: unknown) {
if (this.closed) return;
this.onmessage?.({ data: JSON.stringify(data) } as MessageEvent);
}
private handle(msg: any) {
switch (msg.type) {
case "connect": {
const nickname = String(msg.nickname || "Guest").trim() || "Guest";
this.after(900, () => {
this.emit({
type: "connected",
serverName: "WebSpeak3 Demo Server",
serverMaxClients: 32,
serverVersion: "3.13.7 [Build: demo]",
serverLicense: "Demo License",
serverBannerUrl: null,
welcomeMessage: "This is a simulated demo - no real TeamSpeak server is involved. Connect with any name/address you like.",
});
this.after(150, () => this.sendChannels(nickname));
this.scriptServerLog(nickname);
});
break;
}
case "switchChannel": {
const fromChannel = this.channelName(this.selfChannel);
this.selfChannel = msg.channelId;
const toChannel = this.channelName(this.selfChannel);
this.emit({
type: "serverLog",
kind: "clientChannelSwitch",
client: this.lastNickname,
fromChannel,
toChannel,
});
this.after(120, () => this.sendChannels(this.lastNickname));
break;
}
case "sendChatMessage":
this.after(80, () => this.emit({ type: "chatMessage", from: this.lastNickname, message: msg.message }));
break;
case "sendServerMessage":
this.after(80, () => this.emit({ type: "serverMessage", from: this.lastNickname, message: msg.message }));
break;
case "sendPrivateMessage": {
const partner = DEMO_NPCS.find((c) => c.id === msg.clientId);
this.after(80, () =>
this.emit({
type: "privateMessage",
partnerId: msg.clientId,
partnerName: partner?.name ?? "Unknown",
message: msg.message,
fromSelf: true,
})
);
break;
}
case "sendPoke": {
const partner = DEMO_NPCS.find((c) => c.id === msg.clientId);
this.after(400, () =>
this.emit({ type: "poke", from: partner?.name ?? "Someone", message: "(demo poke - no reply expected)" })
);
break;
}
case "getClientConnectionInfo": {
this.after(400, () =>
this.emit({
type: "clientConnectionInfo",
clientId: msg.clientId,
pingMs: 12.4,
connectedSecs: 217,
ip: msg.clientId === SELF_ID ? "127.0.0.1" : null,
packetsSent: 4213,
bytesSent: 512_340,
packetsReceived: 3987,
bytesReceived: 498_120,
packetLossPercent: 0,
})
);
break;
}
case "getServerConnectionInfo": {
this.after(400, () =>
this.emit({
type: "serverConnectionInfo",
pingMs: 8.1,
connectedSecs: 217,
packetLossPercent: 0,
packetsSentTotal: 21_004,
bytesSentTotal: 2_411_000,
packetsReceivedTotal: 19_872,
bytesReceivedTotal: 2_198_500,
bandwidthSentLastSecond: 4200,
bandwidthReceivedLastSecond: 3900,
})
);
break;
}
case "getServerLog": {
this.after(400, () =>
this.emit({
type: "serverProtocolLog",
lines: [
"2026-08-05 10:12:03.421128|INFO |VirtualServerBase|1 |connect to server successful, connection accepted",
"2026-08-05 10:12:04.001912|INFO |VirtualServerBase|1 |client 'Guest'(id:101) connected",
"2026-08-05 10:14:19.552031|INFO |VirtualServerBase|1 |client 'Sam'(id:103) connected",
"2026-08-05 10:15:02.884120|INFO |VirtualServerBase|1 |client 'Jordan'(id:104) switched channel",
],
})
);
break;
}
case "getBanList": {
this.after(400, () =>
this.emit({
type: "banList",
entries: [
{
banId: 1,
ip: "203.0.113.42",
name: "TrollUser",
uid: "demo-uid-troll",
lastNickname: "TrollUser",
created: "2026-07-28 14:02:11",
durationSecs: 0,
invokerName: "Alex",
reason: "Spamming the server chat",
enforcements: 0,
},
{
banId: 2,
ip: "198.51.100.7",
name: "",
uid: "demo-uid-annoying",
lastNickname: "AnnoyingGuest",
created: "2026-08-01 09:44:53",
durationSecs: 3600,
invokerName: "Sam",
reason: "Repeated channel spam",
enforcements: 1,
},
],
})
);
break;
}
case "deleteBan":
case "deleteAllBans":
// No observable effect - the frontend already optimistically removes
// the deleted row(s) from its own state.
break;
case "getComplainList": {
this.after(400, () =>
this.emit({
type: "complainList",
entries: [
{
targetClientDbId: 104,
targetName: "Jordan",
fromClientDbId: 103,
fromName: "Sam",
message: "Kept talking over everyone in voice chat.",
timestamp: "2026-08-02 18:21:07",
},
],
})
);
break;
}
case "deleteComplaint":
case "deleteAllComplaintsFor":
break;
case "getOfflineMessageList": {
this.after(400, () =>
this.emit({
type: "offlineMessageList",
entries: [
{
messageId: 1,
clientUid: "demo-uid-sam",
subject: "Missed you online",
timestamp: "2026-08-03 20:11:44",
isRead: false,
},
],
})
);
break;
}
case "getOfflineMessage": {
this.after(300, () =>
this.emit({
type: "offlineMessage",
messageId: msg.messageId,
clientUid: "demo-uid-sam",
subject: "Missed you online",
message: "Hey, we were on last night in the Gaming channel - join us next time!",
timestamp: "2026-08-03 20:11:44",
})
);
break;
}
case "sendOfflineMessage":
case "deleteOfflineMessage":
case "markOfflineMessageRead":
// No observable effect - the frontend already optimistically updates
// its own state for delete/read, and there's no NPC to reply to a send.
break;
case "getChannelGroupList":
this.after(300, () => this.emit({ type: "channelGroupList", entries: DEMO_CHANNEL_GROUPS }));
break;
case "getServerGroupList":
this.after(300, () => this.emit({ type: "serverGroupList", entries: DEMO_SERVER_GROUPS }));
break;
case "setChannelGroup": {
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
if (npc) npc.channelGroup = msg.channelGroupId;
else if (msg.clientDbId === 1) this.selfChannelGroup = msg.channelGroupId;
this.after(200, () => this.sendChannels(this.lastNickname));
break;
}
case "addServerGroup": {
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
if (npc) {
if (!npc.serverGroups.includes(msg.serverGroupId)) npc.serverGroups.push(msg.serverGroupId);
} else if (msg.clientDbId === 1) {
this.selfServerGroups.add(msg.serverGroupId);
}
this.after(200, () => this.sendChannels(this.lastNickname));
break;
}
case "removeServerGroup": {
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
if (npc) {
npc.serverGroups = npc.serverGroups.filter((g) => g !== msg.serverGroupId);
} else if (msg.clientDbId === 1) {
this.selfServerGroups.delete(msg.serverGroupId);
}
this.after(200, () => this.sendChannels(this.lastNickname));
break;
}
case "serverQueryLogin":
// No observable effect - the demo has no real ServerQuery backend to
// authenticate against.
break;
case "getPermissionOverview": {
this.after(400, () =>
this.emit({
type: "permissionOverview",
entries: [
{ name: "b_client_info_view", description: "View own client info", value: 1, negated: false, skip: false },
{ name: "b_client_permissionoverview_view", description: "View permission overview", value: 1, negated: false, skip: false },
{ name: "i_channel_join_power", description: "Power to join channels", value: 25, negated: false, skip: false },
{ name: "i_client_talk_power", description: "Talk power", value: 25, negated: false, skip: false },
{ name: "b_client_use_priority_speaker", description: "Use priority speaker", value: 0, negated: true, skip: false },
{ name: "i_client_max_channel_subscriptions", description: "Max channel subscriptions", value: -1, negated: false, skip: false },
{ name: "b_channel_join_permanent", description: "Join permanent channels", value: 1, negated: false, skip: false },
],
})
);
break;
}
case "getPermissionCatalog": {
this.after(300, () => this.emit({ type: "permissionCatalog", entries: DEMO_PERMISSION_CATALOG }));
break;
}
case "getPermList": {
const key = demoPermKey(msg.scope, msg.id1, msg.id2);
this.after(300, () =>
this.emit({ type: "permList", scope: msg.scope, id1: msg.id1, id2: msg.id2 ?? null, entries: DEMO_PERM_LISTS[key] ?? [] })
);
break;
}
case "addPermission": {
const [id1, id2] = msg.ids as number[];
const key = demoPermKey(msg.scope, id1, id2);
const catalogEntry = DEMO_PERMISSION_CATALOG.find((p) => p.id === msg.permId);
const name = catalogEntry?.name ?? `#${msg.permId}`;
const description = catalogEntry?.description ?? "";
const list = (DEMO_PERM_LISTS[key] ?? []).filter((e) => e.name !== name);
list.push({ name, description, value: msg.value, negated: !!msg.negated, skip: !!msg.skip });
DEMO_PERM_LISTS[key] = list;
break;
}
case "removePermission": {
const [id1, id2] = msg.ids as number[];
const key = demoPermKey(msg.scope, id1, id2);
const catalogEntry = DEMO_PERMISSION_CATALOG.find((p) => p.id === msg.permId);
const name = catalogEntry?.name ?? `#${msg.permId}`;
if (DEMO_PERM_LISTS[key]) DEMO_PERM_LISTS[key] = DEMO_PERM_LISTS[key].filter((e) => e.name !== name);
break;
}
case "getFileList": {
const key = demoFileKey(msg.channelId, msg.path);
this.after(300, () =>
this.emit({ type: "fileList", cid: msg.channelId, path: msg.path, entries: DEMO_FILES[key] ?? [] })
);
break;
}
case "createDirectory": {
const dir = msg.dirname as string;
const parent = dir.slice(0, dir.lastIndexOf("/")) || "/";
const name = dir.slice(dir.lastIndexOf("/") + 1);
const parentKey = demoFileKey(msg.channelId, parent);
DEMO_FILES[parentKey] = (DEMO_FILES[parentKey] ?? []).filter((e) => e.name !== name);
DEMO_FILES[parentKey].push({ path: parent, name, size: 0, isFile: false, timestamp: demoNowTimestamp() });
DEMO_FILES[demoFileKey(msg.channelId, dir)] = [];
break;
}
case "deleteFile": {
const full = msg.name as string;
const parent = full.slice(0, full.lastIndexOf("/")) || "/";
const name = full.slice(full.lastIndexOf("/") + 1);
const parentKey = demoFileKey(msg.channelId, parent);
if (DEMO_FILES[parentKey]) DEMO_FILES[parentKey] = DEMO_FILES[parentKey].filter((e) => e.name !== name);
break;
}
case "renameFile": {
const oldFull = msg.oldName as string;
const newFull = msg.newName as string;
const parent = oldFull.slice(0, oldFull.lastIndexOf("/")) || "/";
const oldName = oldFull.slice(oldFull.lastIndexOf("/") + 1);
const newName = newFull.slice(newFull.lastIndexOf("/") + 1);
const entry = DEMO_FILES[demoFileKey(msg.channelId, parent)]?.find((e) => e.name === oldName);
if (entry) entry.name = newName;
break;
}
case "downloadFile": {
const full = msg.path as string;
const name = full.slice(full.lastIndexOf("/") + 1);
const data =
msg.channelId === 0
? DEMO_ICON_PNG_BASE64
: btoa(`This is a demo file. There is no real content behind "${name}" in WebSpeak3's demo mode.`);
this.after(400, () => this.emit({ type: "fileDownloadData", cid: msg.channelId, path: full, data }));
break;
}
case "uploadFile": {
const full = msg.path as string;
const parent = full.slice(0, full.lastIndexOf("/")) || "/";
const name = full.slice(full.lastIndexOf("/") + 1);
const parentKey = demoFileKey(msg.channelId, parent);
const sizeBytes = Math.floor(((msg.dataBase64 as string).length * 3) / 4);
DEMO_FILES[parentKey] = (DEMO_FILES[parentKey] ?? []).filter((e) => e.name !== name);
DEMO_FILES[parentKey].push({ path: parent, name, size: sizeBytes, isFile: true, timestamp: demoNowTimestamp() });
this.after(400, () => this.emit({ type: "fileUploadDone", cid: msg.channelId, path: full }));
break;
}
// "disconnect" is intentionally unhandled here: handleDisconnect() in
// App.tsx always calls socket.close() right after sending it, and
// close() already emits the "disconnected" event below.
// setAway, setInputMuted, setOutputMuted, sendAudio: no observable effect
// in a simulated single-user session, intentionally no-ops.
default:
break;
}
}
private lastNickname = "Guest";
private channelName(id: number): string {
return DEMO_CHANNELS.find((c) => c.id === id)?.name ?? "";
}
/** A short, scripted burst of Server-tab log lines so the feature is visible
* in the demo without needing a second real user to trigger them. */
private scriptServerLog(nickname: string) {
this.after(2500, () =>
this.emit({ type: "serverLog", kind: "clientJoin", client: "Sam", channel: this.channelName(2) })
);
this.after(5000, () =>
this.emit({
type: "serverLog",
kind: "clientChannelSwitch",
client: "Jordan",
fromChannel: this.channelName(2),
toChannel: this.channelName(1),
})
);
this.after(7500, () =>
this.emit({
type: "serverLog",
kind: "clientChannelGroupAssigned",
client: nickname,
group: "Guest",
})
);
}
private sendChannels(nickname: string) {
this.lastNickname = nickname;
const self: DemoClient = {
id: SELF_ID,
channel: this.selfChannel,
name: nickname,
inputMuted: false,
outputMuted: false,
inputHardwareEnabled: true,
away: false,
awayMessage: "",
isChannelCommander: false,
country: "",
uid: "demo-uid-self",
databaseId: 1,
channelGroup: this.selfChannelGroup,
serverGroups: [...this.selfServerGroups],
hasTalkPower: true,
};
this.emit({ type: "channels", channels: DEMO_CHANNELS, clients: [self, ...DEMO_NPCS] });
}
}
+572 -6
View File
@@ -20,30 +20,38 @@ const translations: Record<Lang, Record<string, string>> = {
"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.extras.identities": "Identitäten",
"menu.extras.contacts": "Kontakte",
"menu.extras.collectedUrls": "Gesammelte URLs",
"menu.extras.fileTransfers": "Dateitransfers",
"menu.extras.inviteFriend": "Freund einladen",
"menu.extras.offlineMessages": "Offline Nachrichten",
"menu.extras.whisperLists": "Whisperlisten",
"menu.extras.whisperHistory": "Whisper Verlauf",
"menu.extras.clientLog": "Client Protokoll",
"menu.extras.banList": "Bannliste",
"menu.extras.complaintList": "Beschwerdeliste",
"menu.extras.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.installOverwolf": "Overwolf installieren",
"menu.extras.options": "Optionen",
"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)",
@@ -77,6 +85,111 @@ const translations: Record<Lang, Record<string, string>> = {
"connect.newTab": "In neuem Tab",
"connect.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.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",
@@ -178,6 +291,7 @@ const translations: Record<Lang, Record<string, string>> = {
"tree.channelCommander": "Channel Commander",
"tree.away": "Abwesend",
"tree.micMuted": "Mikrofon stummgeschaltet",
"tree.noTalkPower": "Keine Redeerlaubnis in diesem Channel",
"tree.soundMuted": "Ton stummgeschaltet (deafened)",
"chat.server": "Server",
@@ -189,6 +303,16 @@ const translations: Record<Lang, Record<string, string>> = {
"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",
@@ -196,6 +320,163 @@ const translations: Record<Lang, Record<string, string>> = {
"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.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.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",
"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",
@@ -215,6 +496,8 @@ const translations: Record<Lang, Record<string, string>> = {
"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",
@@ -238,30 +521,38 @@ const translations: Record<Lang, Record<string, string>> = {
"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.extras.identities": "Identities",
"menu.extras.contacts": "Contacts",
"menu.extras.collectedUrls": "Collected URLs",
"menu.extras.fileTransfers": "File Transfers",
"menu.extras.inviteFriend": "Invite a friend",
"menu.extras.offlineMessages": "Offline Messages",
"menu.extras.whisperLists": "Whisper Lists",
"menu.extras.whisperHistory": "Whisper History",
"menu.extras.clientLog": "Client Log",
"menu.extras.banList": "Ban List",
"menu.extras.complaintList": "Complaint List",
"menu.extras.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.installOverwolf": "Install Overwolf",
"menu.extras.options": "Options",
"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",
@@ -295,6 +586,111 @@ const translations: Record<Lang, Record<string, string>> = {
"connect.newTab": "In new tab",
"connect.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.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",
@@ -396,6 +792,7 @@ const translations: Record<Lang, Record<string, string>> = {
"tree.channelCommander": "Channel commander",
"tree.away": "Away",
"tree.micMuted": "Microphone muted",
"tree.noTalkPower": "No talk power in this channel",
"tree.soundMuted": "Sound muted (deafened)",
"chat.server": "Server",
@@ -407,6 +804,16 @@ const translations: Record<Lang, Record<string, string>> = {
"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",
@@ -414,6 +821,163 @@ const translations: Record<Lang, Record<string, string>> = {
"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.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.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",
"serverContext.connectionInfo": "Server Connection Info",
"serverContext.copyAddress": "Copy server address",
"serverContext.addFavorite": "Add to favorites",
"serverContext.disconnect": "Disconnect",
"connectError.dismiss": "Dismiss",
"dialog.close": "Close",
@@ -433,6 +997,8 @@ const translations: Record<Lang, Record<string, string>> = {
"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",
+127
View File
@@ -0,0 +1,127 @@
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eaf3f8;background:#071018;font-synthesis:none;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% 3%,#0b2d3c 0,transparent 28%),#071018;color:#eaf3f8}.landing{overflow:hidden}.shell{width:min(1160px,calc(100% - 48px));margin:auto}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{display:flex;align-items:center;gap:10px;color:#f5fbff;text-decoration:none;font:700 21px Inter,"Segoe UI",sans-serif}.brand img{width:35px;height:35px;border-radius:9px}.brand span span{color:#33c8ff}.nav nav{display:flex;gap:34px}.nav nav a,.nav-github{color:#9fb2bd;text-decoration:none;font-size:14px}.nav a:hover{color:white}.nav-github{padding:9px 14px;border:1px solid #ffffff20;border-radius:9px}.hero{min-height:680px;display:grid;grid-template-columns:48% 52%;align-items:center;padding-top:60px;padding-bottom:70px}.eyebrow,.kicker{font:600 12px Inter,"Segoe UI",sans-serif;letter-spacing:.14em;color:#3bd1ff}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow span{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 12px #34d399}.hero h1{font:700 clamp(52px,6vw,78px)/.98 Inter,"Segoe UI",sans-serif;letter-spacing:-.055em;margin:22px 0}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#28c5ff,#79e0ff);background-clip:text;color:transparent}.hero-copy>p{max-width:560px;color:#9eb1bd;font-size:18px;line-height:1.7}.actions{display:flex;gap:12px;align-items:center;margin-top:32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 20px;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px}.primary{background:#20bbed;color:#00141d;box-shadow:0 8px 30px #11b8eb2d}.primary:hover{background:#61d7fa}.secondary{color:#e7f1f6;border:1px solid #ffffff25;background:#ffffff08}.demo-note{font-size:12px!important;color:#708792!important}.demo-note span{color:#35d393}.hero-visual{position:relative;padding-left:34px}.glow{position:absolute;width:440px;height:300px;background:#17bce633;filter:blur(80px);inset:70px 0 0 80px}.app-frame{position:relative;z-index:1;background:#111d26;border:1px solid #5ddcff38;border-radius:14px;padding:8px;box-shadow:0 36px 80px #0008;transform:perspective(1200px) rotateY(-4deg) rotateX(2deg)}.frame-bar{height:34px;display:flex;align-items:center;gap:6px;padding:0 7px;color:#68808c;font-size:10px}.frame-bar i{width:7px;height:7px;border-radius:50%;background:#344752}.frame-bar span{margin-left:8px}.app-frame img{width:100%;display:block;border-radius:7px}.signal-card{position:absolute;z-index:2;right:-15px;bottom:-35px;display:flex;align-items:center;gap:11px;padding:13px 15px;background:#101f29e8;border:1px solid #35d49a55;border-radius:12px;box-shadow:0 15px 40px #0007}.signal-card .signal{color:#40dda2;font-size:23px}.signal-card div{display:flex;flex-direction:column}.signal-card strong{font-size:12px}.signal-card small{font-size:9px;color:#78909c}.signal-card b{width:7px;height:7px;border-radius:50%;background:#3bd49e}.trust{height:90px;border-top:1px solid #ffffff10;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;color:#6c808b}.trust span{font-size:11px;text-transform:uppercase;letter-spacing:.15em}.trust strong{font:600 15px Inter,"Segoe UI",sans-serif;color:#8da0aa}.section{padding-top:118px;padding-bottom:118px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:52px}.section-head h2,.privacy h2,.showcase h2,.install h2{font:600 clamp(36px,4vw,52px)/1.08 Inter,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:13px 0 0}.section-head>p{max-width:420px;color:#8398a4;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-grid article{min-height:220px;padding:28px;border:1px solid #ffffff10;background:linear-gradient(145deg,#0d1922,#09141c);border-radius:14px}.icon{display:grid;place-items:center;width:42px;height:42px;background:#16bcea12;border:1px solid #2acaf72e;border-radius:10px}.icon svg{width:22px;fill:none;stroke:#32c9f4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.feature-grid h3{font:600 18px Inter,"Segoe UI",sans-serif;margin:24px 0 10px}.feature-grid p,.privacy p,.showcase p,.install p{color:#8196a2;line-height:1.7}.privacy{padding:105px 0;background:linear-gradient(110deg,#07131b,#0a222c);border-block:1px solid #ffffff0c}.privacy-inner{display:flex;justify-content:space-between;align-items:center}.privacy-copy{max-width:620px}.icon.large{width:50px;height:50px;margin-bottom:25px}.privacy ul{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;list-style:none;color:#b5c5cd}.privacy li:before{content:"✓";color:#35d4a0;margin-right:9px}.privacy-card{width:300px;height:330px;border:1px solid #32c9f42c;border-radius:50% 50% 16px 16px;display:flex;flex-direction:column;align-items:cenLine truncated
@media(max-width:900px){.nav nav{display:none}.hero{grid-template-columns:1fr;padding-top:85px}.hero-visual{margin-top:60px;padding-left:0}.feature-grid{grid-template-columns:1fr 1fr}.trust{display:grid;grid-template-columns:repeat(3,1fr);height:auto;padding-block:24px;gap:18px}.trust span{grid-column:1/-1}.privacy-inner{gap:40px}.privacy-card{width:240px;height:280px}.flow{display:grid;grid-template-columns:1fr 1fr;gap:14px}.flow-wrap{display:block}.flow-arrow{display:none}.showcase{grid-template-columns:1fr}.screens{margin-top:20px}.footer-inner{flex-wrap:wrap;gap:20px}}
@media(max-width:600px){.shell{width:min(100% - 30px,1160px)}.nav{height:68px}.nav-github{font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.hero{min-height:auto;padding-top:68px}.hero h1{font-size:48px}.hero-copy>p{font-size:16px}.actions{align-items:stretch;flex-direction:column}.hero-visual{margin-top:45px}.signal-card{right:5px;bottom:-40px}.trust{margin-top:80px}.feature-grid{grid-template-columns:1fr}.section{padding-block:85px}.section-head{display:block}.privacy-inner{display:block}.privacy ul{grid-template-columns:1fr}.privacy-card{margin:55px auto 0}.flow{grid-template-columns:1fr}.showcase{gap:25px}.screens{height:270px}.screens img{width:86%}.command code{font-size:11px}.footer-inner{display:block;text-align:center}.footer-inner .brand{justify-content:center}.footer-inner>div{justify-content:center;margin-top:20px}}
/* Visual depth and product personality */
.landing{position:relative;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:72px 72px}.landing:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071018 0,transparent 18%,transparent 82%,#071018 100%);pointer-events:none}.ambient{position:absolute;border-radius:50%;filter:blur(90px);opacity:.24;pointer-events:none;animation:drift 12s ease-in-out infinite alternate}.ambient-one{width:420px;height:420px;background:#04bde7;right:-180px;top:780px}.ambient-two{width:360px;height:360px;background:#4567ff;left:-220px;top:1900px;animation-delay:-5s}@keyframes drift{to{transform:translate3d(0,90px,0) scale(1.15)}}.shell{position:relative;z-index:1}.hero-stats{display:flex;gap:28px;margin-top:30px}.hero-stats span{display:flex;flex-direction:column;color:#5e7783;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.hero-stats strong{color:#cce2eb;font-size:13px;letter-spacing:0;margin-bottom:4px}.signal-card b{box-shadow:0 0 0 0 #3bd49e;animation:pulse 2s infinite}@keyframes pulse{70%{box-shadow:0 0 0 8px #3bd49e00}}.voice-waves{position:absolute;z-index:2;left:4px;bottom:26px;height:54px;display:flex;align-items:center;gap:4px;padding:10px 12px;background:#07131bd9;border:1px solid #36caf52d;border-radius:10px;backdrop-filter:blur(12px)}.voice-waves i,.mini-wave i{display:block;width:3px;border-radius:3px;background:linear-gradient(#4ee3ff,#23c991);animation:wave 1.25s ease-in-out infinite}.voice-waves i:nth-child(3n){animation-delay:-.7s}.voice-waves i:nth-child(2n){animation-delay:-.35s}@keyframes wave{0%,100%{height:8px;opacity:.45}50%{height:34px;opacity:1}}.feature-grid{grid-template-columns:repeat(12,1fr)}.feature-grid article{grid-column:span 4;min-height:235px;position:relative;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.feature-grid article:hover{transform:translateY(-5px);border-color:#35cdf34a;background:linear-gradient(145deg,#10232d,#09141c)}.feature-grid .feature-1,.feature-grid .feature-5{grid-column:span 7}.feature-grid .feature-2,.feature-grid .feature-6{grid-column:span 5}.card-index{position:absolute;right:20px;top:17px;color:#ffffff12;font:700 34px Inter,sans-serif}.feature-1:after,.feature-5:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#21c9ee17;right:-50px;bottom:-90px}.mini-wave{position:absolute;right:38px;bottom:45px;height:56px;display:flex;align-items:center;gap:5px}.mini-wave i{width:4px;animation-duration:1.6s}.mini-wave i:nth-child(odd){animation-delay:-.8s}
@media(max-width:900px){.feature-grid{grid-template-columns:1fr 1fr}.feature-grid article,.feature-grid .feature-1,.feature-grid .feature-2,.feature-grid .feature-5,.feature-grid .feature-6{grid-column:auto}}
@media(max-width:600px){.landing{background-size:48px 48px}.feature-grid{grid-template-columns:1fr}.mini-wave{opacity:.35}.hero-stats{gap:14px;justify-content:space-between}.voice-waves{left:10px;bottom:-25px}}
@media(prefers-reduced-motion:reduce){.ambient,.signal-card b,.voice-waves i,.mini-wave i{animation:none}}
/* Motion system */
.hero-copy{animation:hero-in .85s cubic-bezier(.2,.75,.25,1) both}.hero-visual{animation:visual-in 1s .12s cubic-bezier(.2,.75,.25,1) both}.app-frame{animation:float-frame 6s 1.2s ease-in-out infinite}.nav{animation:nav-in .7s ease-out both}@keyframes hero-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}@keyframes visual-in{from{opacity:0;transform:translateX(50px) scale(.96)}to{opacity:1;transform:none}}@keyframes nav-in{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}@keyframes float-frame{0%,100%{transform:perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0)}50%{transform:perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-10px)}}.button.primary{position:relative;overflow:hidden}.button.primary:after{content:"";position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 42%,#ffffff7d 50%,transparent 58%);transform:translateX(-90%);animation:cta-shine 4.5s 2s ease-in-out infinite}@keyframes cta-shine{0%,68%{transform:translateX(-90%)}88%,100%{transform:translateX(90%)}}.reveal{opacity:0;transform:translateY(42px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.75,.25,1)}.reveal.is-visible{opacity:1;transform:none}.feature-grid article{transition-delay:calc(var(--card-order,0) * 70ms)}.flow-wrap{opacity:0;transform:translateY(20px);transition:opacity .55s var(--delay) ease,transform .55s var(--delay) ease}.is-visible .flow-wrap{opacity:1;transform:none}.flow-arrow{overflow:visible}.flow-arrow em{position:absolute;width:6px;height:6px;border-radius:50%;background:#62e4ff;box-shadow:0 0 12px #36d8ff;left:0;top:calc(50% - 3px);animation:data-packet 1.8s linear infinite}@keyframes data-packet{to{transform:translateX(38px)}}.privacy-card:before{content:"";position:absolute;inset:8%;border-radius:50%;border:1px dashed #45d8fa24;animation:orbit 16s linear infinite}.privacy-card:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#45d8fa;top:15%;left:26%;box-shadow:0 0 16px #45d8fa}@keyframes orbit{to{transform:rotate(360deg)}}.screens img:first-child{animation:screen-dark 6s ease-in-out infinite}.screens img:last-child{animation:screen-light 6s ease-in-out infinite}@keyframes screen-dark{0%,100%{transform:translateY(0) rotate(.2deg)}50%{transform:translateY(-8px) rotate(-.5deg)}}@keyframes screen-light{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(7px) rotate(.3deg)}}
@media(prefers-reduced-motion:reduce){.hero-copy,.hero-visual,.app-frame,.nav,.button.primary:after,.flow-arrow em,.privacy-card:before,.screens img{animation:none}.reveal,.flow-wrap{opacity:1;transform:none;transition:none}}
/* Refined architecture stream and self-hosting orbit */
.flow-arrow{height:26px;display:flex;align-items:center;justify-content:center;overflow:hidden}.flow-arrow i{height:2px;top:12px;background:linear-gradient(90deg,#173a47 0%,#2acafa 35%,#9cecff 50%,#2acafa 65%,#173a47 100%);background-size:220% 100%;animation:stream-line 2.2s linear infinite}.flow-arrow b{font-size:22px;line-height:1;color:#7de5ff;background:#071018;padding:0 2px;transform:translateX(13px)}.flow-arrow em{display:none}@keyframes stream-line{to{background-position:-220% 0}}.privacy-card{border-radius:50%;width:330px;height:330px;border-color:#39d4f050;background:radial-gradient(circle,#16c8f51d 0,#0a1d2766 50%,transparent 72%);box-shadow:inset 0 0 50px #22c6ed12,0 0 60px #16c8f50d}.privacy-card:before,.privacy-card:after{display:none}.orbit{position:absolute;border-radius:50%;border:1px solid #55dcf85c;pointer-events:none}.orbit i{position:absolute;width:9px;height:9px;border-radius:50%;background:#70e5ff;box-shadow:0 0 14px #42dafa}.orbit-outer{inset:-18px;border-style:dashed;animation:orbit 18s linear infinite}.orbit-outer i{top:18%;right:5%}.orbit-inner{inset:24px;border-color:#45d2ed27;animation:orbit 11s linear infinite reverse}.orbit-inner i{width:6px;height:6px;bottom:10%;left:16%;background:#45dda6;box-shadow:0 0 12px #45dda6}.privacy-card>span,.privacy-card>strong,.privacy-card>small{position:relative;z-index:2}
@media(max-width:900px){.privacy-card{width:260px;height:260px}.orbit-outer{inset:-12px}}
@media(prefers-reduced-motion:reduce){.flow-arrow i,.orbit{animation:none}}
/* Clean architecture connectors */
.flow-wrap:not(:last-child){flex:1.08}.flow-wrap:last-child{flex:.92}.flow-arrow{position:relative;width:54px;min-width:54px;height:22px;margin:0 8px;overflow:visible;background:none}.flow-arrow i{position:absolute;left:0;right:5px;top:10px;width:auto;height:1px;background:#2ecdf65c;animation:none}.flow-arrow:after{content:"";position:absolute;right:4px;top:7px;width:6px;height:6px;border-top:1px solid #69e1ff;border-right:1px solid #69e1ff;transform:rotate(45deg)}.flow-arrow:before{content:"";position:absolute;z-index:2;left:2px;top:8px;width:16px;height:5px;border-radius:99px;background:linear-gradient(90deg,transparent,#81e9ff,transparent);filter:drop-shadow(0 0 5px #38d8ff);animation:connector-pulse 2.4s ease-in-out infinite}@keyframes connector-pulse{0%{transform:translateX(0);opacity:0}15%{opacity:1}75%{opacity:1}100%{transform:translateX(31px);opacity:0}}.flow-arrow b{display:none}
@media(max-width:900px){.flow-wrap:not(:last-child),.flow-wrap:last-child{flex:auto}.flow-arrow{display:none}}
@media(prefers-reduced-motion:reduce){.flow-arrow:before{animation:none;opacity:.7;transform:translateX(16px)}}
/* Staggered feature-card entrance */
.feature-grid{perspective:1000px}.feature-grid article{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);transform-origin:center bottom}.feature-grid article:nth-child(1){--card-delay:80ms}.feature-grid article:nth-child(2){--card-delay:160ms}.feature-grid article:nth-child(3){--card-delay:240ms}.feature-grid article:nth-child(4){--card-delay:320ms}.feature-grid article:nth-child(5){--card-delay:400ms}.feature-grid article:nth-child(6){--card-delay:480ms}.is-visible .feature-grid article{animation:card-arrive .72s var(--card-delay) cubic-bezier(.16,.82,.26,1) both}@keyframes card-arrive{0%{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);border-color:#ffffff08}65%{opacity:1;transform:translateY(-4px) scale(1.008) rotateX(0);border-color:#38d2fa32}100%{opacity:1;transform:none;border-color:#ffffff10}}.feature-grid article .icon{opacity:0;transform:scale(.65) rotate(-10deg)}.is-visible .feature-grid article .icon{animation:icon-pop .48s calc(var(--card-delay) + 280ms) cubic-bezier(.2,1.4,.35,1) both}@keyframes icon-pop{to{opacity:1;transform:none}}.feature-grid article .card-index{opacity:0;transform:translateX(14px)}.is-visible .feature-grid article .card-index{animation:index-in .45s calc(var(--card-delay) + 220ms) ease-out both}@keyframes index-in{to{opacity:1;transform:none}}.feature-grid article:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,#4cdcff0b 48%,transparent 66%);transform:translateX(-100%);pointer-events:none}.is-visible .feature-grid article:before{animation:card-sheen .85s calc(var(--card-delay) + 180ms) ease-out both}@keyframes card-sheen{to{transform:translateX(100%)}}.is-visible .feature-grid article:hover{transform:translateY(-6px) scale(1.008);border-color:#35cdf34a;box-shadow:0 18px 45px #0003,0 0 0 1px #38d5fb0a}
@media(prefers-reduced-motion:reduce){.feature-grid article,.feature-grid article .icon,.feature-grid article .card-index{opacity:1;transform:none}.is-visible .feature-grid article,.is-visible .feature-grid article .icon,.is-visible .feature-grid article .card-index,.is-visible .feature-grid article:before{animation:none}}
/* Language switch */
.nav-actions{display:flex;align-items:center;gap:10px}.language-switch{display:flex;align-items:center;padding:3px;border:1px solid #ffffff18;border-radius:9px;background:#06101899}.language-switch button{min-width:32px;padding:6px 7px;border:0;border-radius:6px;background:transparent;color:#68808c;font:700 10px Inter,"Segoe UI",sans-serif;letter-spacing:.06em;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.language-switch button:hover{color:#d7e8ef}.language-switch button.active{background:#1ec4f21c;color:#58dcff;box-shadow:inset 0 0 0 1px #35d5ff2c}.language-switch button:focus-visible{outline:2px solid #42d8ff;outline-offset:2px}
@media(max-width:600px){.nav-actions{gap:6px}.language-switch button{min-width:28px;padding-inline:5px}.nav-github{padding-inline:10px;font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.nav-github span{font-size:13px}}
.hero-actions{flex-wrap:wrap}.hero-actions .button{padding-inline:17px}.button.tertiary{padding-inline:4px;color:#7f96a2;background:transparent}.button.tertiary:hover{color:#d9e9ef}
@media(max-width:600px){.hero-actions .button.tertiary{padding:10px 4px}}
/* Project status */
.status{border-top:1px solid #ffffff0d}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.status-grid article{position:relative;min-height:220px;padding:28px;background:linear-gradient(145deg,#0d1922,#09141c);border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.status-grid article:after{content:"";position:absolute;width:130px;height:130px;right:-65px;bottom:-70px;border-radius:50%;background:#27c9f20c}.status-grid small{color:#6f8793;font-size:10px;text-transform:uppercase;letter-spacing:.13em}.status-grid h3{margin:28px 0 10px;font-size:19px}.status-grid p{margin:0;color:#8196a2;line-height:1.7}.status-dot{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:#38d49b;box-shadow:0 0 12px #38d49b}.status-1{background:#3acbf4;box-shadow:0 0 12px #3acbf4}.status-2{background:#8d78ff;box-shadow:0 0 12px #8d78ff}.status-link{display:inline-block;margin-top:24px;color:#70dfff}.is-visible .status-grid article{animation:status-in .65s both}.is-visible .status-grid article:nth-child(2){animation-delay:100ms}.is-visible .status-grid article:nth-child(3){animation-delay:200ms}@keyframes status-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
/* Interactive product tour */
.product-tour{border-top:1px solid #ffffff0d}.tour-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.75fr);gap:22px;align-items:stretch}.tour-screen{position:relative;align-self:start;padding:8px;background:#0d1922;border:1px solid #35cdf32a;border-radius:15px;box-shadow:0 30px 70px #0007}.tour-screen>img{display:block;width:100%;border-radius:9px}.hotspot{position:absolute;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #a6f0ff;background:#0b1b25e8;color:#b8f3ff;border-radius:50%;font:700 11px Inter,sans-serif;cursor:pointer;box-shadow:0 0 0 7px #28c9f51a,0 0 20px #22cef56b;transition:transform .2s ease,background .2s ease}.hotspot:hover,.hotspot.active{transform:scale(1.14);background:#2ac9f5;color:#04141b}.hotspot-tree{left:13%;top:31%}.hotspot-chat{left:58%;top:43%}.hotspot-voice{left:47%;bottom:13%}.hotspot-whisper{left:27%;top:54%}.hotspot:not(.active){animation:hotspot-pulse 2.6s ease-in-out infinite}@keyframes hotspot-pulse{50%{box-shadow:0 0 0 11px #28c9f505,0 0 26px #22cef580}}.tour-caption{position:absolute;display:flex;gap:13px;left:22px;right:22px;bottom:18px;padding:15px 18px;border:1px solid #ffffff17;background:#07131be8;border-radius:11px;backdrop-filter:blur(14px);box-shadow:0 12px 35px #0006}.tour-caption>span{color:#38d4fb;font:700 11px Inter,sans-serif}.tour-caption strong{font-size:14px}.tour-caption p{margin:4px 0 0;color:#7f97a3;font-size:11px;line-height:1.45}.tour-tabs{display:flex;flex-direction:column;gap:9px}.tour-tabs button{display:flex;flex:1;gap:14px;align-items:flex-start;padding:19px;text-align:left;color:#8ca0aa;background:#09141c;border:1px solid #ffffff0d;border-radius:12px;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}.tour-tabs button:hover{transform:translateX(-3px);border-color:#38d4fa2c}.tour-tabs button.active{background:linear-gradient(120deg,#102732,#0b1922);border-color:#38d4fa4a}.tour-tabs button>span{color:#35d1fa;font:700 10px Inter,sans-serif}.tour-tabs button div{display:flex;flex-direction:column;gap:7px}.tour-tabs strong{color:#dce9ef;font-size:14px}.tour-tabs small{color:#718792;line-height:1.45}
/* Installation steps and copy feedback */
.install{padding-top:110px}.install-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(850px,100%);margin:38px auto 18px;text-align:left}.install-steps article{display:flex;gap:14px;padding:18px;background:#0b171f;border:1px solid #ffffff10;border-radius:12px}.install-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.install-steps article div{display:flex;flex-direction:column;gap:6px}.install-steps strong{font-size:13px}.install-steps small{color:#718792;line-height:1.45}.command button{min-width:34px;white-space:nowrap}.command button.copied{color:#43d9a3;font:700 11px Inter,sans-serif}
/* FAQ */
.faq{padding-top:40px}.faq-list{width:min(850px,100%);margin:auto;border-top:1px solid #ffffff13}.faq-list details{border-bottom:1px solid #ffffff13}.faq-list summary{display:flex;align-items:center;gap:18px;padding:23px 4px;color:#dce9ef;font-weight:600;cursor:pointer;list-style:none}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary span{color:#35cef7;font:700 10px Inter,sans-serif}.faq-list summary i{margin-left:auto;color:#5fdcff;font-style:normal;font-size:22px;transition:transform .25s ease}.faq-list details[open] summary i{transform:rotate(45deg)}.faq-list details p{margin:0;padding:0 50px 24px;color:#8095a0;line-height:1.7}.faq-list details[open] p{animation:faq-in .3s ease-out both}@keyframes faq-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:900px){.status-grid{grid-template-columns:1fr}.status-grid article{min-height:auto}.tour-layout{grid-template-columns:1fr}.tour-tabs{display:grid;grid-template-columns:1fr 1fr}.tour-tabs button{min-height:115px}.install-steps{grid-template-columns:1fr}}
@media(max-width:600px){.tour-screen{padding:4px}.hotspot{width:28px;height:28px;box-shadow:0 0 0 5px #28c9f51a}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin:5px 0 0;padding:13px}.tour-tabs{grid-template-columns:1fr}.tour-tabs button{min-height:auto}.install-steps{margin-top:28px}.faq{padding-top:20px}.faq-list summary{font-size:14px}.faq-list details p{padding-left:33px;padding-right:8px}.command{gap:10px}}
@media(prefers-reduced-motion:reduce){.is-visible .status-grid article,.hotspot:not(.active),.faq-list details[open] p{animation:none}}
/* Wide current-client preview */
.product-tour{width:min(1380px,calc(100% - 48px))}.product-tour .section-head{width:min(1160px,100%);margin-left:auto;margin-right:auto}.tour-layout{grid-template-columns:minmax(0,3.2fr) minmax(250px,.8fr);gap:18px}.tour-screen{padding:8px}.tour-image{position:relative;overflow:hidden;border-radius:9px}.tour-image>img{display:block;width:100%;height:auto}.hotspot-tree{left:11%;top:31%}.hotspot-chat{left:55%;top:82%}.hotspot-voice{left:18%;top:4.5%}.hotspot-whisper{left:19%;top:18%}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin-top:8px;min-height:73px}.tour-tabs button{padding:17px}.tour-tabs small{font-size:11px}
@media(max-width:900px){.product-tour{width:min(100% - 48px,1160px)}.tour-layout{grid-template-columns:1fr}.tour-tabs button{padding:19px}}
@media(max-width:600px){.product-tour{width:min(100% - 30px,1160px)}.hotspot{width:26px;height:26px}.hotspot-tree{left:10%;top:29%}.hotspot-chat{left:54%;top:80%}.hotspot-voice{left:18%;top:3%}.hotspot-whisper{left:19%;top:18%}.tour-caption{margin-top:5px}}
/* Desktop and real mobile client composition */
.showcase .screens{height:510px}.screens .screen-desktop{width:86%;right:0;left:auto;top:42px;bottom:auto;z-index:1;border-color:#44d5fa33;box-shadow:0 28px 65px #000a}.phone-frame{position:absolute;z-index:3;left:0;bottom:0;width:27%;padding:8px 6px 7px;background:#09131a;border:1px solid #55dcfa50;border-radius:19px;box-shadow:0 28px 60px #000b,0 0 35px #25caf512;animation:phone-float 6s ease-in-out infinite}.phone-frame:before{content:"";position:absolute;inset:-1px;border-radius:19px;background:linear-gradient(145deg,#72e7ff55,transparent 25%,transparent 75%,#22c7ed22);pointer-events:none}.phone-frame>span{display:block;width:34%;height:4px;margin:0 auto 7px;border-radius:99px;background:#233943}.screens .phone-frame img,.screens .phone-frame img:last-child{position:relative;inset:auto;width:100%;display:block;border:0;border-radius:11px;box-shadow:none;animation:none}.screens .screen-desktop:first-child{animation:screen-dark 6s ease-in-out infinite}@keyframes phone-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(-.3deg)}}
@media(max-width:900px){.showcase .screens{height:520px;max-width:760px;width:100%;margin-inline:auto}.screens .screen-desktop{width:86%}.phone-frame{width:27%}}
@media(max-width:600px){.showcase .screens{height:390px}.screens .screen-desktop{width:88%;top:38px}.phone-frame{left:7px;width:34%;padding:6px 4px 5px;border-radius:14px}.phone-frame:before{border-radius:14px}.phone-frame>span{height:3px;margin-bottom:5px}.screens .phone-frame img{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.phone-frame{animation:none}}
/* Device-aware phone hardware */
.phone-frame{padding:7px 6px 12px;background:linear-gradient(145deg,#25323a,#050a0e 28%,#020507 72%,#18242b);border:1px solid #65808c;box-shadow:0 30px 65px #000c,0 0 36px #25caf516,inset 0 0 0 1px #ffffff0c}.phone-frame:after{content:"";position:absolute;inset:3px;border:1px solid #000;border-radius:inherit;pointer-events:none}.phone-sensor{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;height:14px}.phone-sensor span,.phone-sensor b{display:block}.phone-button{position:absolute;z-index:0;width:3px;background:linear-gradient(#70818a,#1b272d);border:1px solid #10171b;box-shadow:0 1px 2px #000}.phone-button-left{left:-4px}.phone-button-right{right:-4px}.phone-home{position:absolute;z-index:4;left:50%;bottom:4px;transform:translateX(-50%);height:3px;border-radius:99px;background:#b8c5ca80}.phone-android{border-radius:17px}.phone-android:before,.phone-android:after{border-radius:17px}.phone-android .phone-sensor span{width:7px;height:7px;border-radius:50%;background:#020405;box-shadow:inset 0 0 0 2px #142933,0 0 0 1px #000}.phone-android .phone-sensor span:after{content:"";display:block;width:2px;height:2px;margin:2px;border-radius:50%;background:#2f86a9}.phone-android .phone-sensor b{display:none}.phone-android .phone-button-left{display:none}.phone-android .phone-button-right{top:56px;height:42px;border-radius:0 3px 3px 0}.phone-android .phone-home{width:24%}.phone-android img{border-radius:10px!important}.phone-iphone{padding:7px 7px 13px;border-radius:27px;border-color:#83939b}.phone-iphone:before,.phone-iphone:after{border-radius:27px}.phone-iphone .phone-sensor{height:17px}.phone-iphone .phone-sensor span{position:relative;width:43px;height:12px;border-radius:99px;background:#010203;box-shadow:inset 0 1px 2px #000}.phone-iphone .phone-sensor span:after{content:"";position:absolute;right:5px;top:4px;width:4px;height:4px;border-radius:50%;background:#071b2b;box-shadow:inset 0 0 0 1px #173c52}.phone-iphone .phone-sensor b{display:none}.phone-iphone .phone-button-left{top:58px;height:34px;border-radius:3px 0 0 3px;box-shadow:0 42px 0 #26353d,0 72px 0 #26353d}.phone-iphone .phone-button-right{top:72px;height:48px;border-radius:0 3px 3px 0}.phone-iphone .phone-home{width:34%;background:#e1e8ebaa}.phone-iphone img{border-radius:19px!important}
@media(max-width:600px){.phone-frame{padding:5px 4px 10px}.phone-sensor{height:10px}.phone-android .phone-sensor span{width:5px;height:5px}.phone-android .phone-sensor span:after{width:1px;height:1px;margin:2px}.phone-android .phone-button-right{top:40px;height:30px}.phone-iphone{padding:5px 5px 11px;border-radius:19px}.phone-iphone:before,.phone-iphone:after{border-radius:19px}.phone-iphone .phone-sensor{height:12px}.phone-iphone .phone-sensor span{width:30px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:3px;height:3px}.phone-iphone .phone-button-left{top:42px;height:24px;box-shadow:0 30px 0 #26353d,0 51px 0 #26353d}.phone-iphone .phone-button-right{top:50px;height:34px}.phone-iphone img{border-radius:13px!important}}
/* Refined edge-to-edge iPhone */
.phone-iphone{width:28%;padding:5px;background:linear-gradient(145deg,#55585b,#17191b 18%,#050607 55%,#2f3234);border:1px solid #777b7e;border-radius:24px;box-shadow:0 30px 60px #000b,0 0 0 1px #000,inset 0 0 0 1px #ffffff18}.phone-iphone:before{inset:1px;border-radius:23px;background:linear-gradient(120deg,#ffffff1f,transparent 18%,transparent 78%,#ffffff0d)}.phone-iphone:after{inset:4px;border-color:#020303;border-radius:20px}.phone-iphone .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-iphone .phone-sensor span{width:38px;height:11px;background:#010101;box-shadow:0 1px 3px #000,inset 0 0 0 1px #151719}.phone-iphone .phone-sensor span:after{right:5px;top:4px;width:3px;height:3px;background:#0b2134}.phone-iphone .phone-button{width:2px;background:#3c3f42;border-color:#151719;box-shadow:none}.phone-iphone .phone-button-left{left:-3px;top:58px;height:27px;box-shadow:0 36px 0 #3c3f42,0 65px 0 #3c3f42}.phone-iphone .phone-button-right{right:-3px;top:74px;height:40px}.phone-iphone .phone-home{bottom:9px;width:31%;height:3px;background:#eef2f3d9;filter:drop-shadow(0 1px 1px #000)}.screens .phone-iphone img{border-radius:19px!important}
@media(max-width:600px){.phone-iphone{left:7px;width:35%;padding:4px;border-radius:18px}.phone-iphone:before{border-radius:17px}.phone-iphone:after{inset:3px;border-radius:15px}.phone-iphone .phone-sensor{top:7px}.phone-iphone .phone-sensor span{width:27px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:2px;height:2px}.phone-iphone .phone-button-left{top:42px;height:19px;box-shadow:0 26px 0 #3c3f42,0 47px 0 #3c3f42}.phone-iphone .phone-button-right{top:51px;height:29px}.phone-iphone .phone-home{bottom:6px;height:2px}.screens .phone-iphone img{border-radius:14px!important}}
/* Edge-to-edge Android display overlays */
.phone-android{padding:5px}.phone-android .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-android .phone-sensor span{width:8px;height:8px;background:#020405;box-shadow:0 0 0 1px #000,0 1px 3px #000,inset 0 0 0 2px #142933}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:3px;background:#338db2}.phone-android .phone-home{z-index:6;bottom:9px;width:28%;height:3px;background:#d6e1e599;filter:drop-shadow(0 1px 1px #000)}.screens .phone-android img{border-radius:12px!important}
@media(max-width:600px){.phone-android{padding:4px}.phone-android .phone-sensor{top:7px}.phone-android .phone-sensor span{width:6px;height:6px}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:2px}.phone-android .phone-home{bottom:6px;height:2px}.screens .phone-android img{border-radius:9px!important}}
/* Animated three-step connection */
.quick-connect{border-bottom:1px solid #ffffff0d}.connect-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:34px;align-items:stretch}.connect-steps{display:flex;flex-direction:column;gap:10px}.connect-steps article{display:flex;align-items:center;gap:18px;flex:1;padding:20px 22px;background:#0a161e;border:1px solid #ffffff0f;border-radius:12px}.connect-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.connect-steps article div{display:flex;flex-direction:column;gap:6px}.connect-steps strong{font-size:14px}.connect-steps small{color:#718792;line-height:1.5}.connect-demo{position:relative;padding:24px;background:linear-gradient(145deg,#0e1e28,#071119);border:1px solid #42d8fa35;border-radius:16px;box-shadow:0 28px 70px #0007;overflow:hidden}.connect-demo:after{content:"";position:absolute;width:260px;height:260px;right:-120px;bottom:-150px;border-radius:50%;background:#25cdf617}.demo-window-bar{display:flex;align-items:center;gap:6px;margin:-6px 0 24px;color:#607884;font-size:10px}.demo-window-bar i{width:7px;height:7px;border-radius:50%;background:#314650}.demo-window-bar span{margin-left:7px}.connect-demo label{position:relative;z-index:1;display:block;margin-top:13px}.connect-demo label small{display:block;margin-bottom:7px;color:#718995;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.fake-input{height:48px;display:flex;align-items:center;padding:0 14px;background:#050b10;border:1px solid #ffffff15;border-radius:9px;color:#c9d8df;font:500 13px ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden}.typed-server{display:block;width:0;white-space:nowrap;overflow:hidden}.is-visible .typed-server{animation:type-server 9s 1s steps(19,end) infinite}.fake-input b{width:1px;height:19px;background:#48d7fa;animation:input-caret .75s step-end infinite}.connect-demo>button{position:relative;z-index:1;width:100%;height:46px;margin-top:17px;border:0;border-radius:9px;background:#26c6f3;color:#04141b;font-weight:800;cursor:pointer}.connect-demo>button span{margin-left:12px}.is-visible .connect-demo>button{animation:connect-button 9s 1s infinite}.connect-progress{position:relative;z-index:1;height:22px;display:flex;align-items:center;justify-content:center;margin-top:14px;color:#78909b;font-size:11px}.connect-progress i{width:6px;height:6px;margin-right:8px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}.connect-progress span{position:absolute}.progress-connected{color:#53dda9;opacity:0}.is-visible .progress-connecting{animation:connecting-text 9s 1s infinite}.is-visible .progress-connected{animation:connected-text 9s 1s infinite}@keyframes type-server{0%,8%{width:0}34%,78%{width:19ch}88%,100%{width:0}}@keyframes input-caret{50%{opacity:0}}@keyframes connect-button{0%,38%{box-shadow:none;transform:none}43%{box-shadow:0 0 0 5px #29cbf21c;transform:translateY(1px)}48%,100%{box-shadow:none;transform:none}}@keyframes connecting-text{0%,48%{opacity:1}53%,100%{opacity:0}}@keyframes connected-text{0%,50%{opacity:0}55%,82%{opacity:1}88%,100%{opacity:0}}
/* Live public GitHub stats */
.github-live{padding:90px 0;background:linear-gradient(110deg,#07131b,#0a202a);border-block:1px solid #ffffff0d}.github-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}.github-copy h2{font:600 clamp(32px,3.5vw,46px)/1.08 Inter,sans-serif;letter-spacing:-.04em;margin:13px 0}.github-copy p{color:#8196a2;line-height:1.7}.github-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.github-metrics article{min-height:155px;display:flex;flex-direction:column;justify-content:center;padding:22px;background:#08141c;border:1px solid #ffffff10;border-radius:13px}.github-metrics article>span{color:#35d0f8;font-size:16px}.github-metrics strong{margin:12px 0 6px;color:#e4f0f5;font-size:23px}.github-metrics small{color:#718792;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
/* Install method switcher */
.install-tabs{width:min(700px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:24px auto 8px;padding:5px;background:#050b10;border:1px solid #ffffff12;border-radius:11px}.install-tabs button{padding:10px 8px;border:0;border-radius:7px;background:transparent;color:#708792;font:700 11px Inter,sans-serif;cursor:pointer}.install-tabs button:hover{color:#d5e6ed}.install-tabs button.active{color:#53d9fb;background:#1bc8f216;box-shadow:inset 0 0 0 1px #3ed7fa2a}.command code{white-space:pre-wrap;overflow-wrap:anywhere}
/* Browser compatibility */
.browser-check{border-top:1px solid #ffffff0d}.browser-table{border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.browser-table article{display:grid;grid-template-columns:44px 1fr 160px 1.4fr;align-items:center;gap:16px;min-height:78px;padding:14px 20px;background:#0a151d;border-bottom:1px solid #ffffff0d}.browser-table article:last-child{border-bottom:0}.browser-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#061117;font-weight:900;background:linear-gradient(145deg,#38d5fa,#38da9c)}.browser-1{background:linear-gradient(145deg,#f5c84d,#ec6a42)}.browser-2{background:linear-gradient(145deg,#9272ff,#4a9df5)}.browser-3{background:linear-gradient(145deg,#55dafa,#4c7fff)}.browser-table strong{font-size:14px}.browser-table b{justify-self:start;padding:6px 9px;border-radius:99px;background:#35d29b12;color:#53dca8;font-size:10px}.browser-table article:last-child b{background:#f2b84a12;color:#efc469}.browser-table small{color:#718792;line-height:1.45}
@media(max-width:900px){.connect-layout,.github-inner{grid-template-columns:1fr}.github-inner{gap:35px}.github-metrics{grid-template-columns:repeat(3,1fr)}.browser-table article{grid-template-columns:44px 1fr 130px}.browser-table small{grid-column:2/-1}}
@media(max-width:600px){.connect-layout{gap:18px}.connect-demo{padding:18px}.github-live{padding:70px 0}.github-metrics{grid-template-columns:1fr}.github-metrics article{min-height:110px}.install-tabs{grid-template-columns:1fr 1fr}.browser-table article{grid-template-columns:38px 1fr;gap:10px;padding:16px}.browser-table b{grid-column:2}.browser-table small{grid-column:2}}
@media(prefers-reduced-motion:reduce){.typed-server{width:19ch}.is-visible .typed-server,.fake-input b,.is-visible .connect-demo>button,.is-visible .progress-connecting,.is-visible .progress-connected{animation:none}.progress-connecting{display:none}.progress-connected{opacity:1}}
/* Keep the animated connection indicator beside its label. */
.connect-progress>i{display:none}
.connect-progress span{display:flex;align-items:center;gap:8px}
.progress-connecting:before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}
/* Open-source community callout */
.community{position:relative;padding:100px 0;background:linear-gradient(135deg,#07131b 0%,#09232d 52%,#07131b 100%);border-block:1px solid #ffffff0d;overflow:hidden}.community:before{content:"";position:absolute;inset:-50% auto auto 55%;width:520px;height:520px;border-radius:50%;background:#27cff611;filter:blur(3px)}.community-inner{position:relative}.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:42px}.community-grid>a{position:relative;min-height:245px;display:flex;flex-direction:column;justify-content:space-between;padding:26px;color:inherit;text-decoration:none;background:#07131bd9;border:1px solid #ffffff11;border-radius:14px;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.community-grid>a:after{content:"";position:absolute;right:-60px;bottom:-80px;width:170px;height:170px;border-radius:50%;background:#27cff60b;transition:transform .35s ease,background .35s ease}.community-grid>a:hover{transform:translateY(-6px);border-color:#39d4f84a;background:#091a23}.community-grid>a:hover:after{transform:scale(1.2);background:#27cff616}.community-icon{position:relative;z-index:1;display:grid;place-items:center;width:43px;height:43px;margin-bottom:34px;border-radius:11px;color:#42d5f8;background:#24c8f012;border:1px solid #30d2f836;font:800 17px Inter,sans-serif}.community-idea{color:#efc66d;background:#efc66d10;border-color:#efc66d32}.community-code{width:52px;color:#65dea9;background:#42d99c10;border-color:#42d99c32;font-size:13px}.community-grid a div{position:relative;z-index:1}.community-grid strong{font-size:18px;color:#e1edf2}.community-grid p{min-height:66px;margin:12px 0 22px;color:#748b96;font-size:13px;line-height:1.65}.community-grid small{color:#3bcff3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.community-grid small b{margin-left:5px}.community-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:28px 0 0;color:#657d88;font-size:11px}.community-note span{color:#3bd5a2;font-size:8px;box-shadow:0 0 12px #3bd5a2}.connect-demo>button:focus-visible,.community-grid>a:focus-visible{outline:2px solid #45d8fa;outline-offset:3px}
@media(max-width:800px){.community-grid{grid-template-columns:1fr}.community-grid>a{min-height:190px}.community-grid p{min-height:auto}}
@media(max-width:600px){.community{padding:72px 0}.community-grid{margin-top:28px}.community-note{align-items:flex-start;text-align:left}}
/* Floating navigation and scroll-aware section state */
.nav{position:sticky;z-index:50;top:12px;height:64px;margin-top:12px;padding:0 16px;border:1px solid #ffffff17;border-radius:14px;background:#07131bd9;box-shadow:0 15px 45px #0005,inset 0 1px #ffffff08;backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%)}.nav .brand img{transition:transform .3s ease,box-shadow .3s ease}.nav .brand:hover img{transform:rotate(-5deg) scale(1.06);box-shadow:0 0 22px #31cdf535}.nav nav{height:100%;align-items:center}.nav nav a{position:relative;display:flex;height:100%;align-items:center;transition:color .22s ease}.nav nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:-1px;height:2px;border-radius:99px;background:#3bd3fa;box-shadow:0 0 12px #3bd3fa;transition:left .25s ease,right .25s ease}.nav nav a:hover:after,.nav nav a.active:after{left:0;right:0}.nav nav a.active{color:#e9f8fe}.nav-github{transition:color .22s ease,border-color .22s ease,background .22s ease,transform .22s ease}.nav-github:hover{transform:translateY(-1px);border-color:#3bd2f74a;background:#26c9f20c}
/* Staggered motion for the newer landing-page sections */
.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .6s cubic-bezier(.2,.75,.25,1),border-color .25s ease,background .25s ease}.is-visible .connect-steps article,.is-visible .github-metrics article,.is-visible .browser-table article,.is-visible .community-grid>a{opacity:1;transform:none}.is-visible .connect-steps article:nth-child(2),.is-visible .github-metrics article:nth-child(2),.is-visible .browser-table article:nth-child(2),.is-visible .community-grid>a:nth-child(2){transition-delay:90ms}.is-visible .connect-steps article:nth-child(3),.is-visible .github-metrics article:nth-child(3),.is-visible .browser-table article:nth-child(3),.is-visible .community-grid>a:nth-child(3){transition-delay:180ms}.is-visible .browser-table article:nth-child(4){transition-delay:270ms}.github-metrics article>span{transform-origin:center;transition:transform .3s ease}.github-metrics article:hover>span{transform:rotate(-8deg) scale(1.22)}.github-metrics article{transition-property:opacity,transform,border-color,background}.github-metrics article:hover{border-color:#39d4f83c;background:#0a1a23}.browser-table article{transition-property:opacity,transform,background}.browser-table article:hover{background:#0c1b24}.browser-logo{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease}.browser-table article:hover .browser-logo{transform:rotate(-7deg) scale(1.09);box-shadow:0 0 22px #39d6f425}.community.is-visible:before{animation:community-glow 8s ease-in-out infinite}.community-note span{animation:community-pulse 2.1s ease-in-out infinite}@keyframes community-glow{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-35px,24px) scale(1.08)}}@keyframes community-pulse{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
@media(max-width:900px){.nav{top:8px;margin-top:8px}}
@media(max-width:600px){.nav{height:58px;padding:0 10px;border-radius:12px}.nav .brand{font-size:18px}.nav .brand img{width:31px;height:31px}}
@media(prefers-reduced-motion:reduce){.nav .brand img,.nav nav a:after,.nav-github,.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a,.github-metrics article>span,.browser-logo,.community.is-visible:before,.community-note span{animation:none;transition:none}.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:1;transform:none}}
body{overflow-x:hidden}.landing{overflow:visible}.is-visible .community-grid>a:hover{transform:translateY(-6px)}
/* Keep the floating header clean and fit the expanded section navigation. */
.landing{background-image:linear-gradient(90deg,#ffffff05 1px,transparent 1px)}.nav nav{gap:19px}.nav nav a{font-size:12px;white-space:nowrap}
@media(max-width:1080px){.nav nav{gap:12px}.nav nav a{font-size:11px}.nav{padding-inline:13px}.nav .brand{font-size:19px}.nav-actions{gap:6px}.nav-github{padding-inline:10px}}
/* Compact mobile navigation */
.menu-toggle,.mobile-nav{display:none}.menu-toggle{position:relative;width:38px;height:38px;padding:0;border:1px solid #ffffff19;border-radius:9px;background:#08141c;color:#dcecf3;cursor:pointer}.menu-toggle i{position:absolute;left:10px;width:16px;height:1px;border-radius:2px;background:currentColor;transition:transform .25s ease,top .25s ease,opacity .2s ease}.menu-toggle i:nth-child(1){top:12px}.menu-toggle i:nth-child(2){top:18px}.menu-toggle i:nth-child(3){top:24px}.menu-toggle.active i:nth-child(1){top:18px;transform:rotate(45deg)}.menu-toggle.active i:nth-child(2){opacity:0}.menu-toggle.active i:nth-child(3){top:18px;transform:rotate(-45deg)}
@media(max-width:900px){.menu-toggle{display:block}.nav{isolation:isolate}.mobile-nav{position:absolute;z-index:-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;left:0;right:0;top:calc(100% - 6px);padding:20px 14px 14px;border:1px solid #ffffff17;border-top:0;border-radius:0 0 14px 14px;background:#07131bf2;box-shadow:0 25px 50px #0008;backdrop-filter:blur(20px);opacity:0;visibility:hidden;transform:translateY(-12px) scale(.985);transform-origin:top;transition:opacity .24s ease,transform .28s cubic-bezier(.2,.8,.2,1),visibility .24s}.mobile-nav.open{opacity:1;visibility:visible;transform:none}.mobile-nav a{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 13px;border:1px solid transparent;border-radius:9px;color:#8ba1ac;text-decoration:none;font-size:13px;background:#ffffff03;transition:color .2s ease,border-color .2s ease,background .2s ease}.mobile-nav a span{color:#34cef6;font:700 9px Inter,sans-serif}.mobile-nav a:hover,.mobile-nav a.active{color:#e5f3f8;border-color:#36d1f72c;background:#28c8f50a}.mobile-nav .mobile-client{grid-column:1/-1;justify-content:center;margin-top:3px;color:#04141b;background:#25c7f3;font-weight:800}.mobile-nav .mobile-client:hover{color:#04141b;background:#61d7fa}.mobile-client b{margin-left:auto}}
@media(max-width:600px){.nav-github{display:none}.mobile-nav{grid-template-columns:1fr}.mobile-nav .mobile-client{grid-column:auto}.menu-toggle{width:36px;height:36px}}
/* GitHub release timeline */
.releases{border-bottom:1px solid #ffffff0d}.release-list{display:grid;gap:10px}.release-list>a,.release-empty{display:grid;grid-template-columns:145px minmax(0,1fr) 28px;gap:25px;align-items:center;min-height:126px;padding:22px 25px;color:inherit;text-decoration:none;background:linear-gradient(110deg,#0a161e,#08131b);border:1px solid #ffffff10;border-radius:13px;transition:transform .25s ease,border-color .25s ease,background .25s ease}.release-list>a:hover,.release-empty:hover{transform:translateX(5px);border-color:#38d3f83c;background:linear-gradient(110deg,#0c1d27,#091720)}.release-meta{display:flex;flex-direction:column;gap:13px;padding-right:22px;border-right:1px solid #ffffff0d}.release-meta span{align-self:flex-start;padding:5px 8px;border-radius:99px;color:#42d8fa;background:#27caf312;font:800 9px Inter,sans-serif;text-transform:uppercase;letter-spacing:.08em}.release-meta time{color:#637b87;font-size:10px}.release-list>a>div:nth-child(2){min-width:0}.release-list small{display:block;margin-bottom:7px;color:#36cef5;font:700 10px Inter,sans-serif}.release-list strong{display:block;color:#dceaf0;font-size:16px}.release-list p,.release-empty p{max-width:760px;margin:8px 0 0;color:#738a95;font-size:12px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.release-list>a>b,.release-empty>b{color:#42d5f8;font-size:17px;transition:transform .2s ease}.release-list>a:hover>b,.release-empty:hover>b{transform:translate(3px,-3px)}.release-empty{grid-template-columns:50px 1fr 28px}.release-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:#3bd3f8;background:#25c8f111;border:1px solid #36d1f72b}.release-empty strong{font-size:16px}.release-all{display:inline-block;margin-top:23px;color:#67dcfb}
.release-list>a{opacity:0;transform:translateY(18px)}.is-visible .release-list>a{animation:release-in .55s cubic-bezier(.2,.8,.2,1) both}.is-visible .release-list>a:nth-child(2){animation-delay:90ms}.is-visible .release-list>a:nth-child(3){animation-delay:180ms}@keyframes release-in{to{opacity:1;transform:none}}
@media(max-width:700px){.release-list>a,.release-empty{grid-template-columns:1fr 24px;gap:14px;padding:19px}.release-meta{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:0 0 12px;border-right:0;border-bottom:1px solid #ffffff0d}.release-list p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.release-empty>span{display:none}}
@media(prefers-reduced-motion:reduce){.menu-toggle i,.mobile-nav,.release-list>a,.release-empty,.release-list>a>b,.release-empty>b{animation:none!important;transition:none}.release-list>a{opacity:1;transform:none}}
+238
View File
@@ -0,0 +1,238 @@
import { StrictMode, useEffect, useState, type ReactNode } from "react";
import { createRoot } from "react-dom/client";
import "./landing.css";
const github = "https://github.com/Moepchi/webspeak3";
const demo = "https://demo.webspeak3.de/";
const client = "https://client.webspeak3.de/";
type Lang = "de" | "en";
type PhoneStyle = "android" | "iphone";
function detectPhoneStyle(): PhoneStyle {
const device = `${navigator.userAgent} ${navigator.platform}`.toLowerCase();
return /iphone|ipad|ipod|macintosh|mac os/.test(device) ? "iphone" : "android";
}
const copy = {
de: {
nav: ["Features", "Status", "Architektur", "Einblick", "Installation", "Community"], client: "Client öffnen", hero: ["Direkt im Browser.", "Dein vertrauter Voice-Client, neu gedacht fürs Web. Ohne Installation, ohne Cloud-Zwang – einfach Tab öffnen und verbinden."],
demo: "Live Demo starten", github: "Auf GitHub ansehen", demoNote: "Die Demo nutzt simulierte Daten – ganz ohne echten Server.", built: "Gebaut mit",
featureKicker: "ALLES, WAS DU BRAUCHST", featureTitle: "Voice-Chat ohne Kompromisse.", featureIntro: "Die Funktionen, die du von einem Desktop-Client erwartest – in einer modernen, offenen Web-App.",
stepsKicker: "SO EINFACH GEHT'S", stepsTitle: "Server eingeben. Verbunden.", stepsText: "WebSpeak3 ist nicht an einen bestimmten Server gebunden. Öffne den Client, gib eine beliebige erreichbare Adresse ein und leg los.", steps: [["01", "Client öffnen", "Keine Installation und kein Konto nötig."], ["02", "Serveradresse eingeben", "Zum Beispiel voice.teamspeak.com."], ["03", "Direkt verbinden", "Voice, Chat und Channels stehen sofort bereit."]], connecting: "Verbindung wird hergestellt", connected: "Verbunden", nickname: "Nickname", connectNow: "Verbinden",
features: [["voice", "Voice ohne Umwege", "Opus-Audio mit geringer Latenz, Sprachaktivierung, Gerätewahl und anpassbarer Empfindlichkeit."],["chat", "Chat, der alles bündelt", "Channel-, Server- und private Chats in übersichtlichen Tabs – inklusive Server-Events."],["tree", "Live Channel Tree", "Channels, Nutzer, Status, Länderflaggen und Wechsel in Echtzeit – vertraut, aber fürs Web gedacht."],["whisper", "Gezieltes Whispern", "Sprich mit einzelnen Clients oder ganzen Channels, ohne deinen aktuellen Raum zu stören."],["docker", "Self-hosted by design", "Ein Container für Web-App, Gateway und Connector. Deine Instanz, deine Regeln – mit freier Serverwahl."],["mobile", "Unterwegs verbunden", "Eine echte responsive Oberfläche für schmale Displays – nicht nur Desktop in klein."]] as const,
privacyKicker: "PRIVATSPHÄRE EINGEBAUT", privacyTitle: ["Dein Web-Client.", "Freie Serverwahl."], privacyText: "Du hostest nur WebSpeak3 und sein Gateway selbst. Von dort verbindest du dich mit jedem erreichbaren TeamSpeak-Server – egal, wo er läuft oder wem er gehört.", privacyList: ["WebSpeak3 vollständig selbst hostbar", "Freie Wahl des TeamSpeak-Servers", "Am Zielserver ist keine Änderung nötig"], control: ["Kontrolle über", "deinen Client"],
architectureKicker: "UNTER DER HAUBE", architectureTitle: "Vom Tab zu jedem Server.", architectureText: "Dein selbst gehostetes Gateway übersetzt WebSocket-Nachrichten in das echte TeamSpeak-Protokoll und verbindet dich mit dem gewünschten Server.",
screenKicker: "FÜR JEDEN BILDSCHIRM", screenTitle: ["Desktop-Komfort.", "Mobile Freiheit."], screenText: "Dark oder Light, großer Monitor oder Smartphone: WebSpeak3 passt sich an, ohne Kernfunktionen zu verstecken.",
statusKicker: "OFFEN ENTWICKELT", statusTitle: "Beta, aber schon ziemlich gesprächig.", statusText: "WebSpeak3 ist ein aktiver Prototyp. Diese Übersicht zeigt transparent, was heute bereits funktioniert und wo noch Feinschliff folgt.", statusLabels: ["Verfügbar", "In Arbeit", "Als Nächstes"], statusCards: [["Voice, Chat & Channel Tree", "Echte TS3/TS6-Verbindungen, Opus-Audio, Whisper, Chats und Live-Status."], ["Browser-Kompatibilität", "Audioausgabe und Mikrofonverhalten werden für weitere Browser und Geräte verfeinert."], ["Mehr Komfort", "Weitere Desktop-Client-Details, stabilere Randfälle und Community-Feedback."]], roadmap: "Roadmap und Issues ansehen",
githubKicker: "LIVE VON GITHUB", githubTitle: "Offen entwickelt. Öffentlich nachvollziehbar.", githubText: "Aktuelle Projektdaten direkt aus dem öffentlichen Repository.", githubLabels: ["GitHub Stars", "Aktueller Release", "Zuletzt aktualisiert"], githubFallback: "Beta", releaseKicker: "WAS NEU IST", releaseTitle: "Die letzten Updates.", releaseText: "Releases und Änderungen direkt aus GitHub – automatisch aktuell.", releaseAction: "Alle Releases", releaseEmpty: "Noch keine veröffentlichten Release-Notizen. Die aktuelle Entwicklung kannst du auf GitHub verfolgen.", releaseFallback: "Aktuelle Entwicklung",
tourKicker: "LIVE ERKUNDEN", tourTitle: "Der Client, erklärt im Kontext.", tourText: "Wähle einen Bereich und sieh direkt, wo die wichtigsten Funktionen im WebSpeak3-Client sitzen.", tourItems: [["tree", "Channel Tree", "Channels, Nutzer und Status wechseln in Echtzeit."], ["chat", "Chat & Events", "Server-, Channel- und Direktnachrichten bleiben übersichtlich getrennt."], ["voice", "Voice Controls", "Mikrofon, Lautsprecher, Aktivierung und Pegel immer griffbereit."], ["whisper", "Whisper", "Gezielt einzelne Nutzer oder komplette Channels ansprechen."]],
installKicker: "IN MINUTEN STARTKLAR", installTitle: "Dein WebSpeak3. Jeder Server.", installText: "Hoste den Browser-Client selbst und verbinde dich anschließend mit jedem erreichbaren TeamSpeak-Server.", installSteps: [["01", "WebSpeak3 starten", "Passende Installationsart auswählen."], ["02", "Browser öffnen", "WebSpeak3 lokal oder über deine Domain aufrufen."], ["03", "Server frei wählen", "Beliebige TS-Adresse und deinen Nickname eingeben – fertig."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Entwicklung"], installGuide: "Installationsanleitung", copyCommand: "Befehl kopieren", copied: "Kopiert!",
browserKicker: "BROWSER-CHECK", browserTitle: "Bereit für deinen Browser.", browserText: "WebSpeak3 nutzt moderne Web-Audio-APIs. Die Kernfunktionen laufen browserübergreifend; einzelne Gerätefunktionen können abweichen.", browserRows: [["Edge", "Voll unterstützt", "Empfohlen unter Windows"], ["Chrome / Chromium", "Voll unterstützt", "Desktop und Android"], ["Firefox", "Unterstützt", "Audioausgabe kann je nach System abweichen"], ["Safari", "Experimentell", "Web-Audio-Verhalten wird weiter verfeinert"]],
communityKicker: "GEMEINSAM BESSER", communityTitle: "Dein Feedback formt WebSpeak3.", communityText: "WebSpeak3 entsteht offen auf GitHub. Melde Probleme, teile Ideen oder hilf direkt bei der Entwicklung.", communityCards: [["bug", "Fehler melden", "Etwas funktioniert nicht wie erwartet? Beschreibe das Problem und deine Umgebung.", "Bug erstellen"], ["idea", "Idee vorschlagen", "Dir fehlt eine Funktion oder du hast eine bessere Lösung im Kopf? Lass sie uns wissen.", "Idee teilen"], ["code", "Mitentwickeln", "Code, Tests, Dokumentation und Übersetzungen sind ausdrücklich willkommen.", "Repository öffnen"]], communityNote: "Offen, transparent und direkt mit den Menschen, die WebSpeak3 nutzen.",
faqKicker: "GUT ZU WISSEN", faqTitle: "Fragen, bevor du loslegst.", faqs: [["Bin ich an einen bestimmten TeamSpeak-Server gebunden?", "Nein. Du kannst jede erreichbare TS3- oder TS6-Serveradresse eingeben – unabhängig davon, wer den Server hostet oder wo er läuft."], ["Was muss ich selbst hosten?", "Nur WebSpeak3 mit Gateway und Connector. Der TeamSpeak-Server kann dein eigener, der eines Freundes oder ein beliebiger anderer erreichbarer Server sein."], ["Wo laufen meine Sprachdaten?", "Sie laufen über deine WebSpeak3-Instanz direkt zum ausgewählten TeamSpeak-Server – ohne eine zentrale WebSpeak3-Cloud."], ["Welche Browser werden unterstützt?", "Moderne Chromium- und Firefox-Browser sind das Hauptziel. Einzelne Audiofunktionen können je nach Browser und Gerät abweichen."], ["Benötigt WebSpeak3 Zugriff auf mein Mikrofon?", "Erst wenn du das Mikrofon aktivierst. Dann fragt der Browser wie üblich nach deiner Erlaubnis."], ["Ist das Projekt produktionsreif?", "WebSpeak3 ist aktuell als Beta beziehungsweise Prototyp gekennzeichnet. Teste deine gewünschte Umgebung daher vor einem breiten Einsatz."], ["Kann ich mithelfen?", "Ja. Fehlerberichte, Ideen und Beiträge sind über das öffentliche GitHub-Repository willkommen."]],
disclaimer: "Ein unabhängiges Open-Source-Projekt. Nicht mit TeamSpeak Systems GmbH verbunden.", imageAlt: "WebSpeak3 Client im Dark Mode",
},
en: {
nav: ["Features", "Status", "Architecture", "Explore", "Installation", "Community"], client: "Open client", hero: ["Right in your browser.", "The voice client you know, reimagined for the web. No installation, no cloud lock-in — just open a tab and connect."],
demo: "Launch live demo", github: "View on GitHub", demoNote: "The demo uses simulated data — no real server required.", built: "Built with",
featureKicker: "EVERYTHING YOU NEED", featureTitle: "Voice chat without compromise.", featureIntro: "Everything you expect from a desktop client — inside a modern, open web app.",
stepsKicker: "THAT SIMPLE", stepsTitle: "Enter a server. Connected.", stepsText: "WebSpeak3 is not tied to a particular server. Open the client, enter any reachable address and get started.", steps: [["01", "Open the client", "No installation or account required."], ["02", "Enter a server address", "For example voice.teamspeak.com."], ["03", "Connect directly", "Voice, chat and channels are ready right away."]], connecting: "Establishing connection", connected: "Connected", nickname: "Nickname", connectNow: "Connect",
features: [["voice", "Voice without detours", "Low-latency Opus audio, voice activation, device selection and adjustable sensitivity."],["chat", "Chat that brings it together", "Channel, server and private chats in clear tabs — including live server events."],["tree", "Live channel tree", "Channels, users, status icons, country flags and switching in real time — familiar, built for the web."],["whisper", "Targeted whisper", "Talk to individual clients or entire channels without interrupting your current room."],["docker", "Self-hosted by design", "One container for the web app, gateway and connector. Your instance, your rules — with free choice of server."],["mobile", "Connected on the go", "A truly responsive interface for narrow screens — not merely a shrunken desktop UI."]] as const,
privacyKicker: "PRIVACY BUILT IN", privacyTitle: ["Your web client.", "Your choice of server."], privacyText: "You only self-host WebSpeak3 and its gateway. From there, connect to any reachable TeamSpeak server — no matter where it runs or who hosts it.", privacyList: ["WebSpeak3 is fully self-hostable", "Free choice of TeamSpeak server", "No changes required on the target server"], control: ["Control over", "your client"],
architectureKicker: "UNDER THE HOOD", architectureTitle: "From your tab to any server.", architectureText: "Your self-hosted gateway translates WebSocket messages into the real TeamSpeak protocol and connects you to the server you choose.",
screenKicker: "FOR EVERY SCREEN", screenTitle: ["Desktop comfort.", "Mobile freedom."], screenText: "Dark or light, large display or smartphone: WebSpeak3 adapts without hiding core functionality.",
statusKicker: "BUILT IN THE OPEN", statusTitle: "Beta, but already quite talkative.", statusText: "WebSpeak3 is an active prototype. This overview is transparent about what works today and where refinement is still underway.", statusLabels: ["Available", "In progress", "Up next"], statusCards: [["Voice, chat & channel tree", "Real TS3/TS6 connections, Opus audio, whisper, chats and live status."], ["Browser compatibility", "Audio output and microphone behavior are being refined across more browsers and devices."], ["More polish", "More desktop-client details, resilient edge cases and community feedback."]], roadmap: "View roadmap and issues",
githubKicker: "LIVE FROM GITHUB", githubTitle: "Built in the open. Publicly traceable.", githubText: "Current project data directly from the public repository.", githubLabels: ["GitHub stars", "Current release", "Last updated"], githubFallback: "Beta", releaseKicker: "WHAT'S NEW", releaseTitle: "The latest updates.", releaseText: "Releases and changes straight from GitHub — always current.", releaseAction: "All releases", releaseEmpty: "No published release notes yet. Follow the current development on GitHub.", releaseFallback: "Current development",
tourKicker: "EXPLORE IT LIVE", tourTitle: "The client, explained in context.", tourText: "Choose an area to see exactly where WebSpeak3 keeps its most important features.", tourItems: [["tree", "Channel tree", "Channels, users and status update in real time."], ["chat", "Chat & events", "Server, channel and direct messages stay clearly separated."], ["voice", "Voice controls", "Microphone, speakers, activation and levels remain within reach."], ["whisper", "Whisper", "Talk directly to individual users or complete channels."]],
installKicker: "READY IN MINUTES", installTitle: "Your WebSpeak3. Any server.", installText: "Self-host the browser client, then connect to any reachable TeamSpeak server.", installSteps: [["01", "Start WebSpeak3", "Choose the installation method that fits."], ["02", "Open your browser", "Visit WebSpeak3 locally or through your domain."], ["03", "Choose any server", "Enter any TS address and your nickname — done."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Development"], installGuide: "Installation guide", copyCommand: "Copy command", copied: "Copied!",
browserKicker: "BROWSER CHECK", browserTitle: "Ready for your browser.", browserText: "WebSpeak3 uses modern Web Audio APIs. Core features work across browsers; individual device features may vary.", browserRows: [["Edge", "Fully supported", "Recommended on Windows"], ["Chrome / Chromium", "Fully supported", "Desktop and Android"], ["Firefox", "Supported", "Audio output may vary by system"], ["Safari", "Experimental", "Web Audio behavior is still being refined"]],
communityKicker: "BETTER TOGETHER", communityTitle: "Your feedback shapes WebSpeak3.", communityText: "WebSpeak3 is built openly on GitHub. Report problems, share ideas or contribute directly to development.", communityCards: [["bug", "Report a bug", "Something does not work as expected? Describe the issue and your environment.", "Create bug report"], ["idea", "Suggest an idea", "Missing a feature or have a better solution in mind? Let us know.", "Share an idea"], ["code", "Contribute", "Code, tests, documentation and translations are all welcome.", "Open repository"]], communityNote: "Open, transparent and directly shaped by the people who use WebSpeak3.",
faqKicker: "GOOD TO KNOW", faqTitle: "Questions before you start.", faqs: [["Am I tied to a specific TeamSpeak server?", "No. Enter any reachable TS3 or TS6 server address, regardless of where it runs or who hosts it."], ["What do I need to self-host?", "Only WebSpeak3 with its gateway and connector. The TeamSpeak server can be yours, a friend's, or any other reachable server."], ["Where does my voice data go?", "It travels through your WebSpeak3 instance directly to the selected TeamSpeak server — without a central WebSpeak3 cloud."], ["Which browsers are supported?", "Modern Chromium and Firefox browsers are the main targets. Individual audio features may vary by browser and device."], ["Does WebSpeak3 need microphone access?", "Only when you enable the microphone. Your browser will then ask for permission as usual."], ["Is the project production-ready?", "WebSpeak3 is currently marked as a beta/prototype. Test your intended environment before rolling it out broadly."], ["Can I contribute?", "Yes. Bug reports, ideas and contributions are welcome through the public GitHub repository."]],
disclaimer: "An independent open-source project. Not affiliated with TeamSpeak Systems GmbH.", imageAlt: "WebSpeak3 client in dark mode",
},
} as const;
function Icon({ name }: { name: string }) {
const paths: Record<string, ReactNode> = {
voice: <><path d="M12 3a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Z"/><path d="M5 10.5a7 7 0 0 0 14 0M12 17.5V22M8.5 22h7"/></>,
chat: <><path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z"/><path d="M8 9h8M8 13h5"/></>,
tree: <><path d="M5 4v16M5 8h6M5 16h6"/><rect x="11" y="5" width="8" height="6" rx="2"/><rect x="11" y="13" width="8" height="6" rx="2"/></>,
whisper: <><path d="M4 13a8 8 0 0 1 8-8M4 18A13 13 0 0 1 17 5"/><path d="M14 13a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12 15v6"/></>,
docker: <><path d="M3 11h18c0 6-3 9-9 9s-9-3-9-9Z"/><path d="M7 11V7h4v4M11 11V5h4v6M15 11V7h4v4"/></>,
mobile: <><rect x="6" y="2" width="12" height="20" rx="3"/><path d="M10 5h4M11 19h2"/></>,
lock: <><rect x="4" y="10" width="16" height="11" rx="3"/><path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3"/></>,
};
return <svg viewBox="0 0 24 24" aria-hidden="true">{paths[name]}</svg>;
}
const installCommands = [
"docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest",
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up -d",
"caddy reverse-proxy --from webspeak3.example.com --to localhost:8080",
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up --build",
] as const;
type GitHubStats = { stars: number | null; release: string | null; updated: string | null };
type GitHubRelease = { id: number; tag: string; title: string; body: string; date: string; url: string };
function Landing() {
const [lang, setLang] = useState<Lang>(() => {
const saved = localStorage.getItem("webspeak3:landing-language");
if (saved === "de" || saved === "en") return saved;
return navigator.language.toLowerCase().startsWith("de") ? "de" : "en";
});
const t = copy[lang];
const [activeTour, setActiveTour] = useState(0);
const [copied, setCopied] = useState(false);
const [phoneStyle] = useState<PhoneStyle>(detectPhoneStyle);
const [installMethod, setInstallMethod] = useState(0);
const [activeNav, setActiveNav] = useState("");
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [githubStats, setGithubStats] = useState<GitHubStats>({ stars: null, release: null, updated: null });
const [releases, setReleases] = useState<GitHubRelease[]>([]);
const copyInstallCommand = () => {
navigator.clipboard?.writeText(installCommands[installMethod]);
setCopied(true);
window.setTimeout(() => setCopied(false), 1800);
};
useEffect(() => {
localStorage.setItem("webspeak3:landing-language", lang);
document.documentElement.lang = lang;
document.title = lang === "de"
? "WebSpeak3 – TeamSpeak 3 im Browser | Open Source"
: "WebSpeak3 – TeamSpeak 3 in Your Browser | Open Source";
}, [lang]);
useEffect(() => {
const controller = new AbortController();
Promise.all([
fetch("https://api.github.com/repos/Moepchi/webspeak3", { signal: controller.signal }).then(response => response.ok ? response.json() : null),
fetch("https://api.github.com/repos/Moepchi/webspeak3/releases?per_page=3", { signal: controller.signal }).then(response => response.ok ? response.json() : []),
]).then(([repo, releaseData]) => {
const items = Array.isArray(releaseData) ? releaseData : [];
setGithubStats({
stars: typeof repo?.stargazers_count === "number" ? repo.stargazers_count : null,
release: typeof items[0]?.tag_name === "string" ? items[0].tag_name : null,
updated: typeof repo?.pushed_at === "string" ? repo.pushed_at : null,
});
setReleases(items.map((release: any) => ({
id: Number(release.id),
tag: String(release.tag_name ?? "Beta"),
title: String(release.name || release.tag_name || "WebSpeak3"),
body: String(release.body || "").replace(/[#>*_`[\]]/g, "").replace(/\r?\n+/g, " ").trim(),
date: String(release.published_at || release.created_at || ""),
url: String(release.html_url || `${github}/releases`),
})));
}).catch(() => undefined);
return () => controller.abort();
}, []);
useEffect(() => {
const closeOnEscape = (event: KeyboardEvent) => event.key === "Escape" && setMobileMenuOpen(false);
window.addEventListener("keydown", closeOnEscape);
return () => window.removeEventListener("keydown", closeOnEscape);
}, []);
useEffect(() => {
const elements = document.querySelectorAll<HTMLElement>(".reveal");
const observer = new IntersectionObserver(
entries => entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
}
}),
{ threshold: 0.14 },
);
elements.forEach(element => observer.observe(element));
return () => observer.disconnect();
}, []);
useEffect(() => {
const sections = ["features", "status", "architecture", "tour", "install", "community"]
.map(id => document.getElementById(id))
.filter((section): section is HTMLElement => section !== null);
const updateActiveSection = () => {
const marker = window.innerHeight * 0.34;
let current = "";
sections.forEach(section => {
if (section.getBoundingClientRect().top <= marker) current = section.id;
});
setActiveNav(current);
};
updateActiveSection();
window.addEventListener("scroll", updateActiveSection, { passive: true });
window.addEventListener("resize", updateActiveSection);
return () => {
window.removeEventListener("scroll", updateActiveSection);
window.removeEventListener("resize", updateActiveSection);
};
}, []);
return <div className="landing">
<div className="ambient ambient-one"></div><div className="ambient ambient-two"></div>
<header className="nav shell">
<a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a>
<nav aria-label={lang === "de" ? "Hauptnavigation" : "Main navigation"}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => setActiveNav(id)}>{t.nav[index]}</a>)}</nav>
<div className="nav-actions"><div className="language-switch" role="group" aria-label={lang === "de" ? "Sprache wählen" : "Choose language"}><button className={lang === "de" ? "active" : ""} onClick={() => { setLang("de"); setMobileMenuOpen(false); }} aria-pressed={lang === "de"}>DE</button><button className={lang === "en" ? "active" : ""} onClick={() => { setLang("en"); setMobileMenuOpen(false); }} aria-pressed={lang === "en"}>EN</button></div><a className="nav-github" href={github} target="_blank" rel="noreferrer">GitHub <span>↗</span></a><button className={`menu-toggle ${mobileMenuOpen ? "active" : ""}`} type="button" aria-label={lang === "de" ? "Navigation öffnen" : "Open navigation"} aria-expanded={mobileMenuOpen} aria-controls="mobile-navigation" onClick={() => setMobileMenuOpen(open => !open)}><i></i><i></i><i></i></button></div>
<div className={`mobile-nav ${mobileMenuOpen ? "open" : ""}`} id="mobile-navigation" aria-hidden={!mobileMenuOpen}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => { setActiveNav(id); setMobileMenuOpen(false); }}><span>0{index + 1}</span>{t.nav[index]}</a>)}<a className="mobile-client" href={client}>{t.client}<b>→</b></a></div>
</header>
<main id="top">
<section className="hero shell">
<div className="hero-copy">
<div className="eyebrow"><span></span> Open Source · Self-hosted · Beta</div>
<h1>TeamSpeak 3.<br/><em>{t.hero[0]}</em></h1>
<p>{t.hero[1]}</p>
<div className="actions hero-actions"><a className="button primary" href={client}>{t.client} <span>→</span></a><a className="button secondary" href={demo}>{t.demo}</a><a className="button tertiary" href={github} target="_blank" rel="noreferrer">{t.github} ↗</a></div>
<p className="demo-note"><span>●</span> {t.demoNote}</p>
<div className="hero-stats"><span><strong>&lt; 30 ms</strong> Voice latency</span><span><strong>100%</strong> self-hosted</span><span><strong>MIT</strong> open source</span></div>
</div>
<div className="hero-visual">
<div className="glow"></div>
<div className="app-frame"><div className="frame-bar"><i></i><i></i><i></i><span>WebSpeak3 · Demo Server</span></div><img src="../screenshots/webspeak_dark.png" alt={t.imageAlt}/></div>
<div className="signal-card"><span className="signal">▥</span><div><strong>Voice connected</strong><small>Opus · 48 kHz · 24 ms</small></div><b></b></div>
<div className="voice-waves" aria-hidden="true">{[1,2,3,4,5,6,7,8,9,10,11,12].map(n=><i key={n}></i>)}</div>
</div>
</section>
<section className="trust shell reveal"><span>{t.built}</span>{["React","TypeScript","Vite","Node.js","Rust","Docker"].map(x=><strong key={x}>{x}</strong>)}</section>
<section className="section shell quick-connect reveal"><div className="section-head"><div><span className="kicker">{t.stepsKicker}</span><h2>{t.stepsTitle}</h2></div><p>{t.stepsText}</p></div><div className="connect-layout"><div className="connect-steps">{t.steps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="connect-demo"><div className="demo-window-bar"><i></i><i></i><i></i><span>WebSpeak3</span></div><label><small>TeamSpeak Server</small><div className="fake-input"><span className="typed-server">voice.teamspeak.com</span><b></b></div></label><label><small>{t.nickname}</small><div className="fake-input"><span>WebSpeak User</span></div></label><button onClick={() => window.location.assign(client)} aria-label={t.client}>{t.connectNow}<span>→</span></button><div className="connect-progress"><i></i><span className="progress-connecting">{t.connecting}…</span><span className="progress-connected">✓ {t.connected} · voice.teamspeak.com</span></div></div></div></section>
<section className="section shell reveal" id="features">
<div className="section-head"><div><span className="kicker">{t.featureKicker}</span><h2>{t.featureTitle}</h2></div><p>{t.featureIntro}</p></div>
<div className="feature-grid">{t.features.map(([icon,title,description],index)=><article className={`feature-${index + 1}`} key={icon}><span className="card-index">0{index + 1}</span><div className="icon"><Icon name={icon}/></div><h3>{title}</h3><p>{description}</p>{index === 0 && <div className="mini-wave" aria-hidden="true">{[1,2,3,4,5,6,7,8,9].map(n=><i key={n}></i>)}</div>}</article>)}</div>
</section>
<section className="privacy reveal"><div className="shell privacy-inner"><div className="privacy-copy"><div className="icon large"><Icon name="lock"/></div><span className="kicker">{t.privacyKicker}</span><h2>{t.privacyTitle[0]}<br/>{t.privacyTitle[1]}</h2><p>{t.privacyText}</p><ul>{t.privacyList.map(item => <li key={item}>{item}</li>)}</ul></div><div className="privacy-card"><div className="orbit orbit-outer"><i></i></div><div className="orbit orbit-inner"><i></i></div><span>SELF-HOSTED</span><strong>100%</strong><small>{t.control[0]}<br/>{t.control[1]}</small></div></div></section>
<section className="section shell status reveal" id="status"><div className="section-head"><div><span className="kicker">{t.statusKicker}</span><h2>{t.statusTitle}</h2></div><p>{t.statusText}</p></div><div className="status-grid">{t.statusCards.map(([title, description], index) => <article key={title}><span className={`status-dot status-${index}`}></span><small>{t.statusLabels[index]}</small><h3>{title}</h3><p>{description}</p></article>)}</div><a className="text-link status-link" href={`${github}/issues`} target="_blank" rel="noreferrer">{t.roadmap} <span>↗</span></a></section>
<section className="github-live reveal"><div className="shell github-inner"><div className="github-copy"><span className="kicker">{t.githubKicker}</span><h2>{t.githubTitle}</h2><p>{t.githubText}</p><a className="text-link" href={github} target="_blank" rel="noreferrer">github.com/Moepchi/webspeak3 ↗</a></div><div className="github-metrics"><article><span>★</span><strong>{githubStats.stars === null ? "—" : githubStats.stars.toLocaleString(lang === "de" ? "de-DE" : "en-US")}</strong><small>{t.githubLabels[0]}</small></article><article><span>↗</span><strong>{githubStats.release ?? t.githubFallback}</strong><small>{t.githubLabels[1]}</small></article><article><span>↻</span><strong>{githubStats.updated ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(githubStats.updated)) : "—"}</strong><small>{t.githubLabels[2]}</small></article></div></div></section>
<section className="section shell releases reveal"><div className="section-head"><div><span className="kicker">{t.releaseKicker}</span><h2>{t.releaseTitle}</h2></div><p>{t.releaseText}</p></div>{releases.length > 0 ? <div className="release-list">{releases.map((release, index) => <a href={release.url} target="_blank" rel="noreferrer" key={release.id}><div className="release-meta"><span>{index === 0 ? "Latest" : `0${index + 1}`}</span><time dateTime={release.date}>{release.date ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(release.date)) : "GitHub"}</time></div><div><small>{release.tag}</small><strong>{release.title}</strong><p>{release.body || t.releaseFallback}</p></div><b>↗</b></a>)}</div> : <a className="release-empty" href={`${github}/commits/main`} target="_blank" rel="noreferrer"><span>↻</span><div><strong>{t.releaseFallback}</strong><p>{t.releaseEmpty}</p></div><b>↗</b></a>}<a className="text-link release-all" href={`${github}/releases`} target="_blank" rel="noreferrer">{t.releaseAction} <span>↗</span></a></section>
<section className="section shell architecture reveal" id="architecture"><div className="section-head centered"><div><span className="kicker">{t.architectureKicker}</span><h2>{t.architectureTitle}</h2></div><p>{t.architectureText}</p></div><div className="flow">{[["Browser","React + Web Audio"],["Gateway","WebSocket · Node.js"],["Rust Connector","tsclientlib + Opus"],["TeamSpeak Server","TS3 / TS6 Protocol"]].map((x,i)=><div className="flow-wrap" style={{"--delay": `${i * 120}ms`} as React.CSSProperties} key={x[0]}><div className="flow-node"><span>0{i+1}</span><strong>{x[0]}</strong><small>{x[1]}</small></div>{i<3&&<div className="flow-arrow" aria-hidden="true"><i></i></div>}</div>)}</div></section>
<section className="section shell showcase reveal"><div className="showcase-copy"><span className="kicker">{t.screenKicker}</span><h2>{t.screenTitle[0]}<br/>{t.screenTitle[1]}</h2><p>{t.screenText}</p><div className="theme-pills"><span>☾ Dark Mode</span><span>☀ Light Mode</span><span>⌁ Responsive</span></div></div><div className="screens"><img className="screen-desktop" src="../screenshots/webspeak_current.png" alt="WebSpeak3 Desktop Client"/><div className={`phone-frame phone-${phoneStyle}`} data-device-frame={phoneStyle}><i className="phone-button phone-button-left" aria-hidden="true"></i><i className="phone-button phone-button-right" aria-hidden="true"></i><div className="phone-sensor" aria-hidden="true"><span></span><b></b></div><img src="../screenshots/webspeak_mobile.png" alt="WebSpeak3 Mobile Client"/><div className="phone-home" aria-hidden="true"></div></div></div></section>
<section className="section shell product-tour reveal" id="tour"><div className="section-head"><div><span className="kicker">{t.tourKicker}</span><h2>{t.tourTitle}</h2></div><p>{t.tourText}</p></div><div className="tour-layout"><div className="tour-screen"><div className="tour-image"><img src="../screenshots/webspeak_current.png" alt={t.imageAlt}/>{t.tourItems.map((item, index) => <button key={item[0]} className={`hotspot hotspot-${item[0]} ${activeTour === index ? "active" : ""}`} onClick={() => setActiveTour(index)} aria-label={item[1]} aria-pressed={activeTour === index}><span>{index + 1}</span></button>)}</div><div className="tour-caption"><span>0{activeTour + 1}</span><div><strong>{t.tourItems[activeTour][1]}</strong><p>{t.tourItems[activeTour][2]}</p></div></div></div><div className="tour-tabs">{t.tourItems.map((item, index) => <button key={item[0]} className={activeTour === index ? "active" : ""} onClick={() => setActiveTour(index)}><span>0{index + 1}</span><div><strong>{item[1]}</strong><small>{item[2]}</small></div></button>)}</div></div></section>
<section className="install shell reveal" id="install"><span className="kicker">{t.installKicker}</span><h2>{t.installTitle}</h2><p>{t.installText}</p><div className="install-steps">{t.installSteps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="install-tabs" role="tablist">{t.installTabs.map((label, index) => <button key={label} role="tab" aria-selected={installMethod === index} className={installMethod === index ? "active" : ""} onClick={() => { setInstallMethod(index); setCopied(false); }}>{label}</button>)}</div><div className="command"><code><i>$</i> {installCommands[installMethod]}</code><button className={copied ? "copied" : ""} onClick={copyInstallCommand} aria-label={t.copyCommand}>{copied ? `✓ ${t.copied}` : "⧉"}</button></div><div className="actions centered-actions"><a className="button primary" href={`${github}#-installation`} target="_blank" rel="noreferrer">{t.installGuide} <span>→</span></a><a className="text-link" href="https://hub.docker.com/r/moepchi/webspeak3" target="_blank" rel="noreferrer">Docker Hub ↗</a></div></section>
<section className="section shell browser-check reveal"><div className="section-head"><div><span className="kicker">{t.browserKicker}</span><h2>{t.browserTitle}</h2></div><p>{t.browserText}</p></div><div className="browser-table">{t.browserRows.map(([browserName, status, note], index) => <article key={browserName}><span className={`browser-logo browser-${index}`}>{browserName.slice(0, 1)}</span><strong>{browserName}</strong><b>{status}</b><small>{note}</small></article>)}</div></section>
<section className="community reveal" id="community"><div className="shell community-inner"><div className="section-head"><div><span className="kicker">{t.communityKicker}</span><h2>{t.communityTitle}</h2></div><p>{t.communityText}</p></div><div className="community-grid">{t.communityCards.map(([kind, title, description, action], index) => { const href = index === 0 ? `${github}/issues/new?labels=bug` : index === 1 ? `${github}/issues/new?labels=enhancement` : github; return <a href={href} target="_blank" rel="noreferrer" key={kind}><span className={`community-icon community-${kind}`}>{kind === "bug" ? "!" : kind === "idea" ? "✦" : "‹/›"}</span><div><strong>{title}</strong><p>{description}</p><small>{action} <b>↗</b></small></div></a>; })}</div><p className="community-note"><span>●</span>{t.communityNote}</p></div></section>
<section className="section shell faq reveal"><div className="section-head centered"><div><span className="kicker">{t.faqKicker}</span><h2>{t.faqTitle}</h2></div></div><div className="faq-list">{t.faqs.map(([question, answer], index) => <details key={question} open={index === 0}><summary><span>0{index + 1}</span>{question}<i>+</i></summary><p>{answer}</p></details>)}</div></section>
</main>
<footer><div className="shell footer-inner"><a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a><p>{t.disclaimer}</p><div><a href={`${github}/blob/main/LICENSE`}>MIT License</a><a href={github}>GitHub</a><a href={`${github}/issues`}>Issues</a></div></div></footer>
</div>;
}
createRoot(document.getElementById("landing-root")!).render(<StrictMode><Landing /></StrictMode>);
+71
View File
@@ -0,0 +1,71 @@
import { unzipSync } from "fflate";
import type { SoundEventId } from "./sounds";
const AUDIO_EXTENSIONS = [".wav", ".mp3", ".ogg", ".m4a"];
const MIME_BY_EXTENSION: Record<string, string> = {
".wav": "audio/wav",
".mp3": "audio/mpeg",
".ogg": "audio/ogg",
".m4a": "audio/mp4",
};
/** Real .ts3soundpack files use TeamSpeak's own internal event names, which
* vary between client versions and aren't documented anywhere stable - so
* this matches by keyword against the filename (soundpacks are zips of
* individual audio files, not proprietary-encoded) rather than depending on
* an exact manifest format. Falls back to a "not matched" list the caller
* can surface, instead of silently dropping unrecognized files. */
const EVENT_KEYWORDS: Record<SoundEventId, string[]> = {
connect: ["connectionaccepted", "connectionestablished", "youhaveconnected", "connect"],
disconnect: ["connectionlost", "connectiondisconnected", "youhavebeendisconnected", "disconnect"],
clientJoin: ["userenteredchannel", "userenteredvisibility", "cliententerview", "userjoined", "enter"],
clientLeave: ["userleftchannel", "userleftvisibility", "clientleftview", "userleave", "userleft", "leave"],
message: ["textmessagereceived", "chatmessage", "newmessage", "message"],
poke: ["gotpoked", "poke"],
};
function normalize(filename: string): string {
const base = filename.slice(filename.lastIndexOf("/") + 1);
const dot = base.lastIndexOf(".");
return (dot === -1 ? base : base.slice(0, dot)).toLowerCase().replace(/[^a-z0-9]/g, "");
}
function extensionOf(filename: string): string | null {
const lower = filename.toLowerCase();
return AUDIO_EXTENSIONS.find((ext) => lower.endsWith(ext)) ?? null;
}
export interface SoundpackImportResult {
matched: Partial<Record<SoundEventId, { name: string; blob: Blob }>>;
unmatchedFiles: string[];
}
export async function parseSoundpack(file: File): Promise<SoundpackImportResult> {
const buffer = new Uint8Array(await file.arrayBuffer());
const entries = unzipSync(buffer, {
filter: (entry) => extensionOf(entry.name) !== null,
});
const matched: SoundpackImportResult["matched"] = {};
const unmatchedFiles: string[] = [];
for (const [name, data] of Object.entries(entries)) {
const ext = extensionOf(name);
if (!ext) continue;
const key = normalize(name);
const eventId = (Object.keys(EVENT_KEYWORDS) as SoundEventId[]).find(
(id) => !matched[id] && EVENT_KEYWORDS[id].some((keyword) => key.includes(keyword))
);
if (eventId) {
matched[eventId] = {
name: name.slice(name.lastIndexOf("/") + 1),
blob: new Blob([data.slice()], { type: MIME_BY_EXTENSION[ext] }),
};
} else {
unmatchedFiles.push(name);
}
}
return { matched, unmatchedFiles };
}
+50 -5
View File
@@ -61,13 +61,12 @@ export class MicCapture {
private deviceId?: string;
private echoCancellation: boolean;
private noiseSuppression: boolean;
private context: AudioContext;
threshold: number;
hangoverSeconds: number;
constructor(
private context: AudioContext,
options: MicCaptureOptions
) {
constructor(context: AudioContext, options: MicCaptureOptions) {
this.context = context;
this.onFrame = options.onFrame;
this.onActivity = options.onActivity;
this.onLevel = options.onLevel;
@@ -135,6 +134,11 @@ export class MicCapture {
this.silence.connect(this.context.destination);
}
/** The raw mic input node, e.g. to additionally route it into a recorder. */
getSourceNode(): AudioNode | null {
return this.source;
}
/** Routes the raw mic signal to `destination` too, so you can hear yourself (a mic test), until disabled again. */
setMonitoring(enabled: boolean, destination: AudioNode): void {
if (!this.source) return;
@@ -167,6 +171,45 @@ export class MicCapture {
}
}
function writeAsciiString(view: DataView, offset: number, text: string): void {
for (let i = 0; i < text.length; i++) view.setUint8(offset + i, text.charCodeAt(i));
}
/** Encodes raw stereo float samples (range -1..1) as an uncompressed 16-bit PCM WAV file. */
export function encodeWavStereo(left: Float32Array, right: Float32Array, sampleRate: number): Blob {
const numChannels = 2;
const bytesPerSample = 2;
const blockAlign = numChannels * bytesPerSample;
const dataSize = left.length * blockAlign;
const buffer = new ArrayBuffer(44 + dataSize);
const view = new DataView(buffer);
writeAsciiString(view, 0, "RIFF");
view.setUint32(4, 36 + dataSize, true);
writeAsciiString(view, 8, "WAVE");
writeAsciiString(view, 12, "fmt ");
view.setUint32(16, 16, true);
view.setUint16(20, 1, true); // PCM
view.setUint16(22, numChannels, true);
view.setUint32(24, sampleRate, true);
view.setUint32(28, sampleRate * blockAlign, true);
view.setUint16(32, blockAlign, true);
view.setUint16(34, 16, true);
writeAsciiString(view, 36, "data");
view.setUint32(40, dataSize, true);
let offset = 44;
for (let i = 0; i < left.length; i++) {
const l = Math.max(-1, Math.min(1, left[i]));
const r = Math.max(-1, Math.min(1, right[i]));
view.setInt16(offset, l < 0 ? l * 0x8000 : l * 0x7fff, true);
view.setInt16(offset + 2, r < 0 ? r * 0x8000 : r * 0x7fff, true);
offset += blockAlign;
}
return new Blob([buffer], { type: "audio/wav" });
}
/** Output ("audiooutput") devices available for playback, e.g. for a device picker. */
export async function listAudioOutputDevices(): Promise<MediaDeviceInfo[]> {
if (!navigator.mediaDevices) return [];
@@ -222,8 +265,10 @@ export class AudioPlayer {
private destination: MediaStreamAudioDestinationNode;
private element: SinkableElement;
private gain: GainNode;
private context: AudioContext;
constructor(private context: AudioContext) {
constructor(context: AudioContext) {
this.context = context;
this.destination = context.createMediaStreamDestination();
this.gain = context.createGain();
this.gain.connect(this.destination);
+34 -2
View File
@@ -1,7 +1,39 @@
import { defineConfig } from 'vite'
import { defineConfig, type Plugin } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'node:path'
function landingSlashRedirect(): Plugin {
const redirect = (server: { middlewares: { use: (handler: (req: { url?: string }, res: { statusCode: number; setHeader: (name: string, value: string) => void; end: () => void }, next: () => void) => void) => void } }) => {
server.middlewares.use((req, res, next) => {
if (req.url === '/landing') {
res.statusCode = 302
res.setHeader('Location', '/landing/')
res.end()
return
}
next()
})
}
return {
name: 'landing-slash-redirect',
configureServer: redirect,
configurePreviewServer: redirect,
}
}
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [landingSlashRedirect(), react()],
// Set by the GitHub Pages workflow to the repo subpath (e.g. /webspeak3/);
// the normal Docker build serves from the domain root and leaves this unset.
base: process.env.VITE_BASE_PATH || '/',
build: {
rollupOptions: {
input: {
app: resolve(__dirname, 'index.html'),
landing: resolve(__dirname, 'landing/index.html'),
},
},
},
})