mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Compare commits
195
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffb542d9bd | ||
|
|
e02a41d855 | ||
|
|
999262b6df | ||
|
|
9e61f21316 | ||
|
|
a720f72943 | ||
|
|
9a4639f76c | ||
|
|
bf6ab112ed | ||
|
|
9e4ff35e8e | ||
|
|
5b61def4b2 | ||
|
|
0a9dd545b1 | ||
|
|
a82c99972e | ||
|
|
8ce9848493 | ||
|
|
440e7b7ae8 | ||
|
|
14aa44c1c9 | ||
|
|
b808e2ec99 | ||
|
|
b4bd62c1b5 | ||
|
|
7f8fada880 | ||
|
|
977f5d2c3b | ||
|
|
e76278c5b8 | ||
|
|
bc2d1f65a0 | ||
|
|
d0fc97d921 | ||
|
|
7b98cb2d7c | ||
|
|
2e6b295185 | ||
|
|
6e2278498c | ||
|
|
ae7c24bd37 | ||
|
|
ced63fdb2a | ||
|
|
d860aa61e5 | ||
|
|
341a1644a6 | ||
|
|
97421ff2de | ||
|
|
d64b25f22f | ||
|
|
be7247f3f6 | ||
|
|
bcdbabe201 | ||
|
|
3c24ddc7d3 | ||
|
|
94b290fa06 | ||
|
|
bf6008f857 | ||
|
|
632e77ccc8 | ||
|
|
aa324274a4 | ||
|
|
00c8cfac06 | ||
|
|
ff570d9131 | ||
|
|
b5a5ec5236 | ||
|
|
5a639628a9 | ||
|
|
7a0a64b518 | ||
|
|
935b867c76 | ||
|
|
cc70bc4736 | ||
|
|
603cedd907 | ||
|
|
803cefd653 | ||
|
|
01faa6593c | ||
|
|
e28e89bc60 | ||
|
|
8d8d942038 | ||
|
|
e28e18c88c | ||
|
|
2615904b1e | ||
|
|
5e7add6dc8 | ||
|
|
983ce1e105 | ||
|
|
7d14c3409e | ||
|
|
882265beae | ||
|
|
0aefd4198b | ||
|
|
3a91a8db07 | ||
|
|
51d7e107e5 | ||
|
|
1e71e43bd7 | ||
|
|
c2b52b323d | ||
|
|
bbb44b3eaa | ||
|
|
bda908029b | ||
|
|
45e4af026f | ||
|
|
ef0e3fad7d | ||
|
|
839e26e4a3 | ||
|
|
e37e090ab2 | ||
|
|
9b836d5830 | ||
|
|
d36b94a496 | ||
|
|
b84dc0faac | ||
|
|
4752971f31 | ||
|
|
93b809ff9a | ||
|
|
fa3fa2e4ad | ||
|
|
16e3cd8dd7 | ||
|
|
9d736dbfdd | ||
|
|
5268c8f57a | ||
|
|
deabfbff3c | ||
|
|
81107c659e | ||
|
|
bf4507ae9d | ||
|
|
12e482b223 | ||
|
|
23e61c86b3 | ||
|
|
d67053f2dd | ||
|
|
728c900bb2 | ||
|
|
4b245d69d3 | ||
|
|
7b3cb5ef09 | ||
|
|
c0778c8adb | ||
|
|
8e934c6646 | ||
|
|
a9f0586b88 | ||
|
|
ddc7ce5dec | ||
|
|
a79f2aa4a7 | ||
|
|
2b668a7f73 | ||
|
|
eba1e1af92 | ||
|
|
034be9cc77 | ||
|
|
92479d8a38 | ||
|
|
37a84e4cee | ||
|
|
e89d83c4bb | ||
|
|
57447fdd11 | ||
|
|
b87eb0f4b7 | ||
|
|
4124071371 | ||
|
|
295af1781e | ||
|
|
914afd19bd | ||
|
|
032969d16a | ||
|
|
0428f80af8 | ||
|
|
3c58650c1c | ||
|
|
395aa3e6b6 | ||
|
|
da4f416e32 | ||
|
|
d54c4d0dc2 | ||
|
|
c0e7f7412e | ||
|
|
cfd9503313 | ||
|
|
ed9fb80a9b | ||
|
|
9285e50412 | ||
|
|
f113dbbecb | ||
|
|
d319d989da | ||
|
|
f29a1da7d4 | ||
|
|
587c0048e3 | ||
|
|
a98cf59111 | ||
|
|
eb7cb78042 | ||
|
|
dd8528d3cb | ||
|
|
dcb57aedbe | ||
|
|
bd33b962fe | ||
|
|
7b52c0baa4 | ||
|
|
effabafa23 | ||
|
|
258d108f59 | ||
|
|
390a2b5749 | ||
|
|
41e415d98b | ||
|
|
934c41fefd | ||
|
|
83afe6c2cd | ||
|
|
667012d710 | ||
|
|
3ffd7e5ce5 | ||
|
|
ae8f1f764b | ||
|
|
42ac4e9aaa | ||
|
|
961084e9a0 | ||
|
|
faeb269fdd | ||
|
|
f44327aabc | ||
|
|
7357dfa85d | ||
|
|
ceeba24f86 | ||
|
|
817aa0f5f6 | ||
|
|
bc6022b45f | ||
|
|
8d17514774 | ||
|
|
d62e47ca63 | ||
|
|
45af66f84b | ||
|
|
be946c2a5e | ||
|
|
732a905f32 | ||
|
|
77e147cc27 | ||
|
|
b0495367cb | ||
|
|
73303e1229 | ||
|
|
741528220e | ||
|
|
0b34e7ecfb | ||
|
|
6ebc3e22e0 | ||
|
|
fa4daf7831 | ||
|
|
f48c1cc91a | ||
|
|
cc715e24b2 | ||
|
|
2ee6d1f0b5 | ||
|
|
06f38b4582 | ||
|
|
5024bf9856 | ||
|
|
478e5c0384 | ||
|
|
550a8896a5 | ||
|
|
e7d5b3be0a | ||
|
|
9652a3efe5 | ||
|
|
4d549887d5 | ||
|
|
686458807a | ||
|
|
b505d68f56 | ||
|
|
13d3f56c89 | ||
|
|
4d0954054c | ||
|
|
115cd7150e | ||
|
|
7083e8e29f | ||
|
|
15e215d892 | ||
|
|
b57d32bc18 | ||
|
|
c2e4760e37 | ||
|
|
087b8a90c5 | ||
|
|
6107501445 | ||
|
|
11a413d2b6 | ||
|
|
9f1a63c9d3 | ||
|
|
7776a71e84 | ||
|
|
5b5f4caf79 | ||
|
|
dc35526727 | ||
|
|
20a861caff | ||
|
|
6c764578a7 | ||
|
|
d48172f4d1 | ||
|
|
e2a09fbb43 | ||
|
|
1d20eb15de | ||
|
|
42f33840a5 | ||
|
|
48f5e35a38 | ||
|
|
20d1944dc9 | ||
|
|
fd5a4cd6e0 | ||
|
|
701bd867fc | ||
|
|
b6448e65e8 | ||
|
|
bf85173a54 | ||
|
|
cf5ecb1455 | ||
|
|
9206b12e25 | ||
|
|
5d2b02feb0 | ||
|
|
77165af5e4 | ||
|
|
a118c0f58e | ||
|
|
3db5d90d89 | ||
|
|
ecdd69bceb | ||
|
|
27ac828641 |
No files matched your search
@@ -1,5 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Question / Discussion
|
||||
url: https://github.com/Moepchi/webspeak3/discussions
|
||||
url: https://github.com/WebSpeak3/webspeak3/discussions
|
||||
about: Ask a question or discuss an idea before filing an issue.
|
||||
@@ -0,0 +1,133 @@
|
||||
"""Post a short release announcement to Bluesky.
|
||||
|
||||
Reads the release (tag, url, body) as JSON from stdin, e.g. from
|
||||
`gh release view <tag> --json tagName,url,body`. The post is the first
|
||||
paragraph of the release notes plus the link and a preview card. Notes containing
|
||||
<!-- no-social --> are skipped. DRY_RUN=true logs in (if credentials are set)
|
||||
and prints the post without publishing it.
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
from datetime import datetime, timezone
|
||||
|
||||
BLUESKY_LIMIT = 300
|
||||
|
||||
|
||||
def build_post(release: dict) -> str | None:
|
||||
body = release.get("body") or ""
|
||||
if "<!-- no-social -->" in body:
|
||||
return None
|
||||
summary = body.strip().split("\n\n")[0].strip()
|
||||
if summary.startswith("#"):
|
||||
summary = ""
|
||||
summary = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", summary)
|
||||
summary = " ".join(re.sub(r"[`*_]", "", summary).split())
|
||||
head = f"WebSpeak3 {release['tagName']}"
|
||||
tail = f"\n\n{release['url']}"
|
||||
room = BLUESKY_LIMIT - len(head) - len(tail) - 2
|
||||
if len(summary) > room:
|
||||
# Prefer dropping whole sentences over cutting one off mid-word.
|
||||
cut = summary[:room].rfind(". ")
|
||||
summary = summary[: cut + 1] if cut > 0 else summary[: room - 1].rstrip() + "…"
|
||||
return f"{head}: {summary}{tail}" if summary else head + tail
|
||||
|
||||
|
||||
def xrpc(method: str, payload: dict | bytes, token: str | None = None, content_type: str = "application/json") -> dict:
|
||||
req = urllib.request.Request(
|
||||
f"https://bsky.social/xrpc/{method}",
|
||||
data=payload if isinstance(payload, bytes) else json.dumps(payload).encode(),
|
||||
headers={"Content-Type": content_type, **({"Authorization": f"Bearer {token}"} if token else {})},
|
||||
)
|
||||
with urllib.request.urlopen(req, timeout=30) as res:
|
||||
return json.load(res)
|
||||
|
||||
|
||||
def fetch(url: str, attempt: int = 1) -> tuple[bytes, str]:
|
||||
req = urllib.request.Request(url, headers={"User-Agent": "webspeak3-release-announcer"})
|
||||
try:
|
||||
with urllib.request.urlopen(req, timeout=30) as res:
|
||||
return res.read(), res.headers.get_content_type()
|
||||
except urllib.error.HTTPError as err:
|
||||
# GitHub's image service throttles right after a release, often for over a minute.
|
||||
# 15+30+45+60 s stays well inside the job's 5-minute timeout.
|
||||
if err.code != 429 or attempt > 4:
|
||||
raise
|
||||
wait = 15 * attempt
|
||||
retry_after = err.headers.get("Retry-After", "")
|
||||
if retry_after.isdigit():
|
||||
wait = min(int(retry_after), 60)
|
||||
print(f"Preview image throttled (429), retrying in {wait} s.")
|
||||
time.sleep(wait)
|
||||
return fetch(url, attempt + 1)
|
||||
|
||||
|
||||
def link_card(release: dict, text: str) -> dict:
|
||||
"""The preview card the Bluesky app would show for a pasted link. The API doesn't build one itself.
|
||||
The image is GitHub's own social preview for the release page. Its URL takes any cache-busting
|
||||
segment, so we don't have to scrape the release page (GitHub rate-limits that)."""
|
||||
url = release["url"]
|
||||
card = {"uri": url, "title": f"WebSpeak3 {release['tagName']}",
|
||||
"description": text.split("\n\n")[0].split(": ", 1)[-1]}
|
||||
path = url.removeprefix("https://github.com/")
|
||||
image, mime = fetch(f"https://opengraph.githubassets.com/{release['tagName']}/{path}")
|
||||
if len(image) <= 1_000_000: # Bluesky's blob limit for thumbnails
|
||||
card["image"] = (image, mime)
|
||||
return card
|
||||
|
||||
|
||||
def main() -> None:
|
||||
release = json.load(sys.stdin)
|
||||
text = build_post(release)
|
||||
if text is None:
|
||||
print("Release notes contain <!-- no-social -->, skipping.")
|
||||
return
|
||||
print(text)
|
||||
url = release["url"]
|
||||
try:
|
||||
card = link_card(release, text)
|
||||
print(f"Link card: {card['title']} (image: {len(card['image'][0]) if 'image' in card else 'none'} bytes)")
|
||||
except Exception as err: # a missing preview shouldn't cost us the post
|
||||
print(f"No link card: {err}")
|
||||
card = None
|
||||
|
||||
dry_run = os.environ.get("DRY_RUN") == "true"
|
||||
handle, password = os.environ.get("BLUESKY_HANDLE"), os.environ.get("BLUESKY_APP_PASSWORD")
|
||||
if not password:
|
||||
sys.exit(0 if dry_run else "BLUESKY_APP_PASSWORD is not set.")
|
||||
session = xrpc("com.atproto.server.createSession", {"identifier": handle, "password": password})
|
||||
print(f"Logged in as {session['handle']}.")
|
||||
if dry_run:
|
||||
print("Dry run, not posting.")
|
||||
return
|
||||
|
||||
# Bluesky doesn't auto-link URLs in API posts; the link needs a facet with UTF-8 byte offsets.
|
||||
start = len(text[: text.rindex(url)].encode())
|
||||
record = {
|
||||
"$type": "app.bsky.feed.post",
|
||||
"text": text,
|
||||
"langs": ["en"],
|
||||
"createdAt": datetime.now(timezone.utc).isoformat().replace("+00:00", "Z"),
|
||||
"facets": [{
|
||||
"index": {"byteStart": start, "byteEnd": start + len(url.encode())},
|
||||
"features": [{"$type": "app.bsky.richtext.facet#link", "uri": url}],
|
||||
}],
|
||||
}
|
||||
if card:
|
||||
external = {"uri": card["uri"], "title": card["title"], "description": card["description"]}
|
||||
if "image" in card:
|
||||
image, mime = card["image"]
|
||||
external["thumb"] = xrpc("com.atproto.repo.uploadBlob", image, session["accessJwt"], mime)["blob"]
|
||||
record["embed"] = {"$type": "app.bsky.embed.external", "external": external}
|
||||
post = xrpc("com.atproto.repo.createRecord",
|
||||
{"repo": session["did"], "collection": "app.bsky.feed.post", "record": record},
|
||||
session["accessJwt"])
|
||||
print(f"Posted: {post['uri']}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,39 @@
|
||||
name: Announce release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: Release tag to announce
|
||||
required: true
|
||||
dry_run:
|
||||
description: Only log in and print the post, don't publish it
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
bluesky:
|
||||
name: Post to Bluesky
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
|
||||
- name: Post release
|
||||
# Tag passed via env, never spliced into the script (user-controlled text).
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ github.event.release.tag_name || inputs.tag }}
|
||||
DRY_RUN: ${{ inputs.dry_run && 'true' || 'false' }}
|
||||
BLUESKY_HANDLE: moepchi.bsky.social
|
||||
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}
|
||||
run: |
|
||||
gh release view "$TAG" -R "$GITHUB_REPOSITORY" --json tagName,url,body \
|
||||
| python3 .github/scripts/announce-release.py
|
||||
@@ -20,33 +20,43 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Determine image tags
|
||||
id: tags
|
||||
# Passed via env, never spliced into the script: a tag name is
|
||||
# user-controlled text and would otherwise run as shell code.
|
||||
env:
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
||||
run: |
|
||||
TAGS="moepchi/webspeak3:latest"
|
||||
if [ "${{ github.event_name }}" = "release" ]; then
|
||||
TAGS="$TAGS,moepchi/webspeak3:${{ github.event.release.tag_name }}"
|
||||
if [ "$EVENT_NAME" = "release" ]; then
|
||||
TAGS="$TAGS,moepchi/webspeak3:$RELEASE_TAG"
|
||||
fi
|
||||
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.tags.outputs.tags }}
|
||||
build-args: WEBSPEAK3_VERSION=${{ github.event.release.tag_name || 'latest' }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
@@ -28,10 +28,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
|
||||
- name: Upload Safari screenshots
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v5
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
|
||||
with:
|
||||
name: safari-client-screenshots
|
||||
path: test-results/safari-client-*.png
|
||||
|
||||
@@ -10,3 +10,9 @@ docker-compose.override.yml
|
||||
.claude/
|
||||
CLAUDE.md
|
||||
.serena/
|
||||
|
||||
# TLS material for local HTTPS - a private key never belongs in the repo.
|
||||
gateway/certs/
|
||||
|
||||
# Prebuilt WASM assets synced from node_modules by scripts/sync-aec3-assets.mjs
|
||||
web/public/vendor/
|
||||
@@ -1,3 +1,4 @@
|
||||
[submodule "tsclientlib"]
|
||||
path = tsclientlib
|
||||
url = https://github.com/Moepchi/tsclientlib.git
|
||||
branch = webspeak3
|
||||
+56
-11
@@ -1,34 +1,64 @@
|
||||
# --- Rust connector -----------------------------------------------------
|
||||
FROM rust:1-bookworm AS connector-builder
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends cmake && rm -rf /var/lib/apt/lists/*
|
||||
# Cross-compiled on the build machine for the target platform via xx, so an
|
||||
# arm64 image doesn't have to run rustc under QEMU. xx is copied into the
|
||||
# builder's root, hence pinned by digest rather than a movable tag.
|
||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.9.0@sha256:c64defb9ed5a91eacb37f96ccc3d4cd72521c4bd18d5442905b95e2226b0e707 AS xx
|
||||
FROM --platform=$BUILDPLATFORM rust:1-bookworm AS connector-builder
|
||||
COPY --from=xx / /
|
||||
ARG TARGETPLATFORM
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends cmake clang && rm -rf /var/lib/apt/lists/*
|
||||
RUN xx-apt-get update && xx-apt-get install -y libc6-dev gcc g++ && rm -rf /var/lib/apt/lists/*
|
||||
RUN rustup target add $(xx-cargo --print-target-triple)
|
||||
WORKDIR /src
|
||||
COPY tsclientlib/ tsclientlib/
|
||||
COPY connector/ connector/
|
||||
WORKDIR /src/connector
|
||||
ENV CMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
RUN cargo build --release
|
||||
RUN xx-cargo build --release
|
||||
|
||||
# --- Web frontend ---------------------------------------------------------
|
||||
FROM node:22-bookworm-slim AS web-builder
|
||||
# The bundle is plain JS/CSS, identical for every target platform - build it
|
||||
# natively on the build machine instead of under emulation.
|
||||
FROM --platform=$BUILDPLATFORM node:22-bookworm-slim AS web-builder
|
||||
WORKDIR /src/web
|
||||
COPY web/package*.json ./
|
||||
RUN npm ci
|
||||
# Vite 8 pulls in Rolldown, which ships its bundler as a platform-specific
|
||||
# optional dependency (@rolldown/binding-linux-x64-gnu here). `npm ci`
|
||||
# intermittently fails to install it due to a long-standing npm bug
|
||||
# optional dependency (@rolldown/binding-linux-<arch>-gnu, <arch> being
|
||||
# Node's process.arch). `npm ci` intermittently fails to install it due to a
|
||||
# long-standing npm bug
|
||||
# (https://github.com/npm/cli/issues/4828) without raising a non-zero exit
|
||||
# code, so `vite build` only fails later with a confusing MODULE_NOT_FOUND.
|
||||
# Verify the binding actually loaded and self-heal via the workaround from
|
||||
# npm's own error message before wasting a full build on a broken install.
|
||||
RUN node -e "require('@rolldown/binding-linux-x64-gnu')" \
|
||||
RUN node -e "require('@rolldown/binding-linux-' + process.arch + '-gnu')" \
|
||||
|| (rm -rf node_modules package-lock.json && npm install)
|
||||
COPY web/ ./
|
||||
# The UI carries a small Ko-fi donation button (see web/src/App.tsx).
|
||||
# `--build-arg DONATE_URL=` (empty) drops it, any other value points it
|
||||
# elsewhere; left alone, the project default is used. The "keep" sentinel
|
||||
# exists because an unset build arg and an empty one are indistinguishable
|
||||
# inside RUN - without it, "not passed" would silently mean "remove".
|
||||
ARG DONATE_URL=keep
|
||||
# A self-hosted build can bake in a server to auto-connect to with zero user
|
||||
# input (see web/src/App.tsx's AUTO_CONNECT_FROM_URL/DEFAULT_SERVER, GitHub
|
||||
# issue #10). Unlike DONATE_URL, unset already means "no default" - no "keep"
|
||||
# sentinel needed.
|
||||
ARG DEFAULT_SERVER=
|
||||
ARG DEFAULT_CHANNEL=
|
||||
# Design Store catalog to use - unset means "use the maintainer's shared
|
||||
# one" (App.tsx's own default), same unset-means-no-override convention as
|
||||
# DEFAULT_SERVER above.
|
||||
ARG STORE_URL=
|
||||
# tsc -b currently fails on pre-existing type errors unrelated to this build;
|
||||
# vite build alone is enough to produce the production bundle.
|
||||
RUN npx vite build
|
||||
RUN if [ "$DONATE_URL" = "keep" ]; then DONATE_URL_ENV=; else DONATE_URL_ENV="VITE_DONATE_URL=$DONATE_URL"; fi; \
|
||||
env $DONATE_URL_ENV VITE_DEFAULT_SERVER="$DEFAULT_SERVER" VITE_DEFAULT_CHANNEL="$DEFAULT_CHANNEL" VITE_STORE_URL="$STORE_URL" npx vite build
|
||||
|
||||
# --- Gateway ----------------------------------------------------------------
|
||||
FROM node:22-bookworm-slim AS gateway-builder
|
||||
# tsc output is platform-independent too; only the runtime stage below
|
||||
# installs the (pure-JS) production deps for the target platform.
|
||||
FROM --platform=$BUILDPLATFORM node:22-bookworm-slim AS gateway-builder
|
||||
WORKDIR /src/gateway
|
||||
COPY gateway/package*.json ./
|
||||
RUN npm ci
|
||||
@@ -40,6 +70,11 @@ FROM node:22-bookworm-slim AS runtime
|
||||
LABEL org.opencontainers.image.title="WebSpeak3"
|
||||
LABEL org.opencontainers.image.description="Self-hosted web client for TeamSpeak 3 servers"
|
||||
WORKDIR /app
|
||||
# ts-connector (Rust, native-tls) needs the OS CA bundle for its HTTPS calls
|
||||
# (e.g. TeamSpeak nickname lookup) - Node bundles its own certs and works
|
||||
# without this, but native-tls doesn't, so it's not optional here.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY gateway/package*.json ./
|
||||
# npm/npx are only needed to install the gateway's runtime deps; the
|
||||
# container never runs either afterwards, so strip them (plus npm's own
|
||||
@@ -51,15 +86,25 @@ RUN npm ci --omit=dev \
|
||||
&& rm -rf /root/.npm /usr/local/lib/node_modules/npm \
|
||||
&& rm -f /usr/local/bin/npm /usr/local/bin/npx
|
||||
COPY --from=gateway-builder /src/gateway/dist ./dist
|
||||
COPY --from=connector-builder /src/connector/target/release/ts-connector /app/connector-bin/ts-connector
|
||||
COPY --from=connector-builder /src/connector/target/*/release/ts-connector /app/connector-bin/ts-connector
|
||||
COPY --from=web-builder /src/web/dist /app/web/dist
|
||||
|
||||
ENV PORT=8080
|
||||
# Release tag, set by .github/workflows/docker-publish.yml. Only used for the
|
||||
# anonymous usage ping (gateway/src/telemetry.ts).
|
||||
ARG WEBSPEAK3_VERSION=unknown
|
||||
ENV WEBSPEAK3_VERSION=$WEBSPEAK3_VERSION
|
||||
ENV WEB_DIST=/app/web/dist
|
||||
ENV CONNECTOR_BIN=/app/connector-bin/ts-connector
|
||||
EXPOSE 8080
|
||||
|
||||
# Run unprivileged. /app itself is the default spot for feedback.log and
|
||||
# store-themes.json, so it has to be writable by that user; a volume mounted
|
||||
# there from an older (root) image may need a one-off `chown 1000:1000`.
|
||||
RUN chown node:node /app
|
||||
USER node
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD ["node", "-e", "fetch('http://127.0.0.1:8080/').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"]
|
||||
CMD ["node", "-e", "fetch('http://127.0.0.1:8080/healthz').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"]
|
||||
|
||||
CMD ["node", "dist/index.js"]
|
||||
@@ -9,12 +9,12 @@
|
||||
<a href="Dockerfile"><img src="https://img.shields.io/badge/docker-build%20passing-2496ED?logo=docker&logoColor=white" alt="Docker Build"></a>
|
||||
<a href="gateway/package.json"><img src="https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white" alt="Node Version"></a>
|
||||
<a href="connector/Cargo.toml"><img src="https://img.shields.io/badge/rust-2021-000000?logo=rust&logoColor=white" alt="Rust Version"></a>
|
||||
<a href="https://github.com/Moepchi/webspeak3/releases"><img src="https://img.shields.io/github/v/release/Moepchi/webspeak3?include_prereleases&label=release" alt="Latest Release"></a>
|
||||
<a href="https://github.com/WebSpeak3/webspeak3/releases"><img src="https://img.shields.io/github/v/release/WebSpeak3/webspeak3?include_prereleases&label=release" alt="Latest Release"></a>
|
||||
<img src="https://img.shields.io/badge/status-public%20beta-f0b429" alt="Project Status">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<b>A modern, self-hosted browser client for TeamSpeak 3 servers — no install, just open a tab.</b>
|
||||
<b>A modern, self-hosted browser client for TeamSpeak, TeaSpeak, and VoySpeak servers — no install, just open a tab.</b>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@@ -24,7 +24,7 @@
|
||||
<a href="#-quick-start">🚀 Quick Start</a> ·
|
||||
<a href="#-installation">📖 Installation</a> ·
|
||||
<a href="ROADMAP.md">🗺️ Roadmap</a> ·
|
||||
<a href="https://github.com/Moepchi/webspeak3/issues">🐛 Report Bug</a>
|
||||
<a href="https://github.com/WebSpeak3/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.
|
||||
@@ -52,9 +52,9 @@ Run the ready-made container and open **http://localhost:8080**:
|
||||
docker run -d --name webspeak3 --restart unless-stopped -p 8080:8080 moepchi/webspeak3:latest
|
||||
```
|
||||
|
||||
Enter the address and port of **any reachable TeamSpeak 3 or TeamSpeak 6
|
||||
server** in the connection dialog. The TeamSpeak server does not need to be
|
||||
installed on the same machine, modified, or operated by you.
|
||||
Enter the address and port of **any reachable TeamSpeak 3, TeamSpeak 6,
|
||||
TeaSpeak, or VoySpeak server** in the connection dialog. The server does
|
||||
not need to be installed on the same machine, modified, or operated by you.
|
||||
|
||||
> Voice requires a secure context. Microphone access works on `localhost`; for
|
||||
> access from other devices, place WebSpeak3 behind an HTTPS reverse proxy.
|
||||
@@ -63,23 +63,28 @@ installed on the same machine, modified, or operated by you.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6 servers over a WebSocket gateway — the server stays exactly as-is |
|
||||
| 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6, TeaSpeak, and VoySpeak 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 — 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 |
|
||||
| 🖱️ **Right-click context menu** | Private chat, poke, copy name, whisper-target toggle, and a per-person volume slider straight from a client's row |
|
||||
| 🔎 **Tree search** | Filter channels and users by name; matches stay in place with their parent channels |
|
||||
| 🖼️ **Avatars** | Shows the TeamSpeak avatars people have set, in the tree, the speaking bar, and the info panel |
|
||||
| 📜 **Server log** | Join/leave/switch, channel-group, and channel/server-change events shown inline, like the native client |
|
||||
| 🔔 **Custom sound notifications** | Per-event sounds (connect, poke, messages, ...) with volume control and `.ts3soundpack` import |
|
||||
| 🪪 **Persistent identity** | Keeps the same client UID across sessions instead of generating a new one every connect |
|
||||
| 👉 **Poke & away status** | Poke clients with an optional message; set yourself away with presets or a custom status |
|
||||
| ⭐ **Favorites & reconnect** | Remembers your last server/nickname; switch servers without leaving your tab |
|
||||
| 📱 **Mobile-friendly layout** | Responsive single-column layout for narrow screens, not just a shrunk desktop UI |
|
||||
| 🌍 **Localized UI** | Interface available in German, English, and Simplified Chinese, detected automatically or switchable in Options |
|
||||
| 🌍 **Localized UI** | Interface available in German, English, Simplified Chinese, and Persian (Beta), detected automatically or switchable in Options |
|
||||
| 🌗 **Dark / light theme** | Clean, modern UI that adapts to your preference |
|
||||
| 🔁 **Multi-join (server tabs)** | Several TeamSpeak connections in parallel — one tab per server, like GreenTeaSpeak 2. Audio stays on the active tab |
|
||||
| 🔁 **Seamless reconnect** | Switch or add connections mid-session without tearing down unrelated tabs |
|
||||
| 🔁 **Multi-join (server tabs)** | Several connections in parallel — one tab per server, like VoySpeak. Audio stays on the active tab |
|
||||
| 🔁 **Seamless reconnect** | Switch or add connections mid-session without tearing down unrelated tabs; dropped connections come back on their own, with the channel tree intact |
|
||||
| ⌨️ **Keyboard & screen readers** | Arrow keys through the channel tree (exposed as an ARIA tree) and through menus, Enter joins, context-menu key opens the menu; focus-trapped dialogs, labelled toolbar buttons |
|
||||
| 🍵 **VoySpeak support** | Connects to real VoySpeak servers (formerly GreenTeaSpeak), not just TS3/TS6/TeaSpeak |
|
||||
| 🖥️ **Screen streaming to/from TS6** | <sub>**ALPHA · UNSTABLE**</sub> Share your screen to native TeamSpeak 6 clients and watch theirs. Built on TS6's undocumented Stream/Call protocol — expect it to break; see [Roadmap](ROADMAP.md) |
|
||||
|
||||
## 🧱 Tech Stack
|
||||
|
||||
@@ -103,7 +108,7 @@ gateway is required that speaks the real TS protocol on one side and
|
||||
WebSocket to the browser on the other.
|
||||
|
||||
```
|
||||
Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Rust connector (connector/) <--TS3/TS6 protocol--> TeamSpeak Server
|
||||
Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Rust connector (connector/) <--TS3/TS6/TeaSpeak/VoySpeak protocol--> Server
|
||||
```
|
||||
|
||||
- **`web/`** — Vite + React frontend. TS3-lookalike UI: channel tree, chat
|
||||
@@ -113,9 +118,11 @@ Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Ru
|
||||
between it and the browser. Multi-join opens one `/ws` connection per server
|
||||
tab (parallel connectors).
|
||||
- **`connector/`** — Rust binary wrapping [`tsclientlib`](https://github.com/ReSpeak/tsclientlib)
|
||||
(vendored as a git submodule in `tsclientlib/`), the actual TS3/TS6
|
||||
(vendored as a git submodule in `tsclientlib/`, currently tracking a fork
|
||||
with TeaSpeak/VoySpeak protocol support), the actual TS3/TS6/TeaSpeak
|
||||
protocol implementation. Handles connecting, channel/client state, chat,
|
||||
and Opus-encoded voice.
|
||||
and Opus-encoded voice. Auto-detects the server dialect on connect (or it
|
||||
can be forced via `--server-type`).
|
||||
|
||||
</details>
|
||||
|
||||
@@ -139,7 +146,7 @@ scope, known limitations, and the next milestones.
|
||||
Clone the repo (the Rust connector depends on a git submodule, so pull it in too):
|
||||
|
||||
```bash
|
||||
git clone --recurse-submodules https://github.com/Moepchi/webspeak3.git
|
||||
git clone --recurse-submodules https://github.com/WebSpeak3/webspeak3.git
|
||||
cd webspeak3
|
||||
```
|
||||
|
||||
@@ -167,12 +174,73 @@ services:
|
||||
|
||||
Then `docker compose up -d` and open `http://localhost:8080` (or whatever host port you chose).
|
||||
|
||||
Prefer to skip the build entirely? A prebuilt image is published on [Docker Hub](https://hub.docker.com/r/moepchi/webspeak3):
|
||||
Prefer to skip the build entirely? A prebuilt image for `linux/amd64` and `linux/arm64` (e.g. a Raspberry Pi 4/5 on a 64-bit OS) is published on [Docker Hub](https://hub.docker.com/r/moepchi/webspeak3):
|
||||
|
||||
```bash
|
||||
docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest
|
||||
```
|
||||
|
||||
The UI shows a small **Ko-fi donation button** in the bottom right corner. Building it yourself and would rather not carry someone else's donation link? `docker compose build --build-arg DONATE_URL=` removes it (any other value points it somewhere else). Outside Docker the same thing is a build-time variable: `VITE_DONATE_URL= npm run build` in `web/`.
|
||||
|
||||
The **Design Store** (browse/upload community themes) points at the maintainer's shared catalog by default, same as the official client — no setup needed. Want to run your own store instead, backed by your own gateway (`STORE_ENABLED=1`, see below)? `docker compose build --build-arg STORE_URL=https://your-gateway.example.com/api/store/themes`. Outside Docker: `VITE_STORE_URL=https://your-gateway.example.com/api/store/themes npm run build` in `web/`.
|
||||
|
||||
#### Account sync
|
||||
|
||||
Options → Account lets people carry identities, favorites, settings, designs and whisper lists to their other devices. Like Mullvad, an account is just a random 16-digit number, optionally with a random password: no email, no name. Everything is encrypted in the browser (PBKDF2 → AES-GCM) before upload, so the sync server only ever stores unreadable blobs; it keeps no IP addresses and deletes accounts nobody opened for a year.
|
||||
|
||||
By default every client uses the official sync server. To run your own, start the same image with a different command and point your gateway at it:
|
||||
|
||||
```yaml
|
||||
webspeak3-sync:
|
||||
image: moepchi/webspeak3:latest
|
||||
command: ["node", "dist/sync-server.js"]
|
||||
environment:
|
||||
- SYNC_DATA_DIR=/app/sync-data
|
||||
- TRUST_PROXY=cloudflare
|
||||
volumes:
|
||||
- ./sync-data:/app/sync-data # owned by uid 1000 (the image runs as "node")
|
||||
```
|
||||
|
||||
Route `/api/sync/*` to it in your proxy/tunnel and set `SYNC_URL=https://your-host/api/sync` on the gateway. Accounts only exist on the server they were created on. Optional: `SYNC_POW_BITS` (proof-of-work difficulty for new accounts, default `15`), `SYNC_MAX_ACCOUNTS` (default `100000`), `SYNC_ALLOWED_ORIGIN` (CORS, default `*`).
|
||||
|
||||
#### Environment variables
|
||||
|
||||
All optional; add them under `environment:` in your compose override next to `PORT`. These are the common ones - the full list (logging, feedback form, Design Store details, build-time variables) is on the wiki's [Configuration & Environment Variables](https://github.com/WebSpeak3/webspeak3/wiki/Configuration-and-Environment-Variables) page.
|
||||
|
||||
| Variable | Default | Purpose |
|
||||
|---|---|---|
|
||||
| `PORT` | `8080` | Port the gateway listens on. |
|
||||
| `WEB_STATIC` | on | Set to `0` to disable serving the built UI (`web/dist`) entirely — the gateway then only answers `/ws`, `/api/feedback` and `/healthz`. Use this when the UI is hosted elsewhere (e.g. a CDN/static host) and the gateway is purely a backend. |
|
||||
| `WEB_DIST` | `web/dist` next to the gateway | Overrides the directory served when `WEB_STATIC` is on. Only needed for non-standard layouts. |
|
||||
| `DEFAULT_SERVER` / `DEFAULT_CHANNEL` | unset | Server (and optionally channel) every visitor auto-connects to — see [Bake in a default server](#2-bake-in-a-default-server). |
|
||||
| `BROADCAST_TOKEN` | unset | Bearer token required to call `/api/broadcast` (send an in-app notice to all connected clients before a maintenance restart). Endpoint 404s while unset. |
|
||||
| `TLS_CERT` / `TLS_KEY` | unset | Paths to serve the gateway over HTTPS/WSS directly instead of behind a reverse proxy/tunnel. Both must be set together. |
|
||||
| `STORE_ENABLED` | off | Set to `1` to turn this gateway's own `/api/store/themes` endpoint on. Only needed if you want to run your own Design Store instead of using the maintainer's shared one (see `STORE_URL` build arg above) — the endpoint 404s while unset. The store can also run as its own process (`node dist/store-server.js`, same image) so redeploying it never drops voice connections; route `/api/store/*` to it in your reverse proxy. |
|
||||
| `STORE_DATA_FILE` | `store-themes.json` in the container's working dir | Where submitted themes (including screenshots) are stored. Mount a volume over this path if they should survive a container recreate. |
|
||||
| `STORE_ALLOWED_ORIGIN` | `*` | CORS origin allowed to call the store endpoint, if you want to restrict it to your own frontend's origin. |
|
||||
| `STORE_ADMIN_TOKEN` | unset | Bearer token for moderation. New submissions wait as "pending" until approved on the review page at `/api/store/admin` (enter the token there); the token holder's own submissions and the reserved author name(s) skip the queue. Without it, nothing ever gets published. Submitted CSS is also checked server-side: no `@import`/`@font-face`, no external `url()` — only inline `data:` images. |
|
||||
| `ALLOWED_SERVERS` | unset (any server) | Comma-separated list of server addresses this gateway is allowed to connect to (e.g. `ts.example.com,*.example.net`). A port is matched separately from the host, so listing `ts.example.com` allows any port on it. An entry starting with `*.` matches any subdomain (`*.example.com` allows `ts.example.com`, not `example.com` itself - list that separately too if it should also be reachable). Locks a self-hosted instance down to specific server(s) instead of acting as a general "connect anywhere" client; a rejected `connect` gets an error back before any connector process is even spawned. An entry may carry a port (`ts.example.com:9988`): it still allows every port, but that's the address the connect dialog offers (see `SERVER_PICKER`). |
|
||||
| `SERVER_PICKER` | on | With `ALLOWED_SERVERS` set (and no `*.` entries in it), the connect dialog's address field becomes a dropdown of those servers, or a locked field if there's only one. Set to `0` for the plain text field instead. Only works when the gateway serves the web client itself (the Docker image does). |
|
||||
| `ALLOW_PRIVATE_TARGETS` | off | By default the gateway refuses to connect to private/internal addresses (loopback, `10.x`, `192.168.x`, CGNAT, link-local, …), no matter how they were reached (IP, DNS, SRV, TSDNS, nickname, file-transfer redirect), so it can't be abused to probe the network it runs in. **If your TeamSpeak server is on the same LAN as the gateway, set this to `1`.** |
|
||||
| `TURN_URLS` | unset | Comma-separated TURN URLs (e.g. `turn:turn.example.com:3478`) offered to browsers for screen streams, for viewers or publishers behind NATs where direct P2P fails. Pair with `TURN_SECRET` (coturn's `use-auth-secret`; each browser gets its own credential valid for 24 h) or with static `TURN_USERNAME` / `TURN_CREDENTIAL`, which every visitor can read. |
|
||||
| `ALLOWED_ORIGINS` | unset (any origin) | Comma-separated list of web origins allowed to open `/ws` (e.g. `https://client.example.com`). Stops other websites from silently using your gateway as their relay. |
|
||||
| `MAX_CONNECTIONS_PER_IP` / `MAX_CONNECTIONS` | `10` / `60` | Concurrent `/ws` connections per client IP and in total (each can hold a live TeamSpeak session). `0` disables a limit. |
|
||||
| `CONNECT_RATE_LIMIT` | `30` | Server connects per client IP per minute. Each one starts a new TeamSpeak session, so this stops anyone from flooding a server through your gateway. `0` disables it. |
|
||||
| `TRUST_PROXY` | off | Only when the gateway is reachable **solely** through a proxy/tunnel, so per-IP limits see the real client instead of the proxy: `cloudflare` (Cloudflare Tunnel or proxy) uses `CF-Connecting-IP`; `1` (your own nginx/Caddy/Traefik) uses the last `X-Forwarded-For` entry, the one your proxy appended. Don't set it on a directly exposed gateway - clients could then fake their IP. |
|
||||
| `TELEMETRY` | on | Set to `0` to turn off the anonymous usage ping (see below). |
|
||||
| `NEWS_TICKER` | on | Set to `0` to hide the news ticker at the bottom of the client. |
|
||||
| `NEWS_TICKER_CENTRAL` | on | Set to `0` to drop the official WebSpeak3 news (releases, new store designs, announcements) and only show your own messages. |
|
||||
| `NEWS_TICKER_MESSAGES` | – | Your own ticker messages, separated by `\|`, e.g. `Maintenance tonight at 10pm \| Welcome!` |
|
||||
| `SYNC_URL` | official sync server | Account sync server your visitors use (Options → Account), e.g. `https://sync.example.com/api/sync`. Only needed if you run your own (see below). |
|
||||
|
||||
> **Anonymous usage ping:** when the gateway starts and then once a day, it sends a random instance ID (made up on first start, stored in `instance-id` in the working directory, used for nothing else) and its version number to `gateway.webspeak3.de`. That's the only way to tell whether anyone self-hosts WebSpeak3 at all, and how many instances still run an old version, e.g. after a security fix. Nothing else is sent: no hostnames, no TeamSpeak servers, no users, no settings. The receiving side doesn't store IP addresses. The startup log says when it's on. Turn it off with `TELEMETRY=0`.
|
||||
|
||||
> **News ticker:** like the native TS3 client, a small scrolling line at the bottom shows news. Your users' browsers load the official news straight from `gateway.webspeak3.de`, the same way the Design Store works. Your own messages come from `NEWS_TICKER_MESSAGES`. Users can hide the ticker with ✕ until something new comes in.
|
||||
|
||||
> **Trust model:** the gateway speaks the TeamSpeak protocol on the user's behalf, so whoever runs it necessarily handles their identity key, server/channel passwords and privilege keys (they're kept out of process listings, but the operator can still see them). Only use gateways you trust, and serve them over HTTPS/WSS (`TLS_CERT`/`TLS_KEY` or a TLS-terminating proxy) - plain HTTP exposes all of that on the wire. File uploads are limited to 24 MiB, downloads to 25 MiB.
|
||||
|
||||
> **Stored in the browser:** identities (including their private keys), favorites with any passwords you typed into them, and settings live in the browser's `localStorage`, unencrypted - the same way the native client keeps them in its settings files. Anyone with access to your browser profile can read them; leave favorite password fields empty on shared machines and export identities you care about. Server banners load directly from the host the server admin configured; turn them off under Options → Application if you don't want that host to see your IP.
|
||||
|
||||
<details>
|
||||
<summary><b>🛠️ Manual installation (without Docker)</b></summary>
|
||||
|
||||
@@ -190,7 +258,7 @@ docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest
|
||||
The Rust connector depends on the `tsclientlib` crate, vendored as a git submodule — make sure to pull it in too:
|
||||
|
||||
```bash
|
||||
git clone --recurse-submodules https://github.com/Moepchi/webspeak3.git
|
||||
git clone --recurse-submodules https://github.com/WebSpeak3/webspeak3.git
|
||||
cd webspeak3
|
||||
```
|
||||
|
||||
@@ -252,10 +320,74 @@ In the web UI, enter the address of a TeamSpeak server and a nickname, then clic
|
||||
|
||||
</details>
|
||||
|
||||
## 🔗 Auto-Connect Links
|
||||
|
||||
Skip the connect dialog entirely and drop visitors straight into a TeamSpeak server. Two ways to do it — use either, or both together.
|
||||
|
||||
### 1. Share a link
|
||||
|
||||
Add a `connect` parameter to your instance's URL and send that link out — in a Discord post, a landing page button, a QR code, wherever:
|
||||
|
||||
```
|
||||
https://your-instance/?connect=voice.example.com&nickname=Guest&channel=Lobby#token=abc123
|
||||
```
|
||||
|
||||
| Parameter | Required | What it does |
|
||||
|------------|----------|--------------|
|
||||
| `connect` | yes | Server address to join, `host` or `host:port` |
|
||||
| `nickname` | no | Nickname to connect with — omit it and the visitor gets an auto-generated `Guest-XXXX` |
|
||||
| `channel` | no | Default channel to join |
|
||||
| `token` | no | Server/channel privilege key, if the target requires one. Put it after `#` (as above) so it never reaches server logs or `Referer` headers; `?token=` still works too |
|
||||
|
||||
This works on **any** deployment — no rebuild, no configuration. WebSpeak3 connects as soon as the page loads and immediately strips these parameters from the address bar, so refreshing the tab (or someone screenshotting/forwarding the URL later) won't silently reconnect off a stale link.
|
||||
|
||||
### 2. Bake in a default server
|
||||
|
||||
Running a dedicated instance for one community or event? Set a default server so **every** visitor auto-connects with zero parameters, no link needed. With the Docker image that's just two environment variables, no rebuild:
|
||||
|
||||
```yaml
|
||||
environment:
|
||||
- DEFAULT_SERVER=voice.example.com
|
||||
- DEFAULT_CHANNEL=Lobby
|
||||
```
|
||||
|
||||
The gateway hands them to the UI it serves itself, so this needs `WEB_STATIC` left on. Returning visitors' browsers keep the cached app (including its default) until the next image update, so a later change of these values reaches them only then — new visitors get it right away.
|
||||
|
||||
Building it yourself, you can bake the default in instead: `docker compose build --build-arg DEFAULT_SERVER=voice.example.com --build-arg DEFAULT_CHANNEL=Lobby` (the environment variables above win over these if both are set). Outside Docker, the same thing is a build-time variable:
|
||||
|
||||
```bash
|
||||
VITE_DEFAULT_SERVER=voice.example.com VITE_DEFAULT_CHANNEL=Lobby npm run build
|
||||
```
|
||||
|
||||
(in `web/`). Leave `DEFAULT_CHANNEL`/`VITE_DEFAULT_CHANNEL` out to just join the server's default channel.
|
||||
|
||||
A share link (above) always takes priority over the baked-in default when both are present — so you can point most visitors at your default server while still sending specific people somewhere else via link.
|
||||
|
||||
Either way: on your own hosted instance, the mandatory first-visit Terms of Use is shown and accepted before anything auto-connects; and if the connection fails, the connect dialog opens prefilled so the visitor can fix it and retry by hand.
|
||||
|
||||
## Credits
|
||||
|
||||
The vast majority of this project's code was written by [Claude Code](https://claude.com/claude-code) (Anthropic's Claude), working iteratively with the repo owner one feature at a time.
|
||||
|
||||
## 🌈 In Memory of Akimo
|
||||
|
||||
<!-- Permanent: never remove this section. -->
|
||||
<img src="web/src/assets/akimo.jpg" alt="Akimo" width="120" align="left" />
|
||||
|
||||
WebSpeak3 is dedicated to Akimo, the project owner's dog, who crossed the rainbow bridge on October 21, 2026. 🐾
|
||||
|
||||
<br clear="left" />
|
||||
|
||||
## Star History
|
||||
|
||||
<a href="https://www.star-history.com/?repos=webspeak3%2Fwebspeak3&type=date&legend=bottom-right">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=webspeak3/webspeak3&type=date&theme=dark&legend=bottom-right" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=webspeak3/webspeak3&type=date&legend=bottom-right" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=webspeak3/webspeak3&type=date&legend=bottom-right" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
---
|
||||
|
||||
### Legal / Disclaimer
|
||||
@@ -265,6 +397,9 @@ The vast majority of this project's code was written by [Claude Code](https://cl
|
||||
any way officially connected with TeamSpeak Systems GmbH.
|
||||
|
||||
"TeamSpeak", "TS3", and related logos or names are registered trademarks of
|
||||
TeamSpeak Systems GmbH. All product and company names are trademarks™ or
|
||||
registered® trademarks of their respective holders. Use of them does not
|
||||
imply any affiliation with or endorsement by them.
|
||||
TeamSpeak Systems GmbH. Likewise, WebSpeak3 is not affiliated with,
|
||||
associated with, authorized by, or endorsed by TeaSpeak or VoySpeak (formerly GreenTeaSpeak);
|
||||
"TeaSpeak" and "VoySpeak" are names of their respective projects/
|
||||
operators. All product and company names are trademarks™ or registered®
|
||||
trademarks of their respective holders. Use of them does not imply any
|
||||
affiliation with or endorsement by them.
|
||||
+31
-4
@@ -10,15 +10,27 @@ This roadmap is intentionally outcome-focused. It does not promise fixed dates.
|
||||
|
||||
- Connect to any reachable TS3 or TS6 server through the WebSpeak3 gateway
|
||||
- Low-latency Opus voice, voice activation, whisper, and audio-device selection
|
||||
- Live channel/client tree with status updates and context actions
|
||||
- Live channel/client tree with status updates, search, avatars, and context actions
|
||||
- Per-person volume, remembered per user across sessions
|
||||
- Server, channel, and private text chat
|
||||
- Favorites, identities, contacts, pokes, away state, and reconnect
|
||||
- File transfers, local session recording, sound packs, and administration tools
|
||||
- Responsive desktop and mobile interfaces in German and English
|
||||
- Design Store: browse, upload, rate, and download community-made themes
|
||||
- Opt-in WASM AEC3 echo cancellation for speaker+mic setups
|
||||
- Responsive desktop and mobile interfaces in German, English, Simplified Chinese, and Persian (Beta)
|
||||
- Docker image and Compose-based self-hosting
|
||||
|
||||
## Experimental or still being validated
|
||||
|
||||
- **Screen streaming to and from TeamSpeak 6 (alpha, unstable).** WebSpeak3 can
|
||||
publish a screen share that a native TS6 client can watch, and watch a stream
|
||||
a TS6 client publishes. It speaks TS6's Stream/Call protocol, which TeamSpeak
|
||||
does not document, so the wire format was derived from observed behavior and
|
||||
may break with any TS6 update. Connection setup, picture quality, and viewer
|
||||
admission are not yet dependable. The "Server" connection mode (TS6's SFU) is
|
||||
not implemented; only direct P2P works. Streaming needs a gateway from v0.11.0-beta.1
|
||||
on; since v0.15 the gateway announces its features when the browser connects,
|
||||
so newer features stay hidden behind an older gateway instead of hanging.
|
||||
- Safari and Mobile Safari audio/microphone behavior
|
||||
- Uncommon TeamSpeak permission combinations and large permission sets
|
||||
- Very large servers and long-running browser sessions
|
||||
@@ -31,9 +43,24 @@ This roadmap is intentionally outcome-focused. It does not promise fixed dates.
|
||||
|
||||
- Expand real-browser audio testing, especially Safari
|
||||
- Improve reconnect and recovery behavior under unstable networks
|
||||
- Continue accessibility, keyboard-navigation, and mobile usability work
|
||||
- Turn recurring deployment and compatibility reports into documentation
|
||||
|
||||
### Accessibility
|
||||
|
||||
Basics are in place: the UI language sets the document's `lang`/`dir`,
|
||||
dialogs take focus on open, keep Tab inside, close on Escape, and hand focus
|
||||
back; toolbar icon and menu bar buttons are real, labelled buttons. The
|
||||
channel tree is an ARIA tree with one Tab stop: arrow keys walk it (selection
|
||||
follows focus), Left/Right collapse, expand and jump to parent or child,
|
||||
Enter joins a channel or opens a private chat, and the context-menu key or
|
||||
Shift+F10 opens the menu. Menus take focus on open, move with the arrow keys,
|
||||
and Escape hands focus back to the button that opened them. An axe-core scan
|
||||
of the connected UI is clean in every built-in design except for landmark
|
||||
best practices and GreenTeaSpeak's native selection colours. Still to do:
|
||||
|
||||
- Do a full screen-reader pass (NVDA/VoiceOver) through a real connect
|
||||
session to find what else is missing (e.g. announcing who is talking)
|
||||
|
||||
### Deployment experience
|
||||
|
||||
- Keep the one-command Docker path reliable
|
||||
@@ -50,7 +77,7 @@ This roadmap is intentionally outcome-focused. It does not promise fixed dates.
|
||||
|
||||
## Feedback
|
||||
|
||||
Please use [GitHub Issues](https://github.com/Moepchi/webspeak3/issues) for
|
||||
Please use [GitHub Issues](https://github.com/WebSpeak3/webspeak3/issues) for
|
||||
reproducible bugs and feature requests. Include the browser and version,
|
||||
operating system, deployment method, and whether the issue affects voice,
|
||||
microphone access, or only the interface.
|
||||
|
||||
@@ -11,7 +11,7 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "io-st
|
||||
futures = "0.3"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
clap = { version = "4", features = ["derive", "env"] }
|
||||
anyhow = "1"
|
||||
num-traits = "0.2"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
+785
-62
File diff suppressed because it is too large.
Load diff
@@ -6,6 +6,16 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PORT=8080
|
||||
# This file publishes no port - the gateway is only reachable through
|
||||
# the cloudflared tunnel below, so the client IP it forwards can be
|
||||
# trusted (per-IP limits would otherwise see every user as the tunnel).
|
||||
# Remove this if you publish a port directly instead; behind your own
|
||||
# reverse proxy use TRUST_PROXY=1.
|
||||
- TRUST_PROXY=cloudflare
|
||||
# Nothing in here needs Linux capabilities (unprivileged port, plain
|
||||
# TCP/UDP sockets), so drop them all.
|
||||
cap_drop: [ALL]
|
||||
security_opt: [no-new-privileges:true]
|
||||
# Port publishing is deployment-specific and left out of this file on
|
||||
# purpose - Compose concatenates `ports:` lists across an override file
|
||||
# instead of replacing them, so adding one here would double-publish
|
||||
|
||||
+1
-2
@@ -1,4 +1,4 @@
|
||||
# TeaSpeak / GreenTeaSpeak support (WebSpeak3)
|
||||
# TeaSpeak / VoySpeak (formerly GreenTeaSpeak) support (WebSpeak3)
|
||||
|
||||
WebSpeak3 can speak the TeamSpeak 3/6 protocol via `ts-connector` / `tsclientlib`.
|
||||
TeaSpeak / GreenTeaSpeak servers need an extra identity handshake before `clientinit`.
|
||||
@@ -12,7 +12,6 @@ TeaSpeak / GreenTeaSpeak servers need an extra identity handshake before `client
|
||||
answers that way — required for GreenTeaSpeak hubs that disable TeamSpeak clients
|
||||
- TEAMSPEAK identity handshake after crypto when needed
|
||||
- DNS SRV `_gts._udp` in addition to `_ts3._udp`
|
||||
- Design theme **GreenTeaSpeak** (third UI style)
|
||||
|
||||
Verified against `ts.greenteaspeak.de` (Official GreenTeaSpeak Public Server).
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
// --- Activity logging (feedback + connection events) -----------------------
|
||||
//
|
||||
// Narrow interface so the private VPS overlay can swap in SQLite persistence
|
||||
// (see mem:reference_webspeak3_private_sqlite_persistence) without forking
|
||||
// index.ts - only this module differs between public and private; index.ts's
|
||||
// two call sites just call logFeedback/logConnectionEvent unconditionally.
|
||||
// This file itself has zero private modifications, same as store.ts.
|
||||
import { appendFile, rename, stat } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
|
||||
// Plain JSON-lines file. Defaults under the container's WORKDIR (/app in
|
||||
// the Docker image); mount a volume over it if you want submissions to
|
||||
// survive a container recreate.
|
||||
const FEEDBACK_LOG_FILE = process.env.FEEDBACK_LOG_FILE ?? path.resolve(process.cwd(), "feedback.log");
|
||||
// Simple size-based rotation: once the log crosses this size, the current
|
||||
// file is moved to feedback.log.1 (overwriting any previous one) and a
|
||||
// fresh file is started. Keeps disk usage bounded on a plain JSON-lines
|
||||
// file with no other retention policy.
|
||||
const FEEDBACK_LOG_MAX_BYTES = 5 * 1024 * 1024;
|
||||
|
||||
async function rotateFeedbackLogIfNeeded(): Promise<void> {
|
||||
try {
|
||||
const { size } = await stat(FEEDBACK_LOG_FILE);
|
||||
if (size < FEEDBACK_LOG_MAX_BYTES) return;
|
||||
await rename(FEEDBACK_LOG_FILE, `${FEEDBACK_LOG_FILE}.1`);
|
||||
} catch (err) {
|
||||
// ENOENT just means there's no log yet - nothing to rotate.
|
||||
if ((err as NodeJS.ErrnoException).code !== "ENOENT") {
|
||||
console.error("[feedback] Failed to rotate feedback log:", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface FeedbackEntry {
|
||||
at: string;
|
||||
category: string;
|
||||
message: string;
|
||||
email?: string;
|
||||
}
|
||||
|
||||
export async function logFeedback(entry: FeedbackEntry): Promise<void> {
|
||||
try {
|
||||
await rotateFeedbackLogIfNeeded();
|
||||
await appendFile(FEEDBACK_LOG_FILE, JSON.stringify(entry) + "\n", "utf-8");
|
||||
} catch (err) {
|
||||
console.error("[feedback] Failed to write feedback log:", err);
|
||||
}
|
||||
}
|
||||
|
||||
// Opt-in only, off by default: this is an open-source, self-hostable image,
|
||||
// and other instances shouldn't get connection logging just because it's in
|
||||
// the codebase. Set LOG_CONNECTIONS=1 in the .env of the instance you want it
|
||||
// on. Logs only host/server-name/timestamp — no nickname, no IP.
|
||||
export const LOG_CONNECTIONS = process.env.LOG_CONNECTIONS === "1";
|
||||
|
||||
export interface ConnectionEvent {
|
||||
type: "connected" | "disconnected";
|
||||
host: string;
|
||||
server?: string;
|
||||
}
|
||||
|
||||
export function logConnectionEvent(event: ConnectionEvent): void {
|
||||
if (!LOG_CONNECTIONS) return;
|
||||
if (event.type === "connected") {
|
||||
console.log(`[connections] connected host=${event.host} server=${event.server} at=${new Date().toISOString()}`);
|
||||
} else {
|
||||
console.log(`[connections] disconnected host=${event.host} at=${new Date().toISOString()}`);
|
||||
}
|
||||
}
|
||||
+754
-18
@@ -1,9 +1,17 @@
|
||||
import { createServer } from "node:http";
|
||||
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
|
||||
import { createServer as createSecureServer } from "node:https";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { createHmac, timingSafeEqual } from "node:crypto";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { WebSocketServer, type WebSocket } from "ws";
|
||||
import { Ts3Connection, type ServerType, type Ts3ConnectOptions } from "./ts3/connection.js";
|
||||
import { handleStore } from "./store.js";
|
||||
import { handleNewsConfig } from "./news.js";
|
||||
import { logFeedback, logConnectionEvent } from "./activity-log.js";
|
||||
import { clientIp, createRateLimiter } from "./net.js";
|
||||
import "./telemetry.js";
|
||||
|
||||
const SERVER_TYPES = new Set<ServerType>(["teamspeak", "teaspeak", "auto"]);
|
||||
|
||||
@@ -20,6 +28,89 @@ function parsePrivilegeKey(msg: { privilegeKey?: unknown; token?: unknown }): st
|
||||
return trimmed || undefined;
|
||||
}
|
||||
|
||||
// Self-hosting admins may want to lock their instance to specific server(s)
|
||||
// instead of leaving it as a general-purpose "connect anywhere" client.
|
||||
// Unset (the default) means unrestricted, unchanged from before this existed.
|
||||
const ALLOWED_SERVERS = (process.env.ALLOWED_SERVERS ?? "")
|
||||
.split(",")
|
||||
.map((s) => s.trim().toLowerCase())
|
||||
.filter(Boolean);
|
||||
|
||||
// Strips a trailing ":port" so "ts.example.com:9987" and "ts.example.com"
|
||||
// both match a plain "ts.example.com" allowlist entry. IPv6 literals come
|
||||
// wrapped in brackets ("[::1]:9987"); nicknames have neither and pass through
|
||||
// as-is. Deliberately not full URL parsing - `host` here is never a URL.
|
||||
function stripPort(host: string): string {
|
||||
if (host.startsWith("[")) {
|
||||
const end = host.indexOf("]");
|
||||
return end === -1 ? host : host.slice(1, end);
|
||||
}
|
||||
const i = host.lastIndexOf(":");
|
||||
return i !== -1 && /^\d+$/.test(host.slice(i + 1)) ? host.slice(0, i) : host;
|
||||
}
|
||||
|
||||
function isServerAllowed(host: unknown): boolean {
|
||||
if (ALLOWED_SERVERS.length === 0) return true;
|
||||
if (typeof host !== "string") return false;
|
||||
const target = stripPort(host).trim().toLowerCase();
|
||||
return ALLOWED_SERVERS.some((entry) => {
|
||||
// "*.example.com" matches any subdomain (TLS-wildcard-style: not the
|
||||
// bare apex itself - list that separately if it should be allowed too).
|
||||
if (entry.startsWith("*.")) return target.endsWith(stripPort(entry).slice(1));
|
||||
return target === stripPort(entry);
|
||||
});
|
||||
}
|
||||
|
||||
// Everything a "connect" message hands to the connector as a CLI argument.
|
||||
// The connector's own resolver does the real parsing; this only rejects input
|
||||
// no legitimate address or nickname has (control chars, absurd lengths), and
|
||||
// anything starting with "-" so it can never be read as a flag.
|
||||
const HOST_PATTERN = /^[\p{L}\p{N}._\-:[\]]{1,253}$/u;
|
||||
|
||||
function isValidHost(host: unknown): host is string {
|
||||
return typeof host === "string" && HOST_PATTERN.test(host) && !host.startsWith("-");
|
||||
}
|
||||
|
||||
function isValidNickname(nickname: unknown): nickname is string {
|
||||
return (
|
||||
typeof nickname === "string" &&
|
||||
nickname.trim().length > 0 &&
|
||||
nickname.length <= 100 &&
|
||||
!/[\p{Cc}]/u.test(nickname)
|
||||
);
|
||||
}
|
||||
|
||||
// Which web pages may open /ws. Without this any website can embed a hidden
|
||||
// WebSocket to this gateway and use it as a free relay into TeamSpeak land.
|
||||
// Unset keeps the old "any origin" behavior for self-hosters; entries are
|
||||
// full origins ("https://client.example.com"). Non-browser clients send no
|
||||
// Origin header at all - they could fake one anyway, so they aren't blocked.
|
||||
const ALLOWED_ORIGINS = (process.env.ALLOWED_ORIGINS ?? "")
|
||||
.split(",")
|
||||
.map((s) => s.trim().replace(/\/+$/, "").toLowerCase())
|
||||
.filter(Boolean);
|
||||
|
||||
// Each /ws socket can spawn a connector process holding a live TeamSpeak
|
||||
// session, so both need a ceiling. 0 disables the respective limit.
|
||||
const MAX_CONNECTIONS_PER_IP = Number(process.env.MAX_CONNECTIONS_PER_IP ?? 10);
|
||||
// Measured 2026-10-25: ~8-9 % of a core per client listening to constant audio
|
||||
// (connector + node + cloudflared), ~10-15 MB RAM. 60 suits a 2-core VPS.
|
||||
const MAX_CONNECTIONS = Number(process.env.MAX_CONNECTIONS ?? 60);
|
||||
const connectionsPerIp = new Map<string, number>();
|
||||
// Every "connect" spawns a fresh connector, and a socket can send any number
|
||||
// of them - without this, 10 sockets were enough to join-flood a TS server
|
||||
// through this gateway at several joins per second. Real clients (reconnect
|
||||
// backoff, restoring a handful of tabs) stay far below it.
|
||||
const CONNECT_RATE_LIMIT = Number(process.env.CONNECT_RATE_LIMIT ?? 30);
|
||||
const isConnectRateLimited = createRateLimiter(CONNECT_RATE_LIMIT, 60_000);
|
||||
|
||||
// Largest single WS message. Uploads now arrive in small "uploadFileChunk"
|
||||
// pieces; this size only stays for browsers still running a client from
|
||||
// before that, which send the whole file base64-encoded in one "uploadFile"
|
||||
// message (~4/3 of MAX_UPLOAD_BYTES in web/src/App.tsx). ws's own default is
|
||||
// 100 MiB.
|
||||
const WS_MAX_PAYLOAD = 34 * 1024 * 1024;
|
||||
|
||||
const PORT = Number(process.env.PORT ?? 8080);
|
||||
|
||||
// In production (Docker), the built web app lives alongside the gateway and
|
||||
@@ -32,6 +123,48 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const WEB_DIST = process.env.WEB_DIST ?? path.resolve(__dirname, "../../web/dist");
|
||||
const SERVE_STATIC = process.env.WEB_STATIC !== "0";
|
||||
|
||||
// Sent to every browser in the "hello" message on socket open; see there.
|
||||
const GATEWAY_FEATURES = ["clientVolume", "keepalive", "chunkedUpload", "whisperPolicy", "transferLimit"];
|
||||
|
||||
// Optional TURN relay for screen streams, also handed out in "hello". With
|
||||
// TURN_SECRET (coturn's use-auth-secret) every socket gets its own credential,
|
||||
// valid for a day; TURN_USERNAME/TURN_CREDENTIAL are static and so readable by
|
||||
// every visitor. ponytail: a socket open longer than a day hands an expired
|
||||
// credential to a stream started after that; reconnecting fixes it.
|
||||
const TURN_URLS = (process.env.TURN_URLS ?? "").split(",").map((u) => u.trim()).filter(Boolean);
|
||||
function turnServers() {
|
||||
if (!TURN_URLS.length) return undefined;
|
||||
const secret = process.env.TURN_SECRET;
|
||||
if (!secret) {
|
||||
return [{ urls: TURN_URLS, username: process.env.TURN_USERNAME, credential: process.env.TURN_CREDENTIAL }];
|
||||
}
|
||||
const username = `${Math.floor(Date.now() / 1000) + 24 * 3600}:webspeak3`;
|
||||
return [{ urls: TURN_URLS, username, credential: createHmac("sha1", secret).update(username).digest("base64") }];
|
||||
}
|
||||
|
||||
// Runtime counterpart of the web build's VITE_DEFAULT_SERVER/_CHANNEL (GitHub
|
||||
// issue #12): set on the container, these end up in the served index.html as
|
||||
// <meta> tags the client reads at startup, so changing them needs no rebuild.
|
||||
// Meta tags rather than an inline script, which CONTENT_SECURITY_POLICY forbids.
|
||||
// The allowlist goes along so the client can offer it as a dropdown (or a
|
||||
// locked field for a single entry) instead of a free-text address; not with
|
||||
// wildcards, which can't be listed, nor with SERVER_PICKER=0.
|
||||
const SERVER_PICKER =
|
||||
process.env.SERVER_PICKER !== "0" && !ALLOWED_SERVERS.some((e) => e.startsWith("*."))
|
||||
? ALLOWED_SERVERS.join(",")
|
||||
: undefined;
|
||||
const RUNTIME_CONFIG_META = Object.entries({
|
||||
"webspeak3-default-server": process.env.DEFAULT_SERVER,
|
||||
"webspeak3-default-channel": process.env.DEFAULT_CHANNEL,
|
||||
"webspeak3-allowed-servers": SERVER_PICKER,
|
||||
// Self-hosted account sync (sync-server.js); unset = the official one.
|
||||
"webspeak3-sync-url": process.env.SYNC_URL,
|
||||
})
|
||||
.flatMap(([name, value]) =>
|
||||
value ? [`<meta name="${name}" content="${value.replace(/[&"<>]/g, (c) => `&#${c.charCodeAt(0)};`)}">`] : [],
|
||||
)
|
||||
.join("");
|
||||
|
||||
const MIME_TYPES: Record<string, string> = {
|
||||
".html": "text/html",
|
||||
".js": "text/javascript",
|
||||
@@ -41,28 +174,361 @@ const MIME_TYPES: Record<string, string> = {
|
||||
".ico": "image/x-icon",
|
||||
".json": "application/json",
|
||||
".woff2": "font/woff2",
|
||||
".webmanifest": "application/manifest+json",
|
||||
};
|
||||
|
||||
// --- Feedback endpoint ---------------------------------------------------
|
||||
//
|
||||
// Opt-in only, same convention as LOG_CONNECTIONS above: this is an open-
|
||||
// source, self-hostable image, so other instances don't get a public
|
||||
// feedback inbox (and potential GitHub-issue creator) just because it's in
|
||||
// the codebase. Set FEEDBACK_ENABLED=1 on the instance you want it on. The
|
||||
// web client only shows the "Feedback" menu entry on specific hostnames
|
||||
// (see IS_OWN_HOSTED_INSTANCE in web/src/App.tsx), but this endpoint
|
||||
// enforces its own opt-in independently since it's reachable directly over
|
||||
// HTTP by anyone who finds the gateway's address, not just from that UI.
|
||||
const FEEDBACK_ENABLED = process.env.FEEDBACK_ENABLED === "1";
|
||||
// The web app is commonly hosted on a different origin than the gateway
|
||||
// (see mem:deployment / GATEWAY_URL in web/), so this needs its own CORS
|
||||
// allowance; default "*" since the endpoint is opt-in, rate-limited, and
|
||||
// only ever accepts a feedback submission, nothing that reads data back.
|
||||
const FEEDBACK_ALLOWED_ORIGIN = process.env.FEEDBACK_ALLOWED_ORIGIN ?? "*";
|
||||
// A token with "Issues: write" access on the target repo. Without it,
|
||||
// feedback is still accepted and logged, just never turned into an issue.
|
||||
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
|
||||
const GITHUB_REPO = process.env.GITHUB_REPO ?? "WebSpeak3/webspeak3";
|
||||
const FEEDBACK_CATEGORIES = new Set(["bug", "idea", "report", "other"]);
|
||||
const FEEDBACK_MESSAGE_MAX_LENGTH = 4000;
|
||||
|
||||
// --- Broadcast endpoint ---------------------------------------------------
|
||||
//
|
||||
// Opt-in only, same convention as LOG_CONNECTIONS/FEEDBACK_ENABLED above: lets
|
||||
// the operator push a free-text maintenance notice to every connected browser
|
||||
// tab (reuses the same {type:"notice"} message the SIGTERM handler already
|
||||
// sends, which the frontend renders even without a messageKey). Unset
|
||||
// BROADCAST_TOKEN and the endpoint 404s, same as feedback when disabled.
|
||||
const BROADCAST_TOKEN = process.env.BROADCAST_TOKEN;
|
||||
const BROADCAST_MESSAGE_MAX_LENGTH = 500;
|
||||
|
||||
function isValidBroadcastToken(provided: string): boolean {
|
||||
if (!BROADCAST_TOKEN) return false;
|
||||
const a = Buffer.from(provided);
|
||||
const b = Buffer.from(BROADCAST_TOKEN);
|
||||
return a.length === b.length && timingSafeEqual(a, b);
|
||||
}
|
||||
|
||||
async function handleBroadcast(req: IncomingMessage, res: ServerResponse) {
|
||||
if (!BROADCAST_TOKEN) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
if (req.method !== "POST") {
|
||||
res.writeHead(405, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "method_not_allowed" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const authHeader = req.headers.authorization ?? "";
|
||||
const token = authHeader.startsWith("Bearer ") ? authHeader.slice("Bearer ".length) : "";
|
||||
if (!isValidBroadcastToken(token)) {
|
||||
res.writeHead(401, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "unauthorized" }));
|
||||
return;
|
||||
}
|
||||
|
||||
let raw = "";
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > 5_000) {
|
||||
res.writeHead(413, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "payload_too_large" }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let body: { message?: unknown };
|
||||
try {
|
||||
body = JSON.parse(raw || "{}");
|
||||
} catch {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_json" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const message = typeof body.message === "string" ? body.message.trim().slice(0, BROADCAST_MESSAGE_MAX_LENGTH) : "";
|
||||
if (!message) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "message_required" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const payload = JSON.stringify({ type: "notice", message });
|
||||
let sent = 0;
|
||||
for (const socket of wss.clients) {
|
||||
try {
|
||||
socket.send(payload);
|
||||
sent++;
|
||||
} catch {
|
||||
/* socket already gone */
|
||||
}
|
||||
}
|
||||
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true, sent }));
|
||||
}
|
||||
|
||||
// Small in-memory rate limit: a handful of submissions per IP per hour is
|
||||
// far more than any real user needs, and keeps one abusive client from
|
||||
// spamming the log file or (worse) the GitHub issue tracker. In-memory is
|
||||
// fine here - it only needs to survive as long as the process does.
|
||||
const FEEDBACK_RATE_LIMIT = 5;
|
||||
const FEEDBACK_RATE_WINDOW_MS = 60 * 60 * 1000;
|
||||
const isFeedbackRateLimited = createRateLimiter(FEEDBACK_RATE_LIMIT, FEEDBACK_RATE_WINDOW_MS);
|
||||
|
||||
// The issue is public, and its text is whatever an anonymous visitor typed:
|
||||
// a zero-width space after "@" stops @mentions from pinging real users, and
|
||||
// the body goes into a fenced code block (longer than any backtick run in the
|
||||
// message) so links, images and markup render as inert text.
|
||||
function neutralizeMentions(text: string): string {
|
||||
return text.replace(/@/g, "@\u200b");
|
||||
}
|
||||
|
||||
// The contact e-mail is deliberately *not* part of this: it's only kept in
|
||||
// the private feedback log (logFeedback), never in the public issue.
|
||||
async function createGithubIssue(payload: { category: string; message: string }): Promise<string | undefined> {
|
||||
if (!GITHUB_TOKEN) return undefined;
|
||||
const title = neutralizeMentions(
|
||||
`[Feedback/${payload.category}] ${payload.message.replace(/\s+/g, " ").trim().slice(0, 72)}`,
|
||||
);
|
||||
const longestTicks = Math.max(0, ...(payload.message.match(/`+/g) ?? []).map((m) => m.length));
|
||||
const fence = "`".repeat(Math.max(3, longestTicks + 1));
|
||||
const body = [
|
||||
`${fence}text`,
|
||||
neutralizeMentions(payload.message),
|
||||
fence,
|
||||
"",
|
||||
"---",
|
||||
`Category: ${payload.category}`,
|
||||
"_Submitted via the in-client feedback form._",
|
||||
].join("\n");
|
||||
|
||||
const res = await fetch(`https://api.github.com/repos/${GITHUB_REPO}/issues`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: `Bearer ${GITHUB_TOKEN}`,
|
||||
Accept: "application/vnd.github+json",
|
||||
"Content-Type": "application/json",
|
||||
"User-Agent": "webspeak3-gateway",
|
||||
},
|
||||
// GitHub auto-creates labels that don't already exist in the repo, so
|
||||
// the category label needs no manual setup on first use.
|
||||
body: JSON.stringify({ title, body, labels: ["feedback", payload.category] }),
|
||||
});
|
||||
if (!res.ok) {
|
||||
console.error(`[feedback] GitHub issue creation failed (${res.status}): ${await res.text().catch(() => "")}`);
|
||||
return undefined;
|
||||
}
|
||||
const json = (await res.json()) as { html_url?: string };
|
||||
return json.html_url;
|
||||
}
|
||||
|
||||
async function handleFeedback(req: IncomingMessage, res: ServerResponse) {
|
||||
res.setHeader("Access-Control-Allow-Origin", FEEDBACK_ALLOWED_ORIGIN);
|
||||
res.setHeader("Access-Control-Allow-Methods", "POST, OPTIONS");
|
||||
res.setHeader("Access-Control-Allow-Headers", "Content-Type");
|
||||
|
||||
if (req.method === "OPTIONS") {
|
||||
res.writeHead(204);
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
if (!FEEDBACK_ENABLED) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
if (req.method !== "POST") {
|
||||
res.writeHead(405, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "method_not_allowed" }));
|
||||
return;
|
||||
}
|
||||
|
||||
if (isFeedbackRateLimited(clientIp(req))) {
|
||||
res.writeHead(429, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "rate_limited" }));
|
||||
return;
|
||||
}
|
||||
|
||||
let raw = "";
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > 20_000) {
|
||||
res.writeHead(413, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "payload_too_large" }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let body: { category?: unknown; message?: unknown; email?: unknown; server?: unknown; publishAsIssue?: unknown; website?: unknown };
|
||||
try {
|
||||
body = JSON.parse(raw || "{}");
|
||||
} catch {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_json" }));
|
||||
return;
|
||||
}
|
||||
|
||||
// Honeypot: a field named to look attractive to form-filling bots, kept
|
||||
// hidden from real users via CSS. Any value here means a bot filled it in
|
||||
// blindly - report success without actually logging or filing anything,
|
||||
// so the bot has no signal to adapt on.
|
||||
if (typeof body.website === "string" && body.website.trim() !== "") {
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true }));
|
||||
return;
|
||||
}
|
||||
|
||||
const category = typeof body.category === "string" && FEEDBACK_CATEGORIES.has(body.category) ? body.category : "other";
|
||||
const message =
|
||||
typeof body.message === "string" ? body.message.trim().slice(0, FEEDBACK_MESSAGE_MAX_LENGTH) : "";
|
||||
const email = typeof body.email === "string" ? body.email.trim().slice(0, 200) || undefined : undefined;
|
||||
// Like the e-mail: private log only, never in the public issue - it may
|
||||
// name someone else's server.
|
||||
const server = typeof body.server === "string" ? body.server.trim().slice(0, 200) : "";
|
||||
const publishAsIssue = body.publishAsIssue === true;
|
||||
|
||||
if (!message) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "message_required" }));
|
||||
return;
|
||||
}
|
||||
|
||||
await logFeedback({
|
||||
at: new Date().toISOString(),
|
||||
category,
|
||||
message: server ? `${message}\n**Server:** ${server}` : message,
|
||||
email,
|
||||
});
|
||||
|
||||
let githubIssueUrl: string | undefined;
|
||||
if (publishAsIssue) {
|
||||
try {
|
||||
githubIssueUrl = await createGithubIssue({ category, message });
|
||||
} catch (err) {
|
||||
console.error("[feedback] Failed to create GitHub issue:", err);
|
||||
}
|
||||
}
|
||||
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true, githubIssueUrl }));
|
||||
}
|
||||
|
||||
// --- Design Store endpoint --------------------------------------------------
|
||||
// Moved to store.ts - see that file's header comment for why.
|
||||
|
||||
const DEV_HINT = `<!doctype html><html><body style="font:14px system-ui;padding:2rem;max-width:40rem">
|
||||
<h1>WebSpeak3 gateway</h1>
|
||||
<p>WebSocket: <code>/ws</code></p>
|
||||
<p>Static UI is disabled (<code>WEB_STATIC=0</code>) or <code>web/dist</code> is missing.</p>
|
||||
<p><code>web/dist</code> is missing — the UI has not been built yet.</p>
|
||||
<p>For local development open the Vite app at <a href="http://localhost:5173/">http://localhost:5173/</a>
|
||||
(run <code>npm run dev</code> in <code>web/</code>). Rebuild with <code>npm run build</code> in <code>web/</code>
|
||||
to serve the UI from this port again.</p>
|
||||
</body></html>`;
|
||||
|
||||
const server = createServer((req, res) => {
|
||||
/**
|
||||
* TLS material, when configured.
|
||||
*
|
||||
* Not a nicety: `getDisplayMedia`, `getUserMedia` and `crypto.randomUUID` are
|
||||
* secure-context-only, so a LAN instance reached over plain http can neither
|
||||
* share a screen nor use the microphone. Chrome also hides host ICE candidates
|
||||
* behind mDNS names until a media permission is granted, which keeps a
|
||||
* peer-to-peer stream from connecting at all.
|
||||
*
|
||||
* Set TLS_CERT and TLS_KEY to enable; a self-signed pair is enough, the
|
||||
* browser only has to be told once to trust it.
|
||||
*/
|
||||
const TLS_CERT = process.env.TLS_CERT;
|
||||
const TLS_KEY = process.env.TLS_KEY;
|
||||
const tlsOptions =
|
||||
TLS_CERT && TLS_KEY
|
||||
? { cert: readFileSync(TLS_CERT), key: readFileSync(TLS_KEY) }
|
||||
: null;
|
||||
|
||||
// Only for the UI this process serves itself; a separately hosted frontend
|
||||
// (GitHub/Cloudflare Pages) needs its own. Theme CSS from the Design Store is
|
||||
// the main thing this contains: it can't load scripts, frame the app, or
|
||||
// pull in fonts/styles from arbitrary hosts.
|
||||
const CONTENT_SECURITY_POLICY = [
|
||||
"default-src 'self'",
|
||||
"script-src 'self' 'wasm-unsafe-eval'",
|
||||
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
|
||||
"font-src 'self' data: https://fonts.gstatic.com",
|
||||
"img-src 'self' data: blob: https:",
|
||||
"media-src 'self' data: blob:",
|
||||
"connect-src 'self' https: wss: ws:",
|
||||
"worker-src 'self' blob:",
|
||||
"object-src 'none'",
|
||||
"base-uri 'self'",
|
||||
"frame-ancestors 'self'",
|
||||
].join("; ");
|
||||
|
||||
const requestHandler = (req: IncomingMessage, res: ServerResponse) => {
|
||||
res.setHeader("X-Content-Type-Options", "nosniff");
|
||||
res.setHeader("Referrer-Policy", "strict-origin-when-cross-origin");
|
||||
res.setHeader("X-Frame-Options", "SAMEORIGIN");
|
||||
void (async () => {
|
||||
try {
|
||||
if (!SERVE_STATIC) {
|
||||
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
||||
res.end(DEV_HINT);
|
||||
const requestUrl = new URL(req.url ?? "/", "http://localhost");
|
||||
if (requestUrl.pathname === "/api/feedback") {
|
||||
await handleFeedback(req, res);
|
||||
return;
|
||||
}
|
||||
const url = new URL(req.url ?? "/", "http://localhost");
|
||||
let filePath = path.join(WEB_DIST, decodeURIComponent(url.pathname));
|
||||
if (!filePath.startsWith(WEB_DIST)) {
|
||||
if (requestUrl.pathname === "/api/news") {
|
||||
handleNewsConfig(res);
|
||||
return;
|
||||
}
|
||||
if (requestUrl.pathname === "/api/broadcast") {
|
||||
await handleBroadcast(req, res);
|
||||
return;
|
||||
}
|
||||
if (
|
||||
requestUrl.pathname === "/api/store/admin" ||
|
||||
requestUrl.pathname === "/api/store/themes" ||
|
||||
requestUrl.pathname.startsWith("/api/store/themes/")
|
||||
) {
|
||||
await handleStore(req, res, requestUrl.pathname).catch((err) => {
|
||||
console.error("[store] Request failed:", err);
|
||||
if (!res.headersSent) {
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "internal" }));
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
// Container healthcheck target (see Dockerfile). Deliberately its own
|
||||
// route rather than "/": with WEB_STATIC=0 every browser-facing path
|
||||
// answers 404, and a probe against "/" would then report the process as
|
||||
// unhealthy for doing exactly what it was configured to do.
|
||||
if (requestUrl.pathname === "/healthz") {
|
||||
res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" });
|
||||
res.end("ok\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!SERVE_STATIC) {
|
||||
// With the UI hosted elsewhere this process is an API endpoint and
|
||||
// nothing else: no SPA fallback, and not even a notice page at "/",
|
||||
// which would only put a second, stale-looking "app" on a hostname
|
||||
// that is meant to answer /ws and /api/feedback. Everything a browser
|
||||
// asks for is simply absent.
|
||||
res.writeHead(404, { "Content-Type": "text/plain; charset=utf-8" });
|
||||
res.end("Not found\n");
|
||||
return;
|
||||
}
|
||||
let filePath = path.join(WEB_DIST, decodeURIComponent(requestUrl.pathname));
|
||||
if (filePath !== WEB_DIST && !filePath.startsWith(WEB_DIST + path.sep)) {
|
||||
res.writeHead(403);
|
||||
res.end();
|
||||
return;
|
||||
@@ -75,37 +541,210 @@ const server = createServer((req, res) => {
|
||||
filePath = path.join(WEB_DIST, "index.html");
|
||||
body = await readFile(filePath);
|
||||
}
|
||||
res.writeHead(200, { "Content-Type": MIME_TYPES[path.extname(filePath)] ?? "application/octet-stream" });
|
||||
if (RUNTIME_CONFIG_META && filePath === path.join(WEB_DIST, "index.html")) {
|
||||
// Function replacer: a string one would expand "$&" etc. in the values.
|
||||
body = Buffer.from(body.toString("utf8").replace("</head>", () => `${RUNTIME_CONFIG_META}</head>`));
|
||||
}
|
||||
const ext = path.extname(filePath);
|
||||
res.writeHead(200, {
|
||||
"Content-Type": MIME_TYPES[ext] ?? "application/octet-stream",
|
||||
...(ext === ".html" ? { "Content-Security-Policy": CONTENT_SECURITY_POLICY } : {}),
|
||||
});
|
||||
res.end(body);
|
||||
} catch {
|
||||
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
||||
res.end(DEV_HINT);
|
||||
}
|
||||
})();
|
||||
};
|
||||
|
||||
// The frontend derives ws:// or wss:// from the page's own scheme, so the
|
||||
// WebSocket follows this choice without any further configuration.
|
||||
const server = tlsOptions
|
||||
? createSecureServer(tlsOptions, requestHandler)
|
||||
: createServer(requestHandler);
|
||||
|
||||
const wss = new WebSocketServer({
|
||||
server,
|
||||
path: "/ws",
|
||||
maxPayload: WS_MAX_PAYLOAD,
|
||||
verifyClient: ({ origin, req }, done) => {
|
||||
if (ALLOWED_ORIGINS.length > 0 && origin && !ALLOWED_ORIGINS.includes(origin.toLowerCase())) {
|
||||
return done(false, 403, "Origin not allowed");
|
||||
}
|
||||
const ip = clientIp(req);
|
||||
if (MAX_CONNECTIONS_PER_IP > 0 && (connectionsPerIp.get(ip) ?? 0) >= MAX_CONNECTIONS_PER_IP) {
|
||||
return done(false, 429, "Too many connections");
|
||||
}
|
||||
done(true);
|
||||
},
|
||||
});
|
||||
|
||||
const wss = new WebSocketServer({ server, path: "/ws" });
|
||||
// Heartbeat: a browser tab that loses its network mid-session (mobile
|
||||
// handover, Wi-Fi drop, backgrounded/frozen tab) often never sends a proper
|
||||
// WS close frame — the OS-level TCP timeout that would eventually notice can
|
||||
// take minutes, during which the connector child process (and the TS3/TeaSpeak
|
||||
// session it holds open) stays alive even though the frontend has already
|
||||
// given up and shown "disconnected". Standard `ws` ping/pong liveness check
|
||||
// closes those zombie sockets (and their connector) promptly instead.
|
||||
const HEARTBEAT_INTERVAL_MS = 20_000;
|
||||
|
||||
interface HeartbeatState {
|
||||
isAlive: boolean;
|
||||
}
|
||||
|
||||
const heartbeats = new WeakMap<WebSocket, HeartbeatState>();
|
||||
|
||||
// Tracked so SIGTERM (below) can tell every live TS3/TeaSpeak session to
|
||||
// disconnect properly before the process exits, instead of leaving the
|
||||
// target server to notice on its own timeout.
|
||||
const liveConnections = new Set<Ts3Connection>();
|
||||
// Set right before that graceful disconnect: suppresses forwarding the
|
||||
// connector's own "disconnected" event to the browser during shutdown, so
|
||||
// the browser sees a raw socket close (which it auto-reconnects from) rather
|
||||
// than an explicit disconnect (which it treats as deliberate and gives up
|
||||
// on) — see the SIGTERM handler.
|
||||
let shuttingDown = false;
|
||||
|
||||
const heartbeatTimer = setInterval(() => {
|
||||
for (const socket of wss.clients) {
|
||||
const state = heartbeats.get(socket);
|
||||
if (!state) continue;
|
||||
if (!state.isAlive) {
|
||||
socket.terminate();
|
||||
continue;
|
||||
}
|
||||
state.isAlive = false;
|
||||
socket.ping();
|
||||
// Protocol pings are invisible to browser JS; this lets the page notice
|
||||
// a dead network on its side too (KEEPALIVE_MESSAGE in web/src/App.tsx).
|
||||
socket.send('{"type":"keepalive"}');
|
||||
}
|
||||
}, HEARTBEAT_INTERVAL_MS);
|
||||
|
||||
wss.on("close", () => clearInterval(heartbeatTimer));
|
||||
|
||||
// Docker sends SIGTERM on `docker stop`/`docker compose up -d` (redeploy)
|
||||
// before the default ~10s grace period elapses. Warn every connected
|
||||
// browser tab so an active call/stream doesn't just silently drop, then
|
||||
// exit quickly rather than waiting out the grace period doing nothing.
|
||||
process.on("SIGTERM", () => {
|
||||
void (async () => {
|
||||
const payload = JSON.stringify({ type: "notice", messageKey: "restartNotice.body" });
|
||||
for (const socket of wss.clients) {
|
||||
try {
|
||||
socket.send(payload);
|
||||
} catch {
|
||||
/* socket already gone */
|
||||
}
|
||||
}
|
||||
console.log(`[gateway] SIGTERM received, notified ${wss.clients.size} client(s), disconnecting ${liveConnections.size} live session(s)`);
|
||||
|
||||
// Tell every connector to leave its TS3/TeaSpeak server *before* the
|
||||
// process exits. Without this, `docker stop`'s grace period expires and
|
||||
// the container is killed, taking the connector child processes with it
|
||||
// mid-session - the target server only notices via its own timeout
|
||||
// (which can take a while), during which a client's automatic reconnect
|
||||
// (see App.tsx's scheduleReconnect) gets rejected by the server as a
|
||||
// duplicate identity (e.g. "ClientTooManyClonesConnected"). shuttingDown
|
||||
// suppresses forwarding the resulting "disconnected" event to the
|
||||
// browser - the browser must see a raw socket close here, not an
|
||||
// explicit disconnect, or it treats it as deliberate and won't retry.
|
||||
shuttingDown = true;
|
||||
await Promise.race([
|
||||
Promise.all([...liveConnections].map((c) => c.disconnect().catch(() => {}))),
|
||||
new Promise((resolve) => setTimeout(resolve, 5000)),
|
||||
]);
|
||||
console.log(`[gateway] shutting down`);
|
||||
process.exit(0);
|
||||
})();
|
||||
});
|
||||
|
||||
server.listen(PORT, () => {
|
||||
console.log(`WebSpeak3 gateway listening on http://localhost:${PORT} (WebSocket at /ws)`);
|
||||
const scheme = tlsOptions ? "https" : "http";
|
||||
console.log(
|
||||
`WebSpeak3 gateway listening on ${scheme}://localhost:${PORT} (WebSocket at /ws)`
|
||||
);
|
||||
if (SERVE_STATIC) {
|
||||
console.log(`Serving static UI from ${WEB_DIST}`);
|
||||
console.log(`Dev tip: use http://localhost:5173/ for live UI; rebuild web/dist after UI changes if you open :${PORT}`);
|
||||
} else {
|
||||
console.log(`Static UI disabled (WEB_STATIC=0) — open http://localhost:5173/ for the Vite dev UI`);
|
||||
console.log(`Static UI disabled (WEB_STATIC=0): WebSocket and /api/feedback only, no UI served from this host`);
|
||||
}
|
||||
});
|
||||
|
||||
wss.on("connection", (socket: WebSocket) => {
|
||||
wss.on("connection", (socket: WebSocket, req: IncomingMessage) => {
|
||||
// One browser WebSocket ↔ one Rust connector. Multi-join in the UI opens
|
||||
// multiple /ws connections in parallel (one per server tab).
|
||||
let connection: Ts3Connection | undefined;
|
||||
|
||||
socket.on("message", async (raw) => {
|
||||
const msg = JSON.parse(raw.toString());
|
||||
// Full: accept and say so, since a browser can't read why an upgrade was refused.
|
||||
if (MAX_CONNECTIONS > 0 && wss.clients.size > MAX_CONNECTIONS) {
|
||||
socket.send(JSON.stringify({ type: "error", code: "gateway_full", message: "This gateway is full right now. Please try again in a few minutes." }));
|
||||
socket.close(1013, "Gateway is full");
|
||||
return;
|
||||
}
|
||||
|
||||
const ip = clientIp(req);
|
||||
connectionsPerIp.set(ip, (connectionsPerIp.get(ip) ?? 0) + 1);
|
||||
|
||||
// The hosted UI updates on every push, the gateway only when its image is
|
||||
// pulled, so the browser must not assume a feature exists just because it
|
||||
// knows about it. A gateway without "hello" (before v0.15) supports the
|
||||
// v0.14 feature set, streaming included; anything newer gets a name here.
|
||||
socket.send(JSON.stringify({ type: "hello", features: GATEWAY_FEATURES, iceServers: turnServers() }));
|
||||
|
||||
heartbeats.set(socket, { isAlive: true });
|
||||
socket.on("pong", () => {
|
||||
const state = heartbeats.get(socket);
|
||||
if (state) state.isAlive = true;
|
||||
});
|
||||
|
||||
socket.on("message", async (raw) => {
|
||||
// Everything below runs inside this try/catch on purpose: any exception
|
||||
// here - malformed JSON, a handler throwing on unexpected input - would
|
||||
// otherwise become an unhandled rejection (this callback is async) and
|
||||
// take the whole process down with it, dropping every other connected
|
||||
// user's live session. One bad message from one tab must never do that.
|
||||
let msg: any;
|
||||
try {
|
||||
msg = JSON.parse(raw.toString());
|
||||
} catch {
|
||||
socket.send(JSON.stringify({ type: "error", message: "Invalid JSON" }));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await handleMessage(msg);
|
||||
} catch (err) {
|
||||
console.error("[gateway] Error handling WS message:", err);
|
||||
try {
|
||||
socket.send(JSON.stringify({ type: "error", message: "Internal error handling message" }));
|
||||
} catch {
|
||||
/* socket already gone */
|
||||
}
|
||||
}
|
||||
|
||||
async function handleMessage(msg: any): Promise<void> {
|
||||
switch (msg.type) {
|
||||
case "connect": {
|
||||
if (!isValidHost(msg.host) || !isValidNickname(msg.nickname)) {
|
||||
socket.send(JSON.stringify({ type: "error", message: "Invalid server address or nickname." }));
|
||||
break;
|
||||
}
|
||||
if (!isServerAllowed(msg.host)) {
|
||||
socket.send(
|
||||
JSON.stringify({ type: "error", message: "This server is not allowed by this gateway's admin." }),
|
||||
);
|
||||
break;
|
||||
}
|
||||
if (CONNECT_RATE_LIMIT > 0 && isConnectRateLimited(ip)) {
|
||||
console.warn(`[ratelimit] too many connects from one IP, target host=${msg.host}`);
|
||||
socket.send(
|
||||
JSON.stringify({ type: "error", message: "Too many connection attempts. Please wait a minute." }),
|
||||
);
|
||||
break;
|
||||
}
|
||||
// Replacing a connection on the same socket: tear down the previous
|
||||
// connector so we don't leak processes.
|
||||
if (connection) {
|
||||
@@ -114,6 +753,7 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
liveConnections.delete(connection);
|
||||
connection = undefined;
|
||||
}
|
||||
const options: Ts3ConnectOptions = {
|
||||
@@ -127,14 +767,31 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
privilegeKey: parsePrivilegeKey(msg),
|
||||
};
|
||||
connection = new Ts3Connection(options);
|
||||
connection.onEvent((event) => socket.send(JSON.stringify(event)));
|
||||
liveConnections.add(connection);
|
||||
connection.onEvent((event) => {
|
||||
if (shuttingDown) return;
|
||||
if (event.type === "connected") {
|
||||
logConnectionEvent({ type: "connected", host: options.host, server: event.serverName });
|
||||
} else if (event.type === "disconnected") {
|
||||
logConnectionEvent({ type: "disconnected", host: options.host });
|
||||
}
|
||||
socket.send(JSON.stringify(event));
|
||||
});
|
||||
await connection.connect();
|
||||
break;
|
||||
}
|
||||
case "switchChannel": {
|
||||
const channelId = Number(msg.channelId);
|
||||
if (Number.isFinite(channelId)) {
|
||||
await connection?.switchChannel(channelId);
|
||||
await connection?.switchChannel(channelId, msg.channelPassword);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "moveClient": {
|
||||
const clientId = Number(msg.clientId);
|
||||
const channelId = Number(msg.channelId);
|
||||
if (Number.isFinite(clientId) && Number.isFinite(channelId)) {
|
||||
await connection?.moveClient(clientId, channelId, msg.channelPassword);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -158,6 +815,61 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
await connection?.sendAudio(msg.pcm);
|
||||
break;
|
||||
}
|
||||
case "requestStreamInfo": {
|
||||
const clientId = Number(msg.clientId);
|
||||
if (Number.isFinite(clientId)) await connection?.requestStreamInfo(clientId);
|
||||
break;
|
||||
}
|
||||
case "joinStream": {
|
||||
const clientId = Number(msg.clientId);
|
||||
if (Number.isFinite(clientId)) {
|
||||
await connection?.joinStream(String(msg.streamId ?? ""), clientId, msg.message ?? "");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "leaveStream": {
|
||||
const clientId = Number(msg.clientId);
|
||||
if (Number.isFinite(clientId)) {
|
||||
await connection?.leaveStream(String(msg.streamId ?? ""), clientId);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "streamSignal": {
|
||||
const clientId = Number(msg.clientId);
|
||||
if (Number.isFinite(clientId) && msg.payload !== undefined) {
|
||||
await connection?.sendStreamSignal(String(msg.streamId ?? ""), clientId, msg.payload);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "setupStream": {
|
||||
await connection?.setupStream({
|
||||
name: String(msg.name ?? "Stream"),
|
||||
type: Number(msg.streamType ?? 3),
|
||||
bitrate: Number(msg.bitrate ?? 1_500_000),
|
||||
accessibility: Number(msg.accessibility ?? 1),
|
||||
mode: Number(msg.mode ?? 1),
|
||||
viewerLimit: Number(msg.viewerLimit ?? 0),
|
||||
audio: Boolean(msg.audio),
|
||||
});
|
||||
break;
|
||||
}
|
||||
case "respondJoinStream": {
|
||||
const clientId = Number(msg.clientId);
|
||||
if (Number.isFinite(clientId)) {
|
||||
await connection?.respondJoinStream(
|
||||
String(msg.streamId ?? ""),
|
||||
clientId,
|
||||
Boolean(msg.accept),
|
||||
String(msg.offer ?? ""),
|
||||
String(msg.message ?? ""),
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "stopStream": {
|
||||
await connection?.stopStream(String(msg.streamId ?? ""), String(msg.reason ?? ""));
|
||||
break;
|
||||
}
|
||||
case "setAway": {
|
||||
await connection?.setAway(msg.away, msg.message ?? "");
|
||||
break;
|
||||
@@ -170,10 +882,18 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
await connection?.setOutputMuted(msg.muted);
|
||||
break;
|
||||
}
|
||||
case "setClientVolume": {
|
||||
connection?.setClientVolume(Number(msg.clientId), Number(msg.volume));
|
||||
break;
|
||||
}
|
||||
case "setNickname": {
|
||||
await connection?.setNickname(msg.nickname);
|
||||
break;
|
||||
}
|
||||
case "setWhisperPolicy": {
|
||||
connection?.setWhisperPolicy(msg.block === true, Array.isArray(msg.exceptions) ? msg.exceptions : []);
|
||||
break;
|
||||
}
|
||||
case "setWhisperTargets": {
|
||||
await connection?.setWhisperTargets(msg.channelIds ?? [], msg.clientIds ?? []);
|
||||
break;
|
||||
@@ -298,10 +1018,18 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
await connection?.downloadFile(msg.channelId, msg.path);
|
||||
break;
|
||||
}
|
||||
case "setTransferLimit": {
|
||||
connection?.setTransferLimit(msg.up, msg.down);
|
||||
break;
|
||||
}
|
||||
case "uploadFile": {
|
||||
await connection?.uploadFile(msg.channelId, msg.path, msg.dataBase64);
|
||||
break;
|
||||
}
|
||||
case "uploadFileChunk": {
|
||||
await connection?.uploadFileChunk(msg.channelId, msg.path, msg.offset, msg.total, msg.data);
|
||||
break;
|
||||
}
|
||||
case "getPermissionCatalog": {
|
||||
await connection?.getPermissionCatalog();
|
||||
break;
|
||||
@@ -320,6 +1048,8 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
}
|
||||
case "disconnect": {
|
||||
await connection?.disconnect(msg.message ?? "");
|
||||
if (connection) liveConnections.delete(connection);
|
||||
connection = undefined;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -327,9 +1057,15 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
JSON.stringify({ type: "error", message: `Unknown message type: ${msg.type}` })
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("close", () => {
|
||||
const remaining = (connectionsPerIp.get(ip) ?? 1) - 1;
|
||||
if (remaining > 0) connectionsPerIp.set(ip, remaining);
|
||||
else connectionsPerIp.delete(ip);
|
||||
heartbeats.delete(socket);
|
||||
if (connection) liveConnections.delete(connection);
|
||||
connection?.disconnect();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,40 @@
|
||||
import type { IncomingMessage } from "node:http";
|
||||
|
||||
// Behind a reverse proxy / tunnel every request arrives from the proxy's own
|
||||
// address, so per-IP limits would lump all users into one bucket. Only set
|
||||
// TRUST_PROXY when the gateway is reachable *solely* through that proxy:
|
||||
// - "cloudflare": CF-Connecting-IP, which Cloudflare always sets itself.
|
||||
// - "1": the last X-Forwarded-For entry, the one our own proxy appended;
|
||||
// anything before it came from the client and can be made up.
|
||||
const TRUST_PROXY = process.env.TRUST_PROXY;
|
||||
|
||||
export function clientIp(req: IncomingMessage): string {
|
||||
if (TRUST_PROXY === "cloudflare") {
|
||||
const cf = req.headers["cf-connecting-ip"];
|
||||
if (typeof cf === "string" && cf.trim()) return cf.trim();
|
||||
} else if (TRUST_PROXY === "1") {
|
||||
const last = String(req.headers["x-forwarded-for"] ?? "").split(",").at(-1)?.trim();
|
||||
if (last) return last;
|
||||
}
|
||||
return (req.socket.remoteAddress ?? "unknown").replace(/^::ffff:/, "");
|
||||
}
|
||||
|
||||
/** Sliding-window "N per window per key" limiter. Expired keys are swept
|
||||
* periodically so the map can't grow without bound under a stream of
|
||||
* one-shot IPs. */
|
||||
export function createRateLimiter(limit: number, windowMs: number): (key: string) => boolean {
|
||||
const hits = new Map<string, number[]>();
|
||||
setInterval(() => {
|
||||
const now = Date.now();
|
||||
for (const [key, times] of hits) {
|
||||
if (times.every((t) => now - t >= windowMs)) hits.delete(key);
|
||||
}
|
||||
}, windowMs).unref();
|
||||
return (key) => {
|
||||
const now = Date.now();
|
||||
const recent = (hits.get(key) ?? []).filter((t) => now - t < windowMs);
|
||||
recent.push(now);
|
||||
hits.set(key, recent);
|
||||
return recent.length > limit;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
// --- News ticker -----------------------------------------------------------
|
||||
//
|
||||
// Two halves:
|
||||
// * handleNewsFeed - the central feed every client shows by default. Served
|
||||
// by store-server.ts at /api/store/news, so it rides the existing
|
||||
// /api/store tunnel route. Manual items live in NEWS_DATA_FILE and are
|
||||
// managed with STORE_ADMIN_TOKEN (the stats panel); the latest release and
|
||||
// the newest store design are added automatically.
|
||||
// * handleNewsConfig - every gateway's /api/news. Tells its own client
|
||||
// whether to show the ticker at all (NEWS_TICKER=0 turns it off), whether
|
||||
// to include the central feed (NEWS_TICKER_CENTRAL=0 drops it), and the
|
||||
// instance's own messages (NEWS_TICKER_MESSAGES, separated by "|").
|
||||
//
|
||||
// Like store.ts, this file has zero private modifications.
|
||||
import type { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { readFile, rename, writeFile } from "node:fs/promises";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { isAdminRequest, latestPublicTheme } from "./store.js";
|
||||
|
||||
type NewsItem =
|
||||
| { id: string; kind: "text"; text: string; url?: string; at: string }
|
||||
| { id: string; kind: "release"; version: string; url: string; at: string }
|
||||
| { id: string; kind: "theme"; name: string; author: string; at: string };
|
||||
type TextItem = Extract<NewsItem, { kind: "text" }>;
|
||||
|
||||
const NEWS_DATA_FILE = process.env.NEWS_DATA_FILE;
|
||||
const GITHUB_REPO = process.env.GITHUB_REPO ?? "WebSpeak3/webspeak3";
|
||||
const MAX_ITEMS = 20;
|
||||
const MAX_TEXT = 300;
|
||||
const AUTO_MAX_AGE_MS = 30 * 24 * 60 * 60 * 1000;
|
||||
|
||||
let cache: TextItem[] | null = null;
|
||||
|
||||
async function load(): Promise<TextItem[]> {
|
||||
if (cache) return cache;
|
||||
if (!NEWS_DATA_FILE) return (cache = []);
|
||||
try {
|
||||
cache = JSON.parse(await readFile(NEWS_DATA_FILE, "utf-8")) as TextItem[];
|
||||
} catch (err) {
|
||||
if ((err as NodeJS.ErrnoException).code !== "ENOENT") throw err;
|
||||
cache = [];
|
||||
}
|
||||
return cache;
|
||||
}
|
||||
|
||||
async function save(items: TextItem[]) {
|
||||
const tmp = `${NEWS_DATA_FILE}.tmp`;
|
||||
await writeFile(tmp, JSON.stringify(items), "utf-8");
|
||||
await rename(tmp, NEWS_DATA_FILE!);
|
||||
cache = items;
|
||||
}
|
||||
|
||||
// Unauthenticated GitHub API allows 60 requests/hour; one per hour is plenty.
|
||||
let release: { item: NewsItem | null; fetchedAt: number } = { item: null, fetchedAt: 0 };
|
||||
|
||||
async function latestRelease(): Promise<NewsItem | null> {
|
||||
if (Date.now() - release.fetchedAt < 60 * 60 * 1000) return release.item;
|
||||
release.fetchedAt = Date.now();
|
||||
try {
|
||||
const res = await fetch(`https://api.github.com/repos/${GITHUB_REPO}/releases?per_page=1`, {
|
||||
headers: { Accept: "application/vnd.github+json", "User-Agent": "webspeak3-store" },
|
||||
});
|
||||
if (!res.ok) return release.item;
|
||||
const [r] = (await res.json()) as { tag_name: string; html_url: string; published_at: string }[];
|
||||
release.item = r ? { id: `release-${r.tag_name}`, kind: "release", version: r.tag_name, url: r.html_url, at: r.published_at } : null;
|
||||
} catch (err) {
|
||||
console.error("[news] Release lookup failed:", err);
|
||||
}
|
||||
return release.item;
|
||||
}
|
||||
|
||||
function isRecent(item: NewsItem | null | undefined): item is NewsItem {
|
||||
return item != null && Date.now() - Date.parse(item.at) < AUTO_MAX_AGE_MS;
|
||||
}
|
||||
|
||||
function json(res: ServerResponse, status: number, body: unknown) {
|
||||
res.writeHead(status, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify(body));
|
||||
}
|
||||
|
||||
async function readBody(req: IncomingMessage): Promise<Record<string, unknown> | null> {
|
||||
let raw = "";
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > 5_000) return null;
|
||||
}
|
||||
try {
|
||||
const parsed = JSON.parse(raw) as unknown;
|
||||
return parsed && typeof parsed === "object" ? (parsed as Record<string, unknown>) : null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export async function handleNewsFeed(req: IncomingMessage, res: ServerResponse, pathname: string) {
|
||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||
res.setHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
|
||||
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
|
||||
if (req.method === "OPTIONS") {
|
||||
res.writeHead(204);
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
|
||||
if (pathname === "/api/store/news") {
|
||||
const theme = await latestPublicTheme();
|
||||
const auto = [
|
||||
await latestRelease(),
|
||||
theme && ({ id: `theme-${theme.id}`, kind: "theme", name: theme.name, author: theme.author, at: theme.createdAt } as NewsItem),
|
||||
].filter(isRecent);
|
||||
res.setHeader("Cache-Control", "public, max-age=300");
|
||||
json(res, 200, { items: [...(await load()), ...auto] });
|
||||
return;
|
||||
}
|
||||
|
||||
// /api/store/news/admin: GET lists, POST {action:"add",text,url?} or {action:"delete",id}.
|
||||
if (!NEWS_DATA_FILE) return json(res, 404, { error: "not_found" });
|
||||
if (!isAdminRequest(req)) return json(res, 401, { error: "unauthorized" });
|
||||
if (req.method === "GET") return json(res, 200, { items: await load() });
|
||||
if (req.method !== "POST") return json(res, 405, { error: "method_not_allowed" });
|
||||
|
||||
const body = await readBody(req);
|
||||
const items = [...(await load())];
|
||||
if (body?.action === "delete" && typeof body.id === "string") {
|
||||
await save(items.filter((i) => i.id !== body.id));
|
||||
return json(res, 200, { ok: true });
|
||||
}
|
||||
if (body?.action === "add" && typeof body.text === "string" && body.text.trim()) {
|
||||
const url = typeof body.url === "string" && /^https:\/\/\S+$/.test(body.url.trim()) ? body.url.trim() : undefined;
|
||||
if (items.length >= MAX_ITEMS) return json(res, 400, { error: "too_many_items" });
|
||||
items.push({ id: randomUUID(), kind: "text", text: body.text.trim().slice(0, MAX_TEXT), url, at: new Date().toISOString() });
|
||||
await save(items);
|
||||
return json(res, 200, { ok: true });
|
||||
}
|
||||
json(res, 400, { error: "bad_request" });
|
||||
}
|
||||
|
||||
const NEWS_TICKER = process.env.NEWS_TICKER !== "0";
|
||||
const NEWS_TICKER_CENTRAL = process.env.NEWS_TICKER_CENTRAL !== "0";
|
||||
const LOCAL_ITEMS: NewsItem[] = (process.env.NEWS_TICKER_MESSAGES ?? "")
|
||||
.split("|")
|
||||
.map((text) => text.trim().slice(0, MAX_TEXT))
|
||||
.filter(Boolean)
|
||||
.map((text, i) => ({ id: `local-${i}-${text}`, kind: "text", text, at: "" }));
|
||||
|
||||
export function handleNewsConfig(res: ServerResponse) {
|
||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||
res.setHeader("Cache-Control", "public, max-age=300");
|
||||
json(res, 200, NEWS_TICKER ? { enabled: true, central: NEWS_TICKER_CENTRAL, items: LOCAL_ITEMS } : { enabled: false });
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
// --- Receiving end of telemetry.ts ---------------------------------------------
|
||||
//
|
||||
// Only served by store-server.ts, and only with PING_DATA_FILE set. Keeps one
|
||||
// row per instance id: version, first and last seen. No IP addresses, no
|
||||
// request log. The admin view returns counts only.
|
||||
import type { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { readFile, rename, writeFile } from "node:fs/promises";
|
||||
import { clientIp, createRateLimiter } from "./net.js";
|
||||
import { isAdminRequest } from "./store.js";
|
||||
|
||||
const PING_DATA_FILE = process.env.PING_DATA_FILE;
|
||||
const MAX_INSTANCES = 20_000;
|
||||
const DAY_MS = 24 * 60 * 60 * 1000;
|
||||
const isRateLimited = createRateLimiter(20, 60 * 60 * 1000);
|
||||
|
||||
interface Instance {
|
||||
version: string;
|
||||
firstSeen: string;
|
||||
lastSeen: string;
|
||||
}
|
||||
|
||||
let cache: Record<string, Instance> | null = null;
|
||||
|
||||
async function load(): Promise<Record<string, Instance>> {
|
||||
if (cache) return cache;
|
||||
try {
|
||||
cache = JSON.parse(await readFile(PING_DATA_FILE!, "utf-8")) as Record<string, Instance>;
|
||||
} catch (err) {
|
||||
if ((err as NodeJS.ErrnoException).code !== "ENOENT") throw err;
|
||||
cache = {};
|
||||
}
|
||||
return cache;
|
||||
}
|
||||
|
||||
async function save(instances: Record<string, Instance>) {
|
||||
// Instances silent for 90 days are gone for good.
|
||||
const cutoff = Date.now() - 90 * DAY_MS;
|
||||
for (const [id, i] of Object.entries(instances)) if (Date.parse(i.lastSeen) < cutoff) delete instances[id];
|
||||
const tmp = `${PING_DATA_FILE}.tmp`;
|
||||
await writeFile(tmp, JSON.stringify(instances), "utf-8");
|
||||
await rename(tmp, PING_DATA_FILE!);
|
||||
}
|
||||
|
||||
function json(res: ServerResponse, status: number, body: unknown) {
|
||||
res.writeHead(status, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify(body));
|
||||
}
|
||||
|
||||
export async function handlePing(req: IncomingMessage, res: ServerResponse, pathname: string) {
|
||||
if (!PING_DATA_FILE) return json(res, 404, { error: "not_found" });
|
||||
|
||||
if (pathname === "/api/ping/stats" && req.method === "GET") {
|
||||
if (!isAdminRequest(req)) return json(res, 401, { error: "unauthorized" });
|
||||
const now = Date.now();
|
||||
const instances = Object.values(await load());
|
||||
const activeSince = (days: number) => instances.filter((i) => now - Date.parse(i.lastSeen) < days * DAY_MS);
|
||||
const versions: Record<string, number> = {};
|
||||
for (const i of activeSince(30)) versions[i.version] = (versions[i.version] ?? 0) + 1;
|
||||
return json(res, 200, {
|
||||
active2d: activeSince(2).length,
|
||||
active7d: activeSince(7).length,
|
||||
active30d: activeSince(30).length,
|
||||
newLast7d: instances.filter((i) => now - Date.parse(i.firstSeen) < 7 * DAY_MS).length,
|
||||
versions,
|
||||
});
|
||||
}
|
||||
|
||||
if (pathname !== "/api/ping" || req.method !== "POST") return json(res, 405, { error: "method_not_allowed" });
|
||||
if (isRateLimited(clientIp(req))) return json(res, 429, { error: "rate_limited" });
|
||||
|
||||
let raw = "";
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > 500) return json(res, 413, { error: "payload_too_large" });
|
||||
}
|
||||
let body: { id?: unknown; version?: unknown };
|
||||
try {
|
||||
body = JSON.parse(raw || "{}");
|
||||
} catch {
|
||||
return json(res, 400, { error: "invalid_json" });
|
||||
}
|
||||
const { id, version } = body;
|
||||
if (typeof id !== "string" || !/^[0-9a-f-]{36}$/.test(id) || typeof version !== "string" || !/^[\w.+-]{1,40}$/.test(version)) {
|
||||
return json(res, 400, { error: "invalid_ping" });
|
||||
}
|
||||
|
||||
const instances = await load();
|
||||
const now = new Date().toISOString();
|
||||
const known = instances[id];
|
||||
if (!known && Object.keys(instances).length >= MAX_INSTANCES) return json(res, 507, { error: "full" });
|
||||
instances[id] = { version, firstSeen: known?.firstSeen ?? now, lastSeen: now };
|
||||
await save(instances);
|
||||
json(res, 200, { ok: true });
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
// Standalone Design Store: the same /api/store/* routes index.ts serves, in a
|
||||
// process of its own. Lets the store be redeployed or restarted without
|
||||
// dropping anyone's voice connection. Same image, different command:
|
||||
// node dist/store-server.js (with STORE_ENABLED=1)
|
||||
// The gateway in front of the same hostname then runs with STORE_ENABLED off
|
||||
// and the reverse proxy routes /api/store/* here.
|
||||
import { createServer } from "node:http";
|
||||
import { handleStore } from "./store.js";
|
||||
import { handlePing } from "./ping.js";
|
||||
import { handleNewsFeed } from "./news.js";
|
||||
|
||||
const PORT = Number(process.env.PORT ?? 8080);
|
||||
|
||||
createServer((req, res) => {
|
||||
res.setHeader("X-Content-Type-Options", "nosniff");
|
||||
const { pathname } = new URL(req.url ?? "/", "http://localhost");
|
||||
if (pathname === "/healthz") {
|
||||
res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" });
|
||||
res.end("ok\n");
|
||||
return;
|
||||
}
|
||||
if (pathname === "/api/store/admin" || pathname === "/api/store/themes" || pathname.startsWith("/api/store/themes/")) {
|
||||
handleStore(req, res, pathname).catch((err) => {
|
||||
console.error("[store] Request failed:", err);
|
||||
if (!res.headersSent) {
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "internal" }));
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (pathname === "/api/store/news" || pathname === "/api/store/news/admin") {
|
||||
handleNewsFeed(req, res, pathname).catch((err) => {
|
||||
console.error("[news] Request failed:", err);
|
||||
if (!res.headersSent) {
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "internal" }));
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (pathname === "/api/ping" || pathname === "/api/ping/stats") {
|
||||
handlePing(req, res, pathname).catch((err) => {
|
||||
console.error("[ping] Request failed:", err);
|
||||
if (!res.headersSent) {
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "internal" }));
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
}).listen(PORT, () => console.log(`WebSpeak3 store listening on http://localhost:${PORT}`));
|
||||
@@ -0,0 +1,536 @@
|
||||
// --- Design Store endpoint -------------------------------------------------
|
||||
//
|
||||
// Opt-in only, same convention as LOG_CONNECTIONS/FEEDBACK_ENABLED/BROADCAST_TOKEN
|
||||
// in index.ts: public CSS uploads need moderation attention a plain self-hosted
|
||||
// instance shouldn't inherit just because the code exists. Set STORE_ENABLED=1
|
||||
// to turn it on.
|
||||
//
|
||||
// Kept in its own module (unlike feedback/broadcast, which stay inline in
|
||||
// index.ts) so the private VPS overlay - a hand-patched fork of index.ts that
|
||||
// swaps feedback/connection persistence to SQLite - never needs this file
|
||||
// touched. It has zero private modifications, so the overlay just copies it
|
||||
// verbatim; only index.ts's small SQLite-persistence sections need patching.
|
||||
import type { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { readFile, rename, writeFile } from "node:fs/promises";
|
||||
import { timingSafeEqual, randomUUID } from "node:crypto";
|
||||
import path from "node:path";
|
||||
import { clientIp, createRateLimiter } from "./net.js";
|
||||
|
||||
const STORE_ENABLED = process.env.STORE_ENABLED === "1";
|
||||
const STORE_ALLOWED_ORIGIN = process.env.STORE_ALLOWED_ORIGIN ?? "*";
|
||||
// Plain JSON file (whole-array read-modify-write, not JSON-lines like
|
||||
// feedback.log in index.ts): the store needs to list and look up by id, and
|
||||
// the expected volume (community theme submissions) is small enough that
|
||||
// rewriting the whole file each time is simpler than a real DB - see the
|
||||
// "never add SQLite to the public gateway" note in mem:reference_webspeak3_private_sqlite_persistence.
|
||||
const STORE_DATA_FILE = process.env.STORE_DATA_FILE ?? path.resolve(process.cwd(), "store-themes.json");
|
||||
const STORE_NAME_MAX_LENGTH = 60;
|
||||
const STORE_AUTHOR_MAX_LENGTH = 40;
|
||||
const STORE_DESCRIPTION_MAX_LENGTH = 300;
|
||||
const STORE_CSS_MAX_LENGTH = 50_000;
|
||||
// ~300KB image after base64 overhead - screenshots live inline in the same
|
||||
// flat JSON file as everything else, so this also bounds that file's growth.
|
||||
const STORE_SCREENSHOT_MAX_DATA_URL_LENGTH = 400_000;
|
||||
const STORE_SCREENSHOT_RE = /^data:image\/(png|jpe?g|webp);base64,[A-Za-z0-9+/]+=*$/;
|
||||
// Hard cap so the flat file - and the in-memory cache mirroring it - can't
|
||||
// grow unbounded from spam that slips past rate limiting (a fresh IP per
|
||||
// submission, say). Bounds worst case to ~300 * 450KB =~ 135MB in RAM.
|
||||
const STORE_MAX_THEMES = 300;
|
||||
const STORE_BASE_THEMES = new Set(["standard", "nova", "pulse", "ide"]);
|
||||
|
||||
// A handful of names (the operator's own) that only whoever holds
|
||||
// STORE_ADMIN_TOKEN may publish under - stops anyone else from impersonating
|
||||
// the maintainer in the author field. Everyone else's name is first-come,
|
||||
// unenforced, same as any other free-text field here.
|
||||
const STORE_RESERVED_AUTHORS = new Set(
|
||||
(process.env.STORE_RESERVED_AUTHORS ?? "Möpchi,Moepchi")
|
||||
.split(",")
|
||||
.map((s) => s.trim().toLowerCase())
|
||||
.filter(Boolean)
|
||||
);
|
||||
const STORE_ADMIN_TOKEN = process.env.STORE_ADMIN_TOKEN;
|
||||
|
||||
function isValidStoreAdminToken(provided: string): boolean {
|
||||
if (!STORE_ADMIN_TOKEN) return false;
|
||||
const a = Buffer.from(provided);
|
||||
const b = Buffer.from(STORE_ADMIN_TOKEN);
|
||||
return a.length === b.length && timingSafeEqual(a, b);
|
||||
}
|
||||
|
||||
interface StoreTheme {
|
||||
id: string;
|
||||
name: string;
|
||||
baseTheme: string;
|
||||
css: string;
|
||||
author: string;
|
||||
description: string;
|
||||
screenshot: string | null;
|
||||
ratingSum: number;
|
||||
ratingCount: number;
|
||||
createdAt: string;
|
||||
// New submissions start "pending" and only become public once someone
|
||||
// holding STORE_ADMIN_TOKEN approves them (GET /api/store/admin); rejected
|
||||
// ones are deleted outright. "rejected" only survives in old data files.
|
||||
status: "approved" | "pending" | "rejected";
|
||||
}
|
||||
|
||||
// Undo what a plain pattern check would miss: comments splitting a keyword
|
||||
// (u/**/rl), CSS escapes (\75 rl( is url(), and case.
|
||||
function normalizeCss(css: string): string {
|
||||
return css
|
||||
.replace(/\/\*[\s\S]*?\*\//g, "")
|
||||
.replace(/\\([0-9a-f]{1,6})\s?/gi, (_, hex: string) => {
|
||||
const cp = parseInt(hex, 16);
|
||||
return cp > 0 && cp <= 0x10ffff ? String.fromCodePoint(cp) : "\ufffd";
|
||||
})
|
||||
.replace(/\\(.)/gs, "$1")
|
||||
.toLowerCase();
|
||||
}
|
||||
|
||||
// Theme CSS runs in every installer's browser, so it may style the app but
|
||||
// never load anything: no imports/fonts, no functions that fetch a resource,
|
||||
// and url() only for inline data: images. Everything else (colors,
|
||||
// selectors, animations) can at worst look bad - which moderation catches.
|
||||
const FORBIDDEN_CSS = [
|
||||
/@import/,
|
||||
/@font-face/,
|
||||
/@namespace/,
|
||||
/(?:^|[^a-z-])(?:image-set|image|cross-fade|element|src|expression)\s*\(/,
|
||||
/-moz-binding/,
|
||||
/behavior\s*:/,
|
||||
/javascript:/,
|
||||
/<\/?style/,
|
||||
];
|
||||
|
||||
export function isSafeThemeCss(css: string): boolean {
|
||||
const normalized = normalizeCss(css);
|
||||
if (FORBIDDEN_CSS.some((re) => re.test(normalized))) return false;
|
||||
for (const match of normalized.matchAll(/url\s*\(\s*(["']?)\s*([^"')\s]*)/g)) {
|
||||
if (!/^data:image\/(?:png|jpeg|gif|webp|svg\+xml)[;,]/.test(match[2])) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
let storeCache: StoreTheme[] | null = null;
|
||||
|
||||
async function loadStoreThemes(): Promise<StoreTheme[]> {
|
||||
if (storeCache) return storeCache;
|
||||
try {
|
||||
storeCache = JSON.parse(await readFile(STORE_DATA_FILE, "utf-8")) as StoreTheme[];
|
||||
} catch (err) {
|
||||
// Only a missing file means "no themes yet". Anything else (unreadable,
|
||||
// corrupt) must fail loudly - treating it as empty would let the next
|
||||
// submission overwrite every stored theme.
|
||||
if ((err as NodeJS.ErrnoException).code !== "ENOENT") throw err;
|
||||
storeCache = [];
|
||||
}
|
||||
return storeCache;
|
||||
}
|
||||
|
||||
async function saveStoreThemes(themes: StoreTheme[]): Promise<void> {
|
||||
storeCache = themes;
|
||||
// Write-then-rename: a crash mid-write must not leave a truncated file,
|
||||
// which loadStoreThemes() would read as "no themes" and then overwrite.
|
||||
const tmp = `${STORE_DATA_FILE}.tmp`;
|
||||
await writeFile(tmp, JSON.stringify(themes), "utf-8");
|
||||
await rename(tmp, STORE_DATA_FILE);
|
||||
}
|
||||
|
||||
export function isAdminRequest(req: IncomingMessage): boolean {
|
||||
const authHeader = req.headers.authorization ?? "";
|
||||
return authHeader.startsWith("Bearer ") && isValidStoreAdminToken(authHeader.slice("Bearer ".length));
|
||||
}
|
||||
|
||||
// Approved, and still passing today's CSS check - themes published before
|
||||
// that check got stricter are hidden instead of served.
|
||||
function isPublic(theme: StoreTheme): boolean {
|
||||
return theme.status === "approved" && isSafeThemeCss(theme.css);
|
||||
}
|
||||
|
||||
/** Newest public design, for the news ticker (news.ts). */
|
||||
export async function latestPublicTheme(): Promise<StoreTheme | undefined> {
|
||||
return (await loadStoreThemes()).filter(isPublic).sort((a, b) => b.createdAt.localeCompare(a.createdAt))[0];
|
||||
}
|
||||
|
||||
// Same in-memory-per-IP approach as FEEDBACK_RATE_LIMIT in index.ts; kept as a
|
||||
// separate map since the two endpoints are independent.
|
||||
const STORE_RATE_LIMIT = 5;
|
||||
const STORE_RATE_WINDOW_MS = 60 * 60 * 1000;
|
||||
const isStoreRateLimited = createRateLimiter(STORE_RATE_LIMIT, STORE_RATE_WINDOW_MS);
|
||||
|
||||
// One rating per IP per theme - not robust against a determined multi-IP
|
||||
// spammer, but it stops the trivial "click again" case with no accounts to
|
||||
// build. Memory-only, so it resets on redeploy; a repeat vote after that just
|
||||
// counts twice, which is an acceptable ceiling for a beta feature.
|
||||
const storeRatingsSeen = new Set<string>();
|
||||
|
||||
function setStoreCors(res: ServerResponse) {
|
||||
res.setHeader("Access-Control-Allow-Origin", STORE_ALLOWED_ORIGIN);
|
||||
res.setHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
|
||||
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
|
||||
}
|
||||
|
||||
function storeRating(theme: StoreTheme): { average: number; count: number } {
|
||||
// theme.ratingCount is undefined for themes submitted before this field existed.
|
||||
const count = theme.ratingCount ?? 0;
|
||||
return { average: count ? theme.ratingSum / count : 0, count };
|
||||
}
|
||||
|
||||
async function handleStoreList(res: ServerResponse) {
|
||||
const themes = await loadStoreThemes();
|
||||
const listing = themes
|
||||
.filter(isPublic)
|
||||
.sort((a, b) => b.createdAt.localeCompare(a.createdAt))
|
||||
.map((t) => ({
|
||||
id: t.id,
|
||||
name: t.name,
|
||||
baseTheme: t.baseTheme,
|
||||
author: t.author,
|
||||
description: t.description ?? "",
|
||||
hasScreenshot: Boolean(t.screenshot),
|
||||
rating: storeRating(t),
|
||||
createdAt: t.createdAt,
|
||||
}));
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify(listing));
|
||||
}
|
||||
|
||||
async function handleStoreDownload(req: IncomingMessage, res: ServerResponse, id: string) {
|
||||
const themes = await loadStoreThemes();
|
||||
const theme = themes.find((t) => t.id === id && (isPublic(t) || isAdminRequest(req)));
|
||||
if (!theme) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
// Same shape as the client's own .webspeak3theme.json export/import, so the
|
||||
// browsed result feeds straight into the existing import validator.
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ name: theme.name, baseTheme: theme.baseTheme, css: theme.css }));
|
||||
}
|
||||
|
||||
async function handleStoreScreenshot(req: IncomingMessage, res: ServerResponse, id: string) {
|
||||
const themes = await loadStoreThemes();
|
||||
const theme = themes.find((t) => t.id === id && (isPublic(t) || isAdminRequest(req)));
|
||||
if (!theme?.screenshot) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
const match = /^data:(image\/[a-z]+);base64,(.+)$/.exec(theme.screenshot);
|
||||
if (!match) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
res.writeHead(200, { "Content-Type": match[1], "Cache-Control": "public, max-age=3600" });
|
||||
res.end(Buffer.from(match[2], "base64"));
|
||||
}
|
||||
|
||||
async function handleStoreRate(req: IncomingMessage, res: ServerResponse, id: string) {
|
||||
const ip = clientIp(req);
|
||||
const seenKey = `${ip}:${id}`;
|
||||
if (storeRatingsSeen.has(seenKey)) {
|
||||
res.writeHead(409, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "already_rated" }));
|
||||
return;
|
||||
}
|
||||
|
||||
let raw = "";
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > 200) {
|
||||
res.writeHead(413, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "payload_too_large" }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let body: { stars?: unknown };
|
||||
try {
|
||||
body = JSON.parse(raw || "{}");
|
||||
} catch {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_json" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const stars = typeof body.stars === "number" ? Math.round(body.stars) : NaN;
|
||||
if (!Number.isInteger(stars) || stars < 1 || stars > 5) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_stars" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const themes = await loadStoreThemes();
|
||||
const theme = themes.find((t) => t.id === id && isPublic(t));
|
||||
if (!theme) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
|
||||
theme.ratingSum = (theme.ratingSum ?? 0) + stars;
|
||||
theme.ratingCount = (theme.ratingCount ?? 0) + 1;
|
||||
try {
|
||||
await saveStoreThemes(themes);
|
||||
} catch (err) {
|
||||
console.error("[store] Failed to save rating:", err);
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "save_failed" }));
|
||||
return;
|
||||
}
|
||||
// ponytail: wholesale reset instead of per-entry expiry; only bounds memory,
|
||||
// at worst it lets old voters vote once more, same as a redeploy does.
|
||||
if (storeRatingsSeen.size > 100_000) storeRatingsSeen.clear();
|
||||
storeRatingsSeen.add(seenKey);
|
||||
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true, rating: storeRating(theme) }));
|
||||
}
|
||||
|
||||
async function handleStoreSubmit(req: IncomingMessage, res: ServerResponse) {
|
||||
const ip = clientIp(req);
|
||||
if (isStoreRateLimited(ip)) {
|
||||
res.writeHead(429, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "rate_limited" }));
|
||||
return;
|
||||
}
|
||||
|
||||
let raw = "";
|
||||
const maxBytes = STORE_CSS_MAX_LENGTH + STORE_SCREENSHOT_MAX_DATA_URL_LENGTH + 5_000;
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > maxBytes) {
|
||||
res.writeHead(413, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "payload_too_large" }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let body: {
|
||||
name?: unknown;
|
||||
baseTheme?: unknown;
|
||||
css?: unknown;
|
||||
author?: unknown;
|
||||
description?: unknown;
|
||||
screenshot?: unknown;
|
||||
website?: unknown;
|
||||
};
|
||||
try {
|
||||
body = JSON.parse(raw || "{}");
|
||||
} catch {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_json" }));
|
||||
return;
|
||||
}
|
||||
|
||||
// Honeypot, same as /api/feedback in index.ts.
|
||||
if (typeof body.website === "string" && body.website.trim() !== "") {
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true }));
|
||||
return;
|
||||
}
|
||||
|
||||
const name = typeof body.name === "string" ? body.name.trim().slice(0, STORE_NAME_MAX_LENGTH) : "";
|
||||
const baseTheme = typeof body.baseTheme === "string" && STORE_BASE_THEMES.has(body.baseTheme) ? body.baseTheme : "";
|
||||
const rawCss = typeof body.css === "string" ? body.css.slice(0, STORE_CSS_MAX_LENGTH) : "";
|
||||
const author =
|
||||
typeof body.author === "string" ? body.author.trim().slice(0, STORE_AUTHOR_MAX_LENGTH) || "Anonymous" : "Anonymous";
|
||||
const description = typeof body.description === "string" ? body.description.trim().slice(0, STORE_DESCRIPTION_MAX_LENGTH) : "";
|
||||
|
||||
if (!name || !baseTheme || !rawCss) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_theme" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const isAdmin = isAdminRequest(req);
|
||||
if (STORE_RESERVED_AUTHORS.has(author.toLowerCase())) {
|
||||
if (!isAdmin) {
|
||||
res.writeHead(403, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "author_reserved" }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const css = rawCss;
|
||||
if (!isSafeThemeCss(css)) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "css_rejected" }));
|
||||
return;
|
||||
}
|
||||
|
||||
let screenshot: string | null = null;
|
||||
if (typeof body.screenshot === "string" && body.screenshot !== "") {
|
||||
if (body.screenshot.length > STORE_SCREENSHOT_MAX_DATA_URL_LENGTH || !STORE_SCREENSHOT_RE.test(body.screenshot)) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "invalid_screenshot" }));
|
||||
return;
|
||||
}
|
||||
screenshot = body.screenshot;
|
||||
}
|
||||
|
||||
const themes = await loadStoreThemes();
|
||||
// Re-uploading an installed store theme unchanged would just duplicate it.
|
||||
const cssKey = normalizeCss(css).replace(/\s+/g, "");
|
||||
if (themes.some((t) => normalizeCss(t.css).replace(/\s+/g, "") === cssKey)) {
|
||||
res.writeHead(409, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "duplicate" }));
|
||||
return;
|
||||
}
|
||||
if (themes.length >= STORE_MAX_THEMES) {
|
||||
res.writeHead(507, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "store_full" }));
|
||||
return;
|
||||
}
|
||||
|
||||
const theme: StoreTheme = {
|
||||
id: randomUUID(),
|
||||
name,
|
||||
baseTheme,
|
||||
css,
|
||||
author,
|
||||
description,
|
||||
screenshot,
|
||||
ratingSum: 0,
|
||||
ratingCount: 0,
|
||||
createdAt: new Date().toISOString(),
|
||||
// The admin's own submissions skip the queue - they'd approve them anyway.
|
||||
status: isAdmin ? "approved" : "pending",
|
||||
};
|
||||
themes.push(theme);
|
||||
try {
|
||||
await saveStoreThemes(themes);
|
||||
} catch (err) {
|
||||
console.error("[store] Failed to save theme:", err);
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "save_failed" }));
|
||||
return;
|
||||
}
|
||||
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true, id: theme.id, status: theme.status }));
|
||||
if (theme.status === "pending") console.log(`[store] New theme awaiting review: "${theme.name}" (${theme.id})`);
|
||||
}
|
||||
|
||||
async function handleStorePending(req: IncomingMessage, res: ServerResponse) {
|
||||
if (!isAdminRequest(req)) {
|
||||
res.writeHead(401, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "unauthorized" }));
|
||||
return;
|
||||
}
|
||||
const themes = await loadStoreThemes();
|
||||
const pending = themes
|
||||
.filter((t) => t.status === "pending")
|
||||
.map(({ screenshot, ratingSum: _s, ratingCount: _c, ...t }) => ({ ...t, hasScreenshot: Boolean(screenshot) }));
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify(pending));
|
||||
}
|
||||
|
||||
async function handleStoreModerate(req: IncomingMessage, res: ServerResponse, id: string, action: string) {
|
||||
if (!isAdminRequest(req)) {
|
||||
res.writeHead(401, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "unauthorized" }));
|
||||
return;
|
||||
}
|
||||
const themes = await loadStoreThemes();
|
||||
const index = themes.findIndex((t) => t.id === id);
|
||||
if (index === -1) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
// Reject and delete are the same thing: drop it, freeing its slot.
|
||||
if (action === "approve") themes[index].status = "approved";
|
||||
else themes.splice(index, 1);
|
||||
try {
|
||||
await saveStoreThemes(themes);
|
||||
} catch (err) {
|
||||
console.error("[store] Failed to save moderation result:", err);
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "save_failed" }));
|
||||
return;
|
||||
}
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ ok: true }));
|
||||
}
|
||||
|
||||
// Minimal moderation page. The theme CSS is shown as text only (textContent),
|
||||
// never applied, so reviewing a hostile submission is harmless.
|
||||
const ADMIN_PAGE = `<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Store moderation</title><style>
|
||||
body{font:14px system-ui;margin:0 auto;padding:1rem;max-width:60rem;background:#111;color:#eee}
|
||||
input,button{font:inherit;padding:.4rem .7rem}article{border:1px solid #444;border-radius:8px;padding:1rem;margin:1rem 0}
|
||||
pre{max-height:20rem;overflow:auto;background:#000;padding:.5rem;white-space:pre-wrap}img{max-width:100%}
|
||||
.ok{background:#2a6}.no{background:#a33}button{color:#fff;border:0;border-radius:4px;cursor:pointer}
|
||||
</style></head><body><h1>Design Store – pending themes</h1>
|
||||
<p><input id="token" type="password" placeholder="STORE_ADMIN_TOKEN" size="40"> <button class="ok" id="load">Load</button></p>
|
||||
<div id="list"></div><script>
|
||||
const base = location.pathname.replace(/\/admin$/, "/themes");
|
||||
const auth = () => ({ Authorization: "Bearer " + document.getElementById("token").value });
|
||||
async function load() {
|
||||
const list = document.getElementById("list");
|
||||
list.textContent = "Loading…";
|
||||
const res = await fetch(base + "/pending", { headers: auth() });
|
||||
if (!res.ok) { list.textContent = "Error " + res.status; return; }
|
||||
const themes = await res.json();
|
||||
list.textContent = themes.length ? "" : "Nothing to review.";
|
||||
for (const t of themes) {
|
||||
const el = document.createElement("article");
|
||||
const h = document.createElement("h2"); h.textContent = t.name + " – " + t.author + " (" + t.baseTheme + ")"; el.append(h);
|
||||
const d = document.createElement("p"); d.textContent = t.description + " · " + t.createdAt; el.append(d);
|
||||
if (t.hasScreenshot) {
|
||||
const img = document.createElement("img"); el.append(img);
|
||||
fetch(base + "/" + t.id + "/screenshot", { headers: auth() }).then(r => r.blob()).then(b => img.src = URL.createObjectURL(b));
|
||||
}
|
||||
const pre = document.createElement("pre"); pre.textContent = t.css; el.append(pre);
|
||||
for (const [action, label, cls] of [["approve", "Approve", "ok"], ["reject", "Reject (delete)", "no"]]) {
|
||||
const b = document.createElement("button"); b.textContent = label; b.className = cls; b.style.marginRight = ".5rem";
|
||||
b.onclick = async () => {
|
||||
const r = await fetch(base + "/" + t.id + "/" + action, { method: "POST", headers: auth() });
|
||||
if (r.ok) el.remove(); else alert("Error " + r.status);
|
||||
};
|
||||
el.append(b);
|
||||
}
|
||||
list.append(el);
|
||||
}
|
||||
}
|
||||
document.getElementById("load").onclick = load;
|
||||
</script></body></html>`;
|
||||
|
||||
export async function handleStore(req: IncomingMessage, res: ServerResponse, pathname: string) {
|
||||
setStoreCors(res);
|
||||
if (req.method === "OPTIONS") {
|
||||
res.writeHead(204);
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
if (!STORE_ENABLED) {
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
return;
|
||||
}
|
||||
|
||||
if (pathname === "/api/store/admin") {
|
||||
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8", "Cache-Control": "no-store" });
|
||||
res.end(ADMIN_PAGE);
|
||||
return;
|
||||
}
|
||||
if (pathname === "/api/store/themes") {
|
||||
if (req.method === "GET") return handleStoreList(res);
|
||||
if (req.method === "POST") return handleStoreSubmit(req, res);
|
||||
} else {
|
||||
const [id, sub] = pathname.slice("/api/store/themes/".length).split("/");
|
||||
if (id === "pending" && !sub && req.method === "GET") return handleStorePending(req, res);
|
||||
if (id && !sub && req.method === "GET") return handleStoreDownload(req, res, id);
|
||||
if (id && sub === "screenshot" && req.method === "GET") return handleStoreScreenshot(req, res, id);
|
||||
if (id && (sub === "approve" || sub === "reject") && req.method === "POST") {
|
||||
return handleStoreModerate(req, res, id, sub);
|
||||
}
|
||||
if (id && sub === "rate" && req.method === "POST") return handleStoreRate(req, res, id);
|
||||
}
|
||||
|
||||
res.writeHead(405, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "method_not_allowed" }));
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// Standalone account sync server (Options -> Konto), same image as the gateway:
|
||||
// node dist/sync-server.js (with SYNC_DATA_DIR set)
|
||||
// Its own process so a restart never drops voice connections or the store.
|
||||
import { createServer } from "node:http";
|
||||
import { handleSync } from "./sync.js";
|
||||
|
||||
const PORT = Number(process.env.PORT ?? 8080);
|
||||
|
||||
createServer((req, res) => {
|
||||
res.setHeader("X-Content-Type-Options", "nosniff");
|
||||
const { pathname } = new URL(req.url ?? "/", "http://localhost");
|
||||
if (pathname === "/healthz") {
|
||||
res.writeHead(200, { "Content-Type": "text/plain; charset=utf-8" });
|
||||
res.end("ok\n");
|
||||
return;
|
||||
}
|
||||
if (pathname.startsWith("/api/sync/")) {
|
||||
handleSync(req, res, pathname).catch((err) => {
|
||||
console.error("[sync] Request failed:", err);
|
||||
if (!res.headersSent) {
|
||||
res.writeHead(500, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "internal" }));
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
res.writeHead(404, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "not_found" }));
|
||||
}).listen(PORT, () => console.log(`WebSpeak3 sync listening on http://localhost:${PORT}`));
|
||||
@@ -0,0 +1,246 @@
|
||||
// --- Account sync (Options -> Konto) --------------------------------------------
|
||||
//
|
||||
// Mullvad-style: no e-mail, no name. The client derives an account id, an AES key
|
||||
// and an auth secret from a random account number (+ optional random password),
|
||||
// so this server only ever holds id -> encrypted blob. It never sees the number,
|
||||
// the password or the key. No IP addresses or request logs are kept.
|
||||
//
|
||||
// One JSON file per account in SYNC_DATA_DIR. Only served by sync-server.ts.
|
||||
import type { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { createHash, createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
||||
import { mkdir, readdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { clientIp, createRateLimiter } from "./net.js";
|
||||
|
||||
const SYNC_DATA_DIR = process.env.SYNC_DATA_DIR;
|
||||
const SYNC_ALLOWED_ORIGIN = process.env.SYNC_ALLOWED_ORIGIN ?? "*";
|
||||
// Creating an account costs the browser a few seconds of hashing, so mass sign-ups
|
||||
// get expensive without asking anyone for personal data.
|
||||
// 15 bits = ~33k hashes on average, a few seconds on a phone.
|
||||
const POW_BITS = Number(process.env.SYNC_POW_BITS ?? 15);
|
||||
const MAX_ACCOUNTS = Number(process.env.SYNC_MAX_ACCOUNTS ?? 100_000);
|
||||
// ~1 MB plaintext after base64 and AES-GCM overhead.
|
||||
const MAX_DATA_LENGTH = 1_500_000;
|
||||
const DAY_MS = 24 * 60 * 60 * 1000;
|
||||
const EXPIRY_MS = 365 * DAY_MS;
|
||||
const CHALLENGE_TTL_MS = 10 * 60 * 1000;
|
||||
|
||||
const isRateLimited = createRateLimiter(300, 60 * 60 * 1000);
|
||||
const isCreateRateLimited = createRateLimiter(5, 60 * 60 * 1000);
|
||||
// Fresh per process: a restart only invalidates challenges handed out in the last 10 minutes.
|
||||
const challengeSecret = randomBytes(32);
|
||||
const usedChallenges = new Map<string, number>();
|
||||
|
||||
interface Account {
|
||||
authHash: string;
|
||||
version: number;
|
||||
hasPassword: boolean;
|
||||
data: string;
|
||||
updatedAt: number;
|
||||
accessedAt: number;
|
||||
}
|
||||
|
||||
const ID_RE = /^[0-9a-f]{64}$/;
|
||||
const sha256 = (s: string) => createHash("sha256").update(s).digest("hex");
|
||||
const file = (id: string) => path.join(SYNC_DATA_DIR!, `${id}.json`);
|
||||
|
||||
let accountCount = 0;
|
||||
let ready: Promise<void> | null = null;
|
||||
|
||||
async function init() {
|
||||
await mkdir(SYNC_DATA_DIR!, { recursive: true });
|
||||
await sweep();
|
||||
setInterval(() => void sweep().catch((err) => console.error("[sync] Sweep failed:", err)), DAY_MS).unref();
|
||||
}
|
||||
|
||||
/** Accounts nobody opened for a year are deleted for good. */
|
||||
async function sweep() {
|
||||
const names = (await readdir(SYNC_DATA_DIR!)).filter((n) => n.endsWith(".json"));
|
||||
let left = 0;
|
||||
for (const name of names) {
|
||||
const id = name.slice(0, -5);
|
||||
const account = await load(id);
|
||||
if (account && Date.now() - account.accessedAt > EXPIRY_MS) await rm(file(id), { force: true });
|
||||
else left++;
|
||||
}
|
||||
accountCount = left;
|
||||
}
|
||||
|
||||
async function load(id: string): Promise<Account | null> {
|
||||
try {
|
||||
return JSON.parse(await readFile(file(id), "utf-8")) as Account;
|
||||
} catch (err) {
|
||||
if ((err as NodeJS.ErrnoException).code === "ENOENT") return null;
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
async function save(id: string, account: Account) {
|
||||
const tmp = `${file(id)}.tmp`;
|
||||
await writeFile(tmp, JSON.stringify(account), "utf-8");
|
||||
await rename(tmp, file(id));
|
||||
}
|
||||
|
||||
// Writes to one account run one after another, so the version check can't race.
|
||||
const locks = new Map<string, Promise<unknown>>();
|
||||
function locked<T>(id: string, fn: () => Promise<T>): Promise<T> {
|
||||
const run = (locks.get(id) ?? Promise.resolve()).then(fn, fn);
|
||||
const tail = run.catch(() => {});
|
||||
locks.set(id, tail);
|
||||
void tail.then(() => locks.get(id) === tail && locks.delete(id));
|
||||
return run;
|
||||
}
|
||||
|
||||
function authorized(req: IncomingMessage, account: Account): boolean {
|
||||
const auth = /^Bearer ([0-9a-f]{64})$/.exec(req.headers.authorization ?? "")?.[1];
|
||||
if (!auth) return false;
|
||||
return timingSafeEqual(Buffer.from(sha256(auth)), Buffer.from(account.authHash));
|
||||
}
|
||||
|
||||
function newChallenge(): string {
|
||||
const body = `${Date.now()}.${randomBytes(16).toString("hex")}`;
|
||||
return `${body}.${createHmac("sha256", challengeSecret).update(body).digest("hex")}`;
|
||||
}
|
||||
|
||||
/** sha256(challenge + ":" + nonce) has to start with POW_BITS zero bits. */
|
||||
export function leadingZeroBits(hex: string): number {
|
||||
let bits = 0;
|
||||
for (const c of hex) {
|
||||
const n = parseInt(c, 16);
|
||||
if (n === 0) {
|
||||
bits += 4;
|
||||
continue;
|
||||
}
|
||||
return bits + Math.clz32(n) - 28;
|
||||
}
|
||||
return bits;
|
||||
}
|
||||
|
||||
function validPow(pow: unknown): boolean {
|
||||
if (!pow || typeof pow !== "object") return false;
|
||||
const { challenge, nonce } = pow as { challenge?: unknown; nonce?: unknown };
|
||||
if (typeof challenge !== "string" || typeof nonce !== "string" || nonce.length > 32) return false;
|
||||
const [ts, rand, mac] = challenge.split(".");
|
||||
if (!ts || !rand || !mac) return false;
|
||||
const expected = createHmac("sha256", challengeSecret).update(`${ts}.${rand}`).digest("hex");
|
||||
if (mac.length !== expected.length || !timingSafeEqual(Buffer.from(mac), Buffer.from(expected))) return false;
|
||||
const age = Date.now() - Number(ts);
|
||||
if (!(age >= 0 && age < CHALLENGE_TTL_MS) || usedChallenges.has(challenge)) return false;
|
||||
if (leadingZeroBits(sha256(`${challenge}:${nonce}`)) < POW_BITS) return false;
|
||||
for (const [c, at] of usedChallenges) if (Date.now() - at > CHALLENGE_TTL_MS) usedChallenges.delete(c);
|
||||
usedChallenges.set(challenge, Date.now());
|
||||
return true;
|
||||
}
|
||||
|
||||
function json(res: ServerResponse, status: number, body: unknown) {
|
||||
res.writeHead(status, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify(body));
|
||||
}
|
||||
|
||||
async function readBody(req: IncomingMessage, max: number): Promise<Record<string, unknown> | "too_large" | null> {
|
||||
let raw = "";
|
||||
for await (const chunk of req) {
|
||||
raw += chunk;
|
||||
if (raw.length > max) return "too_large";
|
||||
}
|
||||
try {
|
||||
const body = JSON.parse(raw || "{}");
|
||||
return body && typeof body === "object" ? body : null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export async function handleSync(req: IncomingMessage, res: ServerResponse, pathname: string) {
|
||||
if (!SYNC_DATA_DIR) return json(res, 404, { error: "not_found" });
|
||||
res.setHeader("Access-Control-Allow-Origin", SYNC_ALLOWED_ORIGIN);
|
||||
res.setHeader("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE, OPTIONS");
|
||||
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
|
||||
if (req.method === "OPTIONS") {
|
||||
res.writeHead(204);
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
if (isRateLimited(clientIp(req))) return json(res, 429, { error: "rate_limited" });
|
||||
ready ??= init();
|
||||
await ready;
|
||||
|
||||
if (pathname === "/api/sync/challenge" && req.method === "POST") {
|
||||
return json(res, 200, { challenge: newChallenge(), bits: POW_BITS });
|
||||
}
|
||||
|
||||
const match = /^\/api\/sync\/([0-9a-f]{64})(\/meta)?$/.exec(pathname);
|
||||
if (!match || !ID_RE.test(match[1])) return json(res, 404, { error: "not_found" });
|
||||
const id = match[1];
|
||||
|
||||
// Tells a new device whether to ask for the password. Only someone holding the
|
||||
// account number can compute the id in the first place.
|
||||
if (match[2]) {
|
||||
if (req.method !== "GET") return json(res, 405, { error: "method_not_allowed" });
|
||||
const account = await load(id);
|
||||
return json(res, 200, account ? { exists: true, hasPassword: account.hasPassword, version: account.version } : { exists: false });
|
||||
}
|
||||
|
||||
if (req.method === "GET") {
|
||||
const account = await load(id);
|
||||
if (!account || !authorized(req, account)) return json(res, 404, { error: "not_found" });
|
||||
// Touch at most once a day instead of rewriting the file on every read.
|
||||
if (Date.now() - account.accessedAt > DAY_MS) {
|
||||
await locked(id, async () => {
|
||||
const fresh = await load(id);
|
||||
if (fresh) await save(id, { ...fresh, accessedAt: Date.now() });
|
||||
});
|
||||
}
|
||||
return json(res, 200, { version: account.version, data: account.data, updatedAt: account.updatedAt });
|
||||
}
|
||||
|
||||
if (req.method === "DELETE") {
|
||||
return locked(id, async () => {
|
||||
const account = await load(id);
|
||||
if (!account || !authorized(req, account)) return json(res, 404, { error: "not_found" });
|
||||
await rm(file(id), { force: true });
|
||||
accountCount--;
|
||||
json(res, 200, { ok: true });
|
||||
});
|
||||
}
|
||||
|
||||
if (req.method !== "PUT") return json(res, 405, { error: "method_not_allowed" });
|
||||
const body = await readBody(req, MAX_DATA_LENGTH + 2_000);
|
||||
if (body === "too_large") return json(res, 413, { error: "payload_too_large" });
|
||||
if (!body) return json(res, 400, { error: "invalid_json" });
|
||||
const { version, data, hasPassword, newAuth, pow } = body;
|
||||
if (typeof version !== "number" || typeof data !== "string" || !/^[A-Za-z0-9+/]+=*$/.test(data)) {
|
||||
return json(res, 400, { error: "invalid_body" });
|
||||
}
|
||||
if (newAuth !== undefined && (typeof newAuth !== "string" || !ID_RE.test(newAuth))) {
|
||||
return json(res, 400, { error: "invalid_body" });
|
||||
}
|
||||
|
||||
return locked(id, async () => {
|
||||
const account = await load(id);
|
||||
const now = Date.now();
|
||||
if (!account) {
|
||||
// Creating: the bearer token becomes the account's auth secret.
|
||||
const auth = /^Bearer ([0-9a-f]{64})$/.exec(req.headers.authorization ?? "")?.[1];
|
||||
if (!auth || version !== 0) return json(res, 400, { error: "invalid_body" });
|
||||
if (accountCount >= MAX_ACCOUNTS) return json(res, 507, { error: "full" });
|
||||
if (isCreateRateLimited(clientIp(req))) return json(res, 429, { error: "rate_limited" });
|
||||
if (!validPow(pow)) return json(res, 403, { error: "pow_required" });
|
||||
await save(id, { authHash: sha256(auth), version: 1, hasPassword: hasPassword === true, data, updatedAt: now, accessedAt: now });
|
||||
accountCount++;
|
||||
return json(res, 200, { version: 1 });
|
||||
}
|
||||
if (!authorized(req, account)) return json(res, 404, { error: "not_found" });
|
||||
// Another device wrote in between: the client decides what wins.
|
||||
if (version !== account.version) return json(res, 409, { error: "conflict", version: account.version });
|
||||
await save(id, {
|
||||
authHash: typeof newAuth === "string" ? sha256(newAuth) : account.authHash,
|
||||
version: account.version + 1,
|
||||
hasPassword: typeof hasPassword === "boolean" ? hasPassword : account.hasPassword,
|
||||
data,
|
||||
updatedAt: now,
|
||||
accessedAt: now,
|
||||
});
|
||||
json(res, 200, { version: account.version + 1 });
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
// --- Anonymous usage ping ----------------------------------------------------
|
||||
//
|
||||
// Once at startup and then once a day, the gateway tells webspeak3.de that an
|
||||
// instance is running. That's the only way to know whether anyone self-hosts
|
||||
// at all, and which versions are still out there (e.g. before dropping
|
||||
// support for something or after a security fix).
|
||||
//
|
||||
// Sent: a random instance id (generated here, used for nothing else) and the
|
||||
// version. Not sent: hostnames, TeamSpeak servers, user counts, settings.
|
||||
// The receiving side stores no IP addresses (see ping.ts).
|
||||
//
|
||||
// On by default, off with TELEMETRY=0. Said so in the startup log, too.
|
||||
import { readFile, writeFile } from "node:fs/promises";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import path from "node:path";
|
||||
|
||||
const TELEMETRY_URL = process.env.TELEMETRY_URL || "https://gateway.webspeak3.de/api/ping";
|
||||
const VERSION = process.env.WEBSPEAK3_VERSION || "unknown";
|
||||
// ponytail: without a volume over the working directory a container recreate
|
||||
// makes a new id, so an update counts twice for a day or so.
|
||||
const ID_FILE = process.env.TELEMETRY_ID_FILE ?? path.resolve(process.cwd(), "instance-id");
|
||||
const DAY_MS = 24 * 60 * 60 * 1000;
|
||||
|
||||
async function instanceId(): Promise<string> {
|
||||
try {
|
||||
const id = (await readFile(ID_FILE, "utf-8")).trim();
|
||||
if (/^[0-9a-f-]{36}$/.test(id)) return id;
|
||||
} catch {
|
||||
// first start - fall through
|
||||
}
|
||||
const id = randomUUID();
|
||||
await writeFile(ID_FILE, id + "\n").catch(() => {});
|
||||
return id;
|
||||
}
|
||||
|
||||
async function ping(id: string) {
|
||||
try {
|
||||
await fetch(TELEMETRY_URL, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ id, version: VERSION }),
|
||||
signal: AbortSignal.timeout(10_000),
|
||||
});
|
||||
} catch {
|
||||
// Offline or blocked - not worth a log line every day.
|
||||
}
|
||||
}
|
||||
|
||||
if (process.env.TELEMETRY !== "0") {
|
||||
console.log(
|
||||
`Sending an anonymous usage ping (random instance id + version ${VERSION}) to ${new URL(TELEMETRY_URL).host} at startup and once a day. Disable with TELEMETRY=0.`
|
||||
);
|
||||
void instanceId().then((id) => {
|
||||
void ping(id);
|
||||
setInterval(() => void ping(id), DAY_MS).unref();
|
||||
});
|
||||
}
|
||||
+268
-65
@@ -21,6 +21,24 @@ export interface ChannelInfo {
|
||||
hasPassword: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* The `setupstream` arguments. TS6 always sends all of them, so none are
|
||||
* optional here - the defaults live in the caller, not on the wire.
|
||||
*/
|
||||
export interface StreamSetupOptions {
|
||||
name: string;
|
||||
/** Source kind; a real TS6 screen share sends 3. */
|
||||
type: number;
|
||||
bitrate: number;
|
||||
/** TS6's Privacy setting: who may join without being asked. */
|
||||
accessibility: number;
|
||||
/** Connection mode - peer-to-peer or via the server's SFU. */
|
||||
mode: number;
|
||||
/** 0 means unlimited. */
|
||||
viewerLimit: number;
|
||||
audio: boolean;
|
||||
}
|
||||
|
||||
export interface ClientInfo {
|
||||
id: number;
|
||||
channel: number;
|
||||
@@ -37,6 +55,12 @@ export interface ClientInfo {
|
||||
channelGroup: number;
|
||||
serverGroups: number[];
|
||||
hasTalkPower: boolean;
|
||||
/** ServerQuery client; UI may hide these unless enabled per favorite. */
|
||||
isQuery: boolean;
|
||||
/** Broadcasting a TS6 Stream/Call. The stream id is fetched separately. */
|
||||
isStreaming: boolean;
|
||||
/** MD5 of the avatar (`client_flag_avatar`), empty without one. */
|
||||
avatarHash: string;
|
||||
}
|
||||
|
||||
export interface GroupEntry {
|
||||
@@ -129,8 +153,12 @@ export type Ts3ConnectionEvent =
|
||||
| { type: "poke"; from: string; message: string }
|
||||
| { type: "audioOut"; pcm: string }
|
||||
| { type: "talkers"; clients: number[] }
|
||||
| { type: "whisperReceived"; clientId: number }
|
||||
| { type: "disconnected"; reason: string }
|
||||
| { type: "error"; message: string }
|
||||
| { type: "reconnecting"; reason: string }
|
||||
| { type: "reconnected" }
|
||||
| { type: "error"; message: string; cid?: number; path?: string }
|
||||
| { type: "channelPasswordRequired"; channelId: number }
|
||||
| ({ type: "serverLog" } & ServerLogEntry)
|
||||
| {
|
||||
type: "clientConnectionInfo";
|
||||
@@ -178,10 +206,12 @@ export type Ts3ConnectionEvent =
|
||||
| { 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: "fileDownloadChunk"; cid: number; path: string; offset: number; data: string; done: boolean }
|
||||
| { type: "fileUploadDone"; cid: number; path: string }
|
||||
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
|
||||
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] };
|
||||
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] }
|
||||
/** TS6 Stream/Call signaling, forwarded verbatim; `args` is already unescaped. */
|
||||
| { type: "streamEvent"; name: string; args: Record<string, string> };
|
||||
|
||||
export type ServerType = "teamspeak" | "teaspeak" | "auto";
|
||||
|
||||
@@ -212,6 +242,11 @@ const CONNECTOR_BIN =
|
||||
export class Ts3Connection {
|
||||
private listeners = new Set<(event: Ts3ConnectionEvent) => void>();
|
||||
private child?: ChildProcessWithoutNullStreams;
|
||||
// Set once the child is confirmed gone - either it exited, or it never
|
||||
// managed to spawn at all. disconnect() uses this to skip waiting on an
|
||||
// "exit" event that already fired (and so will never fire again) before
|
||||
// disconnect() got a chance to listen for it.
|
||||
private childGone = false;
|
||||
|
||||
constructor(private options: Ts3ConnectOptions) {}
|
||||
|
||||
@@ -223,15 +258,50 @@ export class Ts3Connection {
|
||||
for (const listener of this.listeners) listener(event);
|
||||
}
|
||||
|
||||
/** Every connector command is exactly one line on this stdin protocol.
|
||||
* Several call sites forward fields (permission scope/ids, whisper
|
||||
* targets, ...) without stripping embedded CR/LF first - routing every
|
||||
* write through here means a stray newline in any of them can never
|
||||
* smuggle in a second, attacker-chosen command. */
|
||||
private writeLine(line: string): void {
|
||||
if (!this.child || this.child.killed) return;
|
||||
this.child.stdin.write(`${line.replace(/[\r\n]+/g, " ")}\n`);
|
||||
}
|
||||
|
||||
async connect(): Promise<void> {
|
||||
const args = ["--address", this.options.host, "--nickname", this.options.nickname];
|
||||
if (this.options.serverPassword) args.push("--server-password", this.options.serverPassword);
|
||||
if (this.options.channelPassword) args.push("--channel-password", this.options.channelPassword);
|
||||
if (this.options.defaultChannel) args.push("--default-channel", this.options.defaultChannel);
|
||||
if (this.options.identity) args.push("--identity", this.options.identity);
|
||||
if (this.options.serverType) args.push("--server-type", this.options.serverType);
|
||||
if (this.options.privilegeKey) args.push("--privilege-key", this.options.privilegeKey);
|
||||
this.child = spawn(CONNECTOR_BIN, args);
|
||||
// "--flag=value" so a value starting with "-" can never be parsed as a
|
||||
// flag of its own. Secrets go through the environment instead of argv,
|
||||
// which any process on the host can read via `ps`.
|
||||
const args = [`--address=${this.options.host}`, `--nickname=${this.options.nickname}`];
|
||||
if (this.options.defaultChannel) args.push(`--default-channel=${this.options.defaultChannel}`);
|
||||
if (this.options.serverType) args.push(`--server-type=${this.options.serverType}`);
|
||||
const env: NodeJS.ProcessEnv = { ...process.env };
|
||||
if (this.options.serverPassword) env.TS_SERVER_PASSWORD = this.options.serverPassword;
|
||||
if (this.options.channelPassword) env.TS_CHANNEL_PASSWORD = this.options.channelPassword;
|
||||
if (this.options.identity) env.TS_IDENTITY = this.options.identity;
|
||||
if (this.options.privilegeKey) env.TS_PRIVILEGE_KEY = this.options.privilegeKey;
|
||||
this.child = spawn(CONNECTOR_BIN, args, { env });
|
||||
|
||||
// The connector can exit on its own (e.g. the TS3 server drops it) and close
|
||||
// its stdin pipe before writeLine()'s `this.child.killed` guard has any way
|
||||
// to know - killed only reflects Node-side .kill() calls. A write to that
|
||||
// closed pipe emits an unhandled 'error' (EPIPE) on the stream, which Node
|
||||
// treats as fatal and crashes the whole gateway process, killing every
|
||||
// other client's session too. Listening here turns it into a normal,
|
||||
// isolated write failure instead of a process-wide crash.
|
||||
this.child.stdin.on("error", () => {});
|
||||
|
||||
// spawn() itself can fail asynchronously - wrong CONNECTOR_BIN path, no
|
||||
// exec permission, or (under load, with many connections already open)
|
||||
// EMFILE/ENFILE from running out of file descriptors. That failure surfaces
|
||||
// as an unhandled 'error' event on the child process object, which is just
|
||||
// as fatal to the whole gateway process as the stdin case above - and far
|
||||
// more likely to hit at the worst possible time, since a file-descriptor
|
||||
// limit is reached exactly when the most other connections are active.
|
||||
this.child.on("error", (err) => {
|
||||
this.childGone = true;
|
||||
this.emit({ type: "error", message: `Connector failed to start: ${err.message}` });
|
||||
});
|
||||
|
||||
createInterface({ input: this.child.stdout }).on("line", (line) => {
|
||||
try {
|
||||
@@ -251,6 +321,9 @@ export class Ts3Connection {
|
||||
channel_group: number;
|
||||
server_groups: number[];
|
||||
has_talk_power: boolean;
|
||||
is_query?: boolean;
|
||||
is_streaming?: boolean;
|
||||
avatar_hash?: string;
|
||||
}
|
||||
|
||||
interface RawChannelInfo {
|
||||
@@ -291,8 +364,12 @@ export class Ts3Connection {
|
||||
| { type: "poke"; from: string; message: string }
|
||||
| { type: "audioOut"; pcm: string }
|
||||
| { type: "talkers"; clients: number[] }
|
||||
| { type: "whisperReceived"; clientId: number }
|
||||
| { type: "disconnected"; reason: string }
|
||||
| { type: "error"; message: string }
|
||||
| { type: "reconnecting"; reason: string }
|
||||
| { type: "reconnected" }
|
||||
| { type: "error"; message: string; cid?: number; path?: string }
|
||||
| { type: "channelPasswordRequired"; channel_id: number }
|
||||
| ({ type: "serverLog" } & ServerLogEntry)
|
||||
| {
|
||||
type: "clientConnectionInfo";
|
||||
@@ -376,10 +453,11 @@ export class Ts3Connection {
|
||||
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: "fileDownloadChunk"; cid: number; path: string; offset: number; data: string; done: boolean }
|
||||
| { type: "fileUploadDone"; cid: number; path: string }
|
||||
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
|
||||
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] };
|
||||
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] }
|
||||
| { type: "streamEvent"; name: string; args: Record<string, string> };
|
||||
|
||||
if (event.type === "connected") {
|
||||
this.emit({
|
||||
@@ -422,6 +500,9 @@ export class Ts3Connection {
|
||||
channelGroup: c.channel_group,
|
||||
serverGroups: c.server_groups,
|
||||
hasTalkPower: c.has_talk_power,
|
||||
isQuery: Boolean(c.is_query),
|
||||
isStreaming: Boolean(c.is_streaming),
|
||||
avatarHash: c.avatar_hash ?? "",
|
||||
})),
|
||||
ownClientId: event.own_client_id ?? 0,
|
||||
serverMaxClients: event.server_max_clients ?? 0,
|
||||
@@ -516,6 +597,8 @@ export class Ts3Connection {
|
||||
message: event.message,
|
||||
timestamp: event.timestamp,
|
||||
});
|
||||
} else if (event.type === "channelPasswordRequired") {
|
||||
this.emit({ type: "channelPasswordRequired", channelId: event.channel_id });
|
||||
} else {
|
||||
this.emit(event);
|
||||
}
|
||||
@@ -531,39 +614,51 @@ export class Ts3Connection {
|
||||
});
|
||||
|
||||
this.child.on("exit", (code) => {
|
||||
this.childGone = true;
|
||||
if (code !== 0) {
|
||||
this.emit({ type: "error", message: `Connector exited with code ${code}` });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async switchChannel(channelId: number): Promise<void> {
|
||||
async switchChannel(channelId: number, channelPassword?: string): Promise<void> {
|
||||
const id = Number(channelId);
|
||||
if (!Number.isFinite(id)) return;
|
||||
this.child?.stdin.write(`switch ${id}\n`);
|
||||
// The password travels base64-encoded on this line-based stdin protocol
|
||||
// so it can safely contain spaces or other characters.
|
||||
const passwordArg = channelPassword ? ` ${Buffer.from(channelPassword, "utf8").toString("base64")}` : "";
|
||||
this.writeLine(`switch ${id}${passwordArg}`);
|
||||
}
|
||||
|
||||
async moveClient(clientId: number, channelId: number, channelPassword?: string): Promise<void> {
|
||||
const clid = Number(clientId);
|
||||
const cid = Number(channelId);
|
||||
if (!Number.isFinite(clid) || !Number.isFinite(cid)) return;
|
||||
const passwordArg = channelPassword ? ` ${Buffer.from(channelPassword, "utf8").toString("base64")}` : "";
|
||||
this.writeLine(`moveclient ${clid} ${cid}${passwordArg}`);
|
||||
}
|
||||
|
||||
async getClientConnectionInfo(clientId: number): Promise<void> {
|
||||
this.child?.stdin.write(`clientconninfo ${clientId}\n`);
|
||||
this.writeLine(`clientconninfo ${clientId}`);
|
||||
}
|
||||
|
||||
async getServerConnectionInfo(): Promise<void> {
|
||||
this.child?.stdin.write(`serverconninfo\n`);
|
||||
this.writeLine(`serverconninfo`);
|
||||
}
|
||||
|
||||
async kickFromChannel(clientId: number, reason: string): Promise<void> {
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`kickchannel ${clientId} ${sanitized}\n`);
|
||||
this.writeLine(`kickchannel ${clientId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async kickFromServer(clientId: number, reason: string): Promise<void> {
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`kickserver ${clientId} ${sanitized}\n`);
|
||||
this.writeLine(`kickserver ${clientId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async banClient(clientId: number, seconds: number, reason: string): Promise<void> {
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`banclient ${clientId} ${Math.max(0, Math.floor(seconds))} ${sanitized}\n`);
|
||||
this.writeLine(`banclient ${clientId} ${Math.max(0, Math.floor(seconds))} ${sanitized}`);
|
||||
}
|
||||
|
||||
/** Every field is optional - only send what actually changed. JSON.stringify
|
||||
@@ -587,95 +682,95 @@ export class Ts3Connection {
|
||||
phoneticName?: string;
|
||||
codecEncryptionMode?: string;
|
||||
}): Promise<void> {
|
||||
this.child?.stdin.write(`serveredit ${JSON.stringify(payload)}\n`);
|
||||
this.writeLine(`serveredit ${JSON.stringify(payload)}`);
|
||||
}
|
||||
|
||||
async getServerLog(): Promise<void> {
|
||||
this.child?.stdin.write(`serverlog\n`);
|
||||
this.writeLine(`serverlog`);
|
||||
}
|
||||
|
||||
async getBanList(): Promise<void> {
|
||||
this.child?.stdin.write(`banlist\n`);
|
||||
this.writeLine(`banlist`);
|
||||
}
|
||||
|
||||
async deleteBan(banId: number): Promise<void> {
|
||||
this.child?.stdin.write(`bandel ${banId}\n`);
|
||||
this.writeLine(`bandel ${banId}`);
|
||||
}
|
||||
|
||||
async deleteAllBans(): Promise<void> {
|
||||
this.child?.stdin.write(`bandelall\n`);
|
||||
this.writeLine(`bandelall`);
|
||||
}
|
||||
|
||||
async getComplainList(): Promise<void> {
|
||||
this.child?.stdin.write(`complainlist\n`);
|
||||
this.writeLine(`complainlist`);
|
||||
}
|
||||
|
||||
async deleteComplaint(targetClientDbId: number, fromClientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`complaindel ${targetClientDbId} ${fromClientDbId}\n`);
|
||||
this.writeLine(`complaindel ${targetClientDbId} ${fromClientDbId}`);
|
||||
}
|
||||
|
||||
async deleteAllComplaintsFor(targetClientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`complaindelall ${targetClientDbId}\n`);
|
||||
this.writeLine(`complaindelall ${targetClientDbId}`);
|
||||
}
|
||||
|
||||
async getOfflineMessageList(): Promise<void> {
|
||||
this.child?.stdin.write(`messagelist\n`);
|
||||
this.writeLine(`messagelist`);
|
||||
}
|
||||
|
||||
async getOfflineMessage(messageId: number): Promise<void> {
|
||||
this.child?.stdin.write(`messageget ${messageId}\n`);
|
||||
this.writeLine(`messageget ${messageId}`);
|
||||
}
|
||||
|
||||
async sendOfflineMessage(clientUid: string, subject: string, message: string): Promise<void> {
|
||||
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.child?.stdin.write(`messageadd ${sanitize(clientUid)}\t${sanitize(subject)}\t${sanitize(message)}\n`);
|
||||
this.writeLine(`messageadd ${sanitize(clientUid)}\t${sanitize(subject)}\t${sanitize(message)}`);
|
||||
}
|
||||
|
||||
async deleteOfflineMessage(messageId: number): Promise<void> {
|
||||
this.child?.stdin.write(`messagedel ${messageId}\n`);
|
||||
this.writeLine(`messagedel ${messageId}`);
|
||||
}
|
||||
|
||||
async markOfflineMessageRead(messageId: number): Promise<void> {
|
||||
this.child?.stdin.write(`messageupdateflag ${messageId} 1\n`);
|
||||
this.writeLine(`messageupdateflag ${messageId} 1`);
|
||||
}
|
||||
|
||||
async getChannelGroupList(): Promise<void> {
|
||||
this.child?.stdin.write(`channelgrouplist\n`);
|
||||
this.writeLine(`channelgrouplist`);
|
||||
}
|
||||
|
||||
async getServerGroupList(): Promise<void> {
|
||||
this.child?.stdin.write(`servergrouplist\n`);
|
||||
this.writeLine(`servergrouplist`);
|
||||
}
|
||||
|
||||
async setChannelGroup(channelGroupId: number, channelId: number, clientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}\n`);
|
||||
this.writeLine(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}`);
|
||||
}
|
||||
|
||||
async addServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`addservergroup ${serverGroupId} ${clientDbId}\n`);
|
||||
this.writeLine(`addservergroup ${serverGroupId} ${clientDbId}`);
|
||||
}
|
||||
|
||||
async removeServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`delservergroup ${serverGroupId} ${clientDbId}\n`);
|
||||
this.writeLine(`delservergroup ${serverGroupId} ${clientDbId}`);
|
||||
}
|
||||
|
||||
async serverQueryLogin(username: string, password: string): Promise<void> {
|
||||
const u = Buffer.from(username, "utf8").toString("base64");
|
||||
const p = Buffer.from(password, "utf8").toString("base64");
|
||||
this.child?.stdin.write(`serverquerylogin ${u} ${p}\n`);
|
||||
this.writeLine(`serverquerylogin ${u} ${p}`);
|
||||
}
|
||||
|
||||
async getPermissionOverview(): Promise<void> {
|
||||
this.child?.stdin.write(`permoverview\n`);
|
||||
this.writeLine(`permoverview`);
|
||||
}
|
||||
|
||||
async getPermissionCatalog(): Promise<void> {
|
||||
this.child?.stdin.write(`permissionlist\n`);
|
||||
this.writeLine(`permissionlist`);
|
||||
}
|
||||
|
||||
async getPermList(scope: PermScope, id1: number, id2?: number): Promise<void> {
|
||||
const args = id2 !== undefined ? `${scope} ${id1} ${id2}` : `${scope} ${id1}`;
|
||||
this.child?.stdin.write(`permlist ${args}\n`);
|
||||
this.writeLine(`permlist ${args}`);
|
||||
}
|
||||
|
||||
/** `negated`/`skip` only apply to the "server" and "client" scopes - the
|
||||
@@ -692,103 +787,211 @@ export class Ts3Connection {
|
||||
let args = `${scope} ${ids.join(" ")} ${permId} ${value}`;
|
||||
if (scope === "server") args += ` ${negated ? 1 : 0} ${skip ? 1 : 0}`;
|
||||
else if (scope === "client") args += ` ${skip ? 1 : 0}`;
|
||||
this.child?.stdin.write(`permadd ${args}\n`);
|
||||
this.writeLine(`permadd ${args}`);
|
||||
}
|
||||
|
||||
async removePermission(scope: PermScope, ids: number[], permId: number): Promise<void> {
|
||||
this.child?.stdin.write(`permdel ${scope} ${ids.join(" ")} ${permId}\n`);
|
||||
this.writeLine(`permdel ${scope} ${ids.join(" ")} ${permId}`);
|
||||
}
|
||||
|
||||
async getFileList(channelId: number, path: string): Promise<void> {
|
||||
const sanitized = (path || "/").replace(/[\r\n]+/g, " ").trim() || "/";
|
||||
this.child?.stdin.write(`ftlist ${channelId} ${sanitized}\n`);
|
||||
this.writeLine(`ftlist ${channelId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async createDirectory(channelId: number, dirname: string): Promise<void> {
|
||||
const sanitized = dirname.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`ftmkdir ${channelId} ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`ftmkdir ${channelId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async deleteFile(channelId: number, name: string): Promise<void> {
|
||||
const sanitized = name.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`ftdelete ${channelId} ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`ftdelete ${channelId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async renameFile(channelId: number, oldName: string, newName: string): Promise<void> {
|
||||
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.child?.stdin.write(`ftrename ${channelId}\t${sanitize(oldName)}\t${sanitize(newName)}\n`);
|
||||
this.writeLine(`ftrename ${channelId}\t${sanitize(oldName)}\t${sanitize(newName)}`);
|
||||
}
|
||||
|
||||
async downloadFile(channelId: number, path: string): Promise<void> {
|
||||
const sanitized = path.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`ftdownload ${channelId} ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`ftdownload ${channelId} ${sanitized}`);
|
||||
}
|
||||
|
||||
/** `dataBase64` is the raw file content, base64-encoded - the browser reads
|
||||
* the picked File as a data URL/ArrayBuffer and sends it up already encoded. */
|
||||
async uploadFile(channelId: number, path: string, dataBase64: string): Promise<void> {
|
||||
const sanitizedPath = path.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.child?.stdin.write(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}\n`);
|
||||
this.writeLine(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}`);
|
||||
}
|
||||
|
||||
/** One piece of a chunked upload (see "chunkedUpload" in GATEWAY_FEATURES).
|
||||
* Pieces must arrive in order; offset 0 starts the upload and the piece
|
||||
* that reaches `total` sends it. Keeps every message small, unlike
|
||||
* uploadFile above, which only stays for clients from before the split. */
|
||||
async uploadFileChunk(channelId: number, path: string, offset: number, total: number, dataBase64: string): Promise<void> {
|
||||
if (![channelId, offset, total].every(Number.isSafeInteger)) return;
|
||||
if (typeof dataBase64 !== "string" || !/^[A-Za-z0-9+/]*={0,2}$/.test(dataBase64)) return;
|
||||
const sanitizedPath = path.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.writeLine(`ftuploadchunk ${channelId}\t${offset}\t${total}\t${sanitizedPath}\t${dataBase64}`);
|
||||
}
|
||||
|
||||
async sendChatMessage(message: string): Promise<void> {
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`chat ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`chat ${sanitized}`);
|
||||
}
|
||||
|
||||
async sendServerMessage(message: string): Promise<void> {
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`serverchat ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`serverchat ${sanitized}`);
|
||||
}
|
||||
|
||||
async sendPrivateMessage(clientId: number, message: string): Promise<void> {
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`pm ${clientId} ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`pm ${clientId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async sendPoke(clientId: number, message: string): Promise<void> {
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`poke ${clientId} ${sanitized}\n`);
|
||||
this.writeLine(`poke ${clientId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async sendAudio(pcmBase64: string): Promise<void> {
|
||||
this.child?.stdin.write(`audio ${pcmBase64}\n`);
|
||||
this.writeLine(`audio ${pcmBase64}`);
|
||||
}
|
||||
|
||||
/** Pulls a streaming client's stream details; answered with a
|
||||
* `notifystreaminfo` streamEvent carrying the stream id. */
|
||||
async requestStreamInfo(clientId: number): Promise<void> {
|
||||
this.writeLine(`streaminfo ${clientId}`);
|
||||
}
|
||||
|
||||
/** Ask the client publishing a TS6 stream to let us watch. The answer comes
|
||||
* back as a `streamEvent` of type `notifyrespondjoinstreamrequest`, which
|
||||
* carries the SDP offer. */
|
||||
async joinStream(streamId: string, clientId: number, message = ""): Promise<void> {
|
||||
const id = streamId.replace(/[\s]+/g, "");
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
if (id) this.writeLine(`streamjoin ${id} ${clientId} ${sanitized}`);
|
||||
}
|
||||
|
||||
async leaveStream(streamId: string, clientId: number): Promise<void> {
|
||||
const id = streamId.replace(/[\s]+/g, "");
|
||||
if (id) this.writeLine(`streamleave ${id} ${clientId}`);
|
||||
}
|
||||
|
||||
/** Relays one signaling payload (SDP answer, ICE candidate) to a stream peer.
|
||||
* `payload` is passed straight through - the connector only escapes it for
|
||||
* the TS wire, nobody in this path interprets it. Serializing here rather
|
||||
* than accepting a string keeps literal newlines out of the line-based
|
||||
* stdin protocol. */
|
||||
async sendStreamSignal(streamId: string, clientId: number, payload: unknown): Promise<void> {
|
||||
const id = streamId.replace(/[\s]+/g, "");
|
||||
if (id) this.writeLine(`streamsignal ${id} ${clientId} ${JSON.stringify(payload)}`);
|
||||
}
|
||||
|
||||
/** Announces a stream we publish. The server assigns the id and reports it
|
||||
* back as a `notifystreamstarted` streamEvent naming our own client id. */
|
||||
async setupStream(options: StreamSetupOptions): Promise<void> {
|
||||
const payload = {
|
||||
name: options.name.replace(/[\r\n]+/g, " ").trim() || "Stream",
|
||||
type: options.type,
|
||||
bitrate: options.bitrate,
|
||||
accessibility: options.accessibility,
|
||||
mode: options.mode,
|
||||
viewerLimit: options.viewerLimit,
|
||||
audio: options.audio,
|
||||
};
|
||||
this.writeLine(`streamsetup ${JSON.stringify(payload)}`);
|
||||
}
|
||||
|
||||
/** Accepts or refuses a viewer that asked to watch our stream. On accept,
|
||||
* `offer` is our SDP - the publisher offers, which is the mirror of how a
|
||||
* TS6 publisher answered us. JSON-encoded because an SDP is multi-line. */
|
||||
async respondJoinStream(
|
||||
streamId: string,
|
||||
clientId: number,
|
||||
accept: boolean,
|
||||
offer = "",
|
||||
message = "",
|
||||
): Promise<void> {
|
||||
const id = streamId.replace(/[\s]+/g, "");
|
||||
if (!id) return;
|
||||
const payload = {
|
||||
id,
|
||||
clid: clientId,
|
||||
msg: message.replace(/[\r\n]+/g, " ").trim(),
|
||||
offer,
|
||||
decision: accept ? 1 : 0,
|
||||
};
|
||||
this.writeLine(`streamrespond ${JSON.stringify(payload)}`);
|
||||
}
|
||||
|
||||
async stopStream(streamId: string, reason = ""): Promise<void> {
|
||||
const id = streamId.replace(/[\s]+/g, "");
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
if (id) this.writeLine(`streamstop ${id} ${sanitized}`);
|
||||
}
|
||||
|
||||
async setAway(away: boolean, message: string): Promise<void> {
|
||||
if (away) {
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`away ${sanitized}\n`);
|
||||
this.writeLine(`away ${sanitized}`);
|
||||
} else {
|
||||
this.child?.stdin.write("unaway\n");
|
||||
this.writeLine("unaway");
|
||||
}
|
||||
}
|
||||
|
||||
async setInputMuted(muted: boolean): Promise<void> {
|
||||
this.child?.stdin.write(`muteinput ${muted ? "1" : "0"}\n`);
|
||||
this.writeLine(`muteinput ${muted ? "1" : "0"}`);
|
||||
}
|
||||
|
||||
async setOutputMuted(muted: boolean): Promise<void> {
|
||||
this.child?.stdin.write(`muteoutput ${muted ? "1" : "0"}\n`);
|
||||
this.writeLine(`muteoutput ${muted ? "1" : "0"}`);
|
||||
}
|
||||
|
||||
/** Playback volume for one speaker, mixed in the connector (1 = unchanged). */
|
||||
setClientVolume(clientId: number, volume: number): void {
|
||||
if (Number.isInteger(clientId) && Number.isFinite(volume)) this.writeLine(`clientvolume ${clientId} ${volume}`);
|
||||
}
|
||||
|
||||
async setNickname(nickname: string): Promise<void> {
|
||||
const sanitized = nickname.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`nickname ${sanitized}\n`);
|
||||
if (sanitized) this.writeLine(`nickname ${sanitized}`);
|
||||
}
|
||||
|
||||
/** Incoming whispers: allowed or blocked by default; `exceptions` (client ids) get the opposite. */
|
||||
setWhisperPolicy(block: boolean, exceptions: unknown[]): void {
|
||||
const ids = exceptions.map(Number).filter(Number.isInteger);
|
||||
this.writeLine(`whisperpolicy ${block ? "block" : "allow"};${ids.join(",")}`);
|
||||
}
|
||||
|
||||
/** File transfer bandwidth caps in bytes/s, 0 = unlimited. */
|
||||
setTransferLimit(up: unknown, down: unknown): void {
|
||||
const rate = (v: unknown) => Math.max(0, Math.floor(Number(v) || 0));
|
||||
this.writeLine(`ftlimit ${rate(up)} ${rate(down)}`);
|
||||
}
|
||||
|
||||
/** Empty channelIds/clientIds clears whisper mode, returning outgoing
|
||||
* voice to the normal current-channel broadcast. */
|
||||
async setWhisperTargets(channelIds: number[], clientIds: number[]): Promise<void> {
|
||||
if (channelIds.length === 0 && clientIds.length === 0) {
|
||||
this.child?.stdin.write("unwhisper\n");
|
||||
const chans = channelIds.map(Number);
|
||||
const clients = clientIds.map(Number);
|
||||
if (chans.some((n) => !Number.isFinite(n)) || clients.some((n) => !Number.isFinite(n))) return;
|
||||
if (chans.length === 0 && clients.length === 0) {
|
||||
this.writeLine("unwhisper");
|
||||
} else {
|
||||
this.child?.stdin.write(`whisper ${channelIds.join(",")};${clientIds.join(",")}\n`);
|
||||
this.writeLine(`whisper ${chans.join(",")};${clients.join(",")}`);
|
||||
}
|
||||
}
|
||||
|
||||
async disconnect(message = ""): Promise<void> {
|
||||
if (this.child && !this.child.killed) {
|
||||
// childGone means the "exit" event already fired - which happens exactly
|
||||
// once, so a .once("exit", ...) listener attached only now (below) would
|
||||
// never see it, and this would always fall through to the 3s hard-kill
|
||||
// timeout for a process that's already gone. Skip straight past it.
|
||||
if (this.child && !this.child.killed && !this.childGone) {
|
||||
const child = this.child;
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
child.stdin.write(`disconnect ${sanitized}\n`);
|
||||
|
||||
+1
-1
Submodule tsclientlib updated: 0b74239a34...2e7794928f.
@@ -7,6 +7,13 @@
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#03060d" />
|
||||
<!-- iOS ignores most of the Web App Manifest — these are the fields it
|
||||
actually reads for "Add to Home Screen" (standalone display, status
|
||||
bar style, home-screen title). -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="WebSpeak3" />
|
||||
<title>WebSpeak3</title>
|
||||
<meta name="description" content="WebSpeak3 — an independent, self-hosted web client for TeamSpeak 3 servers." />
|
||||
|
||||
|
||||
Generated
+5288
-55
File diff suppressed because it is too large.
Load diff
+6
-1
@@ -4,13 +4,17 @@
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"predev": "node scripts/sync-aec3-assets.mjs",
|
||||
"dev": "vite",
|
||||
"prebuild": "node scripts/sync-aec3-assets.mjs",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "oxlint",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ennuicastr/webrtcaec3.js": "^0.3.0",
|
||||
"fflate": "^0.8.3",
|
||||
"qrcode-generator": "^1.4.4",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7"
|
||||
},
|
||||
@@ -21,6 +25,7 @@
|
||||
"@vitejs/plugin-react": "^6.0.3",
|
||||
"oxlint": "^1.71.0",
|
||||
"typescript": "~6.0.2",
|
||||
"vite": "^8.1.1"
|
||||
"vite": "^8.1.1",
|
||||
"vite-plugin-pwa": "^1.3.0"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 235 KiB |
@@ -0,0 +1,20 @@
|
||||
// Copies the AEC3 WASM module's prebuilt assets into public/vendor/ so they're
|
||||
// served unhashed, at the exact filenames the module's own glue code expects
|
||||
// (it resolves its .wasm next to its own <script src> by a hardcoded literal
|
||||
// name - see web/src/aec3.ts). Run via predev/prebuild rather than committed,
|
||||
// so the binary blobs never enter git.
|
||||
import { copyFileSync, mkdirSync, readFileSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const webRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const pkgDir = path.join(webRoot, "node_modules/@ennuicastr/webrtcaec3.js");
|
||||
const { version } = JSON.parse(readFileSync(path.join(pkgDir, "package.json"), "utf8"));
|
||||
const outDir = path.join(webRoot, "public/vendor");
|
||||
|
||||
mkdirSync(outDir, { recursive: true });
|
||||
// The .js is renamed to a stable name (we choose its <script src>, so nothing
|
||||
// depends on this filename); the .wasm keeps its exact original name (the glue
|
||||
// code's own lookup is hardcoded to it).
|
||||
copyFileSync(path.join(pkgDir, "dist", `webrtcaec3-${version}.js`), path.join(outDir, "webrtcaec3.js"));
|
||||
copyFileSync(path.join(pkgDir, "dist", `webrtcaec3-${version}.wasm`), path.join(outDir, `webrtcaec3-${version}.wasm`));
|
||||
+1785
-16
File diff suppressed because it is too large.
Load diff
+6394
-497
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,72 @@
|
||||
import { useT } from "./i18n";
|
||||
|
||||
export type ConnectionTabItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
connected?: boolean;
|
||||
connecting?: boolean;
|
||||
};
|
||||
|
||||
/** Server tab strip for multi-join: one tab per open connection. */
|
||||
export function ConnectionTabs({
|
||||
tabs,
|
||||
activeTabId,
|
||||
onSelectTab,
|
||||
onCloseTab,
|
||||
}: {
|
||||
tabs: ConnectionTabItem[];
|
||||
activeTabId?: string | null;
|
||||
onSelectTab?: (id: string) => void;
|
||||
onCloseTab?: (id: string) => void;
|
||||
}) {
|
||||
const t = useT();
|
||||
return (
|
||||
<div
|
||||
className="gts-connection-tabs"
|
||||
role="tablist"
|
||||
aria-label={t("tabs.connections")}
|
||||
>
|
||||
{tabs.map((tab) => {
|
||||
const isActive = tab.id === (activeTabId ?? tabs[0]?.id);
|
||||
return (
|
||||
<div
|
||||
key={tab.id}
|
||||
role="tab"
|
||||
aria-selected={isActive}
|
||||
className={`gts-connection-tab${isActive ? " gts-connection-tab-active" : ""}${
|
||||
tab.connecting ? " gts-connection-tab-connecting" : ""
|
||||
}`}
|
||||
onClick={() => onSelectTab?.(tab.id)}
|
||||
tabIndex={0}
|
||||
aria-keyshortcuts={onCloseTab ? "Delete" : undefined}
|
||||
onKeyDown={(e) => {
|
||||
if (e.target !== e.currentTarget) return;
|
||||
// The × below is mouse-only (a button can't sit inside a tab); Delete closes.
|
||||
if (e.key === "Delete" && onCloseTab) onCloseTab(tab.id);
|
||||
else if (e.key === "Enter" || e.key === " ")
|
||||
onSelectTab?.(tab.id);
|
||||
else return;
|
||||
e.preventDefault();
|
||||
}}
|
||||
title={tab.label}
|
||||
>
|
||||
<span className="gts-connection-tab-label">{tab.label}</span>
|
||||
{onCloseTab ? (
|
||||
<span
|
||||
className="gts-connection-tab-close"
|
||||
aria-hidden="true"
|
||||
title={t("tabs.disconnect")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onCloseTab(tab.id);
|
||||
}}
|
||||
>
|
||||
×
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
// Lazy loader for Google WebRTC's AEC3 (compiled to WASM via
|
||||
// @ennuicastr/webrtcaec3.js), an opt-in, stronger alternative to the browser's
|
||||
// native echo cancellation for speaker+mic (no headset) setups where native
|
||||
// AEC often isn't enough (github.com/WebSpeak3/webspeak3 issue #2). Loaded as a
|
||||
// plain <script> tag rather than bundled: the module's own glue code resolves
|
||||
// its .wasm file next to its own <script src>, by a name it decides itself -
|
||||
// see scripts/sync-aec3-assets.mjs for how that file gets there.
|
||||
|
||||
export interface Aec3Instance {
|
||||
free(): void;
|
||||
analyze(data: Float32Array[]): void;
|
||||
processSize(data: Float32Array[]): number;
|
||||
process(out: Float32Array[], data: Float32Array[]): void;
|
||||
}
|
||||
|
||||
interface Aec3Module {
|
||||
AEC3: new (sampleRate: number, renderChannels: number, captureChannels: number) => Aec3Instance;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
WebRtcAec3?: () => Promise<Aec3Module>;
|
||||
}
|
||||
}
|
||||
|
||||
let modulePromise: Promise<Aec3Module> | null = null;
|
||||
|
||||
function loadScript(src: string): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const el = document.createElement("script");
|
||||
el.src = src;
|
||||
el.onload = () => resolve();
|
||||
el.onerror = () => reject(new Error(`Failed to load ${src}`));
|
||||
document.head.appendChild(el);
|
||||
});
|
||||
}
|
||||
|
||||
function loadModule(): Promise<Aec3Module> {
|
||||
if (!modulePromise) {
|
||||
// BASE_URL keeps sub-path deployments (VITE_BASE_PATH) working; a failed
|
||||
// load is forgotten so the next attempt retries instead of reusing it.
|
||||
modulePromise = loadScript(`${import.meta.env.BASE_URL}vendor/webrtcaec3.js`)
|
||||
.then(() => {
|
||||
if (!window.WebRtcAec3) throw new Error("AEC3 script loaded but did not register window.WebRtcAec3");
|
||||
return window.WebRtcAec3();
|
||||
})
|
||||
.catch((err) => {
|
||||
modulePromise = null;
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
return modulePromise;
|
||||
}
|
||||
|
||||
/** Creates a fresh AEC3 instance. `renderChannels` must match the channel
|
||||
* count passed to `analyze()`, `captureChannels` the count passed to
|
||||
* `process()`. */
|
||||
export async function createAec3(
|
||||
sampleRate: number,
|
||||
renderChannels: number,
|
||||
captureChannels: number,
|
||||
): Promise<Aec3Instance> {
|
||||
const mod = await loadModule();
|
||||
return new mod.AEC3(sampleRate, renderChannels, captureChannels);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -0,0 +1,93 @@
|
||||
Copyright 2018 The Manrope Project Authors (https://github.com/googlefonts/manrope)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2011, The VT323 Project Authors (peter.hull@oikoi.com)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,84 @@
|
||||
/** Options -> Chat ("Chat Fenster", "Automatisch protokollieren", ...). */
|
||||
export interface ChatSettings {
|
||||
/** Lines kept per chat tab. */
|
||||
maxLines: number;
|
||||
/** "" = the design's font. */
|
||||
fontFamily: string;
|
||||
/** px, 0 = the design's size. */
|
||||
fontSize: number;
|
||||
logChannel: boolean;
|
||||
logPrivate: boolean;
|
||||
logServer: boolean;
|
||||
/** Prefill a new channel chat / private chat with this many logged lines (0 = off). */
|
||||
restoreChannelLines: number;
|
||||
restorePrivateLines: number;
|
||||
notifyServer: boolean;
|
||||
notifyChannel: boolean;
|
||||
notifyPrivate: boolean;
|
||||
}
|
||||
|
||||
export const DEFAULT_CHAT_SETTINGS: ChatSettings = {
|
||||
maxLines: 500,
|
||||
fontFamily: "",
|
||||
fontSize: 0,
|
||||
logChannel: true,
|
||||
logPrivate: true,
|
||||
logServer: true,
|
||||
restoreChannelLines: 100,
|
||||
restorePrivateLines: 100,
|
||||
notifyServer: false,
|
||||
notifyChannel: true,
|
||||
notifyPrivate: true,
|
||||
};
|
||||
|
||||
const SETTINGS_KEY = "webspeak3:chat-settings";
|
||||
|
||||
export function loadChatSettings(): ChatSettings {
|
||||
try {
|
||||
return { ...DEFAULT_CHAT_SETTINGS, ...JSON.parse(localStorage.getItem(SETTINGS_KEY) ?? "{}") };
|
||||
} catch {
|
||||
return DEFAULT_CHAT_SETTINGS;
|
||||
}
|
||||
}
|
||||
|
||||
export function saveChatSettings(settings: ChatSettings): void {
|
||||
localStorage.setItem(SETTINGS_KEY, JSON.stringify(settings));
|
||||
}
|
||||
|
||||
export interface LoggedLine {
|
||||
from: string;
|
||||
message: string;
|
||||
self?: boolean;
|
||||
at: number;
|
||||
}
|
||||
|
||||
// ponytail: localStorage, 1000 lines per chat. Move to IndexedDB if logs outgrow the ~5 MB quota.
|
||||
const MAX_LOGGED = 1000;
|
||||
|
||||
/** kind: "channel" | "server" | "pm:<uid>" */
|
||||
const logKey = (server: string, kind: string) => `webspeak3:chatlog:${server.trim().toLowerCase()}:${kind}`;
|
||||
|
||||
export function readChatLog(server: string, kind: string, lines: number): LoggedLine[] {
|
||||
if (!lines) return [];
|
||||
try {
|
||||
const all: LoggedLine[] = JSON.parse(localStorage.getItem(logKey(server, kind)) ?? "[]");
|
||||
return all.slice(-lines);
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
export function appendChatLog(server: string, kind: string, line: Omit<LoggedLine, "at">): void {
|
||||
try {
|
||||
const all = readChatLog(server, kind, MAX_LOGGED);
|
||||
all.push({ ...line, at: Date.now() });
|
||||
localStorage.setItem(logKey(server, kind), JSON.stringify(all.slice(-MAX_LOGGED)));
|
||||
} catch {
|
||||
// Quota full: logging is best effort.
|
||||
}
|
||||
}
|
||||
|
||||
/** Keeps the newest `max` entries. */
|
||||
export function capLines<T>(lines: T[], max: number): T[] {
|
||||
return lines.length > max ? lines.slice(-max) : lines;
|
||||
}
|
||||
@@ -50,6 +50,8 @@ export type ClientInfo = {
|
||||
channelGroup: number;
|
||||
serverGroups: number[];
|
||||
hasTalkPower: boolean;
|
||||
/** ServerQuery client; hidden in the tree unless the favorite enables them. */
|
||||
isQuery?: boolean;
|
||||
};
|
||||
|
||||
export type WhisperLogEntry = {
|
||||
@@ -92,6 +94,8 @@ export type ParkedSessionState = {
|
||||
previousClients: ClientInfo[] | null;
|
||||
/** Whether the mic was on for this tab when it was parked, so switching back restores it. */
|
||||
micWasOn: boolean;
|
||||
/** Favorite used to open this session (drives ServerQuery visibility). */
|
||||
favoriteId: string | null;
|
||||
};
|
||||
|
||||
export type SessionTabInfo = {
|
||||
@@ -143,6 +147,7 @@ export function emptyParkedState(partial?: Partial<ParkedSessionState>): ParkedS
|
||||
hasConnected: false,
|
||||
previousClients: null,
|
||||
micWasOn: false,
|
||||
favoriteId: null,
|
||||
...partial,
|
||||
};
|
||||
}
|
||||
|
||||
+159
-11
@@ -39,7 +39,12 @@ interface DemoClient {
|
||||
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 },
|
||||
{ id: 4, parent: 2, order: 0, name: "Squad 1", topic: "", codec: "Opus Voice", maxClients: 5, hasPassword: false },
|
||||
{ id: 5, parent: 2, order: 1, name: "Squad 2", topic: "", codec: "Opus Voice", maxClients: 5, hasPassword: false },
|
||||
{ id: 6, parent: 0, order: 2, name: "Music", topic: "Requests in chat", codec: "Opus Music", maxClients: null, hasPassword: false },
|
||||
{ id: 7, parent: 0, order: 3, name: "Talk", topic: "", codec: "Opus Voice", maxClients: null, hasPassword: false },
|
||||
{ id: 8, parent: 7, order: 0, name: "Meeting Room", topic: "Password: ask an admin", codec: "Opus Voice", maxClients: 8, hasPassword: true },
|
||||
{ id: 3, parent: 0, order: 4, name: "AFK", topic: "", codec: "Opus Voice", maxClients: null, hasPassword: false },
|
||||
];
|
||||
|
||||
const DEMO_CHANNEL_GROUPS = [
|
||||
@@ -154,6 +159,30 @@ function demoPermKey(scope: string, id1: number, id2?: number): string {
|
||||
|
||||
const SELF_ID = 101;
|
||||
|
||||
// Random visitors that join, wander around, chat and leave again (see scriptServerLife).
|
||||
const DEMO_VISITOR_NAMES = ["Mia", "Noah", "Lena", "Kai", "Zoe", "Finn", "Ava", "Leo", "Ivy", "Max"];
|
||||
const DEMO_COUNTRIES = ["DE", "US", "GB", "FR", "NL", "PL", "SE", "CZ", ""];
|
||||
const DEMO_CHAT_LINES = [
|
||||
"hey all",
|
||||
"anyone up for a round later?",
|
||||
"brb, getting coffee",
|
||||
"lol",
|
||||
"can you hear me?",
|
||||
"gg",
|
||||
"my mic was muted, sorry",
|
||||
"back",
|
||||
"who's hosting tonight?",
|
||||
"check out https://github.com/WebSpeak3/webspeak3",
|
||||
];
|
||||
const DEMO_PM_LINES = [
|
||||
"hey, got a sec?",
|
||||
"you coming to Gaming later?",
|
||||
"thanks for the help earlier!",
|
||||
"can you move me to Gaming?",
|
||||
];
|
||||
|
||||
const pick = <T,>(items: T[]): T => items[Math.floor(Math.random() * items.length)];
|
||||
|
||||
/**
|
||||
* Drop-in stand-in for a real WebSocket. Implements the subset of the
|
||||
* WebSocket interface App.tsx actually uses (onopen/onmessage/onerror/
|
||||
@@ -170,8 +199,8 @@ export class DemoSocket {
|
||||
private closed = false;
|
||||
private timers: number[] = [];
|
||||
private selfChannel = 1;
|
||||
private selfChannelGroup = 4;
|
||||
private selfServerGroups = new Set<number>([4]);
|
||||
private selfChannelGroup = 1;
|
||||
private selfServerGroups = new Set<number>([1]);
|
||||
|
||||
constructor() {
|
||||
this.after(400, () => {
|
||||
@@ -206,6 +235,8 @@ export class DemoSocket {
|
||||
|
||||
private after(ms: number, fn: () => void) {
|
||||
const id = window.setTimeout(() => {
|
||||
// Drop fired ids so the looping talker script doesn't grow the list forever.
|
||||
this.timers = this.timers.filter((t) => t !== id);
|
||||
if (this.closed) return;
|
||||
fn();
|
||||
}, ms);
|
||||
@@ -234,6 +265,8 @@ export class DemoSocket {
|
||||
});
|
||||
this.after(150, () => this.sendChannels(nickname));
|
||||
this.scriptServerLog(nickname);
|
||||
this.scriptTalkers();
|
||||
this.after(6000, () => this.scriptServerLife());
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -258,7 +291,7 @@ export class DemoSocket {
|
||||
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);
|
||||
const partner = this.npcs().find((c) => c.id === msg.clientId);
|
||||
this.after(80, () =>
|
||||
this.emit({
|
||||
type: "privateMessage",
|
||||
@@ -268,15 +301,40 @@ export class DemoSocket {
|
||||
fromSelf: true,
|
||||
})
|
||||
);
|
||||
if (partner && !partner.away) {
|
||||
this.after(1500 + Math.random() * 2500, () =>
|
||||
this.emit({
|
||||
type: "privateMessage",
|
||||
partnerId: partner.id,
|
||||
partnerName: partner.name,
|
||||
message: pick(["ok 👍", "haha sure", "one sec", "sounds good", "yep"]),
|
||||
fromSelf: false,
|
||||
})
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "sendPoke": {
|
||||
const partner = DEMO_NPCS.find((c) => c.id === msg.clientId);
|
||||
const partner = this.npcs().find((c) => c.id === msg.clientId);
|
||||
this.after(400, () =>
|
||||
this.emit({ type: "poke", from: partner?.name ?? "Someone", message: "(demo poke - no reply expected)" })
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "moveClient": {
|
||||
const clientId = Number(msg.clientId);
|
||||
const channelId = Number(msg.channelId);
|
||||
if (Number.isFinite(clientId) && Number.isFinite(channelId)) {
|
||||
if (clientId === SELF_ID) {
|
||||
this.selfChannel = channelId;
|
||||
} else {
|
||||
const npc = this.npcs().find((c) => c.id === clientId);
|
||||
if (npc) npc.channel = channelId;
|
||||
}
|
||||
this.after(120, () => this.sendChannels(this.lastNickname));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "getClientConnectionInfo": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
@@ -428,14 +486,14 @@ export class DemoSocket {
|
||||
this.after(300, () => this.emit({ type: "serverGroupList", entries: DEMO_SERVER_GROUPS }));
|
||||
break;
|
||||
case "setChannelGroup": {
|
||||
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
|
||||
const npc = this.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);
|
||||
const npc = this.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) {
|
||||
@@ -445,7 +503,7 @@ export class DemoSocket {
|
||||
break;
|
||||
}
|
||||
case "removeServerGroup": {
|
||||
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
|
||||
const npc = this.npcs().find((c) => c.databaseId === msg.clientDbId);
|
||||
if (npc) {
|
||||
npc.serverGroups = npc.serverGroups.filter((g) => g !== msg.serverGroupId);
|
||||
} else if (msg.clientDbId === 1) {
|
||||
@@ -597,11 +655,101 @@ export class DemoSocket {
|
||||
type: "serverLog",
|
||||
kind: "clientChannelGroupAssigned",
|
||||
client: nickname,
|
||||
group: "Guest",
|
||||
group: "Channel Admin",
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
private visitors: DemoClient[] = [];
|
||||
private nextVisitorId = 200;
|
||||
|
||||
private npcs(): DemoClient[] {
|
||||
return [...DEMO_NPCS, ...this.visitors];
|
||||
}
|
||||
|
||||
/** Random voice activity so the talking indicators (tree, speaker cards) are
|
||||
* visible: every unmuted client in your channel talks now and then, sometimes
|
||||
* over each other. Like real TS, only your own channel is audible. */
|
||||
private scriptTalkers() {
|
||||
const audible = this.npcs()
|
||||
.filter(
|
||||
(c) =>
|
||||
c.channel === this.selfChannel &&
|
||||
c.hasTalkPower &&
|
||||
!c.inputMuted &&
|
||||
c.inputHardwareEnabled &&
|
||||
!c.away
|
||||
)
|
||||
.filter(() => Math.random() < 0.35)
|
||||
.map((c) => c.id);
|
||||
this.emit({ type: "talkers", clients: audible });
|
||||
this.after(1200 + Math.random() * 2300, () => this.scriptTalkers());
|
||||
}
|
||||
|
||||
/** One random server event every few seconds: visitors join, switch
|
||||
* channels and leave, people write in the channel or send you a PM. */
|
||||
private scriptServerLife() {
|
||||
const roll = Math.random();
|
||||
const freeNames = DEMO_VISITOR_NAMES.filter((n) => !this.visitors.some((v) => v.name === n));
|
||||
if (roll < 0.3 && this.visitors.length < 6 && freeNames.length > 0) {
|
||||
const id = this.nextVisitorId++;
|
||||
const visitor: DemoClient = {
|
||||
id,
|
||||
channel: pick(DEMO_CHANNELS.filter((c) => c.id !== 3 && !c.hasPassword)).id,
|
||||
name: pick(freeNames),
|
||||
inputMuted: Math.random() < 0.15,
|
||||
outputMuted: Math.random() < 0.1,
|
||||
inputHardwareEnabled: true,
|
||||
away: false,
|
||||
awayMessage: "",
|
||||
isChannelCommander: false,
|
||||
country: pick(DEMO_COUNTRIES),
|
||||
uid: `demo-uid-visitor-${id}`,
|
||||
databaseId: id,
|
||||
channelGroup: 3,
|
||||
serverGroups: [pick([3, 4, 4])],
|
||||
hasTalkPower: true,
|
||||
};
|
||||
this.visitors.push(visitor);
|
||||
this.emit({ type: "serverLog", kind: "clientJoin", client: visitor.name, channel: this.channelName(visitor.channel) });
|
||||
this.sendChannels(this.lastNickname);
|
||||
} else if (roll < 0.37 && this.visitors.length > 0) {
|
||||
const visitor = pick(this.visitors);
|
||||
this.visitors = this.visitors.filter((v) => v !== visitor);
|
||||
this.emit({ type: "serverLog", kind: "clientLeave", client: visitor.name });
|
||||
this.sendChannels(this.lastNickname);
|
||||
} else if (roll < 0.72) {
|
||||
// Anyone wanders, not just visitors - otherwise the tree looks frozen.
|
||||
const visitor = pick(this.npcs());
|
||||
const target = pick(DEMO_CHANNELS.filter((c) => c.id !== visitor.channel));
|
||||
this.emit({
|
||||
type: "serverLog",
|
||||
kind: "clientChannelSwitch",
|
||||
client: visitor.name,
|
||||
fromChannel: this.channelName(visitor.channel),
|
||||
toChannel: target.name,
|
||||
});
|
||||
visitor.channel = target.id;
|
||||
visitor.away = target.id === 3;
|
||||
this.sendChannels(this.lastNickname);
|
||||
} else if (roll < 0.92) {
|
||||
const here = this.npcs().filter((c) => c.channel === this.selfChannel && !c.away);
|
||||
if (here.length > 0) this.emit({ type: "chatMessage", from: pick(here).name, message: pick(DEMO_CHAT_LINES) });
|
||||
} else {
|
||||
const sender = pick(this.npcs().filter((c) => !c.away));
|
||||
if (sender) {
|
||||
this.emit({
|
||||
type: "privateMessage",
|
||||
partnerId: sender.id,
|
||||
partnerName: sender.name,
|
||||
message: pick(DEMO_PM_LINES),
|
||||
fromSelf: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
this.after(4000 + Math.random() * 6000, () => this.scriptServerLife());
|
||||
}
|
||||
|
||||
private sendChannels(nickname: string) {
|
||||
this.lastNickname = nickname;
|
||||
const self: DemoClient = {
|
||||
@@ -624,10 +772,10 @@ export class DemoSocket {
|
||||
this.emit({
|
||||
type: "channels",
|
||||
channels: DEMO_CHANNELS,
|
||||
clients: [self, ...DEMO_NPCS],
|
||||
clients: [self, ...this.npcs()],
|
||||
ownClientId: SELF_ID,
|
||||
serverMaxClients: 32,
|
||||
serverClientsOnline: 1 + DEMO_NPCS.length,
|
||||
serverClientsOnline: 1 + this.npcs().length,
|
||||
serverChannelsOnline: DEMO_CHANNELS.length,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/** Options -> Download (TS3's "Downloads" page). */
|
||||
export interface DownloadSettings {
|
||||
/** "dir": save into the picked folder (browser default when none); "ask": save dialog every time. */
|
||||
saveMode: "dir" | "ask";
|
||||
showWindowOnStart: boolean;
|
||||
closeWindowWhenDone: boolean;
|
||||
popupWhenDone: boolean;
|
||||
/** KiB/s, 0 = unlimited. */
|
||||
uploadLimit: number;
|
||||
downloadLimit: number;
|
||||
maxUploads: number;
|
||||
maxDownloads: number;
|
||||
}
|
||||
|
||||
export const DEFAULT_DOWNLOAD_SETTINGS: DownloadSettings = {
|
||||
saveMode: "dir",
|
||||
showWindowOnStart: true,
|
||||
closeWindowWhenDone: false,
|
||||
popupWhenDone: true,
|
||||
uploadLimit: 0,
|
||||
downloadLimit: 0,
|
||||
maxUploads: 2,
|
||||
maxDownloads: 2,
|
||||
};
|
||||
|
||||
const SETTINGS_KEY = "webspeak3:download-settings";
|
||||
|
||||
export function loadDownloadSettings(): DownloadSettings {
|
||||
try {
|
||||
return { ...DEFAULT_DOWNLOAD_SETTINGS, ...JSON.parse(localStorage.getItem(SETTINGS_KEY) ?? "{}") };
|
||||
} catch {
|
||||
return DEFAULT_DOWNLOAD_SETTINGS;
|
||||
}
|
||||
}
|
||||
|
||||
export function saveDownloadSettings(settings: DownloadSettings): void {
|
||||
localStorage.setItem(SETTINGS_KEY, JSON.stringify(settings));
|
||||
}
|
||||
|
||||
// File System Access API: Chromium only. Elsewhere downloads go wherever the browser puts them.
|
||||
type PickerWindow = Window & {
|
||||
showDirectoryPicker?: (options?: { mode?: "readwrite" }) => Promise<FileSystemDirectoryHandle>;
|
||||
showSaveFilePicker?: (options?: { suggestedName?: string }) => Promise<FileSystemFileHandle>;
|
||||
};
|
||||
type PermissionHandle = FileSystemHandle & {
|
||||
queryPermission?: (d: { mode: "readwrite" }) => Promise<PermissionState>;
|
||||
requestPermission?: (d: { mode: "readwrite" }) => Promise<PermissionState>;
|
||||
};
|
||||
|
||||
export const canPickFolder = typeof (window as PickerWindow).showDirectoryPicker === "function";
|
||||
|
||||
// A directory handle survives reloads only in IndexedDB (it can't be JSON'd).
|
||||
function withStore<T>(mode: IDBTransactionMode, run: (store: IDBObjectStore) => IDBRequest<T>): Promise<T> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const open = indexedDB.open("webspeak3-downloads", 1);
|
||||
open.onupgradeneeded = () => open.result.createObjectStore("handles");
|
||||
open.onerror = () => reject(open.error);
|
||||
open.onsuccess = () => {
|
||||
const req = run(open.result.transaction("handles", mode).objectStore("handles"));
|
||||
req.onsuccess = () => resolve(req.result);
|
||||
req.onerror = () => reject(req.error);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
export async function loadDownloadDir(): Promise<FileSystemDirectoryHandle | null> {
|
||||
if (!canPickFolder) return null;
|
||||
try {
|
||||
return (await withStore("readonly", (s) => s.get("dir"))) ?? null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** Opens the folder picker; null when cancelled. */
|
||||
export async function pickDownloadDir(): Promise<FileSystemDirectoryHandle | null> {
|
||||
try {
|
||||
const dir = await (window as PickerWindow).showDirectoryPicker!({ mode: "readwrite" });
|
||||
await withStore("readwrite", (s) => s.put(dir, "dir"));
|
||||
return dir;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export async function clearDownloadDir(): Promise<void> {
|
||||
await withStore("readwrite", (s) => s.delete("dir")).catch(() => {});
|
||||
}
|
||||
|
||||
/** Where a finished download goes; resolved at click time, while the user gesture
|
||||
* still lets us show a save dialog or ask for folder permission. null = browser default. */
|
||||
export type SaveTarget = FileSystemFileHandle | null;
|
||||
|
||||
export async function resolveSaveTarget(
|
||||
settings: DownloadSettings,
|
||||
dir: FileSystemDirectoryHandle | null,
|
||||
filename: string
|
||||
): Promise<SaveTarget | "cancelled"> {
|
||||
const w = window as PickerWindow;
|
||||
if (settings.saveMode === "ask" && w.showSaveFilePicker) {
|
||||
try {
|
||||
return await w.showSaveFilePicker({ suggestedName: filename });
|
||||
} catch {
|
||||
return "cancelled";
|
||||
}
|
||||
}
|
||||
if (!dir) return null;
|
||||
const handle = dir as PermissionHandle;
|
||||
try {
|
||||
if ((await handle.queryPermission?.({ mode: "readwrite" })) !== "granted" &&
|
||||
(await handle.requestPermission?.({ mode: "readwrite" })) !== "granted")
|
||||
return null;
|
||||
return await dir.getFileHandle(filename, { create: true });
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** Writes into the chosen file; false means fall back to a normal browser download. */
|
||||
export async function writeToTarget(target: SaveTarget, blob: Blob): Promise<boolean> {
|
||||
if (!target) return false;
|
||||
try {
|
||||
const writable = await target.createWritable();
|
||||
await writable.write(blob);
|
||||
await writable.close();
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+22
-1111
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,126 @@
|
||||
import { unzipSync } from "fflate";
|
||||
|
||||
/** Icons an icon pack can replace. Each element that shows one carries
|
||||
* data-pack-icon="<id>"; iconPackCss() swaps its default for the pack's image. */
|
||||
export type PackIconId =
|
||||
| "talkIdle"
|
||||
| "talking"
|
||||
| "micMuted"
|
||||
| "hardwareMicMuted"
|
||||
| "soundMuted"
|
||||
| "away"
|
||||
| "commanderIdle"
|
||||
| "commanderTalking"
|
||||
| "channel"
|
||||
| "server";
|
||||
|
||||
/** TS3 icon pack file names (gfx/<pack>/16x16_<name>.png or <name>.svg). */
|
||||
const TS3_NAMES: Record<PackIconId, string> = {
|
||||
talkIdle: "player_off",
|
||||
talking: "player_on",
|
||||
micMuted: "input_muted",
|
||||
hardwareMicMuted: "hardware_input_muted",
|
||||
soundMuted: "output_muted",
|
||||
away: "away",
|
||||
commanderIdle: "player_commander_off",
|
||||
commanderTalking: "player_commander_on",
|
||||
channel: "channel_green",
|
||||
server: "server_green",
|
||||
};
|
||||
|
||||
const MIME_BY_EXTENSION: Record<string, string> = {
|
||||
svg: "image/svg+xml",
|
||||
png: "image/png",
|
||||
gif: "image/gif",
|
||||
jpg: "image/jpeg",
|
||||
jpeg: "image/jpeg",
|
||||
webp: "image/webp",
|
||||
};
|
||||
|
||||
export interface IconPack {
|
||||
id: string;
|
||||
name: string;
|
||||
/** data: URLs */
|
||||
icons: Partial<Record<PackIconId, string>>;
|
||||
}
|
||||
|
||||
const PACKS_KEY = "webspeak3:icon-packs";
|
||||
const SELECTED_KEY = "webspeak3:icon-pack";
|
||||
|
||||
export function loadIconPacks(): IconPack[] {
|
||||
try {
|
||||
const parsed = JSON.parse(localStorage.getItem(PACKS_KEY) ?? "[]");
|
||||
return Array.isArray(parsed) ? parsed : [];
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/** Throws when localStorage is full (a pack with huge images). */
|
||||
export function saveIconPacks(packs: IconPack[]): void {
|
||||
localStorage.setItem(PACKS_KEY, JSON.stringify(packs));
|
||||
}
|
||||
|
||||
export function loadSelectedIconPack(): string {
|
||||
return localStorage.getItem(SELECTED_KEY) ?? "";
|
||||
}
|
||||
|
||||
export function saveSelectedIconPack(id: string): void {
|
||||
localStorage.setItem(SELECTED_KEY, id);
|
||||
}
|
||||
|
||||
function toDataUrl(data: Uint8Array, mime: string): string {
|
||||
let binary = "";
|
||||
for (let i = 0; i < data.length; i += 0x8000) binary += String.fromCharCode(...data.subarray(i, i + 0x8000));
|
||||
return `data:${mime};base64,${btoa(binary)}`;
|
||||
}
|
||||
|
||||
/** Reads a .ts3_iconpack (a zip) or any zip of images named like TS3's icons.
|
||||
* Returns null when nothing in it matches a known icon. */
|
||||
export async function parseIconPack(file: File): Promise<IconPack | null> {
|
||||
const entries = unzipSync(new Uint8Array(await file.arrayBuffer()), {
|
||||
filter: (entry) => (entry.name.split(".").pop()?.toLowerCase() ?? "") in MIME_BY_EXTENSION,
|
||||
});
|
||||
const byStem = new Map<string, { data: Uint8Array; ext: string }>();
|
||||
for (const [path, data] of Object.entries(entries)) {
|
||||
const base = path.slice(path.lastIndexOf("/") + 1).toLowerCase();
|
||||
const ext = base.slice(base.lastIndexOf(".") + 1);
|
||||
const stem = base.slice(0, base.lastIndexOf(".")).replace(/^\d+x\d+_/, "");
|
||||
// Several sizes of the same icon: an SVG beats any PNG, else the largest file.
|
||||
const prev = byStem.get(stem);
|
||||
if (!prev || (ext === "svg" && prev.ext !== "svg") || (prev.ext !== "svg" && data.length > prev.data.length))
|
||||
byStem.set(stem, { data, ext });
|
||||
}
|
||||
const icons: IconPack["icons"] = {};
|
||||
for (const [id, name] of Object.entries(TS3_NAMES) as [PackIconId, string][]) {
|
||||
const hit = byStem.get(name);
|
||||
if (hit) icons[id] = toDataUrl(hit.data, MIME_BY_EXTENSION[hit.ext]);
|
||||
}
|
||||
if (Object.keys(icons).length === 0) return null;
|
||||
return {
|
||||
id: `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`,
|
||||
name: file.name.replace(/\.(ts3_iconpack|zip)$/i, ""),
|
||||
icons,
|
||||
};
|
||||
}
|
||||
|
||||
export function iconPackCss(pack: IconPack | undefined): string {
|
||||
if (!pack) return "";
|
||||
return Object.entries(pack.icons)
|
||||
.map(
|
||||
([id, url]) => `.ts-app [data-pack-icon="${id}"] {
|
||||
background: url("${url}") center / contain no-repeat !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
color: transparent !important;
|
||||
display: inline-block !important;
|
||||
width: 16px !important;
|
||||
height: 16px !important;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.ts-app [data-pack-icon="${id}"] > *, .ts-app [data-pack-icon="${id}"]::after { visibility: hidden !important; }`
|
||||
)
|
||||
.join("\n");
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
// Computes a TeamSpeak client UID from a stored identity, so the Identitäten dialog
|
||||
// can show it without connecting. UID = base64(sha1(base64(tomcrypt public key DER))),
|
||||
// same as tsproto's EccKeyPubP256::get_uid. Accepts what an identity blob can be:
|
||||
// tsclientlib's JSON ({"key": base64 scalar}), a native "<counter>V<obfuscated>" string,
|
||||
// or a plain base64 tomcrypt key. Needs crypto.subtle, so null on plain-http origins.
|
||||
|
||||
const OBFUSCATION = new TextEncoder().encode(
|
||||
"b9dfaa7bee6ac57ac7b65f1094a1c155e747327bc2fe5d51c512023fe54a280201004e90ad1daaae1075d53b7d571c30e063b5a62a4a017bb394833aa0983e6e"
|
||||
);
|
||||
|
||||
const unb64 = (s: string) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0));
|
||||
const b64 = (bytes: Uint8Array) => btoa(String.fromCharCode(...bytes));
|
||||
const sha1 = async (data: Uint8Array) => new Uint8Array(await crypto.subtle.digest("SHA-1", data as BufferSource));
|
||||
|
||||
/** One DER element at pos -> [tag, content, end]. */
|
||||
function derRead(buf: Uint8Array, pos: number): [number, Uint8Array, number] {
|
||||
let len = buf[pos + 1];
|
||||
let start = pos + 2;
|
||||
if (len & 0x80) {
|
||||
const n = len & 0x7f;
|
||||
len = 0;
|
||||
for (let i = 0; i < n; i++) len = (len << 8) | buf[start + i];
|
||||
start += n;
|
||||
}
|
||||
if (start + len > buf.length) throw new Error("bad der");
|
||||
return [buf[pos], buf.subarray(start, start + len), start + len];
|
||||
}
|
||||
|
||||
/** Top-level DER sequence -> its elements as [tag, content]. */
|
||||
function derSequence(der: Uint8Array): [number, Uint8Array][] {
|
||||
const [tag, body] = derRead(der, 0);
|
||||
if (tag !== 0x30) throw new Error("no sequence");
|
||||
const items: [number, Uint8Array][] = [];
|
||||
for (let pos = 0; pos < body.length; ) {
|
||||
const [t, content, end] = derRead(body, pos);
|
||||
items.push([t, content]);
|
||||
pos = end;
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
function derLength(n: number): number[] {
|
||||
return n < 0x80 ? [n] : [0x81, n];
|
||||
}
|
||||
|
||||
/** DER INTEGER content for an unsigned big-endian number. */
|
||||
function derUint(bytes: Uint8Array): Uint8Array {
|
||||
let i = 0;
|
||||
while (i < bytes.length - 1 && bytes[i] === 0) i++;
|
||||
const trimmed = bytes.subarray(i);
|
||||
return trimmed[0] & 0x80 ? Uint8Array.of(0, ...trimmed) : trimmed;
|
||||
}
|
||||
|
||||
async function uidFromPoint(x: Uint8Array, y: Uint8Array): Promise<string> {
|
||||
const parts = [
|
||||
[0x03, 0x02, 0x07, 0x00], // BIT STRING: 1 bit, 0 = public key only
|
||||
[0x02, 0x01, 0x20], // INTEGER 32
|
||||
[0x02, ...derLength(x.length), ...x],
|
||||
[0x02, ...derLength(y.length), ...y],
|
||||
].flat();
|
||||
const der = Uint8Array.of(0x30, ...derLength(parts.length), ...parts);
|
||||
return b64(await sha1(new TextEncoder().encode(b64(der))));
|
||||
}
|
||||
|
||||
/** Public point from a bare P-256 scalar, via a PKCS#8 import without public key. */
|
||||
async function uidFromScalar(scalar: Uint8Array): Promise<string> {
|
||||
const d = new Uint8Array(32);
|
||||
d.set(scalar.subarray(Math.max(0, scalar.length - 32)), 32 - Math.min(32, scalar.length));
|
||||
const pkcs8 = Uint8Array.of(
|
||||
...[0x30, 0x41, 0x02, 0x01, 0x00, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02, 0x01],
|
||||
...[0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x04, 0x27, 0x30, 0x25, 0x02, 0x01, 0x01, 0x04, 0x20],
|
||||
...d
|
||||
);
|
||||
const key = await crypto.subtle.importKey("pkcs8", pkcs8, { name: "ECDSA", namedCurve: "P-256" }, true, ["sign"]);
|
||||
const jwk = await crypto.subtle.exportKey("jwk", key);
|
||||
const fromUrl = (s: string) => unb64(s.replace(/-/g, "+").replace(/_/g, "/").padEnd(Math.ceil(s.length / 4) * 4, "="));
|
||||
return uidFromPoint(derUint(fromUrl(jwk.x!)), derUint(fromUrl(jwk.y!)));
|
||||
}
|
||||
|
||||
/** tomcrypt private key DER (with or without the public point, like tsproto's from_tomcrypt). */
|
||||
async function uidFromTomcrypt(der: Uint8Array): Promise<string> {
|
||||
const items = derSequence(der);
|
||||
const [bitTag, bits] = items[0];
|
||||
if (bitTag !== 0x03) throw new Error("no bit string");
|
||||
// TS3AudioBot keys set two bits and leave out the public point.
|
||||
const withPoint = bits[0] === 0x07;
|
||||
if (withPoint) return uidFromPoint(items[2][1], items[3][1]);
|
||||
return uidFromScalar(items[2][1]);
|
||||
}
|
||||
|
||||
async function deobfuscate(data: Uint8Array): Promise<Uint8Array> {
|
||||
const out = data.slice();
|
||||
let end = out.indexOf(0, 20);
|
||||
if (end < 0) end = out.length;
|
||||
const hash = await sha1(out.subarray(20, end));
|
||||
for (let i = 0; i < 20; i++) out[i] ^= hash[i];
|
||||
for (let i = 0; i < Math.min(out.length, 100); i++) out[i] ^= OBFUSCATION[i];
|
||||
return out;
|
||||
}
|
||||
|
||||
export async function identityUid(blob: string): Promise<string | null> {
|
||||
if (!crypto.subtle) return null;
|
||||
try {
|
||||
const text = blob.trim().replace(/^"|"$/g, "");
|
||||
if (text.startsWith("{")) return await uidFromScalar(unb64(JSON.parse(text).key));
|
||||
const native = /^\d+V(.+)$/.exec(text);
|
||||
const tomcrypt = native ? atob(new TextDecoder().decode(await deobfuscate(unb64(native[1])))) : atob(text);
|
||||
return await uidFromTomcrypt(Uint8Array.from(tomcrypt, (c) => c.charCodeAt(0)));
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,284 @@
|
||||
import { Fragment, type ReactNode } from "react";
|
||||
import { StillImg } from "./still";
|
||||
|
||||
// TeamSpeak chat text -> React elements (never HTML strings, so message text
|
||||
// can't inject markup). Understands the TS3/TS6 BBCode tags plus the basic
|
||||
// Markdown TS6 sends: Markdown is first rewritten into BBCode, then a single
|
||||
// parser renders both. Unknown tags stay literal, unclosed tags close at the end.
|
||||
// ponytail: no [table], nested Markdown lists/quotes, ==highlight==, ||spoiler||,
|
||||
// math or mermaid - add them once people actually send them.
|
||||
|
||||
const TAG_REGEX =
|
||||
/\[(\/?)(b|i|u|s|url|img|color|size|left|center|right|list|\*|hr|noparse|md-code|md-quote|md-h)(?:=([^\]]*))?\]/gi;
|
||||
const BLOCK_TAGS = new Set(["left", "center", "right", "list", "*", "hr", "md-quote", "md-h"]);
|
||||
export const BARE_URL_REGEX = /https?:\/\/[^\s<>"\[\]]+/g;
|
||||
const COLOR_REGEX = /^(#[0-9a-f]{3}|#[0-9a-f]{6}|[a-z]+)$/i;
|
||||
const LIST_STYLES: Record<string, string> = { "1": "decimal", a: "lower-alpha", A: "upper-alpha", i: "lower-roman", I: "upper-roman" };
|
||||
|
||||
// Spans Markdown must not touch: noparse, tagged links, inline code, Markdown
|
||||
// links/images, <autolinks>, bare URLs and backslash escapes.
|
||||
const MD_SPANS = new RegExp(
|
||||
[
|
||||
String.raw`\[noparse\][\s\S]*?\[\/noparse\]`,
|
||||
String.raw`\[(url|img)(?:=[^\]]*)?\][\s\S]*?\[\/\1\]`,
|
||||
String.raw`\x60([^\x60\n]+)\x60`,
|
||||
String.raw`(!?)\[([^\]\n]*)\]\(<?(https?:\/\/[^\s)>]+)>?(?:\s[^)\n]*)?\)`,
|
||||
String.raw`<(https?:\/\/[^\s>]+)>`,
|
||||
BARE_URL_REGEX.source,
|
||||
String.raw`\\([\\\x60*_{}\[\]()#+\-.!~>|=])`,
|
||||
].join("|"),
|
||||
"gi",
|
||||
);
|
||||
// Outgoing: an already-tagged link or Markdown span (left alone) or a bare URL (wrapped).
|
||||
const WRAP_REGEX = new RegExp(
|
||||
String.raw`(\[(url|img)(?:=[^\]]*)?\][\s\S]*?\[\/\2\]|!?\[[^\]\n]*\]\([^)\n]*\)|\x60[^\x60\n]*\x60|<https?:\/\/[^\s>]+>)|` +
|
||||
BARE_URL_REGEX.source,
|
||||
"gi",
|
||||
);
|
||||
|
||||
interface Node {
|
||||
tag: string;
|
||||
arg?: string;
|
||||
children: (Node | string)[];
|
||||
}
|
||||
|
||||
export interface RenderOptions {
|
||||
/** Load [img] /  inline. Off: they render as links, so no remote host sees the reader's IP. */
|
||||
images?: boolean;
|
||||
/** GIF animation off: show only the first frame of inline images. */
|
||||
stillImages?: boolean;
|
||||
}
|
||||
|
||||
function emphasis(s: string): string {
|
||||
return s
|
||||
.replace(/\*\*(?=\S)([^\n]*?\S)\*\*/g, "[b]$1[/b]")
|
||||
.replace(/~~(?=\S)([^\n]*?\S)~~/g, "[s]$1[/s]")
|
||||
.replace(/\+\+(?=\S)([^\n]*?\S)\+\+/g, "[u]$1[/u]")
|
||||
.replace(/(^|[^\w*[])\*(?=[^\s\]])([^*\n]*?\S)\*(?![\w*])/g, "$1[i]$2[/i]")
|
||||
.replace(/(^|[^\w_[])_(?=[^\s\]])([^_\n]*?\S)_(?![\w_])/g, "$1[i]$2[/i]");
|
||||
}
|
||||
|
||||
function markdownInline(text: string): string {
|
||||
let out = "";
|
||||
let last = 0;
|
||||
for (const m of text.matchAll(MD_SPANS)) {
|
||||
out += emphasis(text.slice(last, m.index));
|
||||
last = m.index + m[0].length;
|
||||
if (m[2] !== undefined) out += `[md-code][noparse]${m[2]}[/noparse][/md-code]`;
|
||||
else if (m[5] !== undefined) out += m[3] ? `[img]${m[5]}[/img]` : `[url=${m[5]}]${m[4] || m[5]}[/url]`;
|
||||
else if (m[6] !== undefined) out += m[6];
|
||||
else if (m[7] !== undefined) out += `[noparse]${m[7]}[/noparse]`;
|
||||
else out += m[0];
|
||||
}
|
||||
return out + emphasis(text.slice(last));
|
||||
}
|
||||
|
||||
// Line-based Markdown blocks (TS6: one line is one paragraph): lists, quotes,
|
||||
// headings and rules. Consecutive list/quote lines are grouped.
|
||||
function markdownBlocks(text: string): string {
|
||||
const out: { block: boolean; s: string }[] = [];
|
||||
let group = null as { kind: string; items: string[] } | null;
|
||||
const flush = () => {
|
||||
if (!group) return;
|
||||
const s =
|
||||
group.kind === "quote"
|
||||
? `[md-quote]${group.items.join("\n")}[/md-quote]`
|
||||
: `[list${group.kind === "ol" ? "=1" : ""}]${group.items.map((i) => `[*]${i}`).join("")}[/list]`;
|
||||
out.push({ block: true, s });
|
||||
group = null;
|
||||
};
|
||||
for (const line of text.split("\n")) {
|
||||
const item = /^\s*([-*+]|\d+[.)])\s+(.*)$/.exec(line);
|
||||
const quote = /^>(?:\s(.*))?$/.exec(line);
|
||||
const kind = item ? (/\d/.test(item[1]) ? "ol" : "ul") : quote ? "quote" : null;
|
||||
if (kind) {
|
||||
if (group?.kind !== kind) flush();
|
||||
group ??= { kind, items: [] };
|
||||
group.items.push(item ? item[2] : (quote![1] ?? ""));
|
||||
continue;
|
||||
}
|
||||
flush();
|
||||
const heading = /^(#{1,3})\s+(.+)$/.exec(line);
|
||||
if (/^\s*(-{3,}|\*{3,}|_{3,})\s*$/.test(line)) out.push({ block: true, s: "[hr]" });
|
||||
else if (heading) out.push({ block: true, s: `[md-h=${heading[1].length}]${heading[2]}[/md-h]` });
|
||||
else out.push({ block: false, s: line });
|
||||
}
|
||||
flush();
|
||||
return out.map((e, i) => (i > 0 && !e.block && !out[i - 1].block ? "\n" : "") + e.s).join("");
|
||||
}
|
||||
|
||||
function parse(text: string): Node {
|
||||
const root: Node = { tag: "", children: [] };
|
||||
const stack = [root];
|
||||
const re = new RegExp(TAG_REGEX.source, "gi");
|
||||
let last = 0;
|
||||
for (let m; (m = re.exec(text)); ) {
|
||||
const top = stack[stack.length - 1];
|
||||
if (m.index > last) top.children.push(text.slice(last, m.index));
|
||||
last = re.lastIndex;
|
||||
const tag = m[2].toLowerCase();
|
||||
if (m[1]) {
|
||||
const at = stack.findLastIndex((n) => n.tag === tag);
|
||||
if (at > 0) stack.length = at;
|
||||
else top.children.push(m[0]);
|
||||
} else if (tag === "noparse") {
|
||||
const end = text.toLowerCase().indexOf("[/noparse]", last);
|
||||
const stop = end < 0 ? text.length : end;
|
||||
top.children.push({ tag, children: [text.slice(last, stop)] });
|
||||
last = re.lastIndex = end < 0 ? stop : end + "[/noparse]".length;
|
||||
} else if (tag === "hr") {
|
||||
top.children.push({ tag, children: [] });
|
||||
} else if (tag === "*") {
|
||||
const at = stack.findLastIndex((n) => n.tag === "list");
|
||||
if (at > 0) {
|
||||
stack.length = at + 1;
|
||||
const li: Node = { tag, children: [] };
|
||||
stack[at].children.push(li);
|
||||
stack.push(li);
|
||||
} else top.children.push(m[0]);
|
||||
} else {
|
||||
const node: Node = { tag, arg: m[3], children: [] };
|
||||
top.children.push(node);
|
||||
stack.push(node);
|
||||
}
|
||||
}
|
||||
if (last < text.length) stack[stack.length - 1].children.push(text.slice(last));
|
||||
return root;
|
||||
}
|
||||
|
||||
function safeHref(raw: string): string | null {
|
||||
const url = raw.trim();
|
||||
return /^https?:\/\//i.test(url) ? url : /^www\./i.test(url) ? `https://${url}` : null;
|
||||
}
|
||||
|
||||
function link(href: string, children: ReactNode, key: number) {
|
||||
return (
|
||||
<a key={key} href={href} target="_blank" rel="noopener noreferrer">
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
function textNode(text: string, key: number, linkUrls = true): ReactNode {
|
||||
const parts: ReactNode[] = [];
|
||||
text.split("\n").forEach((line, li) => {
|
||||
if (li > 0) parts.push(<br key={`br${li}`} />);
|
||||
let last = 0;
|
||||
if (linkUrls) {
|
||||
for (const m of line.matchAll(BARE_URL_REGEX)) {
|
||||
if (m.index > last) parts.push(line.slice(last, m.index));
|
||||
parts.push(link(m[0], m[0], li * 10000 + m.index));
|
||||
last = m.index + m[0].length;
|
||||
}
|
||||
}
|
||||
if (last < line.length) parts.push(line.slice(last));
|
||||
});
|
||||
return parts.length === 1 && typeof parts[0] === "string" ? parts[0] : <Fragment key={key}>{parts}</Fragment>;
|
||||
}
|
||||
|
||||
function textOf(node: Node): string {
|
||||
return node.children.map((c) => (typeof c === "string" ? c : textOf(c))).join("");
|
||||
}
|
||||
|
||||
function fontSize(arg: string | undefined): string | undefined {
|
||||
const rel = /^([+-])(\d)$/.exec(arg ?? "");
|
||||
if (rel) return `${Math.min(2, Math.max(0.6, 1 + (rel[1] === "+" ? 1 : -1) * Number(rel[2]) * 0.2))}em`;
|
||||
return /^\d{1,3}$/.test(arg ?? "") ? `${Math.min(28, Math.max(6, Number(arg)))}pt` : undefined;
|
||||
}
|
||||
|
||||
function render(node: Node, key: number, opts: RenderOptions): ReactNode {
|
||||
const isBlock = (c: Node | string | undefined) => typeof c === "object" && BLOCK_TAGS.has(c.tag);
|
||||
const kids = () =>
|
||||
node.children.map((c, i, all) => {
|
||||
if (typeof c !== "string") return render(c, i, opts);
|
||||
// Line breaks around block elements are already breaks; drop them.
|
||||
let s = c;
|
||||
if (i === 0 ? isBlock(node) : isBlock(all[i - 1])) s = s.replace(/^\n/, "");
|
||||
if (i === all.length - 1 ? isBlock(node) : isBlock(all[i + 1])) s = s.replace(/\n$/, "");
|
||||
if (node.tag === "list" && !s.trim()) return null;
|
||||
return textNode(s, i);
|
||||
});
|
||||
switch (node.tag) {
|
||||
case "b":
|
||||
return <strong key={key}>{kids()}</strong>;
|
||||
case "i":
|
||||
return <em key={key}>{kids()}</em>;
|
||||
case "u":
|
||||
return <u key={key}>{kids()}</u>;
|
||||
case "s":
|
||||
return <s key={key}>{kids()}</s>;
|
||||
case "color":
|
||||
return (
|
||||
<span key={key} style={node.arg && COLOR_REGEX.test(node.arg) ? { color: node.arg } : undefined}>
|
||||
{kids()}
|
||||
</span>
|
||||
);
|
||||
case "size":
|
||||
return (
|
||||
<span key={key} style={{ fontSize: fontSize(node.arg) }}>
|
||||
{kids()}
|
||||
</span>
|
||||
);
|
||||
case "left":
|
||||
case "center":
|
||||
case "right":
|
||||
return (
|
||||
<div key={key} style={{ textAlign: node.tag }}>
|
||||
{kids()}
|
||||
</div>
|
||||
);
|
||||
case "list": {
|
||||
const style = node.arg ? LIST_STYLES[node.arg] : undefined;
|
||||
return style ? (
|
||||
<ol key={key} className="ts-bb-list" style={{ listStyleType: style }}>
|
||||
{kids()}
|
||||
</ol>
|
||||
) : (
|
||||
<ul key={key} className="ts-bb-list">
|
||||
{kids()}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
case "*":
|
||||
return <li key={key}>{kids()}</li>;
|
||||
case "hr":
|
||||
return <hr key={key} className="ts-bb-hr" />;
|
||||
case "noparse":
|
||||
return textNode(textOf(node), key, false);
|
||||
case "md-code":
|
||||
return <code key={key}>{kids()}</code>;
|
||||
case "md-quote":
|
||||
return (
|
||||
<blockquote key={key} className="ts-bb-quote">
|
||||
{kids()}
|
||||
</blockquote>
|
||||
);
|
||||
case "md-h":
|
||||
return (
|
||||
<div key={key} className={`ts-bb-h ts-bb-h${node.arg}`}>
|
||||
{kids()}
|
||||
</div>
|
||||
);
|
||||
case "url":
|
||||
case "img": {
|
||||
const href = safeHref(node.arg ?? textOf(node));
|
||||
// Plain-text label: a linkified URL or nested tag inside <a> would nest links.
|
||||
const label = textOf(node);
|
||||
if (!href) return <span key={key}>{label}</span>;
|
||||
if (node.tag === "img" && opts.images)
|
||||
return link(href, <StillImg still={!!opts.stillImages} className="ts-bb-img" src={href} alt="" loading="lazy" referrerPolicy="no-referrer" />, key);
|
||||
return link(href, label, key);
|
||||
}
|
||||
default:
|
||||
return <Fragment key={key}>{kids()}</Fragment>;
|
||||
}
|
||||
}
|
||||
|
||||
export function renderBbcode(text: string, opts: RenderOptions = {}): ReactNode {
|
||||
return render(parse(markdownInline(markdownBlocks(text.replace(/\r\n?/g, "\n")))), 0, opts);
|
||||
}
|
||||
|
||||
// Outgoing: native clients send links as [URL]...[/URL] and only link those.
|
||||
export function wrapUrls(text: string): string {
|
||||
return text.replace(WRAP_REGEX, (m, kept) => (kept ? m : `[URL]${m}[/URL]`));
|
||||
}
|
||||
@@ -15,7 +15,7 @@ export type ParsedChannelName = {
|
||||
};
|
||||
|
||||
/** Pure line fillers that look better as a CSS rule than raw `---` / `***`. */
|
||||
const LINE_FILLER_RE = /^[\-\u2013\u2014\u2500\u2501\u2550=\*\.·_\s]+$/;
|
||||
const LINE_FILLER_RE = /^[-\u2013\u2014\u2500\u2501\u2550=*.·_\s]+$/;
|
||||
|
||||
/** Corners / verticals of box-frame spacers (not pure horizontal fills). */
|
||||
const BOX_FRAME_RE = /[╔╗╚╝╒╓╕╖╘╙╛╜┌┐└┘├┤┬┴┼║│╟╢╤╧╪╫╬╒╓╕╖╘╙╛╜]/;
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import { useEffect, useState, type ImgHTMLAttributes } from "react";
|
||||
|
||||
const stills = new Map<string, string | null>();
|
||||
|
||||
/** Options -> Sicherheit -> "Cache löschen". */
|
||||
export function clearStillCache(): void {
|
||||
stills.clear();
|
||||
}
|
||||
|
||||
/** First frame of an (animated) image as a PNG data URL, or null when the
|
||||
* browser won't let us read it (cross-origin image without CORS). */
|
||||
function freeze(src: string): Promise<string | null> {
|
||||
return new Promise((resolve) => {
|
||||
const img = new Image();
|
||||
img.crossOrigin = "anonymous";
|
||||
img.referrerPolicy = "no-referrer";
|
||||
img.onload = () => {
|
||||
try {
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.width = img.naturalWidth;
|
||||
canvas.height = img.naturalHeight;
|
||||
canvas.getContext("2d")!.drawImage(img, 0, 0);
|
||||
resolve(canvas.toDataURL());
|
||||
} catch {
|
||||
resolve(null);
|
||||
}
|
||||
};
|
||||
img.onerror = () => resolve(null);
|
||||
img.src = src;
|
||||
});
|
||||
}
|
||||
|
||||
/** <img> that shows only the first frame when `still` is set (GIF animation off).
|
||||
* Falls back to the original image when it can't be frozen. */
|
||||
export function StillImg({ still, src, ...rest }: ImgHTMLAttributes<HTMLImageElement> & { still: boolean; src: string }) {
|
||||
const [frozen, setFrozen] = useState(() => (still ? stills.get(src) : undefined));
|
||||
useEffect(() => {
|
||||
if (!still) return;
|
||||
if (stills.has(src)) {
|
||||
setFrozen(stills.get(src));
|
||||
return;
|
||||
}
|
||||
let live = true;
|
||||
void freeze(src).then((url) => {
|
||||
stills.set(src, url);
|
||||
if (live) setFrozen(url);
|
||||
});
|
||||
return () => {
|
||||
live = false;
|
||||
};
|
||||
}, [src, still]);
|
||||
// While freezing, render nothing rather than letting the animation start.
|
||||
if (still && frozen === undefined) return null;
|
||||
return <img src={still && frozen ? frozen : src} {...rest} />;
|
||||
}
|
||||
@@ -0,0 +1,998 @@
|
||||
{
|
||||
"menu.connections": "Připojení",
|
||||
"menu.connections.connect": "Připojit",
|
||||
"menu.connections.disconnectCurrent": "Odpojit od aktuálního serveru",
|
||||
"menu.connections.disconnectAll": "Odpojit od všech serverů",
|
||||
"menu.favorites": "Záložky",
|
||||
"menu.favorites.add": "Přidat záložku",
|
||||
"menu.favorites.manage": "Spravovat záložky",
|
||||
"menu.self": "Já",
|
||||
"menu.rights": "Oprávnění",
|
||||
"menu.rights.serverGroups": "Upravit skupiny serveru...",
|
||||
"menu.rights.channelGroups": "Upravit skupiny kanálů...",
|
||||
"menu.rights.serverPermissions": "Upravit oprávnění serveru...",
|
||||
"menu.rights.channelPermissions": "Upravit oprávnění kanálu...",
|
||||
"menu.rights.overview": "Přehled oprávnění...",
|
||||
"menu.rights.myRights": "Zobrazit moje oprávnění",
|
||||
"menu.extras": "Nástroje",
|
||||
"menu.help": "Nápověda",
|
||||
"menu.help.about": "O WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Seznam změn",
|
||||
"menu.help.translate": "Pomozte s překladem (Weblate)",
|
||||
"menu.extras.identities": "Identity",
|
||||
"menu.extras.contacts": "Kontakty",
|
||||
"menu.extras.collectedUrls": "Shromážděné URL",
|
||||
"menu.extras.inviteFriend": "Pozvat přítele",
|
||||
"menu.extras.whisperLists": "Seznamy šeptání",
|
||||
"menu.extras.whisperHistory": "Historie šeptání",
|
||||
"menu.extras.clientLog": "Protokol klienta",
|
||||
"menu.extras.banList": "Seznam zákazů",
|
||||
"menu.extras.complaintList": "Seznam stížností",
|
||||
"menu.extras.offlineMessages": "Offline zprávy",
|
||||
"menu.extras.serverQueryLogin": "Přihlášení ServerQuery",
|
||||
"menu.extras.serverLog": "Protokol serveru",
|
||||
"menu.extras.startRecording": "Spustit nahrávání",
|
||||
"menu.extras.startMultitrackRecording": "Spustit vícestopé nahrávání",
|
||||
"menu.extras.stopRecording": "Zastavit nahrávání",
|
||||
"menu.extras.options": "Možnosti",
|
||||
"menu.extras.feedback": "Odeslat zpětnou vazbu",
|
||||
"feedback.fab.nudge": "Co si myslíte o WebSpeak3? Vaše zpětná vazba je vítána!",
|
||||
"donate.label": "Přispět",
|
||||
"donate.title": "Podpořit WebSpeak3 na Ko-fi",
|
||||
"pwa.updateAvailable": "Je k dispozici nová verze",
|
||||
"pwa.reload": "Načíst znovu",
|
||||
"news.label": "Novinky",
|
||||
"news.release": "Vyšel WebSpeak3 {version}",
|
||||
"news.theme": "Nový vzhled v obchodě: „{name}“ od {author}",
|
||||
"feedback.dialog.title": "Zpětná vazba",
|
||||
"feedback.dialog.intro": "Report bug or share idea to help improve WebSpeak3.",
|
||||
"feedback.dialog.category": "Kategorie",
|
||||
"feedback.dialog.category.bug": "Chyba",
|
||||
"feedback.dialog.category.idea": "Nápad",
|
||||
"feedback.dialog.category.report": "Nahlášení (porušení pravidel/zneužití)",
|
||||
"feedback.dialog.category.other": "Jiné",
|
||||
"feedback.dialog.reportHint": "Nahlášení zůstávají soukromá a nikdy nejsou zveřejněna jako problém na GitHubu. Klidně uveďte dotčený server.",
|
||||
"feedback.dialog.message": "Zpráva",
|
||||
"feedback.dialog.messagePlaceholder": "Co se stalo nebo co navrhujete?",
|
||||
"feedback.dialog.email": "E-mail (volitelné, pro další kontakt – zůstává soukromý a nikdy není zveřejněn)",
|
||||
"feedback.dialog.publishAsIssue": "Publikovat jako veřejný problém na GitHubu",
|
||||
"feedback.dialog.publishAsIssueHint": "Ponechte nezaškrtnuté, pokud chcete, aby vaše zpětná vazba zůstala soukromá a viditelná pouze správci.",
|
||||
"feedback.dialog.publishAsIssueHintBug": "Hlášení chyb jsou vždy zveřejněna jako veřejný problém na GitHubu.",
|
||||
"feedback.dialog.bug.environment": "Prohlížeč a operační systém",
|
||||
"feedback.dialog.bug.server": "TeamSpeak server (volitelné – zůstává soukromé, nikdy se nezveřejní)",
|
||||
"feedback.dialog.bug.steps": "Co jste dělali těsně předtím? (volitelné)",
|
||||
"feedback.dialog.bug.stepsPlaceholder": "např. vstup do kanálu, změna výstupního zařízení… Pomohlo znovu načíst stránku?",
|
||||
"feedback.dialog.bug.diagnostics": "Odesílané technické údaje",
|
||||
"feedback.dialog.send": "Odeslat",
|
||||
"restartNotice.title": "Krátké přerušení",
|
||||
"restartNotice.body": "Server se za chvíli krátce restartuje. Vaše připojení bude na okamžik přerušeno.",
|
||||
"restartNotice.ack": "Rozumím",
|
||||
"menu.extras.tos": "Podmínky používání",
|
||||
"tos.title": "Podmínky používání pro client.webspeak3.de",
|
||||
"tos.rule1": "This client is for private, non-commercial use of TeamSpeak/TeaSpeak/VoySpeak servers via browser.",
|
||||
"tos.rule2": "Prohibited in particular: any criminal activity, harassment and hate speech, spam and flooding, disrupting service, and circumventing bans.",
|
||||
"tos.rule3": "Violations may result in access being blocked without warning; serious cases may be reported to relevant authorities.",
|
||||
"tos.rule4Pre": "For operational security and abuse detection, connections are logged (server address, server name, timestamp) and automatically deleted after 90 days – see",
|
||||
"tos.rule4Post": ".",
|
||||
"tos.privacyLinkText": "zásady ochrany soukromí",
|
||||
"tos.rule5Pre": "For abuse or complaints: see",
|
||||
"tos.rule5Post": ".",
|
||||
"tos.legalLinkText": "právní informace (Impressum)",
|
||||
"tos.rule6": "By clicking \"Accept\" you agree to these terms. Your acceptance is stored only locally in your browser; you'll be asked again if rules change.",
|
||||
"tos.accept": "Přijmout",
|
||||
"tos.close": "Zavřít",
|
||||
"feedback.dialog.cancel": "Zrušit",
|
||||
"feedback.dialog.sending": "Odesílání…",
|
||||
"feedback.dialog.success": "Děkujeme za zpětnou vazbu!",
|
||||
"feedback.dialog.successWithIssue": "Děkujeme! Byl vytvořen problém:",
|
||||
"feedback.dialog.error": "Odeslání se nezdařilo. Zkuste to prosím později.",
|
||||
"toolbar.setAway": "Nastavit stav nepřítomen",
|
||||
"toolbar.backOnline": "Zpět online",
|
||||
"toolbar.awayOptions": "Možnosti nepřítomnosti",
|
||||
"toolbar.whisper": "Cíle šeptání",
|
||||
"whisper.channels": "Kanály",
|
||||
"whisper.clients": "Klienti",
|
||||
"whisper.clearAll": "Vymazat všechny cíle šeptání",
|
||||
"toolbar.micEnable": "Zapnout mikrofon",
|
||||
"toolbar.micMute": "Ztlumit mikrofon",
|
||||
"toolbar.micUnmute": "Zrušit ztlumení mikrofonu",
|
||||
"toolbar.vadSensitivity": "Citlivost aktivace hlasem",
|
||||
"toolbar.pushToTalk": "Držte pro mluvení",
|
||||
"tabAudio.start": "Sdílet zvuk karty nebo okna do hlasového kanálu (sluchátka zabrání ozvěně)",
|
||||
"tabAudio.stop": "Zastavit sdílení zvuku",
|
||||
"tabAudio.noAudio": "Nebyl sdílen žádný zvuk. Ve výběru zvolte kartu nebo okno a zapněte jeho zvuk.",
|
||||
"tabAudio.silent": "Ze sdíleného zvuku už 5 sekund nic nepřišlo. Systémový zvuk nefunguje na každém počítači s Windows; místo toho sdílejte kartu prohlížeče (např. Spotify na webu nebo YouTube) se zapnutou volbou „Sdílet zvuk karty“.",
|
||||
"toolbar.muteSound": "Ztlumit zvuk (ohluchit)",
|
||||
"toolbar.unmuteSound": "Zrušit ztlumení zvuku (odhluchit)",
|
||||
"toolbar.chooseOutputDevice": "Vybrat výstupní zařízení",
|
||||
"toolbar.toggleTheme": "Přepnout motiv",
|
||||
"away.setGlobal": "Nastavit globální stav nepřítomen",
|
||||
"away.setGlobalStatus": "Nastavit globální stav nepřítomnosti",
|
||||
"connect.title": "Připojit",
|
||||
"connect.novaSubtitle": "WebSpeak3 běží celý v prohlížeči — není potřeba nic stahovat",
|
||||
"connect.serverAddress": "Přezdívka nebo adresa serveru:",
|
||||
"connect.serverPassword": "Heslo serveru:",
|
||||
"connect.nickname": "Přezdívka:",
|
||||
"connect.phoneticNickname": "Fonetická přezdívka:",
|
||||
"connect.identity": "Identita:",
|
||||
"connect.defaultChannel": "Výchozí kanál:",
|
||||
"connect.recordingProfile": "Profil snímání:",
|
||||
"connect.channelPassword": "Heslo kanálu:",
|
||||
"connect.playbackProfile": "Profil přehrávání:",
|
||||
"connect.onetimeGrant": "Jednorázový klíč oprávnění:",
|
||||
"connect.serverType": "Typ serveru:",
|
||||
"connect.serverType.auto": "Automaticky",
|
||||
"connect.serverType.teamspeak": "TeamSpeak",
|
||||
"connect.serverType.teaspeak": "TeaSpeak",
|
||||
"connect.hotkeyProfile": "Profil klávesových zkratek:",
|
||||
"connect.soundPack": "Balíček zvuků:",
|
||||
"connect.more": "Více",
|
||||
"connect.less": "Méně",
|
||||
"connect.connect": "Připojit",
|
||||
"connect.connecting": "Připojování…",
|
||||
"connect.newTab": "V nové kartě",
|
||||
"connect.cancel": "Zrušit",
|
||||
"channelPasswordDialog.title": "Je vyžadováno heslo kanálu",
|
||||
"channelPasswordDialog.prompt": "Tento kanál je chráněný heslem. Zadejte prosím heslo:",
|
||||
"channelPasswordDialog.wrongPassword": "Nesprávné heslo, zkuste to prosím znovu:",
|
||||
"channelPasswordDialog.submit": "Připojit se",
|
||||
"channelPasswordDialog.cancel": "Zrušit",
|
||||
"collectedUrls.title": "Shromážděné URL",
|
||||
"collectedUrls.search": "Hledat:",
|
||||
"collectedUrls.url": "URL",
|
||||
"collectedUrls.count": "Počet",
|
||||
"collectedUrls.lastSeen": "Naposledy zmíněno",
|
||||
"collectedUrls.mentionedBy": "Zmínil",
|
||||
"collectedUrls.clearList": "Vymazat seznam",
|
||||
"inviteFriend.title": "Pozvat přítele",
|
||||
"inviteFriend.type": "Typ pozvánky",
|
||||
"inviteFriend.includeChannel": "Vložit aktuální kanál",
|
||||
"inviteFriend.link": "Odkaz",
|
||||
"inviteFriend.webspeak3Link": "Odkaz WebSpeak3",
|
||||
"inviteFriend.addPermissionKey": "Přidat klíč oprávnění",
|
||||
"inviteFriend.copyToClipboard": "Kopírovat do schránky",
|
||||
"inviteFriend.copied": "Zkopírováno!",
|
||||
"clientLog.title": "Protokol klienta",
|
||||
"clientLog.level.critical": "Kritické",
|
||||
"clientLog.level.error": "Chyby",
|
||||
"clientLog.level.warning": "Varování",
|
||||
"clientLog.level.info": "Informace",
|
||||
"clientLog.level.debug": "Ladění",
|
||||
"clientLog.search": "Hledat:",
|
||||
"clientLog.filter": "Filtr:",
|
||||
"clientLog.caseSensitive": "Rozlišovat velká a malá písmena",
|
||||
"clientLog.mark": "Označit",
|
||||
"whisperHistory.title": "Historie šeptání – {server}",
|
||||
"whisperHistory.empty": "Zatím žádná historie šeptání.",
|
||||
"whisperHistory.started": "Šeptání pro: {targets}",
|
||||
"whisperSettings.subtitle": "Nastavení šeptání",
|
||||
"whisperSettings.rights": "Oprávnění pro příchozí šeptání",
|
||||
"whisperSettings.mode.allow": "Použít nastavení kontaktů, jinak povolit",
|
||||
"whisperSettings.mode.block": "Použít nastavení kontaktů, jinak zakázat",
|
||||
"whisperSettings.mode.blockAll": "Zakázat vše",
|
||||
"whisperSettings.incoming": "Nastavení příchozího šeptání",
|
||||
"whisperSettings.sound": "Přehrát zvuk, když vám někdo šeptá",
|
||||
"whisperSettings.openHistory": "Vždy otevřít historii šeptání, když vám někdo šeptá",
|
||||
"whisperSettings.clearAfter": "Odebrat klienty z historie šeptání po",
|
||||
"whisperSettings.minutes": "minut",
|
||||
"whisperHistory.received": "{name} vám šeptal(a)",
|
||||
"whisperHistory.stopped": "Šeptání zastaveno",
|
||||
"whisperHistory.clear": "Vymazat",
|
||||
"whisperHistory.options": "Možnosti",
|
||||
"whisperLists.title": "Seznamy šeptání",
|
||||
"whisperLists.namePlaceholder": "Název seznamu",
|
||||
"whisperLists.saveCurrent": "Uložit aktuální výběr",
|
||||
"whisperLists.itemDetail": "{channels} kanálů, {clients} klientů",
|
||||
"whisperLists.activate": "Aktivovat",
|
||||
"whisperLists.delete": "Smazat",
|
||||
"whisperLists.empty": "Zatím nejsou uloženy žádné seznamy šeptání. Vyberte cíle šeptání a uložte je zde jako seznam.",
|
||||
"identities.title": "Identity",
|
||||
"identities.activate": "Aktivovat",
|
||||
"identities.add": "Nová identita",
|
||||
"identities.delete": "Smazat",
|
||||
"identities.newName": "Nová identita",
|
||||
"identities.generated": "Vygenerována",
|
||||
"identities.pending": "Vygeneruje se při příštím připojení",
|
||||
"identities.listLabel": "Lokální identity",
|
||||
"identities.name": "Název identity:",
|
||||
"identities.phoneticNickname": "Fonetická přezdívka:",
|
||||
"identities.uniqueId": "Jedinečné ID:",
|
||||
"identities.unknown": "Neznámé",
|
||||
"identities.setDefault": "Nastavit jako výchozí",
|
||||
"identities.isDefault": "Aktuálně používána jako výchozí",
|
||||
"identities.export": "Exportovat",
|
||||
"identities.import": "Importovat",
|
||||
"connectionInfo.clientTitle": "Informace o připojení – {name}",
|
||||
"connectionInfo.serverTitle": "Informace o připojení k serveru",
|
||||
"connectionInfo.loading": "Načítání…",
|
||||
"connectionInfo.unavailable": "Server neodpovídá (chybí oprávnění?).",
|
||||
"connectionInfo.ping": "Ping:",
|
||||
"connectionInfo.connectedSince": "Připojeno od:",
|
||||
"connectionInfo.uptime": "Doba běhu:",
|
||||
"connectionInfo.name": "Název:",
|
||||
"connectionInfo.avgPing": "Průměrný ping:",
|
||||
"connectionInfo.avgPacketLoss": "Průměrná ztráta paketů:",
|
||||
"connectionInfo.incoming": "Příchozí",
|
||||
"connectionInfo.outgoing": "Odchozí",
|
||||
"connectionInfo.packetsTransferred": "Přenesené pakety",
|
||||
"connectionInfo.bytesTransferred": "Přenesené bajty",
|
||||
"connectionInfo.bandwidthLastSecond": "Přenosová rychlost za poslední sekundu",
|
||||
"connectionInfo.bandwidthLastMinute": "Přenosová rychlost za poslední minutu",
|
||||
"connectionInfo.ftBandwidth": "Přenosová rychlost souborů",
|
||||
"connectionInfo.ftBytes": "Bajty přenosu souborů",
|
||||
"connectionInfo.ip": "IP adresa:",
|
||||
"connectionInfo.packetLoss": "Ztráta paketů:",
|
||||
"connectionInfo.packetsSent": "Odeslané pakety:",
|
||||
"connectionInfo.packetsReceived": "Přijaté pakety:",
|
||||
"connectionInfo.bytesSent": "Odeslaná data:",
|
||||
"connectionInfo.bytesReceived": "Přijatá data:",
|
||||
"connectionInfo.bandwidthSent": "Rychlost odesílání:",
|
||||
"connectionInfo.bandwidthReceived": "Rychlost přijímání:",
|
||||
"menu.self.recordingProfile": "Profil nahrávání",
|
||||
"menu.self.playbackProfile": "Profil přehrávání",
|
||||
"menu.self.hotkeyProfile": "Profil klávesových zkratek",
|
||||
"menu.self.soundPack": "Balíček zvuků",
|
||||
"menu.self.setAway": "Nastavit nepřítomnost",
|
||||
"menu.self.enableMic": "Zapnout mikrofon",
|
||||
"menu.self.disableMic": "Vypnout mikrofon",
|
||||
"menu.self.muteOutput": "Ztlumit reproduktory/sluchátka",
|
||||
"menu.self.unmuteOutput": "Zrušit ztlumení reproduktorů/sluchátek",
|
||||
"menu.self.changeNickname": "Změnit přezdívku",
|
||||
"menu.self.requestTalkPower": "Požádat o možnost mluvit",
|
||||
"menu.self.setAvatar": "Nastavit avatar",
|
||||
"menu.self.setPhoneticNickname": "Nastavit fonetickou přezdívku",
|
||||
"menu.self.connectionInfo": "Připojení Informace",
|
||||
"contacts.title": "Kontakty",
|
||||
"contacts.addOnlineClient": "Vybrat online klienta...",
|
||||
"contacts.add": "Přidat",
|
||||
"contacts.remove": "Odebrat",
|
||||
"contacts.empty": "Zatím žádné kontakty.",
|
||||
"contacts.customName": "Vlastní název:",
|
||||
"contacts.category.acquaintance": "Známý",
|
||||
"contacts.category.blocked": "Blokovaný",
|
||||
"contacts.category.friend": "Přítel",
|
||||
"contacts.phoneticName": "Fonetické jméno:",
|
||||
"contacts.whisperSetting": "Šeptání:",
|
||||
"contacts.whisperSetting.default": "Výchozí",
|
||||
"contacts.whisperSetting.allow": "Povolit",
|
||||
"contacts.whisperSetting.block": "Zakázat",
|
||||
"contacts.show": "Zobrazit",
|
||||
"contacts.ignore": "Ignorovat",
|
||||
"contacts.unignore": "Přestat ignorovat",
|
||||
"contacts.whisper": "Šeptat",
|
||||
"contacts.preferences": "Předvolby",
|
||||
"favorites.title": "🔖 Záložky myTeamSpeak",
|
||||
"favorites.synced": "Synchronizované záložky",
|
||||
"favorites.notLoggedIn": "Nepřihlášen",
|
||||
"favorites.local": "Lokální záložky",
|
||||
"favorites.unnamed": "(bez názvu)",
|
||||
"favorites.bookmarkName": "Název záložky:",
|
||||
"favorites.newFavoriteName": "Nová záložka",
|
||||
"favorites.showServerQueryClients": "Zobrazit klienty ServerQuery",
|
||||
"favorites.connectOnStartup": "Připojit při spuštění",
|
||||
"favorites.new": "Nová záložka",
|
||||
"favorites.newFolder": "Nová složka",
|
||||
"favorites.remove": "Odebrat",
|
||||
"favorites.ok": "OK",
|
||||
"favorites.cancel": "Zrušit",
|
||||
"favorites.apply": "Použít",
|
||||
"away.dialog.title": "Nastavit zprávu při nepřítomnosti",
|
||||
"away.dialog.message": "Zpráva:",
|
||||
"away.dialog.template": "Šablona:",
|
||||
"away.dialog.none": "<Žádná>",
|
||||
"away.dialog.ok": "OK",
|
||||
"away.dialog.save": "Uložit",
|
||||
"away.dialog.cancel": "Zrušit",
|
||||
"options.title": "Možnosti",
|
||||
"options.ok": "OK",
|
||||
"options.cancel": "Zrušit",
|
||||
"options.notImplemented": "Toto nastavení zatím není implementováno.",
|
||||
"options.section.anwendung": "Aplikace",
|
||||
"options.section.konto": "Účet",
|
||||
"options.section.wiedergabe": "Přehrávání",
|
||||
"options.section.aufnahme": "Snímání",
|
||||
"options.section.design": "Vzhled",
|
||||
"design.subtitle": "Zvolte vzhled aplikace.",
|
||||
"design.theme.standard": "Standardní",
|
||||
"design.theme.standard.desc": "Původní vzhled WebSpeak3.",
|
||||
"design.theme.nova": "Nova",
|
||||
"design.theme.nova.desc": "Modernější tmavý vzhled se zaoblenými prvky.",
|
||||
"design.theme.pulse": "Pulse",
|
||||
"design.theme.pulse.desc": "Rozvržení založené na kartách s navigační lištou a barevným zvýrazněním.",
|
||||
"design.theme.ide": "Command Center",
|
||||
"design.theme.ide.desc": "Technické, ploché rozvržení ve stylu IDE pro pokročilé uživatele.",
|
||||
"design.idePixelFont": "Pixelové terminálové písmo",
|
||||
"design.theme": "Motiv",
|
||||
"design.customThemes": "Vlastní motivy",
|
||||
"design.iconPack": "Balíček ikon",
|
||||
"design.manage": "Spravovat motivy a ikony…",
|
||||
"design.manage.title": "Správa motivů a ikon",
|
||||
"design.iconPack.none": "Zatím není nainstalován žádný balíček ikon.",
|
||||
"design.iconPack.import": "Importovat balíček ikon",
|
||||
"design.iconPack.importError": "Tento soubor nelze načíst jako balíček ikon.",
|
||||
"design.iconPack.deleteConfirm": "Opravdu smazat tento balíček ikon?",
|
||||
"design.iconPack.hint": "Balíčky ikon TeamSpeak 3 (.ts3_iconpack) nebo ZIP se stejně pojmenovanými obrázky. Nahrazuje kontrolky mluvení, ztlumený mikrofon/zvuk, nepřítomnost, velitele kanálu, kanál a server.",
|
||||
"design.notAvailable": "Ve webovém klientovi zatím není k dispozici",
|
||||
"design.gif": "Podpora animací GIF",
|
||||
"design.gif.avatars": "Povolit animaci avatarů",
|
||||
"design.gif.images": "Povolit animaci obrázků",
|
||||
"design.tree": "Strom kanálů",
|
||||
"design.tree.expandAll": "Při připojení rozbalit všechny kanály",
|
||||
"design.tree.expandDepth": "Rozbalit kanály do této úrovně (0 = vše)",
|
||||
"design.tree.expandOwn": "Při připojení rozbalit jen vlastní kanál",
|
||||
"design.tree.clientsBelow": "Řadit klienty pod kanály",
|
||||
"design.tree.flags": "Zobrazit vlajky klientů",
|
||||
"design.tree.overwolf": "Zobrazit ikony Overwolf",
|
||||
"design.tree.badges": "Zobrazit odznaky",
|
||||
"design.tree.groupIconsInMenus": "Zobrazit ikony skupin v kontextových nabídkách",
|
||||
"design.tree.hideInaccessibleGroups": "Skrýt nepřístupné skupiny v kontextových nabídkách",
|
||||
"design.tree.commanderLamp": "Zobrazit velitele kanálu jako kontrolku",
|
||||
"design.tree.awayMessage": "Zobrazit zprávu nepřítomnosti vedle přezdívky",
|
||||
"design.tree.tooltips": "Zobrazit nápovědu při najetí myší",
|
||||
"design.status.connected": "Připojeno",
|
||||
"design.custom.new": "+ Nový vzhled",
|
||||
"design.custom.import": "Importovat vzhled",
|
||||
"design.custom.edit": "Upravit",
|
||||
"design.custom.duplicate": "Duplikovat",
|
||||
"design.custom.export": "Exportovat",
|
||||
"design.custom.delete": "Smazat",
|
||||
"design.custom.deleteConfirm": "Opravdu chcete tento vzhled smazat?",
|
||||
"design.custom.newTitle": "Vytvořit nový vzhled",
|
||||
"design.custom.editTitle": "Upravit vzhled",
|
||||
"design.custom.name": "Název",
|
||||
"design.custom.base": "Základní rozvržení",
|
||||
"design.custom.css": "CSS",
|
||||
"design.custom.hint": "This CSS loads while design is active. Use .ts-app { ... } and existing CSS variables (--accent, --bg, --text, --border, ...) to adjust colors, radii and spacing - with .ts-app .some-class { display: none } or order you can even change layout.",
|
||||
"design.custom.save": "Uložit",
|
||||
"design.custom.copyOf": "Kopie {name}",
|
||||
"design.custom.importError": "This file couldn't be read as WebSpeak3 design.",
|
||||
"design.store.open": "Obchod",
|
||||
"design.store.title": "Obchod s vzhledy",
|
||||
"design.store.back": "Zpět",
|
||||
"design.store.loading": "Načítání…",
|
||||
"design.store.unavailable": "Obchod s vzhledy není na tomto serveru dostupný.",
|
||||
"design.store.empty": "V obchodě zatím nejsou žádné vzhledy.",
|
||||
"design.store.install": "Nainstalovat",
|
||||
"design.store.installed": "Nainstalováno",
|
||||
"design.store.by": "od {author}",
|
||||
"design.store.screenshotAlt": "Snímek obrazovky {name}",
|
||||
"design.store.rating.rate": "Ohodnotit {stars} hvězdičkami",
|
||||
"design.store.rating.summary": "{average} ({count})",
|
||||
"design.store.rating.none": "Zatím bez hodnocení",
|
||||
"design.store.publishTitle": "Publikovat vzhled",
|
||||
"design.store.publish.select": "Vyberte jeden ze svých vzhledů",
|
||||
"design.store.publish.none": "Zatím nemáte žádný vlastní vzhled k publikování.",
|
||||
"design.store.publish.author": "Vaše jméno (volitelné)",
|
||||
"design.store.publish.authorPlaceholder": "Anonymně",
|
||||
"design.store.publish.description": "Popis (volitelné)",
|
||||
"design.store.publish.descriptionPlaceholder": "Čím je tento vzhled výjimečný?",
|
||||
"design.store.publish.screenshot": "Snímek obrazovky (volitelné)",
|
||||
"design.store.publish.screenshotTooLarge": "Tento obrázek je příliš velký. Použijte prosím menší snímek obrazovky.",
|
||||
"design.store.publish.adminToken": "Token správce (potřeba pouze pro vyhrazené názvy)",
|
||||
"design.store.publish.adminTokenPlaceholder": "Nechte prázdné, pokud nevíte, k čemu slouží",
|
||||
"design.store.publish.submit": "Publikovat do obchodu",
|
||||
"design.store.publish.success": "Vzhled byl publikován!",
|
||||
"design.store.publish.pending": "Děkujeme! Váš vzhled byl odeslán a po kontrole se objeví v obchodě.",
|
||||
"design.store.publish.duplicate": "Tento vzhled už v obchodě je. Před dalším zveřejněním ho trochu upravte.",
|
||||
"design.store.publish.error": "Publikování se nezdařilo.",
|
||||
"options.section.erweiterungen": "Doplňky",
|
||||
"options.section.hotkeys": "Klávesové zkratky",
|
||||
"options.section.whispern": "Šeptat",
|
||||
"options.section.downloads": "Stažené soubory",
|
||||
"options.section.chat": "Chat",
|
||||
"options.section.sicherheit": "Zabezpečení",
|
||||
"options.section.nachrichten": "Zprávy",
|
||||
"options.section.meldungen": "Oznámení",
|
||||
"options.section.sounds": "Zvuky",
|
||||
"app.title": "Aplikace",
|
||||
"app.subtitle": "Obecná nastavení aplikace",
|
||||
"app.group.server": "Server",
|
||||
"app.group.misc": "Různé",
|
||||
"app.group.subscribe": "Chování odběru kanálů",
|
||||
"app.group.privacy": "Soukromí",
|
||||
"app.micOnServerSwitch": "Při přepnutí serveru automaticky zapnout mikrofon",
|
||||
"app.reconnectAfterSleep": "Znovu připojit po režimu spánku",
|
||||
"app.middleClickQuickAccess": "Prostřední tlačítko myši jako rychlý přístup ve stromu",
|
||||
"app.updateFavoriteNickname": "Automaticky aktualizovat přezdívku v oblíbených",
|
||||
"app.autoOpenChannelChat": "Automaticky otevírat chaty kanálů",
|
||||
"app.mutedTalkingSound": "Přehrát zvuk, když mluvíš se ztlumeným mikrofonem",
|
||||
"app.neverShowPokeDialog": "Nikdy nezobrazovat dialog šťouchnutí",
|
||||
"app.subscribe.all": "Odebírat všechny kanály",
|
||||
"app.subscribe.current": "Odebírat jen aktuální a dříve odebírané kanály",
|
||||
"app.language": "Jazyk",
|
||||
"app.language.auto": "Výchozí systému",
|
||||
"app.language.de": "Němčina",
|
||||
"app.language.en": "Angličtina",
|
||||
"app.language.zh-CN": "简体中文",
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.helpTranslate": "Missing your language or spotted wrong translation? Help out on Weblate →",
|
||||
"app.serverBanner": "Zobrazovat bannery serveru",
|
||||
"app.serverBanner.hint": "Banner se načítá přímo z adresy nastavené administrátorem serveru a tento hostitel vidí vaši IP adresu.",
|
||||
"app.chatImages": "Načítat obrázky v chatu",
|
||||
"app.chatImages.hint": "Obrázky z tagů [img] a Markdownu se načítají přímo z adresy, kterou zvolil odesílatel, a tento hostitel vidí vaši IP adresu. Po vypnutí se zobrazí jako odkazy.",
|
||||
"playback.title": "Přehrávání",
|
||||
"playback.subtitle": "Změnit nastavení přehrávání",
|
||||
"playback.profile": "Profil",
|
||||
"playback.default": "Výchozí",
|
||||
"playback.device": "Výstupní zařízení:",
|
||||
"playback.systemDefault": "Výchozí systému",
|
||||
"playback.quiet": "Tiché",
|
||||
"playback.loud": "Hlasité",
|
||||
"playback.voiceVolume": "Hlasitost hlasu",
|
||||
"playback.playTestTone": "▶ Přehrát testovací zvuk",
|
||||
"playback.options": "Možnosti",
|
||||
"playback.autoVolume": "Automatická úprava hlasitosti",
|
||||
"playback.ownMicClicks": "Přehrávat zvuky mikrofonu vlastního klienta",
|
||||
"playback.otherMicClicks": "Přehrávat zvuky mikrofonu ostatních klientů",
|
||||
"recording.title": "Snímání",
|
||||
"recording.subtitle": "Změnit nastavení snímání",
|
||||
"recording.device": "Vstupní zařízení:",
|
||||
"recording.activation": "Aktivace",
|
||||
"recording.pushToTalk": "Stiskni a mluv",
|
||||
"recording.pttKey": "Klávesa Push-To-Talk:",
|
||||
"recording.pttKeyNone": "Nenastaveno",
|
||||
"recording.pttKeyPress": "Stiskněte klávesu nebo tlačítko myši…",
|
||||
"recording.pttHint": "Funguje jakákoli klávesa nebo tlačítko myši (prostřední či boční), ale jen když je WebSpeak3 aktivní okno. Prohlížeče nedovolí webovým stránkám vidět vstup z jiných programů, takže ve hře to nefunguje. Můžete také podržet tlačítko 🗣️ na panelu nástrojů.",
|
||||
"hotkeys.subtitle": "Klávesové a myší zkratky",
|
||||
"hotkeys.pttEnabled": "Použít Push-To-Talk (místo aktivace hlasem)",
|
||||
"hotkeys.shortcuts": "Zkratky",
|
||||
"hotkeys.shortcutsHint": "Nefungují, když píšete do textového pole.",
|
||||
"recording.continuous": "Nepřetržitý přenos",
|
||||
"recording.voiceActivation": "Detekce aktivace hlasem",
|
||||
"recording.testStart": "Spustit test",
|
||||
"recording.testStop": "Zastavit test",
|
||||
"recording.hangoverDelay": "Zpoždění před deaktivací:",
|
||||
"recording.secondsUnit": "s",
|
||||
"recording.dsp": "Digitální zpracování signálu",
|
||||
"recording.typingAttenuation": "Útlum při psaní",
|
||||
"recording.echoCancellation": "Potlačení ozvěny",
|
||||
"recording.noiseSuppression": "Odstranit hluk na pozadí",
|
||||
"recording.autoGainControl": "Automatické řízení zesílení",
|
||||
"recording.aec3": "Pokročilé potlačení ozvěny (beta, vyšší zatížení CPU)",
|
||||
"info.address": "Adresa:",
|
||||
"info.version": "Verze:",
|
||||
"info.license": "Licence:",
|
||||
"info.currentClients": "Aktuální klienti:",
|
||||
"info.currentChannels": "Aktuální kanály:",
|
||||
"info.topic": "Téma:",
|
||||
"info.audioCodec": "Zvukový kodek:",
|
||||
"info.spacer": "Oddělovač:",
|
||||
"info.rawName": "Surový název:",
|
||||
"info.passwordProtected": "Chráněno heslem:",
|
||||
"info.clients": "Klienti:",
|
||||
"info.country": "Země:",
|
||||
"info.muted": "Mikrofon ztlumen:",
|
||||
"info.outputMuted": "Reproduktory ztlumeny:",
|
||||
"info.serverGroups": "Skupiny serveru:",
|
||||
"info.yes": "Ano",
|
||||
"info.no": "Ne",
|
||||
"tree.noMatches": "Žádné výsledky",
|
||||
"tree.search": "Hledat kanály a uživatele",
|
||||
"tree.label": "Kanály",
|
||||
"tree.notConnected": "Nepřipojeno",
|
||||
"tree.clickToSelect": "Kliknutím vyberete, dvojklikem se připojíte",
|
||||
"tree.clickToJoin": "Dvojklikem se připojíte",
|
||||
"tree.joinNotConnected": "Nepřipojeno — nelze přepnout kanál",
|
||||
"tree.passwordProtected": "Chráněno heslem",
|
||||
"tree.privateChatWith": "Soukromý chat s",
|
||||
"tree.poke": "Šťouchnout",
|
||||
"tree.channelCommander": "Velitel kanálu",
|
||||
"tree.away": "Nepřítomen",
|
||||
"tree.micMuted": "Mikrofon ztlumen",
|
||||
"tree.talking": "Mluví",
|
||||
"tree.noTalkPower": "V tomto kanálu nemáte právo mluvit",
|
||||
"tree.soundMuted": "Zvuk ztlumen (ohluchnutí)",
|
||||
"tree.streaming": "Vysílá stream",
|
||||
"publish.alpha": "Alfa",
|
||||
"publish.alphaTitle": "Alfa – nestabilní, může se kdykoli změnit nebo přestat fungovat",
|
||||
"publish.demoUnavailable": "Streamování není v demu dostupné – vyžaduje skutečný server TeamSpeak 6.",
|
||||
"publish.alphaNote": "Streamování je ve fázi alfa. Používá nezdokumentovaný protokol Stream/Call služby TeamSpeak 6, takže připojení, kvalita obrazu i práce s diváky mohou selhat nebo se bez upozornění změnit. Není určeno pro produkční použití.",
|
||||
"publish.start": "Sdílet obrazovku",
|
||||
"publish.stop": "Zastavit sdílení",
|
||||
"publish.title": "Vaše vysílání",
|
||||
"publish.screen": "Obrazovka",
|
||||
"publish.starting": "Spouštění…",
|
||||
"publish.viewers": "Sleduje {count} diváků",
|
||||
"publish.request.allow": "Povolit",
|
||||
"publish.request.deny": "Odmítnout",
|
||||
"publish.request.block": "Blokovat",
|
||||
"publish.request.blockHint": "Odmítnout a už se neptat",
|
||||
"publish.dialog.title": "Nastavení streamu",
|
||||
"publish.dialog.basic": "Základní nastavení",
|
||||
"publish.dialog.advanced": "Pokročilé nastavení",
|
||||
"publish.dialog.golive": "Spustit vysílání",
|
||||
"publish.dialog.cancel": "Zpět",
|
||||
"publish.preset": "Předvolba",
|
||||
"publish.preset.presentation": "Prezentace",
|
||||
"publish.audio": "Snímat zvuk",
|
||||
"publish.privacy": "Soukromí",
|
||||
"publish.privacy.public": "Veřejné",
|
||||
"publish.privacy.contacts": "Kontakty",
|
||||
"publish.privacy.private": "Soukromé",
|
||||
"publish.resolution": "Rozlišení",
|
||||
"publish.res.source": "Zdroj",
|
||||
"publish.fps": "FPS",
|
||||
"publish.bitrate": "Datový tok",
|
||||
"publish.audioBitrate": "Datový tok zvuku [Kbps]",
|
||||
"publish.viewerLimit": "Limit diváků",
|
||||
"publish.mode": "Režim připojení",
|
||||
"publish.mode.p2p": "P2P",
|
||||
"publish.mode.server": "Server",
|
||||
"publish.mode.serverUnavailable": "Režim serveru používá SFU služby TS6 a zatím není implementován.",
|
||||
"stream.untitled": "Stream",
|
||||
"stream.stop": "Zavřít stream",
|
||||
"stream.live": "Živě",
|
||||
"stream.state.new": "Čekání na nabídku…",
|
||||
"stream.state.connecting": "Připojování…",
|
||||
"stream.state.connected": "Živě",
|
||||
"stream.state.disconnected": "Připojení přerušeno",
|
||||
"stream.state.failed": "Připojení selhalo",
|
||||
"stream.state.closed": "Ukončeno",
|
||||
"chat.server": "Server",
|
||||
"chat.channel": "Kanál",
|
||||
"chat.notConnected": "Nepřipojeno",
|
||||
"chat.messageChannel": "Napsat zprávu do kanálu...",
|
||||
"chat.messageServer": "Napsat zprávu serveru...",
|
||||
"chat.messagePartner": "Napsat zprávu uživateli {name}...",
|
||||
"chat.send": "Odeslat",
|
||||
"chat.you": "Vy",
|
||||
"serverLog.clientJoin": "{client} vstoupil do kanálu „{channel}“",
|
||||
"serverLog.clientLeave": "{client} se odpojil (odešel)",
|
||||
"serverLog.clientChannelSwitch": "{client} se přesunul z kanálu „{fromChannel}“ do „{toChannel}“",
|
||||
"serverLog.clientChannelGroupAssigned": "Skupina kanálu „{group}“ byla přiřazena uživateli {client}",
|
||||
"serverLog.channelCreated": "Kanál „{channel}“ byl vytvořen",
|
||||
"serverLog.channelDeleted": "Kanál „{channel}“ byl smazán",
|
||||
"serverLog.channelEdited": "Kanál „{channel}“ byl upraven",
|
||||
"serverLog.serverEdited": "Nastavení serveru byla změněna",
|
||||
"serverLog.permissionError": "Chybí oprávnění: {action}",
|
||||
"poke.title": "Šťouchnout",
|
||||
"poke.optionalMessage": "Volitelná zpráva...",
|
||||
"poke.send": "Šťouchnout",
|
||||
"poke.cancel": "Zrušit",
|
||||
"poke.pokedYou": "vás šťouchnul",
|
||||
"poke.dismiss": "Zavřít",
|
||||
"kick.title": "Vykopnout:",
|
||||
"kick.reasonPlaceholder": "Důvod (volitelné)...",
|
||||
"kick.confirm": "Vykopnout",
|
||||
"kick.cancel": "Zrušit",
|
||||
"ban.title": "Zabanovat:",
|
||||
"ban.reasonPlaceholder": "Důvod (volitelné)...",
|
||||
"ban.duration": "Doba trvání:",
|
||||
"ban.durationPermanent": "Trvale",
|
||||
"ban.duration1h": "1 hodina",
|
||||
"ban.duration1d": "1 den",
|
||||
"ban.duration1w": "1 týden",
|
||||
"ban.confirm": "Zabanovat",
|
||||
"ban.cancel": "Zrušit",
|
||||
"serverEdit.title": "Upravit virtuální server",
|
||||
"serverEdit.tab.host": "Hostitel",
|
||||
"serverEdit.tab.misc": "Ostatní",
|
||||
"serverEdit.tab.transmission": "Přenos",
|
||||
"serverEdit.tab.antiflood": "Ochrana proti zahlcení",
|
||||
"serverEdit.tab.security": "Zabezpečení",
|
||||
"serverEdit.tab.log": "Protokol",
|
||||
"serverEdit.name": "Název serveru:",
|
||||
"serverEdit.welcomeMessage": "Uvítací zpráva:",
|
||||
"serverEdit.clearPassword": "Odstranit heslo serveru",
|
||||
"serverEdit.newPassword": "Nové heslo serveru:",
|
||||
"serverEdit.hostmessage": "Zpráva hostitele:",
|
||||
"serverEdit.hostmessageMode": "Režim zobrazení:",
|
||||
"serverEdit.hostmessageMode.none": "Nezobrazovat",
|
||||
"serverEdit.hostmessageMode.log": "Zobrazit v protokolu",
|
||||
"serverEdit.hostmessageMode.modal": "Zobrazit jako dialog",
|
||||
"serverEdit.hostmessageMode.modalquit": "Zobrazit jako dialog a odpojit",
|
||||
"serverEdit.hostbannerUrl": "URL banneru hostitele:",
|
||||
"serverEdit.hostbannerGfxUrl": "URL obrázku banneru hostitele:",
|
||||
"serverEdit.hostbannerGfxInterval": "Obnovení banneru (sekundy):",
|
||||
"serverEdit.hostbannerMode": "Přizpůsobení banneru:",
|
||||
"serverEdit.hostbannerMode.noadjust": "Neupravovat",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "Přizpůsobit (ignorovat poměr stran)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "Přizpůsobit (zachovat poměr stran)",
|
||||
"serverEdit.hostbuttonTooltip": "Nápověda tlačítka hostitele:",
|
||||
"serverEdit.hostbuttonUrl": "URL tlačítka hostitele:",
|
||||
"serverEdit.hostbuttonGfxUrl": "URL obrázku tlačítka hostitele:",
|
||||
"serverEdit.maxClients": "Max. počet klientů:",
|
||||
"serverEdit.nickname": "Přezdívka serveru:",
|
||||
"serverEdit.phoneticName": "Fonetický název:",
|
||||
"serverEdit.codecEncryptionMode": "Šifrování hlasu:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "Nastavitelné pro každý kanál",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "Globálně vypnuto",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "Globálně zapnuto",
|
||||
"serverEdit.unchanged": "Ponechat beze změny",
|
||||
"serverEdit.save": "Uložit",
|
||||
"serverEdit.cancel": "Zrušit",
|
||||
"serverProtocolLog.title": "Protokol serveru",
|
||||
"serverProtocolLog.empty": "Žádné položky protokolu.",
|
||||
"banList.title": "Seznam zákazů",
|
||||
"banList.empty": "Nebyly nalezeny žádné zákazy.",
|
||||
"banList.name": "Název",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "Vytvořeno",
|
||||
"banList.duration": "Doba trvání",
|
||||
"banList.invoker": "Od",
|
||||
"banList.reason": "Důvod",
|
||||
"banList.permanent": "Trvale",
|
||||
"banList.delete": "Smazat",
|
||||
"banList.deleteAll": "Smazat vše",
|
||||
"complainList.title": "Seznam stížností",
|
||||
"complainList.empty": "Nebyly nalezeny žádné stížnosti.",
|
||||
"complainList.target": "Cíl",
|
||||
"complainList.from": "Od",
|
||||
"complainList.message": "Zpráva",
|
||||
"complainList.timestamp": "Časové razítko",
|
||||
"offlineMessages.title": "Offline zprávy",
|
||||
"offlineMessages.empty": "Nebyly nalezeny žádné zprávy.",
|
||||
"offlineMessages.subject": "Předmět",
|
||||
"offlineMessages.from": "Od",
|
||||
"offlineMessages.timestamp": "Časové razítko",
|
||||
"offlineMessages.targetUid": "Cílové UID",
|
||||
"offlineMessages.message": "Zpráva",
|
||||
"offlineMessages.send": "Odeslat",
|
||||
"offlineMessages.new": "Nová zpráva",
|
||||
"offlineMessages.markRead": "Označit jako přečtené",
|
||||
"offlineMessages.backToList": "Zpět na seznam",
|
||||
"dialog.cancel": "Zrušit",
|
||||
"groupAssign.channelTitle": "Přiřadit skupinu kanálu",
|
||||
"groupAssign.serverTitle": "Přiřadit skupinu serveru",
|
||||
"groupAssign.empty": "Nebyly nalezeny žádné skupiny.",
|
||||
"groupAssign.clickToRemove": "Kliknutím odeberete",
|
||||
"serverQueryLogin.username": "Uživatelské jméno",
|
||||
"serverQueryLogin.password": "Heslo",
|
||||
"serverQueryLogin.login": "Přihlásit",
|
||||
"permissionOverview.title": "Moje oprávnění",
|
||||
"permissionOverview.empty": "Nebyla nalezena žádná oprávnění.",
|
||||
"permissionOverview.name": "Oprávnění",
|
||||
"permissionOverview.value": "Hodnota",
|
||||
"permissionOverview.negated": "Negováno",
|
||||
"permissionOverview.skip": "Přeskočit",
|
||||
"permsEditor.title": "Oprávnění",
|
||||
"permsEditor.tab.server": "Skupiny serveru",
|
||||
"permsEditor.tab.client": "Oprávnění klienta",
|
||||
"permsEditor.tab.channel": "Oprávnění kanálu",
|
||||
"permsEditor.tab.channelgroup": "Skupiny kanálu",
|
||||
"permsEditor.tab.channelclient": "Oprávnění klientů kanálu",
|
||||
"permsEditor.clientDbId": "Jedinečné DB ID klienta:",
|
||||
"permsEditor.load": "Načíst",
|
||||
"permsEditor.pickOnlineClient": "Nebo vyberte online klienta...",
|
||||
"permsEditor.pickTarget": "Vyberte skupinu/kanál vlevo nebo zadejte ID klienta.",
|
||||
"permsEditor.addPermission": "Přidat",
|
||||
"permsEditor.searchPermission": "Hledat oprávnění...",
|
||||
"dialog.ok": "OK",
|
||||
"channelContext.join": "Přepnout na kanál",
|
||||
"channelContext.files": "Soubory...",
|
||||
"fileBrowser.title": "Přenosy souborů",
|
||||
"fileBrowser.up": "Nahoru",
|
||||
"fileBrowser.tooLarge": "Soubor je příliš velký – nahrávání je omezeno na {mb} MiB.",
|
||||
"fileBrowser.refresh": "Obnovit",
|
||||
"fileBrowser.newFolder": "Nová složka",
|
||||
"fileBrowser.upload": "Nahrát",
|
||||
"fileBrowser.folderName": "Název složky",
|
||||
"fileBrowser.empty": "Tato složka je prázdná.",
|
||||
"fileBrowser.name": "Název",
|
||||
"fileBrowser.size": "Velikost",
|
||||
"fileBrowser.modified": "Změněno",
|
||||
"fileBrowser.download": "Stáhnout",
|
||||
"fileBrowser.rename": "Přejmenovat",
|
||||
"fileBrowser.delete": "Smazat",
|
||||
"fileBrowser.deleteConfirm": "Opravdu smazat?",
|
||||
"fileBrowser.uploading": "Nahrávání...",
|
||||
"fileBrowser.downloading": "Stahování...",
|
||||
"serverContext.icons": "Ikony serveru...",
|
||||
"serverIcons.title": "Správa ikon serveru",
|
||||
"serverIcons.upload": "Nahrát ikonu",
|
||||
"serverIcons.iconId": "ID ikony",
|
||||
"serverIcons.empty": "Nebyly nalezeny žádné ikony.",
|
||||
"clientContext.privateChat": "Soukromý chat",
|
||||
"clientContext.poke": "Šťouchnout",
|
||||
"clientContext.watchStream": "Sledovat stream",
|
||||
"clientContext.moveTo": "Přesunout do…",
|
||||
"clientContext.volume": "Hlasitost",
|
||||
"clientContext.volumeHint": "Pouze pro vás. Dvojklikem obnovíte 100 %.",
|
||||
"clientContext.copyName": "Kopírovat název",
|
||||
"clientContext.connectionInfo": "Zobrazit informace o připojení",
|
||||
"clientContext.addWhisperTarget": "Přidat jako cíl šeptání",
|
||||
"clientContext.removeWhisperTarget": "Odebrat jako cíl šeptání",
|
||||
"clientContext.assignChannelGroup": "Přiřadit skupinu kanálu",
|
||||
"clientContext.assignServerGroup": "Přiřadit skupinu serveru",
|
||||
"clientContext.kickChannel": "Vykopnout z kanálu",
|
||||
"clientContext.kick": "Vykopnout ze serveru",
|
||||
"clientContext.ban": "Zabanovat",
|
||||
"clientContext.notSupported": "Ve webovém klientovi zatím není podporováno",
|
||||
"moveClient.title": "Přesunout",
|
||||
"moveClient.empty": "Nejsou dostupné žádné kanály.",
|
||||
"moveClient.current": "Aktuální kanál",
|
||||
"moveClient.spacer": "Oddělovač",
|
||||
"serverContext.connectionInfo": "Informace o připojení k serveru",
|
||||
"serverContext.copyAddress": "Kopírovat adresu serveru",
|
||||
"serverContext.addFavorite": "Přidat do oblíbených",
|
||||
"serverContext.disconnect": "Odpojit",
|
||||
"connectError.dismiss": "Zavřít",
|
||||
"connectError.gatewayFull": "Brána je právě plná. Zkus to za pár minut znovu – nebo si WebSpeak3 hostuj sám: github.com/WebSpeak3/webspeak3",
|
||||
"dialog.close": "Zavřít",
|
||||
"sounds.title": "Zvuky",
|
||||
"sounds.subtitle": "Nastavit zvuková upozornění na události",
|
||||
"sounds.enable": "Povolit zvuky",
|
||||
"sounds.volume": "Hlasitost",
|
||||
"sounds.eventEnable": "Povolit tento zvuk",
|
||||
"sounds.event.connect": "Připojeno",
|
||||
"sounds.event.disconnect": "Odpojeno",
|
||||
"sounds.event.clientJoin": "Klient se připojí",
|
||||
"sounds.event.clientLeave": "Klient odejde",
|
||||
"sounds.event.message": "Přijata zpráva",
|
||||
"sounds.event.poke": "Přijato šťouchnutí",
|
||||
"sounds.event.mute": "Přepnutí ztlumení",
|
||||
"sounds.event.micClickOn": "Kliknutí mikrofonu zap.",
|
||||
"sounds.event.micClickOff": "Kliknutí mikrofonu vyp.",
|
||||
"sounds.event.whisper": "Přijato šeptání",
|
||||
"sounds.default": "Výchozí",
|
||||
"sounds.custom": "Vlastní soubor: {name}",
|
||||
"sounds.test": "▶ Test",
|
||||
"sounds.upload": "Nahrát",
|
||||
"sounds.reset": "Obnovit",
|
||||
"sounds.importSoundpack": "Importovat balíček zvuků (.ts3soundpack)",
|
||||
"sounds.importResult": "Importováno zvuků: {matched}, nespárovaných souborů: {unmatched}",
|
||||
"nachrichten.title": "Zprávy",
|
||||
"nachrichten.subtitle": "Přizpůsobit zprávy",
|
||||
"nachrichten.disconnectMessage": "Odpojení:",
|
||||
"nachrichten.disconnectMessagePlaceholder": "odcházím",
|
||||
"nachrichten.presetsTitle": "Přednastavené zprávy",
|
||||
"nachrichten.type": "Typ",
|
||||
"nachrichten.type.away": "Nepřítomen",
|
||||
"nachrichten.templateName": "Název šablony",
|
||||
"nachrichten.message": "Zpráva",
|
||||
"nachrichten.add": "Přidat",
|
||||
"nachrichten.delete": "Smazat",
|
||||
"tabs.disconnect": "Odpojit",
|
||||
"identity.importInvalid": "„{file}“ není platný soubor identity.",
|
||||
"log.fileTransferFailed": "Přenos souboru selhal:",
|
||||
"log.serverReconnecting": "Spojení se serverem bylo ztraceno, obnovování připojení…",
|
||||
"log.serverReconnected": "Připojení k serveru bylo obnoveno",
|
||||
"log.fileTransferInvalidAddress": "Přenos souboru selhal (neplatná adresa)",
|
||||
"sounds.importFailed": "Balíček zvuků se nepodařilo načíst – je to platný soubor .ts3soundpack/ZIP?",
|
||||
"tabs.connections": "Připojení k serverům",
|
||||
"shortcut.ctrl": "Ctrl",
|
||||
"about.text": "WebSpeak3 je TeamSpeak klient pro prohlížeč, open source a bez instalace.",
|
||||
"about.memorial.title": "Na památku Akima",
|
||||
"about.memorial.text": "Odešel přes duhový most 21. 10. 2026. 🌈🐾",
|
||||
"about.close": "Zavřít",
|
||||
"menu.extras.fileTransfers": "Přenosy souborů",
|
||||
"transfers.title": "Přenosy souborů",
|
||||
"transfers.empty": "Žádné přenosy.",
|
||||
"transfers.up": "Nahrávání",
|
||||
"transfers.down": "Stahování",
|
||||
"transfers.status.queued": "Čeká",
|
||||
"transfers.status.running": "Probíhá",
|
||||
"transfers.status.done": "Hotovo",
|
||||
"transfers.status.error": "Selhalo",
|
||||
"transfers.clearFinished": "Odstranit dokončené",
|
||||
"transfers.finished": "Přenos dokončen: {name}",
|
||||
"downloadSettings.subtitle": "Nastavení stahování",
|
||||
"downloadSettings.directory": "Složka pro stahování",
|
||||
"downloadSettings.directoryLabel": "Složka pro stažené soubory:",
|
||||
"downloadSettings.browserDefault": "Výchozí prohlížeče",
|
||||
"downloadSettings.change": "Změnit",
|
||||
"downloadSettings.reset": "Obnovit",
|
||||
"downloadSettings.alwaysDir": "Vždy ukládat do této složky",
|
||||
"downloadSettings.askEachTime": "Pokaždé se ptát na složku",
|
||||
"downloadSettings.unsupported": "Tento prohlížeč neumí vybrat složku; soubory se ukládají do složky stahování prohlížeče.",
|
||||
"downloadSettings.interface": "Rozhraní",
|
||||
"downloadSettings.showWindowOnStart": "Zobrazit okno přenosů při zahájení stahování",
|
||||
"downloadSettings.closeWindowWhenDone": "Zavřít okno přenosů po dokončení všech stahování",
|
||||
"downloadSettings.popupWhenDone": "Zobrazit oznámení po dokončení přenosu",
|
||||
"downloadSettings.uploadLimit": "Šířka pásma pro nahrávání",
|
||||
"downloadSettings.downloadLimit": "Šířka pásma pro stahování",
|
||||
"downloadSettings.maxUploads": "Souběžná nahrávání",
|
||||
"downloadSettings.maxDownloads": "Souběžná stahování",
|
||||
"downloadSettings.unlimited": "Neomezovat",
|
||||
"downloadSettings.limitedTo": "Omezit na",
|
||||
"chatSettings.subtitle": "Nastavení chatu",
|
||||
"chatSettings.window": "Okno chatu",
|
||||
"chatSettings.maxLines": "Maximální počet řádků:",
|
||||
"chatSettings.font": "Písmo:",
|
||||
"chatSettings.fontDefault": "Výchozí",
|
||||
"chatSettings.fontReset": "Obnovit písmo",
|
||||
"chatSettings.fontPreview": "Takto vypadá chat s tímto písmem.",
|
||||
"chatSettings.autoLog": "Automatické protokolování",
|
||||
"chatSettings.logChannel": "Protokolovat chaty kanálu",
|
||||
"chatSettings.logPrivate": "Protokolovat soukromé chaty",
|
||||
"chatSettings.logServer": "Protokolovat chaty serveru",
|
||||
"chatSettings.logHint": "Protokoly se ukládají jen v tomto prohlížeči (posledních 1000 řádků na chat).",
|
||||
"chatSettings.restore": "Načíst protokoly",
|
||||
"chatSettings.restoreChannelLines": "Načíst protokoly chatu kanálu",
|
||||
"chatSettings.restorePrivateLines": "Načíst protokoly soukromých chatů",
|
||||
"chatSettings.notify": "Upozornění na příchozí zprávy",
|
||||
"chatSettings.notifyServer": "Server",
|
||||
"chatSettings.notifyChannel": "Kanál",
|
||||
"chatSettings.notifyPrivate": "Soukromé",
|
||||
"chatSettings.linesUnit": "řádků",
|
||||
"chatSettings.last": "posledních",
|
||||
"securitySettings.subtitle": "Nastavení zabezpečení",
|
||||
"securitySettings.passwords": "Hesla",
|
||||
"securitySettings.saveChannelPasswords": "Ukládat hesla kanálů",
|
||||
"securitySettings.clearChannelPasswords": "Smazat hesla kanálů",
|
||||
"securitySettings.channelPasswordsCleared": "Uložená hesla kanálů byla smazána.",
|
||||
"securitySettings.masterPassword": "Použít hlavní heslo",
|
||||
"securitySettings.changeMasterPassword": "Změnit hlavní heslo",
|
||||
"securitySettings.cleanup": "Úklid",
|
||||
"securitySettings.clearCacheOnExit": "Vyprázdnit mezipaměť při ukončení",
|
||||
"securitySettings.clearUrlsOnExit": "Smazat URL při ukončení",
|
||||
"securitySettings.clearCache": "Vyprázdnit mezipaměť",
|
||||
"securitySettings.cacheCleared": "Mezipaměť vyprázdněna.",
|
||||
"securitySettings.identities": "Identity",
|
||||
"securitySettings.manageIdentities": "Spravovat identity",
|
||||
"notify.connection": "Připojení",
|
||||
"notify.connected": "Připojeno k serveru",
|
||||
"notify.disconnected": "Odpojeno od serveru",
|
||||
"notify.lostConnection": "Ztraceno spojení se serverem",
|
||||
"notify.channel": "Kanál",
|
||||
"notify.created": "Vytvořen",
|
||||
"notify.deleted": "Smazán",
|
||||
"notify.edited": "Upraven",
|
||||
"notify.moved": "Přesunut",
|
||||
"notify.currentChannel": "Aktuální kanál",
|
||||
"notify.otherChannel": "Jiný kanál",
|
||||
"notify.byYou": "Vámi",
|
||||
"notify.byOther": "Jiným klientem",
|
||||
"notify.server": "Server",
|
||||
"notify.insufficientPermissions": "Nedostatečná oprávnění",
|
||||
"notify.error": "Chyba",
|
||||
"notify.client": "Klient",
|
||||
"notify.switched": "Změnil kanál",
|
||||
"notify.movedClient": "Přesunut",
|
||||
"notify.kickedChannel": "Vyhozen z kanálu",
|
||||
"notify.kickedServer": "Vyhozen ze serveru",
|
||||
"notify.banned": "Zabanován",
|
||||
"notify.toCurrent": "Do aktuálního kanálu",
|
||||
"notify.fromCurrent": "Z aktuálního kanálu",
|
||||
"notify.toOther": "Do jiného kanálu",
|
||||
"notify.appears": "Objeví se",
|
||||
"notify.stays": "Zůstane viditelný",
|
||||
"notify.disappears": "Zmizí",
|
||||
"notify.serverGroup": "Serverová skupina",
|
||||
"notify.channelGroup": "Změněna skupina kanálu",
|
||||
"notify.added": "Přidána",
|
||||
"notify.removed": "Odebrána",
|
||||
"notify.byServer": "Serverem",
|
||||
"notify.byUser": "Uživatelem",
|
||||
"notify.recording": "Nahrávání",
|
||||
"notify.recordingStart": "Nahrávání zahájeno",
|
||||
"notify.recordingStop": "Nahrávání ukončeno",
|
||||
"notify.recordingInChannel": "Nahrávání v kanálu aktivní",
|
||||
"notify.talkPowerRequested": "Požádal o právo mluvit",
|
||||
"notify.self": "Já",
|
||||
"notify.youSwitched": "Změna kanálu",
|
||||
"notify.youMoved": "Přesunut do jiného kanálu",
|
||||
"notify.youKickedServer": "Vyhozen ze serveru",
|
||||
"notify.youKickedChannel": "Vyhozen z kanálu",
|
||||
"notify.youBanned": "Zabanován",
|
||||
"notify.talkPowerGranted": "Uděleno právo mluvit",
|
||||
"notify.talkPowerRevoked": "Odebráno právo mluvit",
|
||||
"notify.chat": "Chat",
|
||||
"notify.messageSent": "Zpráva odeslána",
|
||||
"notify.messageReceived": "Zpráva přijata",
|
||||
"notify.capture": "Záznam zvuku",
|
||||
"notify.playback": "Přehrávání zvuku",
|
||||
"notify.muted": "Ztlumeno",
|
||||
"notify.unmuted": "Zapnuto",
|
||||
"notify.status": "Stav",
|
||||
"notify.away": "Nepřítomen",
|
||||
"notify.present": "Zpět",
|
||||
"notify.other": "Ostatní",
|
||||
"notify.poked": "Šťouchnutí",
|
||||
"notify.transferComplete": "Přenos souboru dokončen",
|
||||
"notify.transferFailed": "Přenos souboru selhal",
|
||||
"notify.whisperListEmpty": "Seznam šeptání je prázdný",
|
||||
"notify.whisperTargetNotFound": "Cíl šeptání nenalezen",
|
||||
"notify.whisperTooMany": "Příliš mnoho cílů šeptání",
|
||||
"notify.special": "Speciální",
|
||||
"notify.micClickOtherOn": "Klik mikrofonu ostatní zap.",
|
||||
"notify.micClickOtherOff": "Klik mikrofonu ostatní vyp.",
|
||||
"notify.micClickSelfOn": "Klik mikrofonu vlastní zap.",
|
||||
"notify.micClickSelfOff": "Klik mikrofonu vlastní vyp.",
|
||||
"notify.whisperNotify": "Upozornění na šeptání",
|
||||
"notify.soundTest": "Test zvuku",
|
||||
"notify.test3d": "3D test",
|
||||
"notify.talkingWhileMuted": "Mluvení při ztlumení",
|
||||
"notify.subtitle": "Nastavení upozornění",
|
||||
"notify.soundPack": "Zvukový balíček:",
|
||||
"notify.pack.builtin": "WebSpeak3 výchozí",
|
||||
"notify.pack.none": "Bez zvuků",
|
||||
"notify.importPack": "Importovat zvukový balíček TS3 (.ts3_soundpack / .zip)",
|
||||
"notify.deletePack": "Smazat zvukový balíček",
|
||||
"notify.deletePackConfirm": "Smazat zvukový balíček \"{name}\"?",
|
||||
"notify.importFailed": "Toto není platný zvukový balíček TS3 (chybí settings.ini).",
|
||||
"notify.whenMuted": "Při ztlumeném výstupu:",
|
||||
"notify.whenMuted.all": "Přehrávat všechny zvuky",
|
||||
"notify.whenMuted.none": "Nepřehrávat žádné zvuky",
|
||||
"notify.hintBefore": "Poznámka: zvukový balíček lze přepsat pro každého ",
|
||||
"notify.hintLink": "oblíbeného",
|
||||
"notify.hintAfter": ".",
|
||||
"notify.col.action": "Akce",
|
||||
"notify.col.script": "Zvukový skript",
|
||||
"notify.col.text": "Pozice textu",
|
||||
"notify.text.server": "Server",
|
||||
"notify.text.channel": "Kanál",
|
||||
"notify.resetAll": "Obnovit všechny změny",
|
||||
"notify.applyToFavorites": "Použít tento zvukový balíček pro všechny oblíbené",
|
||||
"notify.applyToFavoritesConfirm": "Nastavit všem oblíbeným tento zvukový balíček? Vlastní balíčky jednotlivých oblíbených budou zrušeny.",
|
||||
"notify.whenMuted.important": "Přehrávat jen důležité zvuky",
|
||||
"notify.text.client": "Klient",
|
||||
"vault.title": "Hlavní heslo",
|
||||
"vault.prompt": "Vaše identity a uložená hesla jsou zašifrovány. Zadejte hlavní heslo.",
|
||||
"vault.unlock": "Odemknout",
|
||||
"vault.wrong": "Špatné heslo.",
|
||||
"vault.forgot": "Zapomenuté heslo",
|
||||
"vault.forgotConfirm": "Bez hesla nelze data obnovit. Trvale smazat identity, oblíbené a uložená hesla a začít znovu?",
|
||||
"securitySettings.masterHint": "Šifruje identity, oblíbené (s hesly) a uložená hesla kanálů. Vyžaduje se po každém načtení.",
|
||||
"securitySettings.masterCurrent": "Současné hlavní heslo",
|
||||
"securitySettings.masterNew": "Nové hlavní heslo",
|
||||
"securitySettings.masterRepeat": "Zopakovat",
|
||||
"securitySettings.masterMismatch": "Hesla se neshodují.",
|
||||
"securitySettings.masterNote": "Dobře si ho zapamatujte: bez něj přijdete o identity a uložená hesla.",
|
||||
"sync.subtitle": "Tvá data na všech zařízeních",
|
||||
"sync.intro": "Účet je jen náhodné číslo, volitelně s heslem. Žádný e-mail, žádné jméno. Vše se před nahráním zašifruje na tvém zařízení. Server vidí jen nečitelná data.",
|
||||
"sync.create.title": "Nový účet",
|
||||
"sync.create.withPassword": "Vygenerovat i náhodné heslo (doporučeno)",
|
||||
"sync.create.withPasswordHint": "Bez hesla stačí k tvým datům samotné číslo účtu.",
|
||||
"sync.create.button": "Vytvořit účet",
|
||||
"sync.create.busy": "Účet se vytváří …",
|
||||
"sync.login.title": "Existující účet",
|
||||
"sync.number": "Číslo účtu",
|
||||
"sync.password": "Heslo",
|
||||
"sync.passwordOptional": "Heslo (pokud existuje)",
|
||||
"sync.login.hint": "Data účtu pak nahradí data na tomto zařízení.",
|
||||
"sync.login.button": "Přihlásit",
|
||||
"sync.server": "Synchronizační server",
|
||||
"sync.serverDefault": "Výchozí (oficiální server WebSpeak3)",
|
||||
"sync.serverHint": "Nech prázdné pro oficiální server. Účet existuje jen na serveru, na kterém byl vytvořen.",
|
||||
"sync.account.title": "Tvůj účet",
|
||||
"sync.copy": "Kopírovat",
|
||||
"sync.copied": "Zkopírováno",
|
||||
"sync.show": "Zobrazit",
|
||||
"sync.hide": "Skrýt",
|
||||
"sync.noPassword": "Bez hesla",
|
||||
"sync.keepSafe": "Číslo a heslo dobře uschovej. Když je ztratíš, nikdo tvá data neobnoví, ani my.",
|
||||
"sync.recoveryFile": "Stáhnout soubor pro obnovení",
|
||||
"sync.qr.show": "Zobrazit QR kód",
|
||||
"sync.qr.hide": "Skrýt QR kód",
|
||||
"sync.qr.hint": "Naskenuj ho druhým zařízením a přihlas se tam. Kdo kód uvidí, má přístup k tvému účtu.",
|
||||
"sync.password.add": "Přidat heslo",
|
||||
"sync.password.remove": "Odebrat heslo",
|
||||
"sync.password.addConfirm": "Vygenerovat nové náhodné heslo? Ostatní zařízení se pak musí znovu přihlásit číslem a heslem.",
|
||||
"sync.password.removeConfirm": "Odebrat heslo? Pak bude stačit samotné číslo účtu. Ostatní zařízení se musí znovu přihlásit.",
|
||||
"sync.categories": "Synchronizovat",
|
||||
"sync.category.identities": "Identity (včetně soukromých klíčů)",
|
||||
"sync.category.favorites": "Oblíbené, hesla kanálů a kontakty",
|
||||
"sync.category.settings": "Nastavení",
|
||||
"sync.category.designs": "Vzhledy a balíčky ikon",
|
||||
"sync.category.whisper": "Seznamy šeptání",
|
||||
"sync.categoriesHint": "Zvuková zařízení, hlasitosti, klávesa PTT a záznamy chatu zůstávají vždy na zařízení.",
|
||||
"sync.status": "Stav",
|
||||
"sync.status.syncing": "Synchronizuje se …",
|
||||
"sync.status.last": "Naposledy synchronizováno: {time}",
|
||||
"sync.status.never": "Zatím nesynchronizováno",
|
||||
"sync.conflict.title": "Synchronizace",
|
||||
"sync.conflict.text": "Od poslední synchronizace se změnilo něco na tomto zařízení i v účtu. Který stav má platit?",
|
||||
"sync.conflict.local": "Nahrát stav tohoto zařízení",
|
||||
"sync.conflict.server": "Načíst stav z účtu",
|
||||
"sync.syncNow": "Synchronizovat teď",
|
||||
"sync.serverInfo": "Server: {server}",
|
||||
"sync.logout": "Odhlásit",
|
||||
"sync.logoutConfirm": "Odhlásit toto zařízení z účtu? Účet i data zůstanou zachovány.",
|
||||
"sync.delete": "Smazat účet",
|
||||
"sync.deleteConfirm": "Trvale smazat účet a všechna jeho data na serveru? Data na tomto zařízení zůstanou.",
|
||||
"sync.link.title": "Připojit k účtu",
|
||||
"sync.link.prompt": "Připojit toto zařízení k účtu {number}? Data účtu nahradí data na tomto zařízení.",
|
||||
"sync.link.connect": "Připojit",
|
||||
"sync.error.password_required": "Tento účet má heslo.",
|
||||
"sync.error.unreachable": "Synchronizační server není dostupný.",
|
||||
"sync.error.not_found": "Účet nenalezen nebo špatné heslo. Pokud bylo heslo změněno na jiném zařízení, přihlas se znovu.",
|
||||
"sync.error.rate_limited": "Příliš mnoho požadavků, zkus to později.",
|
||||
"sync.error.full": "Synchronizační server teď nepřijímá nové účty.",
|
||||
"sync.error.pow_required": "Bezpečnostní kontrola selhala, zkus to znovu.",
|
||||
"sync.error.conflict": "Jiné zařízení mezitím něco změnilo.",
|
||||
"sync.error.payload_too_large": "Příliš mnoho dat pro synchronizaci (max. 1 MB).",
|
||||
"sync.error.generic": "Synchronizace selhala."
|
||||
}
|
||||
@@ -0,0 +1,998 @@
|
||||
{
|
||||
"menu.connections": "Verbindungen",
|
||||
"menu.connections.connect": "Verbinden",
|
||||
"menu.connections.disconnectCurrent": "Aktuelle Verbindung trennen",
|
||||
"menu.connections.disconnectAll": "Alle Verbindungen trennen",
|
||||
"menu.favorites": "Favoriten",
|
||||
"menu.favorites.add": "Zu Favoriten hinzufügen",
|
||||
"menu.favorites.manage": "Favoriten verwalten",
|
||||
"menu.self": "Selbst",
|
||||
"menu.rights": "Rechte",
|
||||
"menu.rights.serverGroups": "Server-Gruppen bearbeiten...",
|
||||
"menu.rights.channelGroups": "Channel-Gruppen bearbeiten...",
|
||||
"menu.rights.serverPermissions": "Server-Rechte bearbeiten...",
|
||||
"menu.rights.channelPermissions": "Channel-Rechte bearbeiten...",
|
||||
"menu.rights.overview": "Rechteübersicht...",
|
||||
"menu.rights.myRights": "Eigene Rechte anzeigen",
|
||||
"menu.extras": "Extras",
|
||||
"menu.help": "Hilfe",
|
||||
"menu.help.about": "Über WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Changelog",
|
||||
"menu.help.translate": "Mitübersetzen (Weblate)",
|
||||
"menu.extras.identities": "Identitäten",
|
||||
"menu.extras.contacts": "Kontakte",
|
||||
"menu.extras.collectedUrls": "Gesammelte URLs",
|
||||
"menu.extras.inviteFriend": "Freund einladen",
|
||||
"menu.extras.whisperLists": "Whisperlisten",
|
||||
"menu.extras.whisperHistory": "Whisper Verlauf",
|
||||
"menu.extras.clientLog": "Client Protokoll",
|
||||
"menu.extras.banList": "Bannliste",
|
||||
"menu.extras.complaintList": "Beschwerdeliste",
|
||||
"menu.extras.offlineMessages": "Offline Nachrichten",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery Login",
|
||||
"menu.extras.serverLog": "Server Protokoll",
|
||||
"menu.extras.startRecording": "Aufnahme starten",
|
||||
"menu.extras.startMultitrackRecording": "Start Multitrack Recording",
|
||||
"menu.extras.stopRecording": "Aufnahme beenden",
|
||||
"menu.extras.options": "Optionen",
|
||||
"menu.extras.feedback": "Feedback geben",
|
||||
"feedback.fab.nudge": "Was denkst du über WebSpeak3? Feedback ist willkommen!",
|
||||
"donate.label": "Spenden",
|
||||
"donate.title": "WebSpeak3 auf Ko-fi unterstützen",
|
||||
"pwa.updateAvailable": "Neue Version verfügbar",
|
||||
"pwa.reload": "Neu laden",
|
||||
"news.label": "News",
|
||||
"news.release": "WebSpeak3 {version} ist erschienen",
|
||||
"news.theme": "Neues Design im Store: „{name}“ von {author}",
|
||||
"feedback.dialog.title": "Feedback",
|
||||
"feedback.dialog.intro": "Melde einen Fehler oder teile eine Idee zur Weiterentwicklung von WebSpeak3 mit.",
|
||||
"feedback.dialog.category": "Kategorie",
|
||||
"feedback.dialog.category.bug": "Fehler",
|
||||
"feedback.dialog.category.idea": "Idee",
|
||||
"feedback.dialog.category.report": "Meldung (Verstoß/Missbrauch)",
|
||||
"feedback.dialog.category.other": "Sonstiges",
|
||||
"feedback.dialog.reportHint": "Meldungen bleiben privat und werden nie als GitHub-Issue veröffentlicht. Gib bei Bedarf den betroffenen Server mit an.",
|
||||
"feedback.dialog.message": "Nachricht",
|
||||
"feedback.dialog.messagePlaceholder": "Was ist passiert, oder was schlägst du vor?",
|
||||
"feedback.dialog.email": "E-Mail (optional, für Rückfragen – bleibt privat, wird nie veröffentlicht)",
|
||||
"feedback.dialog.publishAsIssue": "Als öffentliches GitHub-Issue veröffentlichen",
|
||||
"feedback.dialog.publishAsIssueHint": "Ohne Haken bleibt dein Feedback privat und geht nur an den Betreiber.",
|
||||
"feedback.dialog.publishAsIssueHintBug": "Fehlermeldungen werden immer als öffentliches GitHub-Issue veröffentlicht.",
|
||||
"feedback.dialog.bug.environment": "Browser & Betriebssystem",
|
||||
"feedback.dialog.bug.server": "TeamSpeak-Server (optional – bleibt privat, wird nie veröffentlicht)",
|
||||
"feedback.dialog.bug.steps": "Was hast du direkt davor gemacht? (optional)",
|
||||
"feedback.dialog.bug.stepsPlaceholder": "z. B. Channel betreten, Ausgabegerät gewechselt… Hat Neuladen der Seite geholfen?",
|
||||
"feedback.dialog.bug.diagnostics": "Mitgesendete technische Details",
|
||||
"feedback.dialog.send": "Senden",
|
||||
"feedback.dialog.cancel": "Abbrechen",
|
||||
"restartNotice.title": "Kurze Unterbrechung",
|
||||
"restartNotice.body": "Der Server wird gleich kurz neu gestartet. Deine Verbindung wird dabei kurz unterbrochen.",
|
||||
"restartNotice.ack": "Verstanden",
|
||||
"menu.extras.tos": "Nutzungsbedingungen",
|
||||
"tos.title": "Nutzungsbedingungen für client.webspeak3.de",
|
||||
"tos.rule1": "Dieser Client dient der privaten, nicht-kommerziellen Nutzung von TeamSpeak-/TeaSpeak-/VoySpeak-Servern über den Browser.",
|
||||
"tos.rule2": "Verboten sind insbesondere: Straftaten jeder Art, Belästigung und Hassrede, Spam und Flooding, Störung des Dienstes sowie die Umgehung von Sperren.",
|
||||
"tos.rule3": "Bei Verstößen kann der Zugang ohne Vorwarnung gesperrt werden; schwerwiegende Fälle werden ggf. an die zuständigen Behörden gemeldet.",
|
||||
"tos.rule4Pre": "Zur Betriebssicherheit und Missbrauchserkennung werden Verbindungen protokolliert (Serveradresse, Servername, Zeitpunkt) und nach 90 Tagen automatisch gelöscht – siehe ",
|
||||
"tos.rule4Post": ".",
|
||||
"tos.privacyLinkText": "Datenschutzerklärung",
|
||||
"tos.rule5Pre": "Bei Missbrauch oder Beschwerden: siehe ",
|
||||
"tos.rule5Post": ".",
|
||||
"tos.legalLinkText": "Impressum",
|
||||
"tos.rule6": "Mit Klick auf „Akzeptieren\" stimmst du diesen Bedingungen zu. Die Zustimmung wird nur lokal in deinem Browser gespeichert; bei Regeländerungen wirst du erneut gefragt.",
|
||||
"tos.accept": "Akzeptieren",
|
||||
"tos.close": "Schließen",
|
||||
"feedback.dialog.sending": "Wird gesendet…",
|
||||
"feedback.dialog.success": "Danke für dein Feedback!",
|
||||
"feedback.dialog.successWithIssue": "Danke! Issue erstellt:",
|
||||
"feedback.dialog.error": "Senden fehlgeschlagen. Bitte später erneut versuchen.",
|
||||
"toolbar.setAway": "Als abwesend markieren",
|
||||
"toolbar.backOnline": "Wieder online",
|
||||
"toolbar.awayOptions": "Abwesenheitsoptionen",
|
||||
"toolbar.whisper": "Whisper-Ziele",
|
||||
"whisper.channels": "Channels",
|
||||
"whisper.clients": "Clients",
|
||||
"whisper.clearAll": "Alle Whisper-Ziele entfernen",
|
||||
"toolbar.micEnable": "Mikrofon aktivieren",
|
||||
"toolbar.micMute": "Mikrofon stummschalten",
|
||||
"toolbar.micUnmute": "Mikrofon aktivieren (unmute)",
|
||||
"toolbar.vadSensitivity": "Empfindlichkeit der Sprachaktivierung",
|
||||
"toolbar.pushToTalk": "Zum Sprechen gedrückt halten",
|
||||
"tabAudio.start": "Ton eines Tabs oder Fensters in den Sprachkanal geben (mit Kopfhörer kein Echo)",
|
||||
"tabAudio.stop": "Ton-Freigabe beenden",
|
||||
"tabAudio.noAudio": "Es wurde kein Ton freigegeben. Im Auswahldialog einen Tab oder ein Fenster wählen und den Ton einschalten.",
|
||||
"tabAudio.silent": "Vom geteilten Ton kommt seit 5 Sekunden nichts an. Systemaudio liefert nicht auf jedem Windows-Rechner Ton. Teile stattdessen einen Browser-Tab, zum Beispiel Spotify im Web oder YouTube, mit eingeschaltetem „Tab-Audio teilen“.",
|
||||
"toolbar.muteSound": "Ton stummschalten (Ausgabe stumm)",
|
||||
"toolbar.unmuteSound": "Ton aktivieren (Ausgabe an)",
|
||||
"toolbar.chooseOutputDevice": "Wiedergabegerät wählen",
|
||||
"toolbar.toggleTheme": "Design wechseln",
|
||||
"away.setGlobal": "Global abwesend setzen",
|
||||
"away.setGlobalStatus": "Abwesenheit-Status global setzen",
|
||||
"connect.title": "Verbinden",
|
||||
"connect.novaSubtitle": "WebSpeak3 läuft komplett im Browser — kein Download nötig",
|
||||
"connect.serverAddress": "Server Nickname oder Adresse:",
|
||||
"connect.serverPassword": "Server Passwort:",
|
||||
"connect.nickname": "Nickname:",
|
||||
"connect.phoneticNickname": "Phonetischer Nickname:",
|
||||
"connect.identity": "Identität:",
|
||||
"connect.defaultChannel": "Standard Channel:",
|
||||
"connect.recordingProfile": "Aufnahmeprofil:",
|
||||
"connect.channelPassword": "Channel Passwort:",
|
||||
"connect.playbackProfile": "Wiedergabeprofil:",
|
||||
"connect.onetimeGrant": "Einmalige Berechtigung:",
|
||||
"connect.serverType": "Server-Typ:",
|
||||
"connect.serverType.auto": "Auto",
|
||||
"connect.serverType.teamspeak": "TeamSpeak",
|
||||
"connect.serverType.teaspeak": "TeaSpeak",
|
||||
"connect.hotkeyProfile": "Hotkeyprofil:",
|
||||
"connect.soundPack": "Sound Pack:",
|
||||
"connect.more": "Mehr",
|
||||
"connect.less": "Weniger",
|
||||
"connect.connect": "Verbinden",
|
||||
"connect.connecting": "Verbinde…",
|
||||
"connect.newTab": "In neuem Tab",
|
||||
"connect.cancel": "Abbrechen",
|
||||
"channelPasswordDialog.title": "Channel-Passwort erforderlich",
|
||||
"channelPasswordDialog.prompt": "Dieser Channel ist passwortgeschützt. Bitte Passwort eingeben:",
|
||||
"channelPasswordDialog.wrongPassword": "Falsches Passwort, bitte erneut versuchen:",
|
||||
"channelPasswordDialog.submit": "Beitreten",
|
||||
"channelPasswordDialog.cancel": "Abbrechen",
|
||||
"collectedUrls.title": "Gesammelte URLs",
|
||||
"collectedUrls.search": "Suchen:",
|
||||
"collectedUrls.url": "URL",
|
||||
"collectedUrls.count": "Anzahl",
|
||||
"collectedUrls.lastSeen": "Zuletzt erwähnt",
|
||||
"collectedUrls.mentionedBy": "Erwähnt von",
|
||||
"collectedUrls.clearList": "Liste löschen",
|
||||
"inviteFriend.title": "Freund einladen",
|
||||
"inviteFriend.type": "Art der Einladung",
|
||||
"inviteFriend.includeChannel": "Aktuellen Channel einfügen",
|
||||
"inviteFriend.link": "Link",
|
||||
"inviteFriend.webspeak3Link": "WebSpeak3-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}",
|
||||
"whisperSettings.subtitle": "Whispereinstellungen",
|
||||
"whisperSettings.rights": "Rechte für eingehende Whisper",
|
||||
"whisperSettings.mode.allow": "Individuelle Einstellungen in Kontakten benutzen, ansonsten erlauben",
|
||||
"whisperSettings.mode.block": "Individuelle Einstellungen in Kontakten benutzen, ansonsten verbieten",
|
||||
"whisperSettings.mode.blockAll": "Alle verbieten",
|
||||
"whisperSettings.incoming": "Einstellungen für eingehende Whisper",
|
||||
"whisperSettings.sound": "Sound abspielen, wenn Sie angewhispert werden",
|
||||
"whisperSettings.openHistory": "Whisper Verlauf immer öffnen, wenn Sie angewhispert werden",
|
||||
"whisperSettings.clearAfter": "Clients in Whisper Verlauf löschen nach",
|
||||
"whisperSettings.minutes": "Minuten",
|
||||
"whisperHistory.received": "{name} hat dir zugewhispert",
|
||||
"whisperHistory.stopped": "Whispern beendet",
|
||||
"whisperHistory.clear": "Löschen",
|
||||
"whisperHistory.options": "Optionen",
|
||||
"whisperLists.title": "Whisperlisten",
|
||||
"whisperLists.namePlaceholder": "Name der Liste",
|
||||
"whisperLists.saveCurrent": "Aktuelle Auswahl speichern",
|
||||
"whisperLists.itemDetail": "{channels} Channel, {clients} Clients",
|
||||
"whisperLists.activate": "Aktivieren",
|
||||
"whisperLists.delete": "Löschen",
|
||||
"whisperLists.empty": "Keine Whisperlisten gespeichert. Wähle Whisper-Ziele aus und speichere sie hier als Liste.",
|
||||
"identities.title": "Identitäten",
|
||||
"identities.activate": "Aktivieren",
|
||||
"identities.add": "Neue Identität",
|
||||
"identities.delete": "Löschen",
|
||||
"identities.newName": "Neue Identität",
|
||||
"identities.generated": "Erstellt",
|
||||
"identities.pending": "Wird bei der nächsten Verbindung erstellt",
|
||||
"identities.listLabel": "Lokale Identitäten",
|
||||
"identities.name": "Identität Name:",
|
||||
"identities.phoneticNickname": "Phonetischer Nickname:",
|
||||
"identities.uniqueId": "Eindeutige ID:",
|
||||
"identities.unknown": "Unbekannt",
|
||||
"identities.setDefault": "Standard",
|
||||
"identities.isDefault": "Aktuell als Standard verwendet",
|
||||
"identities.export": "Exportieren",
|
||||
"identities.import": "Importieren",
|
||||
"connectionInfo.clientTitle": "Verbindungsinformationen - {name}",
|
||||
"connectionInfo.serverTitle": "Serververbindungsinformationen",
|
||||
"connectionInfo.loading": "Wird geladen…",
|
||||
"connectionInfo.unavailable": "Keine Antwort vom Server (fehlende Berechtigung?).",
|
||||
"connectionInfo.ping": "Ping:",
|
||||
"connectionInfo.connectedSince": "Verbunden seit:",
|
||||
"connectionInfo.uptime": "Uptime:",
|
||||
"connectionInfo.name": "Name:",
|
||||
"connectionInfo.avgPing": "Mittlerer Ping:",
|
||||
"connectionInfo.avgPacketLoss": "Mittlerer Paketverlust:",
|
||||
"connectionInfo.incoming": "Eingehend",
|
||||
"connectionInfo.outgoing": "Ausgehend",
|
||||
"connectionInfo.packetsTransferred": "Übertragene Pakete",
|
||||
"connectionInfo.bytesTransferred": "Übertragene Bytes",
|
||||
"connectionInfo.bandwidthLastSecond": "Bandbreite letzte Sekunde",
|
||||
"connectionInfo.bandwidthLastMinute": "Bandbreite letzte Minute",
|
||||
"connectionInfo.ftBandwidth": "Dateitransfer Bandbreite",
|
||||
"connectionInfo.ftBytes": "Dateitransfer übertragene Bytes",
|
||||
"connectionInfo.ip": "IP-Adresse:",
|
||||
"connectionInfo.packetLoss": "Paketverlust:",
|
||||
"connectionInfo.packetsSent": "Pakete gesendet:",
|
||||
"connectionInfo.packetsReceived": "Pakete empfangen:",
|
||||
"connectionInfo.bytesSent": "Daten gesendet:",
|
||||
"connectionInfo.bytesReceived": "Daten empfangen:",
|
||||
"connectionInfo.bandwidthSent": "Bandbreite gesendet:",
|
||||
"connectionInfo.bandwidthReceived": "Bandbreite empfangen:",
|
||||
"menu.self.recordingProfile": "Aufnahmeprofil",
|
||||
"menu.self.playbackProfile": "Wiedergabeprofil",
|
||||
"menu.self.hotkeyProfile": "Hotkeyprofil",
|
||||
"menu.self.soundPack": "Sound Pack",
|
||||
"menu.self.setAway": "Abwesend setzen",
|
||||
"menu.self.enableMic": "Mikrofon aktivieren",
|
||||
"menu.self.disableMic": "Mikrofon ausschalten",
|
||||
"menu.self.muteOutput": "Lautsprecher/Kopfhörer ausschalten",
|
||||
"menu.self.unmuteOutput": "Lautsprecher/Kopfhörer einschalten",
|
||||
"menu.self.changeNickname": "Nickname ändern",
|
||||
"menu.self.requestTalkPower": "Talk Power anfordern",
|
||||
"menu.self.setAvatar": "Avatar setzen",
|
||||
"menu.self.setPhoneticNickname": "Phonetischen Nicknamen setzen",
|
||||
"menu.self.connectionInfo": "Verbindungsinformationen",
|
||||
"contacts.title": "Kontakte",
|
||||
"contacts.addOnlineClient": "Online-Client auswählen...",
|
||||
"contacts.add": "Hinzufügen",
|
||||
"contacts.remove": "Entfernen",
|
||||
"contacts.empty": "Noch keine Kontakte.",
|
||||
"contacts.customName": "Benutzerdefinierter Name:",
|
||||
"contacts.category.acquaintance": "Bekannter",
|
||||
"contacts.category.blocked": "Blockiert",
|
||||
"contacts.category.friend": "Freund",
|
||||
"contacts.phoneticName": "Phonetischer Name:",
|
||||
"contacts.whisperSetting": "Whisper:",
|
||||
"contacts.whisperSetting.default": "Standard",
|
||||
"contacts.whisperSetting.allow": "Erlauben",
|
||||
"contacts.whisperSetting.block": "Verbieten",
|
||||
"contacts.show": "Anzeige",
|
||||
"contacts.ignore": "Ignorieren",
|
||||
"contacts.unignore": "Nicht mehr ignorieren",
|
||||
"contacts.whisper": "Whispern",
|
||||
"contacts.preferences": "Voreinstellungen",
|
||||
"favorites.title": "🔖 myTeamSpeak Favoriten",
|
||||
"favorites.synced": "Synchronisierte Favoriten",
|
||||
"favorites.notLoggedIn": "Nicht angemeldet",
|
||||
"favorites.local": "Lokale Favoriten",
|
||||
"favorites.unnamed": "(unbenannt)",
|
||||
"favorites.bookmarkName": "Bookmark Name:",
|
||||
"favorites.newFavoriteName": "Neuer Favorit",
|
||||
"favorites.showServerQueryClients": "ServerQuery Clients anzeigen",
|
||||
"favorites.connectOnStartup": "Beim Start verbinden",
|
||||
"favorites.new": "Neuer Favorit",
|
||||
"favorites.newFolder": "Neuer Ordner",
|
||||
"favorites.remove": "Entfernen",
|
||||
"favorites.ok": "OK",
|
||||
"favorites.cancel": "Abbrechen",
|
||||
"favorites.apply": "Anwenden",
|
||||
"away.dialog.title": "Abwesenheit-Nachricht setzen",
|
||||
"away.dialog.message": "Nachricht:",
|
||||
"away.dialog.template": "Vorlage:",
|
||||
"away.dialog.none": "<Keine>",
|
||||
"away.dialog.ok": "OK",
|
||||
"away.dialog.save": "Speichern",
|
||||
"away.dialog.cancel": "Abbrechen",
|
||||
"options.title": "Optionen",
|
||||
"options.ok": "OK",
|
||||
"options.cancel": "Abbrechen",
|
||||
"options.notImplemented": "Diese Einstellungen sind noch nicht implementiert.",
|
||||
"options.section.anwendung": "Anwendung",
|
||||
"options.section.konto": "Konto",
|
||||
"options.section.wiedergabe": "Wiedergabe",
|
||||
"options.section.aufnahme": "Aufnahme",
|
||||
"options.section.design": "Design",
|
||||
"design.subtitle": "Wähle das Erscheinungsbild der Anwendung.",
|
||||
"design.theme.standard": "Standard",
|
||||
"design.theme.standard.desc": "Das originale WebSpeak3-Design.",
|
||||
"design.theme.nova": "Nova",
|
||||
"design.theme.nova.desc": "Moderneres, dunkles Design mit abgerundeten Elementen.",
|
||||
"design.theme.pulse": "Pulse",
|
||||
"design.theme.pulse.desc": "Karten-Layout mit Breadcrumb-Leiste und farbigem Akzent.",
|
||||
"design.theme.ide": "Command Center",
|
||||
"design.theme.ide.desc": "Technisches, flaches Layout im IDE-Stil für Power-User.",
|
||||
"design.idePixelFont": "Pixel-Terminal-Schrift",
|
||||
"design.theme": "Thema",
|
||||
"design.customThemes": "Eigene Designs",
|
||||
"design.iconPack": "Icon Pack",
|
||||
"design.manage": "Designs & Icons verwalten…",
|
||||
"design.manage.title": "Designs & Icons verwalten",
|
||||
"design.iconPack.none": "Noch kein Icon Pack installiert.",
|
||||
"design.iconPack.import": "Icon Pack importieren",
|
||||
"design.iconPack.importError": "Diese Datei konnte nicht als Icon Pack gelesen werden.",
|
||||
"design.iconPack.deleteConfirm": "Dieses Icon Pack wirklich löschen?",
|
||||
"design.iconPack.hint": "TeamSpeak-3-Icon-Packs (.ts3_iconpack) oder ZIPs mit gleich benannten Bildern. Ersetzt werden Sprechlampen, Mikro/Ton aus, Abwesend, Channel Commander, Channel und Server.",
|
||||
"design.notAvailable": "Im Webclient noch nicht verfügbar",
|
||||
"design.gif": "Unterstützung für GIF Animation",
|
||||
"design.gif.avatars": "Avatar Animation aktivieren",
|
||||
"design.gif.images": "Bilder Animation aktivieren",
|
||||
"design.tree": "Channel Baum",
|
||||
"design.tree.expandAll": "Beim Anmelden alle Channel aufklappen",
|
||||
"design.tree.expandDepth": "Channel bis zu dieser Ebene aufklappen (0 = alle)",
|
||||
"design.tree.expandOwn": "Eigenen Channel bei der Anmeldung ausklappen",
|
||||
"design.tree.clientsBelow": "Clients unter Channel sortieren",
|
||||
"design.tree.flags": "Flaggen für Clients anzeigen",
|
||||
"design.tree.overwolf": "Overwolf Icons anzeigen",
|
||||
"design.tree.badges": "Abzeichen anzeigen",
|
||||
"design.tree.groupIconsInMenus": "Gruppen Icons in Kontextmenüs anzeigen",
|
||||
"design.tree.hideInaccessibleGroups": "Nicht zugängliche Gruppen in Kontextmenüs verbergen",
|
||||
"design.tree.commanderLamp": "Zeige Channel Commander als Lampe",
|
||||
"design.tree.awayMessage": "Away Nachricht neben Nickname anzeigen",
|
||||
"design.tree.tooltips": "Tooltip Info bei Hover anzeigen",
|
||||
"design.status.connected": "Verbunden",
|
||||
"design.custom.new": "+ Neues Design",
|
||||
"design.custom.import": "Design importieren",
|
||||
"design.custom.edit": "Bearbeiten",
|
||||
"design.custom.duplicate": "Duplizieren",
|
||||
"design.custom.export": "Exportieren",
|
||||
"design.custom.delete": "Löschen",
|
||||
"design.custom.deleteConfirm": "Dieses Design wirklich löschen?",
|
||||
"design.custom.newTitle": "Neues Design erstellen",
|
||||
"design.custom.editTitle": "Design bearbeiten",
|
||||
"design.custom.name": "Name",
|
||||
"design.custom.base": "Basis-Layout",
|
||||
"design.custom.css": "CSS",
|
||||
"design.custom.hint": "Dieses CSS wird geladen, solange das Design aktiv ist. Nutze .ts-app { ... } und die vorhandenen CSS-Variablen (--accent, --bg, --text, --border, ...), um Farben, Radien und Abstände anzupassen - mit .ts-app .irgendeine-klasse { display: none } oder order lässt sich auch das Layout verändern.",
|
||||
"design.custom.save": "Speichern",
|
||||
"design.custom.copyOf": "Kopie von {name}",
|
||||
"design.custom.importError": "Diese Datei konnte nicht als WebSpeak3-Design gelesen werden.",
|
||||
"design.store.open": "Store",
|
||||
"design.store.title": "Design-Store",
|
||||
"design.store.back": "Zurück",
|
||||
"design.store.loading": "Lädt…",
|
||||
"design.store.unavailable": "Der Design-Store ist auf diesem Server nicht verfügbar.",
|
||||
"design.store.empty": "Noch keine Designs im Store.",
|
||||
"design.store.install": "Installieren",
|
||||
"design.store.installed": "Installiert",
|
||||
"design.store.by": "von {author}",
|
||||
"design.store.screenshotAlt": "Screenshot von {name}",
|
||||
"design.store.rating.rate": "Mit {stars} Sternen bewerten",
|
||||
"design.store.rating.summary": "{average} ({count})",
|
||||
"design.store.rating.none": "Noch keine Bewertungen",
|
||||
"design.store.publishTitle": "Ein Design veröffentlichen",
|
||||
"design.store.publish.select": "Eigenes Design auswählen",
|
||||
"design.store.publish.none": "Du hast noch kein eigenes Design zum Veröffentlichen.",
|
||||
"design.store.publish.author": "Dein Name (optional)",
|
||||
"design.store.publish.authorPlaceholder": "Anonym",
|
||||
"design.store.publish.description": "Beschreibung (optional)",
|
||||
"design.store.publish.descriptionPlaceholder": "Was macht dieses Design besonders?",
|
||||
"design.store.publish.screenshot": "Screenshot (optional)",
|
||||
"design.store.publish.screenshotTooLarge": "Das Bild ist zu groß. Bitte ein kleineres Screenshot verwenden.",
|
||||
"design.store.publish.adminToken": "Admin-Token (nur für reservierte Namen nötig)",
|
||||
"design.store.publish.adminTokenPlaceholder": "Leer lassen, außer du weißt, was das ist",
|
||||
"design.store.publish.submit": "Im Store veröffentlichen",
|
||||
"design.store.publish.success": "Design wurde veröffentlicht!",
|
||||
"design.store.publish.pending": "Danke! Dein Design wurde eingereicht und erscheint im Store, sobald es geprüft wurde.",
|
||||
"design.store.publish.duplicate": "Dieses Design ist schon im Store. Ändere es etwas, bevor du es erneut veröffentlichst.",
|
||||
"design.store.publish.error": "Veröffentlichen fehlgeschlagen.",
|
||||
"options.section.erweiterungen": "Erweiterungen",
|
||||
"options.section.hotkeys": "Hotkeys",
|
||||
"options.section.whispern": "Whispern",
|
||||
"options.section.downloads": "Downloads",
|
||||
"options.section.chat": "Chat",
|
||||
"options.section.sicherheit": "Sicherheit",
|
||||
"options.section.nachrichten": "Nachrichten",
|
||||
"options.section.meldungen": "Meldungen",
|
||||
"options.section.sounds": "Sounds",
|
||||
"app.title": "Anwendung",
|
||||
"app.subtitle": "Allgemeine Anwendungseinstellungen",
|
||||
"app.group.server": "Server",
|
||||
"app.group.misc": "Verschiedenes",
|
||||
"app.group.subscribe": "Channel Abonnement Verhalten",
|
||||
"app.group.privacy": "Datenschutz",
|
||||
"app.micOnServerSwitch": "Mikrofon beim Wechseln des Servers automatisch aktivieren",
|
||||
"app.reconnectAfterSleep": "Neu verbinden nach Energiesparmodus",
|
||||
"app.middleClickQuickAccess": "Mittleren Mousebutton als Schnellzugriff im Baum benutzen",
|
||||
"app.updateFavoriteNickname": "Automatisch Nicknamen in Favoriten aktualisieren",
|
||||
"app.autoOpenChannelChat": "Channel Chats automatisch öffnen",
|
||||
"app.mutedTalkingSound": "Akustischen Hinweis abspielen, wenn das Mikrofon gemutet ist",
|
||||
"app.neverShowPokeDialog": "Anstupsen Dialog nie zeigen",
|
||||
"app.subscribe.all": "Alle Channel abonnieren",
|
||||
"app.subscribe.current": "Nur aktuellen und zuvor abonnierte Channel abonnieren",
|
||||
"app.language": "Sprache",
|
||||
"app.language.auto": "Systemvorgabe",
|
||||
"app.language.de": "Deutsch",
|
||||
"app.language.en": "English",
|
||||
"app.language.zh-CN": "简体中文",
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? Hilf mit auf Weblate →",
|
||||
"app.serverBanner": "Server-Banner anzeigen",
|
||||
"app.serverBanner.hint": "Das Banner lädt direkt von der Adresse, die der Serverbetreiber eingetragen hat. Dieser Host sieht dabei deine IP-Adresse.",
|
||||
"app.chatImages": "Bilder im Chat laden",
|
||||
"app.chatImages.hint": "Bilder aus [img]-Tags und Markdown laden direkt von der Adresse, die der Absender gewählt hat, und dieser Host sieht deine IP-Adresse. Ausgeschaltet erscheinen sie als Link.",
|
||||
"playback.title": "Wiedergabe",
|
||||
"playback.subtitle": "Ändern der Wiedergabeeinstellungen",
|
||||
"playback.profile": "Profile",
|
||||
"playback.default": "Standard",
|
||||
"playback.device": "Wiedergabegerät:",
|
||||
"playback.systemDefault": "System default",
|
||||
"playback.quiet": "Leise",
|
||||
"playback.loud": "Laut",
|
||||
"playback.voiceVolume": "Sprachlautstärke",
|
||||
"playback.playTestTone": "▶ Test Ton abspielen",
|
||||
"playback.options": "Optionen",
|
||||
"playback.autoVolume": "Automatische Lautstärkeanpassung",
|
||||
"playback.ownMicClicks": "Eigener Client spielt Mikro Klicks",
|
||||
"playback.otherMicClicks": "Andere Clients spielen Mikro Klicks",
|
||||
"recording.title": "Aufnahme",
|
||||
"recording.subtitle": "Ändern der Aufnahmeeinstellungen",
|
||||
"recording.device": "Aufnahmegerät:",
|
||||
"recording.activation": "Aktivierung",
|
||||
"recording.pushToTalk": "Push-To-Talk",
|
||||
"recording.pttKey": "Push-To-Talk-Taste:",
|
||||
"recording.pttKeyNone": "Nicht festgelegt",
|
||||
"recording.pttKeyPress": "Taste oder Maustaste drücken…",
|
||||
"recording.pttHint": "Jede Taste oder Maustaste (mittlere oder Seitentasten) geht, aber nur solange WebSpeak3 das aktive Fenster ist. Browser lassen Webseiten keine Eingaben aus anderen Programmen sehen, im Spiel klappt es also nicht. Alternativ den 🗣️-Knopf in der Toolbar gedrückt halten.",
|
||||
"hotkeys.subtitle": "Tastatur- und Maus-Kürzel",
|
||||
"hotkeys.pttEnabled": "Push-To-Talk verwenden (statt Sprachaktivierung)",
|
||||
"hotkeys.shortcuts": "Tastenkürzel",
|
||||
"hotkeys.shortcutsHint": "Greifen nicht, während du in ein Textfeld tippst.",
|
||||
"recording.continuous": "Dauersenden",
|
||||
"recording.voiceActivation": "Automatische Spracherkennung",
|
||||
"recording.testStart": "Test starten",
|
||||
"recording.testStop": "Test beenden",
|
||||
"recording.hangoverDelay": "Abschaltverzögerung:",
|
||||
"recording.secondsUnit": "Sek",
|
||||
"recording.dsp": "Digital Signal Processing",
|
||||
"recording.typingAttenuation": "Tippgeräusche dämpfen",
|
||||
"recording.echoCancellation": "Echo Dämpfung",
|
||||
"recording.noiseSuppression": "Hintergrundgeräusche entfernen",
|
||||
"recording.autoGainControl": "Automatische Verstärkung",
|
||||
"recording.aec3": "Erweiterte Echounterdrückung (Beta, mehr CPU-Last)",
|
||||
"info.address": "Adresse:",
|
||||
"info.version": "Version:",
|
||||
"info.license": "Lizenz:",
|
||||
"info.currentClients": "Aktuelle Clients:",
|
||||
"info.currentChannels": "Aktuelle Channel:",
|
||||
"info.topic": "Topic:",
|
||||
"info.audioCodec": "Audio Codec:",
|
||||
"info.spacer": "Spacer:",
|
||||
"info.rawName": "Rohname:",
|
||||
"info.passwordProtected": "Passwort geschützt:",
|
||||
"info.clients": "Clients:",
|
||||
"info.country": "Land:",
|
||||
"info.muted": "Mikrofon stumm:",
|
||||
"info.outputMuted": "Lautsprecher stumm:",
|
||||
"info.serverGroups": "Servergruppen:",
|
||||
"info.yes": "Ja",
|
||||
"info.no": "Nein",
|
||||
"tree.noMatches": "Keine Treffer",
|
||||
"tree.search": "Kanäle und Nutzer suchen",
|
||||
"tree.label": "Kanäle",
|
||||
"tree.notConnected": "Nicht verbunden",
|
||||
"tree.clickToSelect": "Klicken zum Auswählen, Doppelklick zum Beitreten",
|
||||
"tree.clickToJoin": "Doppelklick zum Beitreten",
|
||||
"tree.joinNotConnected": "Nicht verbunden — Channel-Wechsel nicht möglich",
|
||||
"tree.passwordProtected": "Passwortgeschützt",
|
||||
"tree.privateChatWith": "Privater Chat mit",
|
||||
"tree.poke": "Anstupsen",
|
||||
"tree.channelCommander": "Channel Commander",
|
||||
"tree.away": "Abwesend",
|
||||
"tree.micMuted": "Mikrofon stummgeschaltet",
|
||||
"tree.talking": "Spricht",
|
||||
"tree.noTalkPower": "Keine Redeerlaubnis in diesem Channel",
|
||||
"tree.soundMuted": "Ton stummgeschaltet (deafened)",
|
||||
"tree.streaming": "Überträgt einen Stream",
|
||||
"publish.alpha": "Alpha",
|
||||
"publish.alphaTitle": "Alpha – instabil, kann sich jederzeit ändern oder brechen",
|
||||
"publish.demoUnavailable": "Übertragen ist in der Demo nicht verfügbar – dafür braucht es einen echten TeamSpeak-6-Server.",
|
||||
"publish.alphaNote": "Streaming ist Alpha. Es spricht TeamSpeak 6s Stream/Call-Protokoll, das nicht dokumentiert ist – Verbindungsaufbau, Bildqualität und Zuschauerverwaltung können fehlschlagen oder sich ohne Vorankündigung ändern. Nicht für produktive Nutzung gedacht.",
|
||||
"publish.start": "Bildschirm übertragen",
|
||||
"publish.stop": "Übertragung beenden",
|
||||
"publish.title": "Deine Übertragung",
|
||||
"publish.screen": "Bildschirm",
|
||||
"publish.starting": "Wird gestartet…",
|
||||
"publish.viewers": "{count} Zuschauer",
|
||||
"publish.request.allow": "Zulassen",
|
||||
"publish.request.deny": "Ablehnen",
|
||||
"publish.request.block": "Sperren",
|
||||
"publish.request.blockHint": "Ablehnen und nicht erneut fragen",
|
||||
"publish.dialog.title": "Stream-Einstellungen",
|
||||
"publish.dialog.basic": "Grundeinstellungen",
|
||||
"publish.dialog.advanced": "Erweiterte Einstellungen",
|
||||
"publish.dialog.golive": "Live gehen",
|
||||
"publish.dialog.cancel": "Zurück",
|
||||
"publish.preset": "Voreinstellung",
|
||||
"publish.preset.presentation": "Präsentation",
|
||||
"publish.audio": "Audio aufnehmen",
|
||||
"publish.privacy": "Privatsphäre",
|
||||
"publish.privacy.public": "Öffentlich",
|
||||
"publish.privacy.contacts": "Kontakte",
|
||||
"publish.privacy.private": "Privat",
|
||||
"publish.resolution": "Auflösung",
|
||||
"publish.res.source": "Quelle",
|
||||
"publish.fps": "FPS",
|
||||
"publish.bitrate": "Bitrate",
|
||||
"publish.audioBitrate": "Audio-Bitrate [Kbps]",
|
||||
"publish.viewerLimit": "Zuschauerbegrenzung",
|
||||
"publish.mode": "Verbindungsmodus",
|
||||
"publish.mode.p2p": "P2P",
|
||||
"publish.mode.server": "Server",
|
||||
"publish.mode.serverUnavailable": "Der Server-Modus läuft über TS6s SFU und ist noch nicht implementiert.",
|
||||
"stream.untitled": "Stream",
|
||||
"stream.stop": "Stream schließen",
|
||||
"stream.live": "Live",
|
||||
"stream.state.new": "Warte auf Angebot…",
|
||||
"stream.state.connecting": "Verbinde…",
|
||||
"stream.state.connected": "Live",
|
||||
"stream.state.disconnected": "Verbindung unterbrochen",
|
||||
"stream.state.failed": "Verbindung fehlgeschlagen",
|
||||
"stream.state.closed": "Beendet",
|
||||
"chat.server": "Server",
|
||||
"chat.channel": "Channel",
|
||||
"chat.notConnected": "Nicht verbunden",
|
||||
"chat.messageChannel": "Nachricht an Channel...",
|
||||
"chat.messageServer": "Nachricht an Server...",
|
||||
"chat.messagePartner": "Nachricht an {name}...",
|
||||
"chat.send": "Senden",
|
||||
"chat.you": "Du",
|
||||
"serverLog.clientJoin": "{client} loggte sich in Channel \"{channel}\" ein",
|
||||
"serverLog.clientLeave": "{client} hat die Verbindung getrennt (Verlassen)",
|
||||
"serverLog.clientChannelSwitch": "{client} ging von Channel \"{fromChannel}\" in \"{toChannel}\"",
|
||||
"serverLog.clientChannelGroupAssigned": "Die Channel-Gruppe \"{group}\" wurde {client} zugewiesen",
|
||||
"serverLog.channelCreated": "Channel \"{channel}\" wurde erstellt",
|
||||
"serverLog.channelDeleted": "Channel \"{channel}\" wurde gelöscht",
|
||||
"serverLog.channelEdited": "Channel \"{channel}\" wurde bearbeitet",
|
||||
"serverLog.serverEdited": "Die Servereinstellungen wurden geändert",
|
||||
"serverLog.permissionError": "Fehlende Berechtigung: {action}",
|
||||
"poke.title": "Anstupsen",
|
||||
"poke.optionalMessage": "Optionale Nachricht...",
|
||||
"poke.send": "Anstupsen",
|
||||
"poke.cancel": "Abbrechen",
|
||||
"poke.pokedYou": "hat dich angestupst",
|
||||
"poke.dismiss": "Schließen",
|
||||
"kick.title": "Kicken:",
|
||||
"kick.reasonPlaceholder": "Grund (optional)...",
|
||||
"kick.confirm": "Kicken",
|
||||
"kick.cancel": "Abbrechen",
|
||||
"ban.title": "Bannen:",
|
||||
"ban.reasonPlaceholder": "Grund (optional)...",
|
||||
"ban.duration": "Dauer:",
|
||||
"ban.durationPermanent": "Permanent",
|
||||
"ban.duration1h": "1 Stunde",
|
||||
"ban.duration1d": "1 Tag",
|
||||
"ban.duration1w": "1 Woche",
|
||||
"ban.confirm": "Bannen",
|
||||
"ban.cancel": "Abbrechen",
|
||||
"serverEdit.title": "Virtuellen Server editieren",
|
||||
"serverEdit.tab.host": "Host",
|
||||
"serverEdit.tab.misc": "Verschiedenes",
|
||||
"serverEdit.tab.transmission": "Übertragung",
|
||||
"serverEdit.tab.antiflood": "Anti-Flood",
|
||||
"serverEdit.tab.security": "Sicherheit",
|
||||
"serverEdit.tab.log": "Protokoll",
|
||||
"serverEdit.name": "Servername:",
|
||||
"serverEdit.welcomeMessage": "Willkommensnachricht:",
|
||||
"serverEdit.clearPassword": "Serverpasswort entfernen",
|
||||
"serverEdit.newPassword": "Neues Serverpasswort:",
|
||||
"serverEdit.hostmessage": "Hostnachricht:",
|
||||
"serverEdit.hostmessageMode": "Anzeigemodus:",
|
||||
"serverEdit.hostmessageMode.none": "Nicht anzeigen",
|
||||
"serverEdit.hostmessageMode.log": "Im Protokoll anzeigen",
|
||||
"serverEdit.hostmessageMode.modal": "Als Dialog anzeigen",
|
||||
"serverEdit.hostmessageMode.modalquit": "Als Dialog anzeigen und trennen",
|
||||
"serverEdit.hostbannerUrl": "Host-Banner URL:",
|
||||
"serverEdit.hostbannerGfxUrl": "Host-Banner Bild-URL:",
|
||||
"serverEdit.hostbannerGfxInterval": "Banner-Aktualisierung (Sekunden):",
|
||||
"serverEdit.hostbannerMode": "Banner-Anpassung:",
|
||||
"serverEdit.hostbannerMode.noadjust": "Nicht anpassen",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "Anpassen (Seitenverhältnis ignorieren)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "Anpassen (Seitenverhältnis beibehalten)",
|
||||
"serverEdit.hostbuttonTooltip": "Host-Button Tooltip:",
|
||||
"serverEdit.hostbuttonUrl": "Host-Button URL:",
|
||||
"serverEdit.hostbuttonGfxUrl": "Host-Button Bild-URL:",
|
||||
"serverEdit.maxClients": "Maximale Clientanzahl:",
|
||||
"serverEdit.nickname": "Server-Nickname:",
|
||||
"serverEdit.phoneticName": "Phonetischer Name:",
|
||||
"serverEdit.codecEncryptionMode": "Sprachverschlüsselung:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "Pro Channel konfigurierbar",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "Global deaktiviert",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "Global aktiviert",
|
||||
"serverEdit.unchanged": "Unverändert lassen",
|
||||
"serverEdit.save": "Speichern",
|
||||
"serverEdit.cancel": "Abbrechen",
|
||||
"serverProtocolLog.title": "Server Protokoll",
|
||||
"serverProtocolLog.empty": "Keine Protokolleinträge vorhanden.",
|
||||
"banList.title": "Bannliste",
|
||||
"banList.empty": "Keine Bans vorhanden.",
|
||||
"banList.name": "Name",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "Erstellt",
|
||||
"banList.duration": "Dauer",
|
||||
"banList.invoker": "Von",
|
||||
"banList.reason": "Grund",
|
||||
"banList.permanent": "Permanent",
|
||||
"banList.delete": "Löschen",
|
||||
"banList.deleteAll": "Alle löschen",
|
||||
"complainList.title": "Beschwerdeliste",
|
||||
"complainList.empty": "Keine Beschwerden vorhanden.",
|
||||
"complainList.target": "Ziel",
|
||||
"complainList.from": "Von",
|
||||
"complainList.message": "Nachricht",
|
||||
"complainList.timestamp": "Zeitpunkt",
|
||||
"offlineMessages.title": "Offline Nachrichten",
|
||||
"offlineMessages.empty": "Keine Nachrichten vorhanden.",
|
||||
"offlineMessages.subject": "Betreff",
|
||||
"offlineMessages.from": "Von",
|
||||
"offlineMessages.timestamp": "Zeitpunkt",
|
||||
"offlineMessages.targetUid": "Ziel-UID",
|
||||
"offlineMessages.message": "Nachricht",
|
||||
"offlineMessages.send": "Senden",
|
||||
"offlineMessages.new": "Neue Nachricht",
|
||||
"offlineMessages.markRead": "Als gelesen markieren",
|
||||
"offlineMessages.backToList": "Zurück zur Liste",
|
||||
"dialog.cancel": "Abbrechen",
|
||||
"groupAssign.channelTitle": "Channel-Gruppe zuweisen",
|
||||
"groupAssign.serverTitle": "Server-Gruppe zuweisen",
|
||||
"groupAssign.empty": "Keine Gruppen vorhanden.",
|
||||
"groupAssign.clickToRemove": "Klicken zum Entfernen",
|
||||
"serverQueryLogin.username": "Benutzername",
|
||||
"serverQueryLogin.password": "Passwort",
|
||||
"serverQueryLogin.login": "Anmelden",
|
||||
"permissionOverview.title": "Eigene Rechte",
|
||||
"permissionOverview.empty": "Keine Rechte gefunden.",
|
||||
"permissionOverview.name": "Recht",
|
||||
"permissionOverview.value": "Wert",
|
||||
"permissionOverview.negated": "Negiert",
|
||||
"permissionOverview.skip": "Skip",
|
||||
"permsEditor.title": "Rechte",
|
||||
"permsEditor.tab.server": "Server Gruppen",
|
||||
"permsEditor.tab.client": "Client Rechte",
|
||||
"permsEditor.tab.channel": "Channel Rechte",
|
||||
"permsEditor.tab.channelgroup": "Channel Gruppen",
|
||||
"permsEditor.tab.channelclient": "Channel Client Rechte",
|
||||
"permsEditor.clientDbId": "Eindeutige Client-DB-ID:",
|
||||
"permsEditor.load": "Laden",
|
||||
"permsEditor.pickOnlineClient": "Oder Online-Client wählen...",
|
||||
"permsEditor.pickTarget": "Bitte links eine Gruppe/einen Channel wählen bzw. eine Client-ID eingeben.",
|
||||
"permsEditor.addPermission": "Hinzufügen",
|
||||
"permsEditor.searchPermission": "Recht suchen...",
|
||||
"dialog.ok": "OK",
|
||||
"channelContext.join": "Channel wechseln",
|
||||
"channelContext.files": "Dateien...",
|
||||
"fileBrowser.title": "Dateitransfers",
|
||||
"fileBrowser.up": "Nach oben",
|
||||
"fileBrowser.tooLarge": "Datei zu groß – höchstens {mb} MiB pro Upload.",
|
||||
"fileBrowser.refresh": "Aktualisieren",
|
||||
"fileBrowser.newFolder": "Neuer Ordner",
|
||||
"fileBrowser.upload": "Hochladen",
|
||||
"fileBrowser.folderName": "Ordnername",
|
||||
"fileBrowser.empty": "Dieser Ordner ist leer.",
|
||||
"fileBrowser.name": "Name",
|
||||
"fileBrowser.size": "Größe",
|
||||
"fileBrowser.modified": "Geändert",
|
||||
"fileBrowser.download": "Herunterladen",
|
||||
"fileBrowser.rename": "Umbenennen",
|
||||
"fileBrowser.delete": "Löschen",
|
||||
"fileBrowser.deleteConfirm": "Wirklich löschen?",
|
||||
"fileBrowser.uploading": "Wird hochgeladen...",
|
||||
"fileBrowser.downloading": "Wird heruntergeladen...",
|
||||
"serverContext.icons": "Server-Icons...",
|
||||
"serverIcons.title": "Server-Icons verwalten",
|
||||
"serverIcons.upload": "Icon hochladen",
|
||||
"serverIcons.iconId": "Icon-ID",
|
||||
"serverIcons.empty": "Keine Icons vorhanden.",
|
||||
"clientContext.privateChat": "Privater Chat",
|
||||
"clientContext.poke": "Anstupsen",
|
||||
"clientContext.watchStream": "Stream ansehen",
|
||||
"clientContext.moveTo": "Verschieben in…",
|
||||
"clientContext.volume": "Lautstärke",
|
||||
"clientContext.volumeHint": "Nur für dich. Doppelklick setzt auf 100 % zurück.",
|
||||
"clientContext.copyName": "Namen kopieren",
|
||||
"clientContext.connectionInfo": "Verbindungsinformationen anzeigen",
|
||||
"clientContext.addWhisperTarget": "Als Whisper-Ziel hinzufügen",
|
||||
"clientContext.removeWhisperTarget": "Als Whisper-Ziel entfernen",
|
||||
"clientContext.assignChannelGroup": "Channel-Gruppe zuweisen",
|
||||
"clientContext.assignServerGroup": "Server-Gruppe zuweisen",
|
||||
"clientContext.kickChannel": "Aus dem Channel kicken",
|
||||
"clientContext.kick": "Vom Server kicken",
|
||||
"clientContext.ban": "Bannen",
|
||||
"clientContext.notSupported": "Im Web-Client noch nicht unterstützt",
|
||||
"moveClient.title": "Verschieben",
|
||||
"moveClient.empty": "Keine Channels verfügbar.",
|
||||
"moveClient.current": "Aktueller Channel",
|
||||
"moveClient.spacer": "Spacer",
|
||||
"serverContext.connectionInfo": "Serververbindungsinformationen",
|
||||
"serverContext.copyAddress": "Serveradresse kopieren",
|
||||
"serverContext.addFavorite": "Zu Favoriten hinzufügen",
|
||||
"serverContext.disconnect": "Verbindung trennen",
|
||||
"connectError.dismiss": "Schließen",
|
||||
"connectError.gatewayFull": "Das Gateway ist gerade voll. Versuch es in ein paar Minuten nochmal – oder hoste WebSpeak3 selbst: github.com/WebSpeak3/webspeak3",
|
||||
"dialog.close": "Schließen",
|
||||
"sounds.title": "Sounds",
|
||||
"sounds.subtitle": "Sound-Benachrichtigungen für Ereignisse festlegen",
|
||||
"sounds.enable": "Sounds aktivieren",
|
||||
"sounds.volume": "Lautstärke",
|
||||
"sounds.eventEnable": "Diesen Sound aktivieren",
|
||||
"sounds.event.connect": "Verbunden",
|
||||
"sounds.event.disconnect": "Getrennt",
|
||||
"sounds.event.clientJoin": "Client kommt",
|
||||
"sounds.event.clientLeave": "Client geht",
|
||||
"sounds.event.message": "Nachricht empfangen",
|
||||
"sounds.event.poke": "Anstupsen erhalten",
|
||||
"sounds.event.mute": "Stummschaltung umgeschaltet",
|
||||
"sounds.event.micClickOn": "Mikro Klick an",
|
||||
"sounds.event.micClickOff": "Mikro Klick aus",
|
||||
"sounds.event.whisper": "Whisper empfangen",
|
||||
"sounds.default": "Standard",
|
||||
"sounds.custom": "Eigene Datei: {name}",
|
||||
"sounds.test": "▶ Testen",
|
||||
"sounds.upload": "Hochladen",
|
||||
"sounds.reset": "Zurücksetzen",
|
||||
"sounds.importSoundpack": "Soundpack importieren (.ts3soundpack)",
|
||||
"sounds.importResult": "{matched} Sound(s) übernommen, {unmatched} Datei(en) nicht zugeordnet",
|
||||
"nachrichten.title": "Nachrichten",
|
||||
"nachrichten.subtitle": "Nachrichten anpassen",
|
||||
"nachrichten.disconnectMessage": "Verbindung trennen:",
|
||||
"nachrichten.disconnectMessagePlaceholder": "verlassen",
|
||||
"nachrichten.presetsTitle": "Voreingestellte Nachrichten",
|
||||
"nachrichten.type": "Typ",
|
||||
"nachrichten.type.away": "Abwesend",
|
||||
"nachrichten.templateName": "Vorlagenname",
|
||||
"nachrichten.message": "Nachricht",
|
||||
"nachrichten.add": "Hinzufügen",
|
||||
"nachrichten.delete": "Löschen",
|
||||
"tabs.disconnect": "Verbindung trennen",
|
||||
"identity.importInvalid": "„{file}“ ist keine gültige Identitätsdatei.",
|
||||
"log.fileTransferFailed": "Dateiübertragung fehlgeschlagen:",
|
||||
"log.serverReconnecting": "Verbindung zum Server verloren, verbinde neu…",
|
||||
"log.serverReconnected": "Wieder mit dem Server verbunden",
|
||||
"log.fileTransferInvalidAddress": "Dateiübertragung fehlgeschlagen (ungültige Adresse)",
|
||||
"sounds.importFailed": "Das Soundpack konnte nicht gelesen werden – ist es eine gültige .ts3soundpack-/ZIP-Datei?",
|
||||
"tabs.connections": "Server-Verbindungen",
|
||||
"shortcut.ctrl": "Strg",
|
||||
"about.text": "WebSpeak3 ist ein TeamSpeak-Client für den Browser, quelloffen und ohne Installation.",
|
||||
"about.memorial.title": "In Erinnerung an Akimo",
|
||||
"about.memorial.text": "Am 21.10.2026 über die Regenbogenbrücke gegangen. 🌈🐾",
|
||||
"about.close": "Schließen",
|
||||
"menu.extras.fileTransfers": "Dateiübertragungen",
|
||||
"transfers.title": "Dateiübertragungen",
|
||||
"transfers.empty": "Keine Übertragungen.",
|
||||
"transfers.up": "Upload",
|
||||
"transfers.down": "Download",
|
||||
"transfers.status.queued": "Wartet",
|
||||
"transfers.status.running": "Läuft",
|
||||
"transfers.status.done": "Fertig",
|
||||
"transfers.status.error": "Fehlgeschlagen",
|
||||
"transfers.clearFinished": "Beendete entfernen",
|
||||
"transfers.finished": "Übertragung beendet: {name}",
|
||||
"downloadSettings.subtitle": "Download Einstellungen",
|
||||
"downloadSettings.directory": "Download Verzeichnis",
|
||||
"downloadSettings.directoryLabel": "Verzeichnis für Downloads:",
|
||||
"downloadSettings.browserDefault": "Browser-Standard",
|
||||
"downloadSettings.change": "Ändern",
|
||||
"downloadSettings.reset": "Zurücksetzen",
|
||||
"downloadSettings.alwaysDir": "Immer in dieses Verzeichnis speichern",
|
||||
"downloadSettings.askEachTime": "Jedesmal nach Downloadverzeichnis fragen",
|
||||
"downloadSettings.unsupported": "Dieser Browser kann keinen Ordner wählen; Downloads landen im Download-Ordner des Browsers.",
|
||||
"downloadSettings.interface": "Interface",
|
||||
"downloadSettings.showWindowOnStart": "Das Dateitransfer Fenster anzeigen, wenn ein Download startet",
|
||||
"downloadSettings.closeWindowWhenDone": "Das Dateitransfer Fenster schließen, wenn alle Downloads beendet wurden",
|
||||
"downloadSettings.popupWhenDone": "Pop-up bei beendeten Übertragungen einblenden",
|
||||
"downloadSettings.uploadLimit": "Upload-Bandbreite",
|
||||
"downloadSettings.downloadLimit": "Download-Bandbreite",
|
||||
"downloadSettings.maxUploads": "Gleichzeitige Uploads",
|
||||
"downloadSettings.maxDownloads": "Gleichzeitige Downloads",
|
||||
"downloadSettings.unlimited": "Nicht limitieren",
|
||||
"downloadSettings.limitedTo": "Limitiert auf",
|
||||
"chatSettings.subtitle": "Chat Einstellungen",
|
||||
"chatSettings.window": "Chat Fenster",
|
||||
"chatSettings.maxLines": "Maximale Anzahl an Zeilen:",
|
||||
"chatSettings.font": "Schrift:",
|
||||
"chatSettings.fontDefault": "Standard",
|
||||
"chatSettings.fontReset": "Schrift zurücksetzen",
|
||||
"chatSettings.fontPreview": "So sieht der Chat mit dieser Schrift aus.",
|
||||
"chatSettings.autoLog": "Automatisch protokollieren",
|
||||
"chatSettings.logChannel": "Channel Chats protokollieren",
|
||||
"chatSettings.logPrivate": "Private Chats protokollieren",
|
||||
"chatSettings.logServer": "Server Chats protokollieren",
|
||||
"chatSettings.logHint": "Protokolle bleiben nur in diesem Browser gespeichert (letzte 1000 Zeilen je Chat).",
|
||||
"chatSettings.restore": "Protokolle aktualisieren",
|
||||
"chatSettings.restoreChannelLines": "Channel Chat Protokolle aktualisieren",
|
||||
"chatSettings.restorePrivateLines": "Private Chat Protokolle aktualisieren",
|
||||
"chatSettings.notify": "Hinweis für eingehende Nachrichten",
|
||||
"chatSettings.notifyServer": "Server",
|
||||
"chatSettings.notifyChannel": "Channel",
|
||||
"chatSettings.notifyPrivate": "Privat",
|
||||
"chatSettings.linesUnit": "Zeilen",
|
||||
"chatSettings.last": "letzten",
|
||||
"securitySettings.subtitle": "Sicherheitseinstellungen",
|
||||
"securitySettings.passwords": "Passwörter",
|
||||
"securitySettings.saveChannelPasswords": "Channel Passwörter speichern",
|
||||
"securitySettings.clearChannelPasswords": "Channel Passwörter löschen",
|
||||
"securitySettings.channelPasswordsCleared": "Gespeicherte Channel Passwörter wurden gelöscht.",
|
||||
"securitySettings.masterPassword": "Master Passwort benutzen",
|
||||
"securitySettings.changeMasterPassword": "Master Passwort ändern",
|
||||
"securitySettings.cleanup": "Aufräumen",
|
||||
"securitySettings.clearCacheOnExit": "Cache beim Beenden leeren",
|
||||
"securitySettings.clearUrlsOnExit": "URLs beim Beenden löschen",
|
||||
"securitySettings.clearCache": "Cache löschen",
|
||||
"securitySettings.cacheCleared": "Cache gelöscht.",
|
||||
"securitySettings.identities": "Identitäten",
|
||||
"securitySettings.manageIdentities": "Identitäten verwalten",
|
||||
"notify.connection": "Verbindung",
|
||||
"notify.connected": "Zu Server verbunden",
|
||||
"notify.disconnected": "Von Server getrennt",
|
||||
"notify.lostConnection": "Verbindung zum Server verloren",
|
||||
"notify.channel": "Channel",
|
||||
"notify.created": "Erstellt",
|
||||
"notify.deleted": "Gelöscht",
|
||||
"notify.edited": "Editiert",
|
||||
"notify.moved": "Bewegt",
|
||||
"notify.currentChannel": "Aktueller Channel",
|
||||
"notify.otherChannel": "Anderer Channel",
|
||||
"notify.byYou": "Von Ihnen",
|
||||
"notify.byOther": "Von anderem Client",
|
||||
"notify.server": "Server",
|
||||
"notify.insufficientPermissions": "Unzureichende Rechte",
|
||||
"notify.error": "Fehler",
|
||||
"notify.client": "Client",
|
||||
"notify.switched": "Channel gewechselt",
|
||||
"notify.movedClient": "Verschoben",
|
||||
"notify.kickedChannel": "Aus Channel gekickt",
|
||||
"notify.kickedServer": "Vom Server gekickt",
|
||||
"notify.banned": "Gebannt",
|
||||
"notify.toCurrent": "In aktuellen Channel",
|
||||
"notify.fromCurrent": "Aus aktuellem Channel",
|
||||
"notify.toOther": "In anderen Channel",
|
||||
"notify.appears": "Erscheint",
|
||||
"notify.stays": "Bleibt sichtbar",
|
||||
"notify.disappears": "Verschwindet",
|
||||
"notify.serverGroup": "Servergruppe",
|
||||
"notify.channelGroup": "Channelgruppe geändert",
|
||||
"notify.added": "Hinzugefügt",
|
||||
"notify.removed": "Entfernt",
|
||||
"notify.byServer": "Durch Server",
|
||||
"notify.byUser": "Durch Benutzer",
|
||||
"notify.recording": "Aufnahme",
|
||||
"notify.recordingStart": "Aufnahme gestartet",
|
||||
"notify.recordingStop": "Aufnahme beendet",
|
||||
"notify.recordingInChannel": "Aufnahme im Channel aktiv",
|
||||
"notify.talkPowerRequested": "Sprechrecht angefragt",
|
||||
"notify.self": "Selbst",
|
||||
"notify.youSwitched": "Channel gewechselt",
|
||||
"notify.youMoved": "In anderen Channel verschoben",
|
||||
"notify.youKickedServer": "Vom Server gekickt",
|
||||
"notify.youKickedChannel": "Aus Channel gekickt",
|
||||
"notify.youBanned": "Gebannt",
|
||||
"notify.talkPowerGranted": "Sprechrecht erhalten",
|
||||
"notify.talkPowerRevoked": "Sprechrecht entzogen",
|
||||
"notify.chat": "Chat",
|
||||
"notify.messageSent": "Nachricht gesendet",
|
||||
"notify.messageReceived": "Nachricht empfangen",
|
||||
"notify.capture": "Sound Aufnahme",
|
||||
"notify.playback": "Sound Wiedergabe",
|
||||
"notify.muted": "Stumm geschaltet",
|
||||
"notify.unmuted": "Aktiviert",
|
||||
"notify.status": "Status",
|
||||
"notify.away": "Abwesend",
|
||||
"notify.present": "Wieder da",
|
||||
"notify.other": "Andere",
|
||||
"notify.poked": "Angestupst",
|
||||
"notify.transferComplete": "Dateiübertragung abgeschlossen",
|
||||
"notify.transferFailed": "Dateiübertragung fehlgeschlagen",
|
||||
"notify.whisperListEmpty": "Flüsterliste leer",
|
||||
"notify.whisperTargetNotFound": "Kein Flüsterziel gefunden",
|
||||
"notify.whisperTooMany": "Zu viele Flüsterziele",
|
||||
"notify.special": "Speziell",
|
||||
"notify.micClickOtherOn": "Mikrofonklick andere an",
|
||||
"notify.micClickOtherOff": "Mikrofonklick andere aus",
|
||||
"notify.micClickSelfOn": "Mikrofonklick selbst an",
|
||||
"notify.micClickSelfOff": "Mikrofonklick selbst aus",
|
||||
"notify.whisperNotify": "Flüster-Hinweis",
|
||||
"notify.soundTest": "Soundtest",
|
||||
"notify.test3d": "3D-Test",
|
||||
"notify.talkingWhileMuted": "Sprechen trotz Stummschaltung",
|
||||
"notify.subtitle": "Meldungen einstellen",
|
||||
"notify.soundPack": "Sound Pack:",
|
||||
"notify.pack.builtin": "WebSpeak3 Standard",
|
||||
"notify.pack.none": "Keine Sounds",
|
||||
"notify.importPack": "TS3 Sound Pack importieren (.ts3_soundpack / .zip)",
|
||||
"notify.deletePack": "Sound Pack löschen",
|
||||
"notify.deletePackConfirm": "Sound Pack \"{name}\" löschen?",
|
||||
"notify.importFailed": "Das ist kein gültiges TS3 Sound Pack (settings.ini fehlt).",
|
||||
"notify.whenMuted": "Wenn Ausgabe stumm:",
|
||||
"notify.whenMuted.all": "Alle Sounds spielen",
|
||||
"notify.whenMuted.none": "Keine Sounds spielen",
|
||||
"notify.hintBefore": "Hinweis: Das Sound Pack kann für jeden ",
|
||||
"notify.hintLink": "Favoriten",
|
||||
"notify.hintAfter": " überschrieben werden.",
|
||||
"notify.col.action": "Aktion",
|
||||
"notify.col.script": "Sound Skript",
|
||||
"notify.col.text": "Text Position",
|
||||
"notify.text.server": "Server",
|
||||
"notify.text.channel": "Channel",
|
||||
"notify.resetAll": "Alle Anpassungen zurücksetzen",
|
||||
"notify.applyToFavorites": "Dieses Sound Pack für alle Favoriten verwenden",
|
||||
"notify.applyToFavoritesConfirm": "Alle Favoriten auf dieses Sound Pack setzen? Eigene Sound Packs einzelner Favoriten werden dabei zurückgesetzt.",
|
||||
"notify.whenMuted.important": "Nur wichtige Sounds spielen",
|
||||
"notify.text.client": "Client",
|
||||
"vault.title": "Master Passwort",
|
||||
"vault.prompt": "Deine Identitäten und gespeicherten Passwörter sind verschlüsselt. Gib dein Master Passwort ein.",
|
||||
"vault.unlock": "Entsperren",
|
||||
"vault.wrong": "Falsches Passwort.",
|
||||
"vault.forgot": "Passwort vergessen",
|
||||
"vault.forgotConfirm": "Ohne Passwort lassen sich die Daten nicht wiederherstellen. Identitäten, Favoriten und gespeicherte Passwörter endgültig löschen und neu anfangen?",
|
||||
"securitySettings.masterHint": "Verschlüsselt Identitäten, Favoriten (mit Passwörtern) und gespeicherte Channel-Passwörter. Nach jedem Neuladen wird das Passwort abgefragt.",
|
||||
"securitySettings.masterCurrent": "Aktuelles Master Passwort",
|
||||
"securitySettings.masterNew": "Neues Master Passwort",
|
||||
"securitySettings.masterRepeat": "Wiederholen",
|
||||
"securitySettings.masterMismatch": "Die Passwörter stimmen nicht überein.",
|
||||
"securitySettings.masterNote": "Merk es dir gut: Ohne das Passwort sind Identitäten und gespeicherte Passwörter weg.",
|
||||
"sync.subtitle": "Deine Daten auf allen Geräten",
|
||||
"sync.intro": "Ein Konto besteht nur aus einer zufälligen Nummer, optional mit Passwort. Keine Mail, kein Name. Alles wird auf deinem Gerät verschlüsselt, bevor es hochgeladen wird. Der Server sieht nur unlesbare Daten.",
|
||||
"sync.create.title": "Neues Konto",
|
||||
"sync.create.withPassword": "Zusätzlich ein zufälliges Passwort erzeugen (empfohlen)",
|
||||
"sync.create.withPasswordHint": "Ohne Passwort reicht die Kontonummer allein, um an deine Daten zu kommen.",
|
||||
"sync.create.button": "Konto erstellen",
|
||||
"sync.create.busy": "Konto wird erstellt …",
|
||||
"sync.login.title": "Bestehendes Konto",
|
||||
"sync.number": "Kontonummer",
|
||||
"sync.password": "Passwort",
|
||||
"sync.passwordOptional": "Passwort (falls vorhanden)",
|
||||
"sync.login.hint": "Die Daten des Kontos ersetzen danach die auf diesem Gerät.",
|
||||
"sync.login.button": "Anmelden",
|
||||
"sync.server": "Sync-Server",
|
||||
"sync.serverDefault": "Standard (offizieller WebSpeak3-Server)",
|
||||
"sync.serverHint": "Leer lassen für den offiziellen Server. Ein Konto gibt es nur auf dem Server, auf dem es erstellt wurde.",
|
||||
"sync.account.title": "Dein Konto",
|
||||
"sync.copy": "Kopieren",
|
||||
"sync.copied": "Kopiert",
|
||||
"sync.show": "Anzeigen",
|
||||
"sync.hide": "Verbergen",
|
||||
"sync.noPassword": "Kein Passwort",
|
||||
"sync.keepSafe": "Bewahre Nummer und Passwort gut auf. Gehen sie verloren, kann niemand deine Daten wiederherstellen, auch wir nicht.",
|
||||
"sync.recoveryFile": "Wiederherstellungsdatei herunterladen",
|
||||
"sync.qr.show": "QR-Code anzeigen",
|
||||
"sync.qr.hide": "QR-Code verbergen",
|
||||
"sync.qr.hint": "Mit dem anderen Gerät scannen, um es dort anzumelden. Wer den Code sieht, hat Zugriff auf dein Konto.",
|
||||
"sync.password.add": "Passwort hinzufügen",
|
||||
"sync.password.remove": "Passwort entfernen",
|
||||
"sync.password.addConfirm": "Ein neues zufälliges Passwort erzeugen? Andere Geräte müssen sich danach mit Nummer und Passwort neu anmelden.",
|
||||
"sync.password.removeConfirm": "Passwort entfernen? Dann reicht die Kontonummer allein. Andere Geräte müssen sich neu anmelden.",
|
||||
"sync.categories": "Synchronisieren",
|
||||
"sync.category.identities": "Identitäten (inkl. privater Schlüssel)",
|
||||
"sync.category.favorites": "Favoriten, Channel-Passwörter und Kontakte",
|
||||
"sync.category.settings": "Einstellungen",
|
||||
"sync.category.designs": "Designs und Icon Packs",
|
||||
"sync.category.whisper": "Whisper-Listen",
|
||||
"sync.categoriesHint": "Audiogeräte, Lautstärken, PTT-Taste und Chatprotokolle bleiben immer auf dem Gerät.",
|
||||
"sync.status": "Status",
|
||||
"sync.status.syncing": "Wird synchronisiert …",
|
||||
"sync.status.last": "Zuletzt synchronisiert: {time}",
|
||||
"sync.status.never": "Noch nicht synchronisiert",
|
||||
"sync.conflict.title": "Synchronisierung",
|
||||
"sync.conflict.text": "Auf diesem Gerät und im Konto wurde seit dem letzten Abgleich etwas geändert. Welcher Stand soll gelten?",
|
||||
"sync.conflict.local": "Diesen Stand hochladen",
|
||||
"sync.conflict.server": "Stand aus dem Konto laden",
|
||||
"sync.syncNow": "Jetzt synchronisieren",
|
||||
"sync.serverInfo": "Server: {server}",
|
||||
"sync.logout": "Abmelden",
|
||||
"sync.logoutConfirm": "Dieses Gerät vom Konto abmelden? Konto und Daten bleiben erhalten.",
|
||||
"sync.delete": "Konto löschen",
|
||||
"sync.deleteConfirm": "Konto mit allen Daten auf dem Server endgültig löschen? Die Daten auf diesem Gerät bleiben.",
|
||||
"sync.link.title": "Mit Konto verbinden",
|
||||
"sync.link.prompt": "Dieses Gerät mit dem Konto {number} verbinden? Die Daten des Kontos ersetzen die auf diesem Gerät.",
|
||||
"sync.link.connect": "Verbinden",
|
||||
"sync.error.password_required": "Dieses Konto hat ein Passwort.",
|
||||
"sync.error.unreachable": "Sync-Server nicht erreichbar.",
|
||||
"sync.error.not_found": "Konto nicht gefunden oder Passwort falsch. Wurde das Passwort auf einem anderen Gerät geändert, melde dich neu an.",
|
||||
"sync.error.rate_limited": "Zu viele Anfragen, bitte später nochmal.",
|
||||
"sync.error.full": "Der Sync-Server nimmt gerade keine neuen Konten an.",
|
||||
"sync.error.pow_required": "Sicherheitsprüfung fehlgeschlagen, bitte nochmal versuchen.",
|
||||
"sync.error.conflict": "Ein anderes Gerät hat inzwischen etwas geändert.",
|
||||
"sync.error.payload_too_large": "Zu viele Daten für die Synchronisierung (max. 1 MB).",
|
||||
"sync.error.generic": "Synchronisierung fehlgeschlagen."
|
||||
}
|
||||
@@ -0,0 +1,998 @@
|
||||
{
|
||||
"menu.connections": "Connections",
|
||||
"menu.connections.connect": "Connect",
|
||||
"menu.connections.disconnectCurrent": "Disconnect from current server",
|
||||
"menu.connections.disconnectAll": "Disconnect from all servers",
|
||||
"menu.favorites": "Bookmarks",
|
||||
"menu.favorites.add": "Add bookmark",
|
||||
"menu.favorites.manage": "Manage bookmarks",
|
||||
"menu.self": "Self",
|
||||
"menu.rights": "Permissions",
|
||||
"menu.rights.serverGroups": "Edit server groups...",
|
||||
"menu.rights.channelGroups": "Edit channel groups...",
|
||||
"menu.rights.serverPermissions": "Edit server permissions...",
|
||||
"menu.rights.channelPermissions": "Edit channel permissions...",
|
||||
"menu.rights.overview": "Permission overview...",
|
||||
"menu.rights.myRights": "Show my permissions",
|
||||
"menu.extras": "Tools",
|
||||
"menu.help": "Help",
|
||||
"menu.help.about": "About WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Changelog",
|
||||
"menu.help.translate": "Help translate (Weblate)",
|
||||
"menu.extras.identities": "Identities",
|
||||
"menu.extras.contacts": "Contacts",
|
||||
"menu.extras.collectedUrls": "Collected URLs",
|
||||
"menu.extras.inviteFriend": "Invite a friend",
|
||||
"menu.extras.whisperLists": "Whisper Lists",
|
||||
"menu.extras.whisperHistory": "Whisper History",
|
||||
"menu.extras.clientLog": "Client Log",
|
||||
"menu.extras.banList": "Ban List",
|
||||
"menu.extras.complaintList": "Complaint List",
|
||||
"menu.extras.offlineMessages": "Offline Messages",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery Login",
|
||||
"menu.extras.serverLog": "Server Log",
|
||||
"menu.extras.startRecording": "Start Recording",
|
||||
"menu.extras.startMultitrackRecording": "Start Multitrack Recording",
|
||||
"menu.extras.stopRecording": "Stop Recording",
|
||||
"menu.extras.options": "Options",
|
||||
"menu.extras.feedback": "Send Feedback",
|
||||
"feedback.fab.nudge": "What do you think of WebSpeak3? Feedback welcome!",
|
||||
"donate.label": "Donate",
|
||||
"donate.title": "Support WebSpeak3 on Ko-fi",
|
||||
"pwa.updateAvailable": "New version available",
|
||||
"pwa.reload": "Reload",
|
||||
"news.label": "News",
|
||||
"news.release": "WebSpeak3 {version} is out",
|
||||
"news.theme": "New design in the store: \"{name}\" by {author}",
|
||||
"feedback.dialog.title": "Feedback",
|
||||
"feedback.dialog.intro": "Report a bug or share an idea to help improve WebSpeak3.",
|
||||
"feedback.dialog.category": "Category",
|
||||
"feedback.dialog.category.bug": "Bug",
|
||||
"feedback.dialog.category.idea": "Idea",
|
||||
"feedback.dialog.category.report": "Report (violation/abuse)",
|
||||
"feedback.dialog.category.other": "Other",
|
||||
"feedback.dialog.reportHint": "Reports stay private and are never published as a GitHub issue. Feel free to name the affected server.",
|
||||
"feedback.dialog.message": "Message",
|
||||
"feedback.dialog.messagePlaceholder": "What happened, or what are you suggesting?",
|
||||
"feedback.dialog.email": "Email (optional, for follow-up – stays private, never published)",
|
||||
"feedback.dialog.publishAsIssue": "Publish as a public GitHub issue",
|
||||
"feedback.dialog.publishAsIssueHint": "Leave unchecked to keep your feedback private, visible only to the maintainer.",
|
||||
"feedback.dialog.publishAsIssueHintBug": "Bug reports are always published as a public GitHub issue.",
|
||||
"feedback.dialog.bug.environment": "Browser & operating system",
|
||||
"feedback.dialog.bug.server": "TeamSpeak server (optional – stays private, never published)",
|
||||
"feedback.dialog.bug.steps": "What did you do right before? (optional)",
|
||||
"feedback.dialog.bug.stepsPlaceholder": "e.g. joined a channel, switched output device… Did reloading the page help?",
|
||||
"feedback.dialog.bug.diagnostics": "Technical details sent along",
|
||||
"feedback.dialog.send": "Send",
|
||||
"restartNotice.title": "Brief interruption",
|
||||
"restartNotice.body": "The server is about to restart briefly. Your connection will drop for a moment.",
|
||||
"restartNotice.ack": "Got it",
|
||||
"menu.extras.tos": "Terms of use",
|
||||
"tos.title": "Terms of use for client.webspeak3.de",
|
||||
"tos.rule1": "This client is for private, non-commercial use of TeamSpeak/TeaSpeak/VoySpeak servers via the browser.",
|
||||
"tos.rule2": "Prohibited in particular: any criminal activity, harassment and hate speech, spam and flooding, disrupting the service, and circumventing bans.",
|
||||
"tos.rule3": "Violations may result in access being blocked without warning; serious cases may be reported to the relevant authorities.",
|
||||
"tos.rule4Pre": "For operational security and abuse detection, connections are logged (server address, server name, timestamp) and automatically deleted after 90 days – see the ",
|
||||
"tos.rule4Post": ".",
|
||||
"tos.privacyLinkText": "privacy policy",
|
||||
"tos.rule5Pre": "For abuse or complaints: see the ",
|
||||
"tos.rule5Post": ".",
|
||||
"tos.legalLinkText": "legal notice (Impressum)",
|
||||
"tos.rule6": "By clicking \"Accept\" you agree to these terms. Your acceptance is stored only locally in your browser; you'll be asked again if the rules change.",
|
||||
"tos.accept": "Accept",
|
||||
"tos.close": "Close",
|
||||
"feedback.dialog.cancel": "Cancel",
|
||||
"feedback.dialog.sending": "Sending…",
|
||||
"feedback.dialog.success": "Thanks for your feedback!",
|
||||
"feedback.dialog.successWithIssue": "Thanks! Issue created:",
|
||||
"feedback.dialog.error": "Failed to send. Please try again later.",
|
||||
"toolbar.setAway": "Set away",
|
||||
"toolbar.backOnline": "Back online",
|
||||
"toolbar.awayOptions": "Away options",
|
||||
"toolbar.whisper": "Whisper targets",
|
||||
"whisper.channels": "Channels",
|
||||
"whisper.clients": "Clients",
|
||||
"whisper.clearAll": "Clear all whisper targets",
|
||||
"toolbar.micEnable": "Enable microphone",
|
||||
"toolbar.micMute": "Mute microphone",
|
||||
"toolbar.micUnmute": "Unmute microphone",
|
||||
"toolbar.vadSensitivity": "Voice activation sensitivity",
|
||||
"toolbar.pushToTalk": "Hold to talk",
|
||||
"tabAudio.start": "Share tab or window audio into the voice channel (headphones avoid an echo)",
|
||||
"tabAudio.stop": "Stop sharing audio",
|
||||
"tabAudio.noAudio": "No audio was shared. In the picker, choose a tab or window and turn on its audio.",
|
||||
"tabAudio.silent": "Nothing has come through from the shared audio for 5 seconds. System audio doesn't deliver sound on every Windows machine; share a browser tab instead (e.g. Spotify on the web or YouTube) with \"Share tab audio\" turned on.",
|
||||
"toolbar.muteSound": "Mute sound (deafen)",
|
||||
"toolbar.unmuteSound": "Unmute sound (undeafen)",
|
||||
"toolbar.chooseOutputDevice": "Choose output device",
|
||||
"toolbar.toggleTheme": "Toggle theme",
|
||||
"away.setGlobal": "Set globally away",
|
||||
"away.setGlobalStatus": "Set global away status",
|
||||
"connect.title": "Connect",
|
||||
"connect.novaSubtitle": "WebSpeak3 runs entirely in the browser — no download needed",
|
||||
"connect.serverAddress": "Server nickname or address:",
|
||||
"connect.serverPassword": "Server password:",
|
||||
"connect.nickname": "Nickname:",
|
||||
"connect.phoneticNickname": "Phonetic nickname:",
|
||||
"connect.identity": "Identity:",
|
||||
"connect.defaultChannel": "Default channel:",
|
||||
"connect.recordingProfile": "Capture profile:",
|
||||
"connect.channelPassword": "Channel password:",
|
||||
"connect.playbackProfile": "Playback profile:",
|
||||
"connect.onetimeGrant": "One-time privilege key:",
|
||||
"connect.serverType": "Server type:",
|
||||
"connect.serverType.auto": "Auto",
|
||||
"connect.serverType.teamspeak": "TeamSpeak",
|
||||
"connect.serverType.teaspeak": "TeaSpeak",
|
||||
"connect.hotkeyProfile": "Hotkey profile:",
|
||||
"connect.soundPack": "Sound pack:",
|
||||
"connect.more": "More",
|
||||
"connect.less": "Less",
|
||||
"connect.connect": "Connect",
|
||||
"connect.connecting": "Connecting…",
|
||||
"connect.newTab": "In new tab",
|
||||
"connect.cancel": "Cancel",
|
||||
"channelPasswordDialog.title": "Channel password required",
|
||||
"channelPasswordDialog.prompt": "This channel is password-protected. Please enter the password:",
|
||||
"channelPasswordDialog.wrongPassword": "Wrong password, please try again:",
|
||||
"channelPasswordDialog.submit": "Join",
|
||||
"channelPasswordDialog.cancel": "Cancel",
|
||||
"collectedUrls.title": "Collected URLs",
|
||||
"collectedUrls.search": "Search:",
|
||||
"collectedUrls.url": "URL",
|
||||
"collectedUrls.count": "Count",
|
||||
"collectedUrls.lastSeen": "Last mentioned",
|
||||
"collectedUrls.mentionedBy": "Mentioned by",
|
||||
"collectedUrls.clearList": "Clear list",
|
||||
"inviteFriend.title": "Invite a friend",
|
||||
"inviteFriend.type": "Invitation type",
|
||||
"inviteFriend.includeChannel": "Insert current channel",
|
||||
"inviteFriend.link": "Link",
|
||||
"inviteFriend.webspeak3Link": "WebSpeak3 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}",
|
||||
"whisperSettings.subtitle": "Whisper settings",
|
||||
"whisperSettings.rights": "Permissions for incoming whispers",
|
||||
"whisperSettings.mode.allow": "Use individual contact settings, otherwise allow",
|
||||
"whisperSettings.mode.block": "Use individual contact settings, otherwise block",
|
||||
"whisperSettings.mode.blockAll": "Block all",
|
||||
"whisperSettings.incoming": "Incoming whisper settings",
|
||||
"whisperSettings.sound": "Play a sound when someone whispers to you",
|
||||
"whisperSettings.openHistory": "Always open the whisper history when someone whispers to you",
|
||||
"whisperSettings.clearAfter": "Remove clients from the whisper history after",
|
||||
"whisperSettings.minutes": "minutes",
|
||||
"whisperHistory.received": "{name} whispered to you",
|
||||
"whisperHistory.stopped": "Stopped whispering",
|
||||
"whisperHistory.clear": "Clear",
|
||||
"whisperHistory.options": "Options",
|
||||
"whisperLists.title": "Whisper Lists",
|
||||
"whisperLists.namePlaceholder": "List name",
|
||||
"whisperLists.saveCurrent": "Save current selection",
|
||||
"whisperLists.itemDetail": "{channels} channels, {clients} clients",
|
||||
"whisperLists.activate": "Activate",
|
||||
"whisperLists.delete": "Delete",
|
||||
"whisperLists.empty": "No whisper lists saved yet. Select whisper targets and save them here as a list.",
|
||||
"identities.title": "Identities",
|
||||
"identities.activate": "Activate",
|
||||
"identities.add": "New Identity",
|
||||
"identities.delete": "Delete",
|
||||
"identities.newName": "New Identity",
|
||||
"identities.generated": "Generated",
|
||||
"identities.pending": "Will be generated on next connection",
|
||||
"identities.listLabel": "Local Identities",
|
||||
"identities.name": "Identity Name:",
|
||||
"identities.phoneticNickname": "Phonetic Nickname:",
|
||||
"identities.uniqueId": "Unique ID:",
|
||||
"identities.unknown": "Unknown",
|
||||
"identities.setDefault": "Set as Default",
|
||||
"identities.isDefault": "Currently used as default",
|
||||
"identities.export": "Export",
|
||||
"identities.import": "Import",
|
||||
"connectionInfo.clientTitle": "Connection Info - {name}",
|
||||
"connectionInfo.serverTitle": "Server Connection Info",
|
||||
"connectionInfo.loading": "Loading…",
|
||||
"connectionInfo.unavailable": "No response from the server (missing permission?).",
|
||||
"connectionInfo.ping": "Ping:",
|
||||
"connectionInfo.connectedSince": "Connected since:",
|
||||
"connectionInfo.uptime": "Uptime:",
|
||||
"connectionInfo.name": "Name:",
|
||||
"connectionInfo.avgPing": "Average ping:",
|
||||
"connectionInfo.avgPacketLoss": "Average packet loss:",
|
||||
"connectionInfo.incoming": "Incoming",
|
||||
"connectionInfo.outgoing": "Outgoing",
|
||||
"connectionInfo.packetsTransferred": "Packets transferred",
|
||||
"connectionInfo.bytesTransferred": "Bytes transferred",
|
||||
"connectionInfo.bandwidthLastSecond": "Bandwidth last second",
|
||||
"connectionInfo.bandwidthLastMinute": "Bandwidth last minute",
|
||||
"connectionInfo.ftBandwidth": "File transfer bandwidth",
|
||||
"connectionInfo.ftBytes": "File transfer bytes",
|
||||
"connectionInfo.ip": "IP address:",
|
||||
"connectionInfo.packetLoss": "Packet loss:",
|
||||
"connectionInfo.packetsSent": "Packets sent:",
|
||||
"connectionInfo.packetsReceived": "Packets received:",
|
||||
"connectionInfo.bytesSent": "Data sent:",
|
||||
"connectionInfo.bytesReceived": "Data received:",
|
||||
"connectionInfo.bandwidthSent": "Bandwidth sent:",
|
||||
"connectionInfo.bandwidthReceived": "Bandwidth received:",
|
||||
"menu.self.recordingProfile": "Recording Profile",
|
||||
"menu.self.playbackProfile": "Playback Profile",
|
||||
"menu.self.hotkeyProfile": "Hotkey Profile",
|
||||
"menu.self.soundPack": "Sound Pack",
|
||||
"menu.self.setAway": "Set Away",
|
||||
"menu.self.enableMic": "Enable Microphone",
|
||||
"menu.self.disableMic": "Disable Microphone",
|
||||
"menu.self.muteOutput": "Mute Speakers/Headphones",
|
||||
"menu.self.unmuteOutput": "Unmute Speakers/Headphones",
|
||||
"menu.self.changeNickname": "Change Nickname",
|
||||
"menu.self.requestTalkPower": "Request Talk Power",
|
||||
"menu.self.setAvatar": "Set Avatar",
|
||||
"menu.self.setPhoneticNickname": "Set Phonetic Nickname",
|
||||
"menu.self.connectionInfo": "Connection Info",
|
||||
"contacts.title": "Contacts",
|
||||
"contacts.addOnlineClient": "Select an online client...",
|
||||
"contacts.add": "Add",
|
||||
"contacts.remove": "Remove",
|
||||
"contacts.empty": "No contacts yet.",
|
||||
"contacts.customName": "Custom Name:",
|
||||
"contacts.category.acquaintance": "Acquaintance",
|
||||
"contacts.category.blocked": "Blocked",
|
||||
"contacts.category.friend": "Friend",
|
||||
"contacts.phoneticName": "Phonetic Name:",
|
||||
"contacts.whisperSetting": "Whisper:",
|
||||
"contacts.whisperSetting.default": "Default",
|
||||
"contacts.whisperSetting.allow": "Allow",
|
||||
"contacts.whisperSetting.block": "Block",
|
||||
"contacts.show": "Show",
|
||||
"contacts.ignore": "Ignore",
|
||||
"contacts.unignore": "Unignore",
|
||||
"contacts.whisper": "Whisper",
|
||||
"contacts.preferences": "Preferences",
|
||||
"favorites.title": "🔖 myTeamSpeak Bookmarks",
|
||||
"favorites.synced": "Synced Bookmarks",
|
||||
"favorites.notLoggedIn": "Not logged in",
|
||||
"favorites.local": "Local Bookmarks",
|
||||
"favorites.unnamed": "(unnamed)",
|
||||
"favorites.bookmarkName": "Bookmark name:",
|
||||
"favorites.newFavoriteName": "New bookmark",
|
||||
"favorites.showServerQueryClients": "Show ServerQuery clients",
|
||||
"favorites.connectOnStartup": "Connect on startup",
|
||||
"favorites.new": "New bookmark",
|
||||
"favorites.newFolder": "New folder",
|
||||
"favorites.remove": "Remove",
|
||||
"favorites.ok": "OK",
|
||||
"favorites.cancel": "Cancel",
|
||||
"favorites.apply": "Apply",
|
||||
"away.dialog.title": "Set away message",
|
||||
"away.dialog.message": "Message:",
|
||||
"away.dialog.template": "Template:",
|
||||
"away.dialog.none": "<None>",
|
||||
"away.dialog.ok": "OK",
|
||||
"away.dialog.save": "Save",
|
||||
"away.dialog.cancel": "Cancel",
|
||||
"options.title": "Options",
|
||||
"options.ok": "OK",
|
||||
"options.cancel": "Cancel",
|
||||
"options.notImplemented": "This setting isn't implemented yet.",
|
||||
"options.section.anwendung": "Application",
|
||||
"options.section.konto": "Account",
|
||||
"options.section.wiedergabe": "Playback",
|
||||
"options.section.aufnahme": "Capture",
|
||||
"options.section.design": "Appearance",
|
||||
"design.subtitle": "Choose the application's look.",
|
||||
"design.theme.standard": "Standard",
|
||||
"design.theme.standard.desc": "The original WebSpeak3 design.",
|
||||
"design.theme.nova": "Nova",
|
||||
"design.theme.nova.desc": "A more modern, dark design with rounded elements.",
|
||||
"design.theme.pulse": "Pulse",
|
||||
"design.theme.pulse.desc": "Card-based layout with a breadcrumb bar and a color accent.",
|
||||
"design.theme.ide": "Command Center",
|
||||
"design.theme.ide.desc": "A technical, flat IDE-style layout for power users.",
|
||||
"design.idePixelFont": "Pixel terminal font",
|
||||
"design.theme": "Theme",
|
||||
"design.customThemes": "Custom designs",
|
||||
"design.iconPack": "Icon pack",
|
||||
"design.manage": "Manage designs & icons…",
|
||||
"design.manage.title": "Manage designs & icons",
|
||||
"design.iconPack.none": "No icon pack installed yet.",
|
||||
"design.iconPack.import": "Import icon pack",
|
||||
"design.iconPack.importError": "This file could not be read as an icon pack.",
|
||||
"design.iconPack.deleteConfirm": "Really delete this icon pack?",
|
||||
"design.iconPack.hint": "TeamSpeak 3 icon packs (.ts3_iconpack) or ZIPs with images named the same way. Replaces talk lamps, mic/sound muted, away, channel commander, channel and server icons.",
|
||||
"design.notAvailable": "Not available in the web client yet",
|
||||
"design.gif": "GIF animation support",
|
||||
"design.gif.avatars": "Enable avatar animation",
|
||||
"design.gif.images": "Enable image animation",
|
||||
"design.tree": "Channel tree",
|
||||
"design.tree.expandAll": "Expand all channels on connect",
|
||||
"design.tree.expandDepth": "Expand channels up to this level (0 = all)",
|
||||
"design.tree.expandOwn": "Expand only my own channel on connect",
|
||||
"design.tree.clientsBelow": "Sort clients below channels",
|
||||
"design.tree.flags": "Show client flags",
|
||||
"design.tree.overwolf": "Show Overwolf icons",
|
||||
"design.tree.badges": "Show badges",
|
||||
"design.tree.groupIconsInMenus": "Show group icons in context menus",
|
||||
"design.tree.hideInaccessibleGroups": "Hide inaccessible groups in context menus",
|
||||
"design.tree.commanderLamp": "Show channel commander as lamp",
|
||||
"design.tree.awayMessage": "Show away message next to nickname",
|
||||
"design.tree.tooltips": "Show tooltip info on hover",
|
||||
"design.status.connected": "Connected",
|
||||
"design.custom.new": "+ New design",
|
||||
"design.custom.import": "Import design",
|
||||
"design.custom.edit": "Edit",
|
||||
"design.custom.duplicate": "Duplicate",
|
||||
"design.custom.export": "Export",
|
||||
"design.custom.delete": "Delete",
|
||||
"design.custom.deleteConfirm": "Really delete this design?",
|
||||
"design.custom.newTitle": "Create a new design",
|
||||
"design.custom.editTitle": "Edit design",
|
||||
"design.custom.name": "Name",
|
||||
"design.custom.base": "Base layout",
|
||||
"design.custom.css": "CSS",
|
||||
"design.custom.hint": "This CSS loads while the design is active. Use .ts-app { ... } and the existing CSS variables (--accent, --bg, --text, --border, ...) to adjust colors, radii and spacing - with .ts-app .some-class { display: none } or order you can even change the layout.",
|
||||
"design.custom.save": "Save",
|
||||
"design.custom.copyOf": "Copy of {name}",
|
||||
"design.custom.importError": "This file couldn't be read as a WebSpeak3 design.",
|
||||
"design.store.open": "Store",
|
||||
"design.store.title": "Design store",
|
||||
"design.store.back": "Back",
|
||||
"design.store.loading": "Loading…",
|
||||
"design.store.unavailable": "The design store isn't available on this server.",
|
||||
"design.store.empty": "No designs in the store yet.",
|
||||
"design.store.install": "Install",
|
||||
"design.store.installed": "Installed",
|
||||
"design.store.by": "by {author}",
|
||||
"design.store.screenshotAlt": "Screenshot of {name}",
|
||||
"design.store.rating.rate": "Rate {stars} stars",
|
||||
"design.store.rating.summary": "{average} ({count})",
|
||||
"design.store.rating.none": "No ratings yet",
|
||||
"design.store.publishTitle": "Publish a design",
|
||||
"design.store.publish.select": "Choose one of your own designs",
|
||||
"design.store.publish.none": "You don't have a custom design to publish yet.",
|
||||
"design.store.publish.author": "Your name (optional)",
|
||||
"design.store.publish.authorPlaceholder": "Anonymous",
|
||||
"design.store.publish.description": "Description (optional)",
|
||||
"design.store.publish.descriptionPlaceholder": "What makes this design special?",
|
||||
"design.store.publish.screenshot": "Screenshot (optional)",
|
||||
"design.store.publish.screenshotTooLarge": "That image is too large. Please use a smaller screenshot.",
|
||||
"design.store.publish.adminToken": "Admin token (only needed for reserved names)",
|
||||
"design.store.publish.adminTokenPlaceholder": "Leave empty unless you know what this is",
|
||||
"design.store.publish.submit": "Publish to the store",
|
||||
"design.store.publish.success": "Design published!",
|
||||
"design.store.publish.pending": "Thanks! Your design was submitted and will appear in the store once it has been reviewed.",
|
||||
"design.store.publish.duplicate": "This design is already in the store. Change it a little before publishing it again.",
|
||||
"design.store.publish.error": "Publishing failed.",
|
||||
"options.section.erweiterungen": "Addons",
|
||||
"options.section.hotkeys": "Hotkeys",
|
||||
"options.section.whispern": "Whisper",
|
||||
"options.section.downloads": "Downloads",
|
||||
"options.section.chat": "Chat",
|
||||
"options.section.sicherheit": "Security",
|
||||
"options.section.nachrichten": "Messages",
|
||||
"options.section.meldungen": "Notifications",
|
||||
"options.section.sounds": "Sounds",
|
||||
"app.title": "Application",
|
||||
"app.subtitle": "General application settings",
|
||||
"app.group.server": "Server",
|
||||
"app.group.misc": "Miscellaneous",
|
||||
"app.group.subscribe": "Channel subscription behavior",
|
||||
"app.group.privacy": "Privacy",
|
||||
"app.micOnServerSwitch": "Automatically activate microphone when switching servers",
|
||||
"app.reconnectAfterSleep": "Reconnect after sleep mode",
|
||||
"app.middleClickQuickAccess": "Use middle mouse button as quick access in the tree",
|
||||
"app.updateFavoriteNickname": "Automatically update nickname in favorites",
|
||||
"app.autoOpenChannelChat": "Open channel chats automatically",
|
||||
"app.mutedTalkingSound": "Play a sound when talking while the microphone is muted",
|
||||
"app.neverShowPokeDialog": "Never show poke dialog",
|
||||
"app.subscribe.all": "Subscribe to all channels",
|
||||
"app.subscribe.current": "Only subscribe to current and previously subscribed channels",
|
||||
"app.language": "Language",
|
||||
"app.language.auto": "System default",
|
||||
"app.language.de": "Deutsch",
|
||||
"app.language.en": "English",
|
||||
"app.language.zh-CN": "简体中文",
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.helpTranslate": "Missing your language or spotted a wrong translation? Help out on Weblate →",
|
||||
"app.serverBanner": "Show server banners",
|
||||
"app.serverBanner.hint": "The banner loads straight from the address the server admin set, and that host sees your IP address.",
|
||||
"app.chatImages": "Load images in chat",
|
||||
"app.chatImages.hint": "Images from [img] tags and Markdown load straight from the address the sender picked, and that host sees your IP address. When off, they show as links.",
|
||||
"playback.title": "Playback",
|
||||
"playback.subtitle": "Change your playback settings",
|
||||
"playback.profile": "Profile",
|
||||
"playback.default": "Default",
|
||||
"playback.device": "Playback device:",
|
||||
"playback.systemDefault": "System default",
|
||||
"playback.quiet": "Quiet",
|
||||
"playback.loud": "Loud",
|
||||
"playback.voiceVolume": "Voice volume",
|
||||
"playback.playTestTone": "▶ Play test sound",
|
||||
"playback.options": "Options",
|
||||
"playback.autoVolume": "Automatic volume adjustment",
|
||||
"playback.ownMicClicks": "Play mic clicks for own client",
|
||||
"playback.otherMicClicks": "Play mic clicks for other clients",
|
||||
"recording.title": "Capture",
|
||||
"recording.subtitle": "Change your capture settings",
|
||||
"recording.device": "Capture device:",
|
||||
"recording.activation": "Activation",
|
||||
"recording.pushToTalk": "Push-To-Talk",
|
||||
"recording.pttKey": "Push-to-talk key:",
|
||||
"recording.pttKeyNone": "Not set",
|
||||
"recording.pttKeyPress": "Press a key or mouse button…",
|
||||
"recording.pttHint": "Any key or mouse button (middle or side buttons) works, but only while WebSpeak3 is the active window. Browsers don't let websites see input in other programs, so it won't work while you're in a game. You can also hold the 🗣️ button in the toolbar.",
|
||||
"hotkeys.subtitle": "Keyboard and mouse shortcuts",
|
||||
"hotkeys.pttEnabled": "Use push-to-talk (instead of voice activation)",
|
||||
"hotkeys.shortcuts": "Shortcuts",
|
||||
"hotkeys.shortcutsHint": "These don't fire while you're typing in a text field.",
|
||||
"recording.continuous": "Continuous transmission",
|
||||
"recording.voiceActivation": "Voice activation detection",
|
||||
"recording.testStart": "Start test",
|
||||
"recording.testStop": "Stop test",
|
||||
"recording.hangoverDelay": "Delay before deactivation:",
|
||||
"recording.secondsUnit": "sec",
|
||||
"recording.dsp": "Digital Signal Processing",
|
||||
"recording.typingAttenuation": "Typing attenuation",
|
||||
"recording.echoCancellation": "Echo cancellation",
|
||||
"recording.noiseSuppression": "Remove background noise",
|
||||
"recording.autoGainControl": "Automatic gain control",
|
||||
"recording.aec3": "Advanced echo cancellation (Beta, more CPU load)",
|
||||
"info.address": "Address:",
|
||||
"info.version": "Version:",
|
||||
"info.license": "License:",
|
||||
"info.currentClients": "Current clients:",
|
||||
"info.currentChannels": "Current channels:",
|
||||
"info.topic": "Topic:",
|
||||
"info.audioCodec": "Audio codec:",
|
||||
"info.spacer": "Spacer:",
|
||||
"info.rawName": "Raw name:",
|
||||
"info.passwordProtected": "Password protected:",
|
||||
"info.clients": "Clients:",
|
||||
"info.country": "Country:",
|
||||
"info.muted": "Microphone muted:",
|
||||
"info.outputMuted": "Speakers muted:",
|
||||
"info.serverGroups": "Server groups:",
|
||||
"info.yes": "Yes",
|
||||
"info.no": "No",
|
||||
"tree.noMatches": "No matches",
|
||||
"tree.search": "Search channels and users",
|
||||
"tree.label": "Channels",
|
||||
"tree.notConnected": "Not connected",
|
||||
"tree.clickToSelect": "Click to select, double-click to join",
|
||||
"tree.clickToJoin": "Double-click to join",
|
||||
"tree.joinNotConnected": "Not connected — cannot switch channel",
|
||||
"tree.passwordProtected": "Password protected",
|
||||
"tree.privateChatWith": "Private chat with",
|
||||
"tree.poke": "Poke",
|
||||
"tree.channelCommander": "Channel commander",
|
||||
"tree.away": "Away",
|
||||
"tree.micMuted": "Microphone muted",
|
||||
"tree.talking": "Talking",
|
||||
"tree.noTalkPower": "No talk power in this channel",
|
||||
"tree.soundMuted": "Sound muted (deafened)",
|
||||
"tree.streaming": "Broadcasting a stream",
|
||||
"publish.alpha": "Alpha",
|
||||
"publish.alphaTitle": "Alpha - unstable, may change or break at any time",
|
||||
"publish.demoUnavailable": "Streaming is not available in the demo - it needs a real TeamSpeak 6 server.",
|
||||
"publish.alphaNote": "Streaming is alpha. It speaks TeamSpeak 6's undocumented Stream/Call protocol, so connecting, picture quality and viewer handling can fail or change without notice. Not meant for production use.",
|
||||
"publish.start": "Share your screen",
|
||||
"publish.stop": "Stop sharing",
|
||||
"publish.title": "Your broadcast",
|
||||
"publish.screen": "Screen",
|
||||
"publish.starting": "Starting…",
|
||||
"publish.viewers": "{count} watching",
|
||||
"publish.request.allow": "Allow",
|
||||
"publish.request.deny": "Deny",
|
||||
"publish.request.block": "Block",
|
||||
"publish.request.blockHint": "Deny and stop asking",
|
||||
"publish.dialog.title": "Stream settings",
|
||||
"publish.dialog.basic": "Basic settings",
|
||||
"publish.dialog.advanced": "Advanced settings",
|
||||
"publish.dialog.golive": "Go live",
|
||||
"publish.dialog.cancel": "Back",
|
||||
"publish.preset": "Preset",
|
||||
"publish.preset.presentation": "Presentation",
|
||||
"publish.audio": "Capture audio",
|
||||
"publish.privacy": "Privacy",
|
||||
"publish.privacy.public": "Public",
|
||||
"publish.privacy.contacts": "Contacts",
|
||||
"publish.privacy.private": "Private",
|
||||
"publish.resolution": "Resolution",
|
||||
"publish.res.source": "Source",
|
||||
"publish.fps": "FPS",
|
||||
"publish.bitrate": "Bitrate",
|
||||
"publish.audioBitrate": "Audio bitrate [Kbps]",
|
||||
"publish.viewerLimit": "Viewer limit",
|
||||
"publish.mode": "Connection mode",
|
||||
"publish.mode.p2p": "P2P",
|
||||
"publish.mode.server": "Server",
|
||||
"publish.mode.serverUnavailable": "Server mode goes through TS6's SFU and is not implemented yet.",
|
||||
"stream.untitled": "Stream",
|
||||
"stream.stop": "Close stream",
|
||||
"stream.live": "Live",
|
||||
"stream.state.new": "Waiting for offer…",
|
||||
"stream.state.connecting": "Connecting…",
|
||||
"stream.state.connected": "Live",
|
||||
"stream.state.disconnected": "Connection interrupted",
|
||||
"stream.state.failed": "Connection failed",
|
||||
"stream.state.closed": "Ended",
|
||||
"chat.server": "Server",
|
||||
"chat.channel": "Channel",
|
||||
"chat.notConnected": "Not connected",
|
||||
"chat.messageChannel": "Message channel...",
|
||||
"chat.messageServer": "Message server...",
|
||||
"chat.messagePartner": "Message {name}...",
|
||||
"chat.send": "Send",
|
||||
"chat.you": "You",
|
||||
"serverLog.clientJoin": "{client} entered channel \"{channel}\"",
|
||||
"serverLog.clientLeave": "{client} disconnected (Left)",
|
||||
"serverLog.clientChannelSwitch": "{client} moved from channel \"{fromChannel}\" to \"{toChannel}\"",
|
||||
"serverLog.clientChannelGroupAssigned": "Channel group \"{group}\" was assigned to {client}",
|
||||
"serverLog.channelCreated": "Channel \"{channel}\" was created",
|
||||
"serverLog.channelDeleted": "Channel \"{channel}\" was deleted",
|
||||
"serverLog.channelEdited": "Channel \"{channel}\" was edited",
|
||||
"serverLog.serverEdited": "Server settings were changed",
|
||||
"serverLog.permissionError": "Missing permission: {action}",
|
||||
"poke.title": "Poke",
|
||||
"poke.optionalMessage": "Optional message...",
|
||||
"poke.send": "Poke",
|
||||
"poke.cancel": "Cancel",
|
||||
"poke.pokedYou": "poked you",
|
||||
"poke.dismiss": "Dismiss",
|
||||
"kick.title": "Kick:",
|
||||
"kick.reasonPlaceholder": "Reason (optional)...",
|
||||
"kick.confirm": "Kick",
|
||||
"kick.cancel": "Cancel",
|
||||
"ban.title": "Ban:",
|
||||
"ban.reasonPlaceholder": "Reason (optional)...",
|
||||
"ban.duration": "Duration:",
|
||||
"ban.durationPermanent": "Permanent",
|
||||
"ban.duration1h": "1 hour",
|
||||
"ban.duration1d": "1 day",
|
||||
"ban.duration1w": "1 week",
|
||||
"ban.confirm": "Ban",
|
||||
"ban.cancel": "Cancel",
|
||||
"serverEdit.title": "Edit Virtual Server",
|
||||
"serverEdit.tab.host": "Host",
|
||||
"serverEdit.tab.misc": "Misc",
|
||||
"serverEdit.tab.transmission": "Transmission",
|
||||
"serverEdit.tab.antiflood": "Anti-Flood",
|
||||
"serverEdit.tab.security": "Security",
|
||||
"serverEdit.tab.log": "Log",
|
||||
"serverEdit.name": "Server name:",
|
||||
"serverEdit.welcomeMessage": "Welcome message:",
|
||||
"serverEdit.clearPassword": "Remove server password",
|
||||
"serverEdit.newPassword": "New server password:",
|
||||
"serverEdit.hostmessage": "Host message:",
|
||||
"serverEdit.hostmessageMode": "Display mode:",
|
||||
"serverEdit.hostmessageMode.none": "Don't display",
|
||||
"serverEdit.hostmessageMode.log": "Display in log",
|
||||
"serverEdit.hostmessageMode.modal": "Display as dialog",
|
||||
"serverEdit.hostmessageMode.modalquit": "Display as dialog and disconnect",
|
||||
"serverEdit.hostbannerUrl": "Host banner URL:",
|
||||
"serverEdit.hostbannerGfxUrl": "Host banner image URL:",
|
||||
"serverEdit.hostbannerGfxInterval": "Banner refresh (seconds):",
|
||||
"serverEdit.hostbannerMode": "Banner scaling:",
|
||||
"serverEdit.hostbannerMode.noadjust": "Don't adjust",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "Adjust (ignore aspect ratio)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "Adjust (keep aspect ratio)",
|
||||
"serverEdit.hostbuttonTooltip": "Host button tooltip:",
|
||||
"serverEdit.hostbuttonUrl": "Host button URL:",
|
||||
"serverEdit.hostbuttonGfxUrl": "Host button image URL:",
|
||||
"serverEdit.maxClients": "Max clients:",
|
||||
"serverEdit.nickname": "Server nickname:",
|
||||
"serverEdit.phoneticName": "Phonetic name:",
|
||||
"serverEdit.codecEncryptionMode": "Voice encryption:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "Configurable per channel",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "Globally disabled",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "Globally enabled",
|
||||
"serverEdit.unchanged": "Leave unchanged",
|
||||
"serverEdit.save": "Save",
|
||||
"serverEdit.cancel": "Cancel",
|
||||
"serverProtocolLog.title": "Server Log",
|
||||
"serverProtocolLog.empty": "No log entries.",
|
||||
"banList.title": "Ban List",
|
||||
"banList.empty": "No bans found.",
|
||||
"banList.name": "Name",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "Created",
|
||||
"banList.duration": "Duration",
|
||||
"banList.invoker": "By",
|
||||
"banList.reason": "Reason",
|
||||
"banList.permanent": "Permanent",
|
||||
"banList.delete": "Delete",
|
||||
"banList.deleteAll": "Delete all",
|
||||
"complainList.title": "Complaint List",
|
||||
"complainList.empty": "No complaints found.",
|
||||
"complainList.target": "Target",
|
||||
"complainList.from": "From",
|
||||
"complainList.message": "Message",
|
||||
"complainList.timestamp": "Timestamp",
|
||||
"offlineMessages.title": "Offline Messages",
|
||||
"offlineMessages.empty": "No messages found.",
|
||||
"offlineMessages.subject": "Subject",
|
||||
"offlineMessages.from": "From",
|
||||
"offlineMessages.timestamp": "Timestamp",
|
||||
"offlineMessages.targetUid": "Target UID",
|
||||
"offlineMessages.message": "Message",
|
||||
"offlineMessages.send": "Send",
|
||||
"offlineMessages.new": "New message",
|
||||
"offlineMessages.markRead": "Mark as read",
|
||||
"offlineMessages.backToList": "Back to list",
|
||||
"dialog.cancel": "Cancel",
|
||||
"groupAssign.channelTitle": "Assign Channel Group",
|
||||
"groupAssign.serverTitle": "Assign Server Group",
|
||||
"groupAssign.empty": "No groups found.",
|
||||
"groupAssign.clickToRemove": "Click to remove",
|
||||
"serverQueryLogin.username": "Username",
|
||||
"serverQueryLogin.password": "Password",
|
||||
"serverQueryLogin.login": "Login",
|
||||
"permissionOverview.title": "My Permissions",
|
||||
"permissionOverview.empty": "No permissions found.",
|
||||
"permissionOverview.name": "Permission",
|
||||
"permissionOverview.value": "Value",
|
||||
"permissionOverview.negated": "Negated",
|
||||
"permissionOverview.skip": "Skip",
|
||||
"permsEditor.title": "Permissions",
|
||||
"permsEditor.tab.server": "Server Groups",
|
||||
"permsEditor.tab.client": "Client Permissions",
|
||||
"permsEditor.tab.channel": "Channel Permissions",
|
||||
"permsEditor.tab.channelgroup": "Channel Groups",
|
||||
"permsEditor.tab.channelclient": "Channel Client Permissions",
|
||||
"permsEditor.clientDbId": "Unique client DB ID:",
|
||||
"permsEditor.load": "Load",
|
||||
"permsEditor.pickOnlineClient": "Or pick an online client...",
|
||||
"permsEditor.pickTarget": "Pick a group/channel on the left, or enter a client ID.",
|
||||
"permsEditor.addPermission": "Add",
|
||||
"permsEditor.searchPermission": "Search permission...",
|
||||
"dialog.ok": "OK",
|
||||
"channelContext.join": "Switch to channel",
|
||||
"channelContext.files": "Files...",
|
||||
"fileBrowser.title": "File Transfers",
|
||||
"fileBrowser.up": "Up",
|
||||
"fileBrowser.tooLarge": "File too large – uploads are limited to {mb} MiB.",
|
||||
"fileBrowser.refresh": "Refresh",
|
||||
"fileBrowser.newFolder": "New Folder",
|
||||
"fileBrowser.upload": "Upload",
|
||||
"fileBrowser.folderName": "Folder name",
|
||||
"fileBrowser.empty": "This folder is empty.",
|
||||
"fileBrowser.name": "Name",
|
||||
"fileBrowser.size": "Size",
|
||||
"fileBrowser.modified": "Modified",
|
||||
"fileBrowser.download": "Download",
|
||||
"fileBrowser.rename": "Rename",
|
||||
"fileBrowser.delete": "Delete",
|
||||
"fileBrowser.deleteConfirm": "Really delete?",
|
||||
"fileBrowser.uploading": "Uploading...",
|
||||
"fileBrowser.downloading": "Downloading...",
|
||||
"serverContext.icons": "Server Icons...",
|
||||
"serverIcons.title": "Manage Server Icons",
|
||||
"serverIcons.upload": "Upload Icon",
|
||||
"serverIcons.iconId": "Icon ID",
|
||||
"serverIcons.empty": "No icons found.",
|
||||
"clientContext.privateChat": "Private chat",
|
||||
"clientContext.poke": "Poke",
|
||||
"clientContext.watchStream": "Watch stream",
|
||||
"clientContext.moveTo": "Move to…",
|
||||
"clientContext.volume": "Volume",
|
||||
"clientContext.volumeHint": "Only for you. Double-click resets to 100%.",
|
||||
"clientContext.copyName": "Copy name",
|
||||
"clientContext.connectionInfo": "Show connection info",
|
||||
"clientContext.addWhisperTarget": "Add as whisper target",
|
||||
"clientContext.removeWhisperTarget": "Remove as whisper target",
|
||||
"clientContext.assignChannelGroup": "Assign channel group",
|
||||
"clientContext.assignServerGroup": "Assign server group",
|
||||
"clientContext.kickChannel": "Kick from channel",
|
||||
"clientContext.kick": "Kick from server",
|
||||
"clientContext.ban": "Ban",
|
||||
"clientContext.notSupported": "Not yet supported in the web client",
|
||||
"moveClient.title": "Move",
|
||||
"moveClient.empty": "No channels available.",
|
||||
"moveClient.current": "Current channel",
|
||||
"moveClient.spacer": "Spacer",
|
||||
"serverContext.connectionInfo": "Server Connection Info",
|
||||
"serverContext.copyAddress": "Copy server address",
|
||||
"serverContext.addFavorite": "Add to favorites",
|
||||
"serverContext.disconnect": "Disconnect",
|
||||
"connectError.dismiss": "Dismiss",
|
||||
"connectError.gatewayFull": "The gateway is full right now. Try again in a few minutes – or host WebSpeak3 yourself: github.com/WebSpeak3/webspeak3",
|
||||
"dialog.close": "Close",
|
||||
"sounds.title": "Sounds",
|
||||
"sounds.subtitle": "Configure sound notifications for events",
|
||||
"sounds.enable": "Enable sounds",
|
||||
"sounds.volume": "Volume",
|
||||
"sounds.eventEnable": "Enable this sound",
|
||||
"sounds.event.connect": "Connected",
|
||||
"sounds.event.disconnect": "Disconnected",
|
||||
"sounds.event.clientJoin": "Client joins",
|
||||
"sounds.event.clientLeave": "Client leaves",
|
||||
"sounds.event.message": "Message received",
|
||||
"sounds.event.poke": "Poke received",
|
||||
"sounds.event.mute": "Mute toggled",
|
||||
"sounds.event.micClickOn": "Mic click on",
|
||||
"sounds.event.micClickOff": "Mic click off",
|
||||
"sounds.event.whisper": "Whisper received",
|
||||
"sounds.default": "Default",
|
||||
"sounds.custom": "Custom file: {name}",
|
||||
"sounds.test": "▶ Test",
|
||||
"sounds.upload": "Upload",
|
||||
"sounds.reset": "Reset",
|
||||
"sounds.importSoundpack": "Import soundpack (.ts3soundpack)",
|
||||
"sounds.importResult": "{matched} sound(s) imported, {unmatched} file(s) not matched",
|
||||
"nachrichten.title": "Messages",
|
||||
"nachrichten.subtitle": "Customize messages",
|
||||
"nachrichten.disconnectMessage": "Disconnect:",
|
||||
"nachrichten.disconnectMessagePlaceholder": "leaving",
|
||||
"nachrichten.presetsTitle": "Preset messages",
|
||||
"nachrichten.type": "Type",
|
||||
"nachrichten.type.away": "Away",
|
||||
"nachrichten.templateName": "Template name",
|
||||
"nachrichten.message": "Message",
|
||||
"nachrichten.add": "Add",
|
||||
"nachrichten.delete": "Delete",
|
||||
"tabs.disconnect": "Disconnect",
|
||||
"identity.importInvalid": "\"{file}\" is not a valid identity file.",
|
||||
"log.fileTransferFailed": "File transfer failed:",
|
||||
"log.serverReconnecting": "Connection to the server lost, reconnecting…",
|
||||
"log.serverReconnected": "Reconnected to the server",
|
||||
"log.fileTransferInvalidAddress": "File transfer failed (invalid address)",
|
||||
"sounds.importFailed": "Could not read this soundpack - is it a valid .ts3soundpack/ZIP file?",
|
||||
"tabs.connections": "Server connections",
|
||||
"shortcut.ctrl": "Ctrl",
|
||||
"about.text": "WebSpeak3 is a TeamSpeak client for the browser, open source and with nothing to install.",
|
||||
"about.memorial.title": "In memory of Akimo",
|
||||
"about.memorial.text": "Crossed the rainbow bridge on October 21, 2026. 🌈🐾",
|
||||
"about.close": "Close",
|
||||
"menu.extras.fileTransfers": "File transfers",
|
||||
"transfers.title": "File transfers",
|
||||
"transfers.empty": "No transfers.",
|
||||
"transfers.up": "Upload",
|
||||
"transfers.down": "Download",
|
||||
"transfers.status.queued": "Queued",
|
||||
"transfers.status.running": "Running",
|
||||
"transfers.status.done": "Done",
|
||||
"transfers.status.error": "Failed",
|
||||
"transfers.clearFinished": "Remove finished",
|
||||
"transfers.finished": "Transfer finished: {name}",
|
||||
"downloadSettings.subtitle": "Download settings",
|
||||
"downloadSettings.directory": "Download directory",
|
||||
"downloadSettings.directoryLabel": "Directory for downloads:",
|
||||
"downloadSettings.browserDefault": "Browser default",
|
||||
"downloadSettings.change": "Change",
|
||||
"downloadSettings.reset": "Reset",
|
||||
"downloadSettings.alwaysDir": "Always save to this directory",
|
||||
"downloadSettings.askEachTime": "Ask for the download directory every time",
|
||||
"downloadSettings.unsupported": "This browser can't pick a folder; downloads go to the browser's download folder.",
|
||||
"downloadSettings.interface": "Interface",
|
||||
"downloadSettings.showWindowOnStart": "Show the file transfer window when a download starts",
|
||||
"downloadSettings.closeWindowWhenDone": "Close the file transfer window when all downloads are finished",
|
||||
"downloadSettings.popupWhenDone": "Show a pop-up when transfers finish",
|
||||
"downloadSettings.uploadLimit": "Upload bandwidth",
|
||||
"downloadSettings.downloadLimit": "Download bandwidth",
|
||||
"downloadSettings.maxUploads": "Simultaneous uploads",
|
||||
"downloadSettings.maxDownloads": "Simultaneous downloads",
|
||||
"downloadSettings.unlimited": "Unlimited",
|
||||
"downloadSettings.limitedTo": "Limited to",
|
||||
"chatSettings.subtitle": "Chat settings",
|
||||
"chatSettings.window": "Chat window",
|
||||
"chatSettings.maxLines": "Maximum number of lines:",
|
||||
"chatSettings.font": "Font:",
|
||||
"chatSettings.fontDefault": "Default",
|
||||
"chatSettings.fontReset": "Reset font",
|
||||
"chatSettings.fontPreview": "This is how the chat looks with this font.",
|
||||
"chatSettings.autoLog": "Automatic logging",
|
||||
"chatSettings.logChannel": "Log channel chats",
|
||||
"chatSettings.logPrivate": "Log private chats",
|
||||
"chatSettings.logServer": "Log server chats",
|
||||
"chatSettings.logHint": "Logs are only stored in this browser (last 1000 lines per chat).",
|
||||
"chatSettings.restore": "Reload logs",
|
||||
"chatSettings.restoreChannelLines": "Reload channel chat logs",
|
||||
"chatSettings.restorePrivateLines": "Reload private chat logs",
|
||||
"chatSettings.notify": "Notify on incoming messages",
|
||||
"chatSettings.notifyServer": "Server",
|
||||
"chatSettings.notifyChannel": "Channel",
|
||||
"chatSettings.notifyPrivate": "Private",
|
||||
"chatSettings.linesUnit": "lines",
|
||||
"chatSettings.last": "last",
|
||||
"securitySettings.subtitle": "Security settings",
|
||||
"securitySettings.passwords": "Passwords",
|
||||
"securitySettings.saveChannelPasswords": "Save channel passwords",
|
||||
"securitySettings.clearChannelPasswords": "Delete channel passwords",
|
||||
"securitySettings.channelPasswordsCleared": "Saved channel passwords were deleted.",
|
||||
"securitySettings.masterPassword": "Use master password",
|
||||
"securitySettings.changeMasterPassword": "Change master password",
|
||||
"securitySettings.cleanup": "Cleanup",
|
||||
"securitySettings.clearCacheOnExit": "Clear cache on exit",
|
||||
"securitySettings.clearUrlsOnExit": "Delete URLs on exit",
|
||||
"securitySettings.clearCache": "Clear cache",
|
||||
"securitySettings.cacheCleared": "Cache cleared.",
|
||||
"securitySettings.identities": "Identities",
|
||||
"securitySettings.manageIdentities": "Manage identities",
|
||||
"notify.connection": "Connection",
|
||||
"notify.connected": "Connected to server",
|
||||
"notify.disconnected": "Disconnected from server",
|
||||
"notify.lostConnection": "Lost connection to server",
|
||||
"notify.channel": "Channel",
|
||||
"notify.created": "Created",
|
||||
"notify.deleted": "Deleted",
|
||||
"notify.edited": "Edited",
|
||||
"notify.moved": "Moved",
|
||||
"notify.currentChannel": "Current channel",
|
||||
"notify.otherChannel": "Other channel",
|
||||
"notify.byYou": "By you",
|
||||
"notify.byOther": "By another client",
|
||||
"notify.server": "Server",
|
||||
"notify.insufficientPermissions": "Insufficient permissions",
|
||||
"notify.error": "Error",
|
||||
"notify.client": "Client",
|
||||
"notify.switched": "Switched channel",
|
||||
"notify.movedClient": "Moved",
|
||||
"notify.kickedChannel": "Kicked from channel",
|
||||
"notify.kickedServer": "Kicked from server",
|
||||
"notify.banned": "Banned",
|
||||
"notify.toCurrent": "To current channel",
|
||||
"notify.fromCurrent": "From current channel",
|
||||
"notify.toOther": "To other channel",
|
||||
"notify.appears": "Appears",
|
||||
"notify.stays": "Stays visible",
|
||||
"notify.disappears": "Disappears",
|
||||
"notify.serverGroup": "Server group",
|
||||
"notify.channelGroup": "Channel group changed",
|
||||
"notify.added": "Added",
|
||||
"notify.removed": "Removed",
|
||||
"notify.byServer": "By server",
|
||||
"notify.byUser": "By user",
|
||||
"notify.recording": "Recording",
|
||||
"notify.recordingStart": "Recording started",
|
||||
"notify.recordingStop": "Recording stopped",
|
||||
"notify.recordingInChannel": "Recording active in channel",
|
||||
"notify.talkPowerRequested": "Requested talk power",
|
||||
"notify.self": "Self",
|
||||
"notify.youSwitched": "Switched channel",
|
||||
"notify.youMoved": "Moved to another channel",
|
||||
"notify.youKickedServer": "Kicked from server",
|
||||
"notify.youKickedChannel": "Kicked from channel",
|
||||
"notify.youBanned": "Banned",
|
||||
"notify.talkPowerGranted": "Granted talk power",
|
||||
"notify.talkPowerRevoked": "Revoked talk power",
|
||||
"notify.chat": "Chat",
|
||||
"notify.messageSent": "Message sent",
|
||||
"notify.messageReceived": "Message received",
|
||||
"notify.capture": "Sound capture",
|
||||
"notify.playback": "Sound playback",
|
||||
"notify.muted": "Muted",
|
||||
"notify.unmuted": "Unmuted",
|
||||
"notify.status": "Status",
|
||||
"notify.away": "Away",
|
||||
"notify.present": "Back",
|
||||
"notify.other": "Other",
|
||||
"notify.poked": "Poked",
|
||||
"notify.transferComplete": "File transfer complete",
|
||||
"notify.transferFailed": "File transfer failed",
|
||||
"notify.whisperListEmpty": "Whisper list empty",
|
||||
"notify.whisperTargetNotFound": "No whisper target found",
|
||||
"notify.whisperTooMany": "Too many whisper targets",
|
||||
"notify.special": "Special",
|
||||
"notify.micClickOtherOn": "Mic click others on",
|
||||
"notify.micClickOtherOff": "Mic click others off",
|
||||
"notify.micClickSelfOn": "Mic click self on",
|
||||
"notify.micClickSelfOff": "Mic click self off",
|
||||
"notify.whisperNotify": "Whisper notify",
|
||||
"notify.soundTest": "Sound test",
|
||||
"notify.test3d": "3D test",
|
||||
"notify.talkingWhileMuted": "Talking while muted",
|
||||
"notify.subtitle": "Configure notifications",
|
||||
"notify.soundPack": "Sound pack:",
|
||||
"notify.pack.builtin": "WebSpeak3 default",
|
||||
"notify.pack.none": "No sounds",
|
||||
"notify.importPack": "Import TS3 sound pack (.ts3_soundpack / .zip)",
|
||||
"notify.deletePack": "Delete sound pack",
|
||||
"notify.deletePackConfirm": "Delete sound pack \"{name}\"?",
|
||||
"notify.importFailed": "That's not a valid TS3 sound pack (settings.ini missing).",
|
||||
"notify.whenMuted": "When output muted:",
|
||||
"notify.whenMuted.all": "Play all sounds",
|
||||
"notify.whenMuted.none": "Play no sounds",
|
||||
"notify.hintBefore": "Note: the sound pack can be overridden for each ",
|
||||
"notify.hintLink": "favorite",
|
||||
"notify.hintAfter": " separately.",
|
||||
"notify.col.action": "Action",
|
||||
"notify.col.script": "Sound script",
|
||||
"notify.col.text": "Text position",
|
||||
"notify.text.server": "Server",
|
||||
"notify.text.channel": "Channel",
|
||||
"notify.resetAll": "Reset all changes",
|
||||
"notify.applyToFavorites": "Use this sound pack for all favorites",
|
||||
"notify.applyToFavoritesConfirm": "Set all favorites to this sound pack? Sound packs set on individual favorites will be reset.",
|
||||
"notify.whenMuted.important": "Play only important sounds",
|
||||
"notify.text.client": "Client",
|
||||
"vault.title": "Master password",
|
||||
"vault.prompt": "Your identities and saved passwords are encrypted. Enter your master password.",
|
||||
"vault.unlock": "Unlock",
|
||||
"vault.wrong": "Wrong password.",
|
||||
"vault.forgot": "Forgot password",
|
||||
"vault.forgotConfirm": "Without the password the data can't be recovered. Permanently delete identities, favorites and saved passwords and start over?",
|
||||
"securitySettings.masterHint": "Encrypts identities, favorites (with passwords) and saved channel passwords. Asked for after every reload.",
|
||||
"securitySettings.masterCurrent": "Current master password",
|
||||
"securitySettings.masterNew": "New master password",
|
||||
"securitySettings.masterRepeat": "Repeat",
|
||||
"securitySettings.masterMismatch": "The passwords don't match.",
|
||||
"securitySettings.masterNote": "Remember it well: without it, identities and saved passwords are lost.",
|
||||
"sync.subtitle": "Your data on all your devices",
|
||||
"sync.intro": "An account is just a random number, optionally with a password. No email, no name. Everything is encrypted on your device before it is uploaded. The server only sees unreadable data.",
|
||||
"sync.create.title": "New account",
|
||||
"sync.create.withPassword": "Also generate a random password (recommended)",
|
||||
"sync.create.withPasswordHint": "Without a password, the account number alone gives access to your data.",
|
||||
"sync.create.button": "Create account",
|
||||
"sync.create.busy": "Creating account …",
|
||||
"sync.login.title": "Existing account",
|
||||
"sync.number": "Account number",
|
||||
"sync.password": "Password",
|
||||
"sync.passwordOptional": "Password (if any)",
|
||||
"sync.login.hint": "The account's data then replaces the data on this device.",
|
||||
"sync.login.button": "Log in",
|
||||
"sync.server": "Sync server",
|
||||
"sync.serverDefault": "Default (official WebSpeak3 server)",
|
||||
"sync.serverHint": "Leave empty for the official server. An account only exists on the server it was created on.",
|
||||
"sync.account.title": "Your account",
|
||||
"sync.copy": "Copy",
|
||||
"sync.copied": "Copied",
|
||||
"sync.show": "Show",
|
||||
"sync.hide": "Hide",
|
||||
"sync.noPassword": "No password",
|
||||
"sync.keepSafe": "Keep the number and password safe. If you lose them, nobody can recover your data, not even us.",
|
||||
"sync.recoveryFile": "Download recovery file",
|
||||
"sync.qr.show": "Show QR code",
|
||||
"sync.qr.hide": "Hide QR code",
|
||||
"sync.qr.hint": "Scan it with the other device to log in there. Anyone who sees this code can access your account.",
|
||||
"sync.password.add": "Add password",
|
||||
"sync.password.remove": "Remove password",
|
||||
"sync.password.addConfirm": "Generate a new random password? Other devices will have to log in again with number and password.",
|
||||
"sync.password.removeConfirm": "Remove the password? The account number alone will then be enough. Other devices will have to log in again.",
|
||||
"sync.categories": "Sync",
|
||||
"sync.category.identities": "Identities (including private keys)",
|
||||
"sync.category.favorites": "Favorites, channel passwords and contacts",
|
||||
"sync.category.settings": "Settings",
|
||||
"sync.category.designs": "Designs and icon packs",
|
||||
"sync.category.whisper": "Whisper lists",
|
||||
"sync.categoriesHint": "Audio devices, volumes, PTT key and chat logs always stay on the device.",
|
||||
"sync.status": "Status",
|
||||
"sync.status.syncing": "Syncing …",
|
||||
"sync.status.last": "Last synced: {time}",
|
||||
"sync.status.never": "Not synced yet",
|
||||
"sync.conflict.title": "Sync",
|
||||
"sync.conflict.text": "Both this device and the account changed since the last sync. Which one should win?",
|
||||
"sync.conflict.local": "Upload this device's data",
|
||||
"sync.conflict.server": "Load the account's data",
|
||||
"sync.syncNow": "Sync now",
|
||||
"sync.serverInfo": "Server: {server}",
|
||||
"sync.logout": "Log out",
|
||||
"sync.logoutConfirm": "Log this device out of the account? The account and its data are kept.",
|
||||
"sync.delete": "Delete account",
|
||||
"sync.deleteConfirm": "Permanently delete the account and all its data on the server? The data on this device stays.",
|
||||
"sync.link.title": "Connect to account",
|
||||
"sync.link.prompt": "Connect this device to account {number}? The account's data replaces the data on this device.",
|
||||
"sync.link.connect": "Connect",
|
||||
"sync.error.password_required": "This account has a password.",
|
||||
"sync.error.unreachable": "Sync server not reachable.",
|
||||
"sync.error.not_found": "Account not found or wrong password. If the password was changed on another device, log in again.",
|
||||
"sync.error.rate_limited": "Too many requests, please try again later.",
|
||||
"sync.error.full": "The sync server isn't accepting new accounts right now.",
|
||||
"sync.error.pow_required": "Security check failed, please try again.",
|
||||
"sync.error.conflict": "Another device changed something in the meantime.",
|
||||
"sync.error.payload_too_large": "Too much data to sync (max. 1 MB).",
|
||||
"sync.error.generic": "Sync failed."
|
||||
}
|
||||
@@ -0,0 +1,997 @@
|
||||
{
|
||||
"menu.connections": "اتصالها",
|
||||
"menu.connections.connect": "اتصال",
|
||||
"menu.connections.disconnectCurrent": "قطع اتصال از سرور فعلی",
|
||||
"menu.connections.disconnectAll": "قطع اتصال از همه سرورها",
|
||||
"menu.favorites": "نشانکها",
|
||||
"menu.favorites.add": "افزودن نشانک",
|
||||
"menu.favorites.manage": "مدیریت نشانکها",
|
||||
"menu.self": "خودم",
|
||||
"menu.rights": "مجوزها",
|
||||
"menu.rights.serverGroups": "ویرایش گروههای سرور...",
|
||||
"menu.rights.channelGroups": "ویرایش گروههای کانال...",
|
||||
"menu.rights.serverPermissions": "ویرایش مجوزهای سرور...",
|
||||
"menu.rights.channelPermissions": "ویرایش مجوزهای کانال...",
|
||||
"menu.rights.overview": "نمای کلی مجوزها...",
|
||||
"menu.rights.myRights": "نمایش مجوزهای من",
|
||||
"menu.extras": "ابزارها",
|
||||
"menu.help": "راهنما",
|
||||
"menu.help.about": "درباره WebSpeak3",
|
||||
"menu.help.github": "گیتهاب",
|
||||
"menu.help.changelog": "تاریخچه تغییرات",
|
||||
"menu.help.translate": "کمک به ترجمه (Weblate)",
|
||||
"menu.extras.identities": "هویتها",
|
||||
"menu.extras.contacts": "مخاطبین",
|
||||
"menu.extras.collectedUrls": "لینکهای جمعآوریشده",
|
||||
"menu.extras.inviteFriend": "دعوت از یک دوست",
|
||||
"menu.extras.whisperLists": "لیستهای نجوا",
|
||||
"menu.extras.whisperHistory": "تاریخچه نجوا",
|
||||
"menu.extras.clientLog": "گزارش کلاینت",
|
||||
"menu.extras.banList": "لیست مسدودشدهها",
|
||||
"menu.extras.complaintList": "لیست شکایات",
|
||||
"menu.extras.offlineMessages": "پیامهای آفلاین",
|
||||
"menu.extras.serverQueryLogin": "ورود ServerQuery",
|
||||
"menu.extras.serverLog": "گزارش سرور",
|
||||
"menu.extras.startRecording": "شروع ضبط",
|
||||
"menu.extras.startMultitrackRecording": "شروع ضبط چندکاناله",
|
||||
"menu.extras.stopRecording": "توقف ضبط",
|
||||
"menu.extras.options": "تنظیمات",
|
||||
"menu.extras.feedback": "ارسال بازخورد",
|
||||
"feedback.fab.nudge": "نظرت درباره WebSpeak3 چیه؟ بازخوردت رو منتظریم!",
|
||||
"donate.label": "حمایت مالی",
|
||||
"donate.title": "حمایت از WebSpeak3 در Ko-fi",
|
||||
"pwa.updateAvailable": "نسخه جدید موجود است",
|
||||
"pwa.reload": "بارگذاری مجدد",
|
||||
"news.label": "اخبار",
|
||||
"news.release": "WebSpeak3 {version} منتشر شد",
|
||||
"news.theme": "طرح جدید در فروشگاه: «{name}» از {author}",
|
||||
"feedback.dialog.title": "بازخورد",
|
||||
"feedback.dialog.intro": "یک اشکال گزارش بده یا ایدهای برای بهبود WebSpeak3 به اشتراک بگذار.",
|
||||
"feedback.dialog.category": "دسته",
|
||||
"feedback.dialog.category.bug": "اشکال",
|
||||
"feedback.dialog.category.idea": "ایده",
|
||||
"feedback.dialog.category.report": "گزارش تخلف (نقض قوانین/سوءاستفاده)",
|
||||
"feedback.dialog.category.other": "سایر",
|
||||
"feedback.dialog.reportHint": "گزارشها همیشه خصوصی میمانند و هرگز بهصورت Issue عمومی در گیتهاب منتشر نمیشوند. در صورت نیاز میتوانی نام سرور مربوطه را ذکر کنی.",
|
||||
"feedback.dialog.message": "پیام",
|
||||
"feedback.dialog.messagePlaceholder": "چه اتفاقی افتاد، یا چه پیشنهادی داری؟",
|
||||
"feedback.dialog.email": "ایمیل (اختیاری، برای پیگیری – خصوصی میماند و هرگز منتشر نمیشود)",
|
||||
"feedback.dialog.publishAsIssue": "بهصورت Issue عمومی در گیتهاب منتشر شود",
|
||||
"feedback.dialog.publishAsIssueHint": "اگر تیک نزنی، بازخوردت خصوصی میماند و فقط برای مدیر پروژه قابل مشاهده است.",
|
||||
"feedback.dialog.publishAsIssueHintBug": "گزارش اشکالها همیشه بهصورت Issue عمومی در گیتهاب منتشر میشوند.",
|
||||
"feedback.dialog.bug.environment": "مرورگر و سیستمعامل",
|
||||
"feedback.dialog.bug.server": "سرور TeamSpeak (اختیاری – خصوصی میماند و هرگز منتشر نمیشود)",
|
||||
"feedback.dialog.bug.steps": "درست قبل از آن چه کاری کردید؟ (اختیاری)",
|
||||
"feedback.dialog.bug.stepsPlaceholder": "مثلاً ورود به کانال، تغییر دستگاه خروجی… آیا بارگذاری مجدد صفحه کمک کرد؟",
|
||||
"feedback.dialog.bug.diagnostics": "جزئیات فنی ارسالشده",
|
||||
"feedback.dialog.send": "ارسال",
|
||||
"restartNotice.title": "وقفه کوتاه",
|
||||
"restartNotice.body": "سرور بهزودی برای مدت کوتاهی مجدداً راهاندازی میشود. اتصال شما لحظهای قطع خواهد شد.",
|
||||
"restartNotice.ack": "متوجه شدم",
|
||||
"menu.extras.tos": "شرایط استفاده",
|
||||
"tos.title": "شرایط استفاده از client.webspeak3.de",
|
||||
"tos.rule1": "این کلاینت برای استفاده خصوصی و غیرتجاری از سرورهای TeamSpeak/TeaSpeak/VoySpeak از طریق مرورگر است.",
|
||||
"tos.rule2": "بهطور خاص ممنوع است: هرگونه فعالیت مجرمانه، آزار و سخنان نفرتپراکنانه، اسپم و سیل پیام، ایجاد اختلال در سرویس، و دور زدن مسدودیتها.",
|
||||
"tos.rule3": "تخلفات ممکن است بدون هشدار منجر به مسدود شدن دسترسی شوند؛ در موارد جدی، گزارش به مراجع ذیصلاح نیز ممکن است.",
|
||||
"tos.rule4Pre": "بهمنظور امنیت عملیاتی و شناسایی سوءاستفاده، اطلاعات اتصال (آدرس سرور، نام سرور، زمان اتصال) ثبت میشود و پس از ۹۰ روز بهصورت خودکار حذف میشود - برای جزئیات به ",
|
||||
"tos.rule4Post": " مراجعه کن.",
|
||||
"tos.privacyLinkText": "سیاست حریم خصوصی",
|
||||
"tos.rule5Pre": "برای گزارش سوءاستفاده یا شکایات: به ",
|
||||
"tos.rule5Post": " مراجعه کن.",
|
||||
"tos.legalLinkText": "اطلاعیه حقوقی (Impressum)",
|
||||
"tos.rule6": "با کلیک روی «پذیرفتن» این شرایط را میپذیری. تأیید تو فقط بهصورت محلی در مرورگرت ذخیره میشود؛ در صورت تغییر قوانین، دوباره از تو پرسیده خواهد شد.",
|
||||
"tos.accept": "پذیرفتن",
|
||||
"tos.close": "بستن",
|
||||
"feedback.dialog.cancel": "لغو",
|
||||
"feedback.dialog.sending": "در حال ارسال…",
|
||||
"feedback.dialog.success": "از بازخوردت متشکریم!",
|
||||
"feedback.dialog.successWithIssue": "متشکریم! Issue ایجاد شد:",
|
||||
"feedback.dialog.error": "ارسال ناموفق بود. لطفاً بعداً دوباره امتحان کن.",
|
||||
"toolbar.setAway": "تنظیم بهعنوان غایب",
|
||||
"toolbar.backOnline": "بازگشت به آنلاین",
|
||||
"toolbar.awayOptions": "گزینههای غیبت",
|
||||
"toolbar.whisper": "مقصدهای نجوا",
|
||||
"whisper.channels": "کانالها",
|
||||
"whisper.clients": "کاربران",
|
||||
"whisper.clearAll": "پاک کردن همه مقصدهای نجوا",
|
||||
"toolbar.micEnable": "فعالسازی میکروفون",
|
||||
"toolbar.micMute": "بیصدا کردن میکروفون",
|
||||
"toolbar.micUnmute": "فعال کردن صدای میکروفون",
|
||||
"toolbar.vadSensitivity": "حساسیت فعالسازی صوتی",
|
||||
"toolbar.pushToTalk": "برای صحبت نگه دارید",
|
||||
"tabAudio.start": "صدای یک زبانه یا پنجره را در کانال صوتی پخش کن (با هدفون پژواک ایجاد نمیشود)",
|
||||
"tabAudio.stop": "توقف اشتراک صدا",
|
||||
"tabAudio.noAudio": "صدایی به اشتراک گذاشته نشد. در پنجره انتخاب، یک زبانه یا پنجره را انتخاب و صدای آن را روشن کنید.",
|
||||
"tabAudio.silent": "۵ ثانیه است که از صدای اشتراکگذاشتهشده چیزی نمیرسد. صدای سیستم روی همهٔ رایانههای ویندوزی صدا نمیدهد؛ بهجای آن یک زبانهٔ مرورگر (مثلاً Spotify وب یا YouTube) را با روشن بودن «اشتراک صدای زبانه» به اشتراک بگذارید.",
|
||||
"toolbar.muteSound": "بیصدا کردن صدا (کر کردن)",
|
||||
"toolbar.unmuteSound": "فعال کردن صدا",
|
||||
"toolbar.chooseOutputDevice": "انتخاب دستگاه خروجی",
|
||||
"toolbar.toggleTheme": "تغییر پوسته",
|
||||
"away.setGlobal": "تنظیم غیبت سراسری",
|
||||
"away.setGlobalStatus": "تنظیم وضعیت غیبت سراسری",
|
||||
"connect.title": "اتصال",
|
||||
"connect.novaSubtitle": "WebSpeak3 بهطور کامل در مرورگر اجرا میشود — بدون نیاز به دانلود",
|
||||
"connect.serverAddress": "نام مستعار یا آدرس سرور:",
|
||||
"connect.serverPassword": "رمز عبور سرور:",
|
||||
"connect.nickname": "نام مستعار:",
|
||||
"connect.phoneticNickname": "تلفظ نام مستعار:",
|
||||
"connect.identity": "هویت:",
|
||||
"connect.defaultChannel": "کانال پیشفرض:",
|
||||
"connect.recordingProfile": "پروفایل ضبط:",
|
||||
"connect.channelPassword": "رمز عبور کانال:",
|
||||
"connect.playbackProfile": "پروفایل پخش:",
|
||||
"connect.onetimeGrant": "کلید امتیاز یکبار مصرف:",
|
||||
"connect.serverType": "نوع سرور:",
|
||||
"connect.serverType.auto": "خودکار",
|
||||
"connect.serverType.teamspeak": "TeamSpeak",
|
||||
"connect.serverType.teaspeak": "TeaSpeak",
|
||||
"connect.hotkeyProfile": "پروفایل کلید میانبر:",
|
||||
"connect.soundPack": "بسته صوتی:",
|
||||
"connect.more": "بیشتر",
|
||||
"connect.less": "کمتر",
|
||||
"connect.connect": "اتصال",
|
||||
"connect.connecting": "در حال اتصال…",
|
||||
"connect.newTab": "در تب جدید",
|
||||
"connect.cancel": "لغو",
|
||||
"channelPasswordDialog.title": "رمز عبور کانال لازم است",
|
||||
"channelPasswordDialog.prompt": "این کانال با رمز عبور محافظت میشود. لطفاً رمز عبور را وارد کن:",
|
||||
"channelPasswordDialog.wrongPassword": "رمز عبور اشتباه است، دوباره امتحان کن:",
|
||||
"channelPasswordDialog.submit": "ورود",
|
||||
"channelPasswordDialog.cancel": "لغو",
|
||||
"collectedUrls.title": "لینکهای جمعآوریشده",
|
||||
"collectedUrls.search": "جستجو:",
|
||||
"collectedUrls.url": "لینک",
|
||||
"collectedUrls.count": "تعداد",
|
||||
"collectedUrls.lastSeen": "آخرین اشاره",
|
||||
"collectedUrls.mentionedBy": "ذکرشده توسط",
|
||||
"collectedUrls.clearList": "پاک کردن لیست",
|
||||
"inviteFriend.title": "دعوت از یک دوست",
|
||||
"inviteFriend.type": "نوع دعوت",
|
||||
"inviteFriend.includeChannel": "افزودن کانال فعلی",
|
||||
"inviteFriend.link": "لینک",
|
||||
"inviteFriend.webspeak3Link": "لینک WebSpeak3",
|
||||
"inviteFriend.addPermissionKey": "افزودن کلید مجوز",
|
||||
"inviteFriend.copyToClipboard": "کپی در کلیپبورد",
|
||||
"inviteFriend.copied": "کپی شد!",
|
||||
"clientLog.title": "گزارش کلاینت",
|
||||
"clientLog.level.critical": "بحرانی",
|
||||
"clientLog.level.error": "خطاها",
|
||||
"clientLog.level.warning": "هشدارها",
|
||||
"clientLog.level.info": "اطلاعات",
|
||||
"clientLog.level.debug": "اشکالزدایی",
|
||||
"clientLog.search": "جستجو:",
|
||||
"clientLog.filter": "فیلتر:",
|
||||
"clientLog.caseSensitive": "حساس به بزرگی/کوچکی حروف",
|
||||
"clientLog.mark": "علامتگذاری",
|
||||
"whisperHistory.title": "تاریخچه نجوا - {server}",
|
||||
"whisperHistory.empty": "هنوز تاریخچه نجوایی وجود ندارد.",
|
||||
"whisperHistory.started": "در حال نجوا با: {targets}",
|
||||
"whisperSettings.subtitle": "تنظیمات نجوا",
|
||||
"whisperSettings.rights": "مجوز نجواهای ورودی",
|
||||
"whisperSettings.mode.allow": "استفاده از تنظیمات مخاطبین، در غیر این صورت اجازه",
|
||||
"whisperSettings.mode.block": "استفاده از تنظیمات مخاطبین، در غیر این صورت مسدود",
|
||||
"whisperSettings.mode.blockAll": "مسدود کردن همه",
|
||||
"whisperSettings.incoming": "تنظیمات نجواهای ورودی",
|
||||
"whisperSettings.sound": "پخش صدا هنگام دریافت نجوا",
|
||||
"whisperSettings.openHistory": "باز کردن تاریخچهٔ نجوا هنگام دریافت نجوا",
|
||||
"whisperSettings.clearAfter": "حذف کاربران از تاریخچهٔ نجوا پس از",
|
||||
"whisperSettings.minutes": "دقیقه",
|
||||
"whisperHistory.received": "{name} با شما نجوا کرد",
|
||||
"whisperHistory.stopped": "نجوا متوقف شد",
|
||||
"whisperHistory.clear": "پاک کردن",
|
||||
"whisperHistory.options": "گزینهها",
|
||||
"whisperLists.title": "لیستهای نجوا",
|
||||
"whisperLists.namePlaceholder": "نام لیست",
|
||||
"whisperLists.saveCurrent": "ذخیره انتخاب فعلی",
|
||||
"whisperLists.itemDetail": "{channels} کانال، {clients} کاربر",
|
||||
"whisperLists.activate": "فعالسازی",
|
||||
"whisperLists.delete": "حذف",
|
||||
"whisperLists.empty": "هنوز لیست نجوایی ذخیره نشده است. مقصدهای نجوا را انتخاب کن و اینجا بهصورت لیست ذخیره کن.",
|
||||
"identities.title": "هویتها",
|
||||
"identities.activate": "فعالسازی",
|
||||
"identities.add": "هویت جدید",
|
||||
"identities.delete": "حذف",
|
||||
"identities.newName": "هویت جدید",
|
||||
"identities.generated": "ایجاد شد",
|
||||
"identities.pending": "در اتصال بعدی ایجاد خواهد شد",
|
||||
"identities.listLabel": "هویتهای محلی",
|
||||
"identities.name": "نام هویت:",
|
||||
"identities.phoneticNickname": "تلفظ نام مستعار:",
|
||||
"identities.uniqueId": "شناسه یکتا:",
|
||||
"identities.unknown": "نامشخص",
|
||||
"identities.setDefault": "تنظیم بهعنوان پیشفرض",
|
||||
"identities.isDefault": "در حال حاضر بهعنوان پیشفرض استفاده میشود",
|
||||
"identities.export": "خروجی گرفتن",
|
||||
"identities.import": "وارد کردن",
|
||||
"connectionInfo.clientTitle": "اطلاعات اتصال - {name}",
|
||||
"connectionInfo.serverTitle": "اطلاعات اتصال سرور",
|
||||
"connectionInfo.loading": "در حال بارگذاری…",
|
||||
"connectionInfo.unavailable": "پاسخی از سرور دریافت نشد (شاید مجوز کافی وجود ندارد؟).",
|
||||
"connectionInfo.ping": "پینگ:",
|
||||
"connectionInfo.connectedSince": "متصل از:",
|
||||
"connectionInfo.uptime": "مدت آنلاین بودن:",
|
||||
"connectionInfo.name": "نام:",
|
||||
"connectionInfo.avgPing": "میانگین پینگ:",
|
||||
"connectionInfo.avgPacketLoss": "میانگین افت بسته:",
|
||||
"connectionInfo.incoming": "ورودی",
|
||||
"connectionInfo.outgoing": "خروجی",
|
||||
"connectionInfo.packetsTransferred": "بستههای منتقلشده",
|
||||
"connectionInfo.bytesTransferred": "بایتهای منتقلشده",
|
||||
"connectionInfo.bandwidthLastSecond": "پهنای باند ثانیه گذشته",
|
||||
"connectionInfo.bandwidthLastMinute": "پهنای باند دقیقه گذشته",
|
||||
"connectionInfo.ftBandwidth": "پهنای باند انتقال فایل",
|
||||
"connectionInfo.ftBytes": "بایتهای انتقال فایل",
|
||||
"connectionInfo.ip": "آدرس IP:",
|
||||
"connectionInfo.packetLoss": "افت بسته:",
|
||||
"connectionInfo.packetsSent": "بستههای ارسالی:",
|
||||
"connectionInfo.packetsReceived": "بستههای دریافتی:",
|
||||
"connectionInfo.bytesSent": "داده ارسالی:",
|
||||
"connectionInfo.bytesReceived": "داده دریافتی:",
|
||||
"connectionInfo.bandwidthSent": "پهنای باند ارسالی:",
|
||||
"connectionInfo.bandwidthReceived": "پهنای باند دریافتی:",
|
||||
"menu.self.recordingProfile": "پروفایل ضبط",
|
||||
"menu.self.playbackProfile": "پروفایل پخش",
|
||||
"menu.self.hotkeyProfile": "پروفایل کلید میانبر",
|
||||
"menu.self.soundPack": "بسته صوتی",
|
||||
"menu.self.setAway": "تنظیم غیبت",
|
||||
"menu.self.enableMic": "فعالسازی میکروفون",
|
||||
"menu.self.disableMic": "غیرفعالسازی میکروفون",
|
||||
"menu.self.muteOutput": "بیصدا کردن بلندگو/هدفون",
|
||||
"menu.self.unmuteOutput": "فعال کردن بلندگو/هدفون",
|
||||
"menu.self.changeNickname": "تغییر نام مستعار",
|
||||
"menu.self.requestTalkPower": "درخواست حق صحبت",
|
||||
"menu.self.setAvatar": "تنظیم آواتار",
|
||||
"menu.self.setPhoneticNickname": "تنظیم تلفظ نام مستعار",
|
||||
"menu.self.connectionInfo": "اطلاعات اتصال",
|
||||
"contacts.title": "مخاطبین",
|
||||
"contacts.addOnlineClient": "یک کاربر آنلاین را انتخاب کن...",
|
||||
"contacts.add": "افزودن",
|
||||
"contacts.remove": "حذف",
|
||||
"contacts.empty": "هنوز مخاطبی وجود ندارد.",
|
||||
"contacts.customName": "نام سفارشی:",
|
||||
"contacts.category.acquaintance": "آشنا",
|
||||
"contacts.category.blocked": "مسدود",
|
||||
"contacts.category.friend": "دوست",
|
||||
"contacts.phoneticName": "تلفظ نام:",
|
||||
"contacts.whisperSetting": "نجوا:",
|
||||
"contacts.whisperSetting.default": "پیشفرض",
|
||||
"contacts.whisperSetting.allow": "اجازه",
|
||||
"contacts.whisperSetting.block": "مسدود",
|
||||
"contacts.show": "نمایش",
|
||||
"contacts.ignore": "نادیده گرفتن",
|
||||
"contacts.unignore": "لغو نادیده گرفتن",
|
||||
"contacts.whisper": "نجوا",
|
||||
"contacts.preferences": "ترجیحات",
|
||||
"favorites.title": "🔖 نشانکهای myTeamSpeak",
|
||||
"favorites.synced": "نشانکهای همگامسازیشده",
|
||||
"favorites.notLoggedIn": "وارد نشدهای",
|
||||
"favorites.local": "نشانکهای محلی",
|
||||
"favorites.unnamed": "(بدون نام)",
|
||||
"favorites.bookmarkName": "نام نشانک:",
|
||||
"favorites.newFavoriteName": "نشانک جدید",
|
||||
"favorites.showServerQueryClients": "نمایش کاربران ServerQuery",
|
||||
"favorites.connectOnStartup": "اتصال هنگام راهاندازی",
|
||||
"favorites.new": "نشانک جدید",
|
||||
"favorites.newFolder": "پوشه جدید",
|
||||
"favorites.remove": "حذف",
|
||||
"favorites.ok": "تأیید",
|
||||
"favorites.cancel": "لغو",
|
||||
"favorites.apply": "اعمال",
|
||||
"away.dialog.title": "تنظیم پیام غیبت",
|
||||
"away.dialog.message": "پیام:",
|
||||
"away.dialog.template": "الگو:",
|
||||
"away.dialog.none": "<هیچکدام>",
|
||||
"away.dialog.ok": "تأیید",
|
||||
"away.dialog.save": "ذخیره",
|
||||
"away.dialog.cancel": "لغو",
|
||||
"options.title": "تنظیمات",
|
||||
"options.ok": "تأیید",
|
||||
"options.cancel": "لغو",
|
||||
"options.notImplemented": "این تنظیم هنوز پیادهسازی نشده است.",
|
||||
"options.section.anwendung": "برنامه",
|
||||
"options.section.konto": "حساب",
|
||||
"options.section.wiedergabe": "پخش",
|
||||
"options.section.aufnahme": "ضبط",
|
||||
"options.section.design": "ظاهر",
|
||||
"design.subtitle": "ظاهر برنامه را انتخاب کن.",
|
||||
"design.theme.standard": "استاندارد",
|
||||
"design.theme.standard.desc": "طراحی اصلی WebSpeak3.",
|
||||
"design.theme.nova": "Nova",
|
||||
"design.theme.nova.desc": "طراحی مدرنتر و تیره با عناصر گرد.",
|
||||
"design.theme.pulse": "Pulse",
|
||||
"design.theme.pulse.desc": "چیدمان کارتی با نوار مسیر و رنگ تأکیدی.",
|
||||
"design.theme.ide": "Command Center",
|
||||
"design.theme.ide.desc": "چیدمانی فنی و تخت به سبک IDE برای کاربران حرفهای.",
|
||||
"design.idePixelFont": "فونت پیکسلی ترمینال",
|
||||
"design.theme": "تم",
|
||||
"design.customThemes": "طرحهای سفارشی",
|
||||
"design.iconPack": "بستهٔ آیکون",
|
||||
"design.manage": "مدیریت طرحها و آیکونها…",
|
||||
"design.manage.title": "مدیریت طرحها و آیکونها",
|
||||
"design.iconPack.none": "هنوز هیچ بستهٔ آیکونی نصب نشده است.",
|
||||
"design.iconPack.import": "وارد کردن بستهٔ آیکون",
|
||||
"design.iconPack.importError": "این فایل بهعنوان بستهٔ آیکون خوانده نشد.",
|
||||
"design.iconPack.deleteConfirm": "این بستهٔ آیکون واقعاً حذف شود؟",
|
||||
"design.iconPack.hint": "بستههای آیکون TeamSpeak 3 (.ts3_iconpack) یا فایل ZIP با تصاویر همنام. چراغ صحبت، بیصدا بودن میکروفون/صدا، غایب، فرمانده کانال، کانال و سرور را جایگزین میکند.",
|
||||
"design.notAvailable": "هنوز در کلاینت وب در دسترس نیست",
|
||||
"design.gif": "پشتیبانی از انیمیشن GIF",
|
||||
"design.gif.avatars": "فعالسازی انیمیشن آواتار",
|
||||
"design.gif.images": "فعالسازی انیمیشن تصاویر",
|
||||
"design.tree": "درخت کانال",
|
||||
"design.tree.expandAll": "باز کردن همهٔ کانالها هنگام اتصال",
|
||||
"design.tree.expandDepth": "باز کردن کانالها تا این سطح (0 = همه)",
|
||||
"design.tree.expandOwn": "فقط کانال خودم هنگام اتصال باز شود",
|
||||
"design.tree.clientsBelow": "مرتبسازی کاربران زیر کانالها",
|
||||
"design.tree.flags": "نمایش پرچم کاربران",
|
||||
"design.tree.overwolf": "نمایش آیکونهای Overwolf",
|
||||
"design.tree.badges": "نمایش نشانها",
|
||||
"design.tree.groupIconsInMenus": "نمایش آیکون گروهها در منوهای راستکلیک",
|
||||
"design.tree.hideInaccessibleGroups": "پنهان کردن گروههای غیرقابلدسترس در منوها",
|
||||
"design.tree.commanderLamp": "نمایش فرمانده کانال بهصورت چراغ",
|
||||
"design.tree.awayMessage": "نمایش پیام غیبت کنار نام",
|
||||
"design.tree.tooltips": "نمایش راهنما هنگام نگهداشتن ماوس",
|
||||
"design.status.connected": "متصل",
|
||||
"design.custom.new": "+ طراحی جدید",
|
||||
"design.custom.import": "وارد کردن طراحی",
|
||||
"design.custom.edit": "ویرایش",
|
||||
"design.custom.duplicate": "تکثیر",
|
||||
"design.custom.export": "خروجی گرفتن",
|
||||
"design.custom.delete": "حذف",
|
||||
"design.custom.deleteConfirm": "واقعاً این طراحی حذف شود؟",
|
||||
"design.custom.newTitle": "ایجاد طراحی جدید",
|
||||
"design.custom.editTitle": "ویرایش طراحی",
|
||||
"design.custom.name": "نام",
|
||||
"design.custom.base": "چیدمان پایه",
|
||||
"design.custom.css": "CSS",
|
||||
"design.custom.hint": "این CSS هنگام فعال بودن طراحی بارگذاری میشود. از .ts-app { ... } و متغیرهای CSS موجود (--accent، --bg، --text، --border و...) برای تنظیم رنگها، شعاع گوشهها و فاصلهها استفاده کن - با .ts-app .some-class { display: none } یا تغییر ترتیب حتی میتوانی چیدمان را هم تغییر دهی.",
|
||||
"design.custom.save": "ذخیره",
|
||||
"design.custom.copyOf": "کپی از {name}",
|
||||
"design.custom.importError": "این فایل بهعنوان طراحی WebSpeak3 خوانده نشد.",
|
||||
"design.store.open": "فروشگاه",
|
||||
"design.store.title": "فروشگاه طراحیها",
|
||||
"design.store.back": "بازگشت",
|
||||
"design.store.loading": "در حال بارگذاری…",
|
||||
"design.store.unavailable": "فروشگاه طراحی روی این سرور در دسترس نیست.",
|
||||
"design.store.empty": "هنوز طراحی در فروشگاه نیست.",
|
||||
"design.store.install": "نصب",
|
||||
"design.store.installed": "نصب شد",
|
||||
"design.store.by": "از {author}",
|
||||
"design.store.screenshotAlt": "اسکرینشات {name}",
|
||||
"design.store.rating.rate": "امتیاز {stars} ستاره",
|
||||
"design.store.rating.summary": "{average} ({count})",
|
||||
"design.store.rating.none": "هنوز امتیازی ثبت نشده",
|
||||
"design.store.publishTitle": "انتشار یک طراحی",
|
||||
"design.store.publish.select": "یکی از طراحیهای خودت را انتخاب کن",
|
||||
"design.store.publish.none": "هنوز طراحی سفارشی برای انتشار نداری.",
|
||||
"design.store.publish.author": "نام تو (اختیاری)",
|
||||
"design.store.publish.authorPlaceholder": "ناشناس",
|
||||
"design.store.publish.description": "توضیحات (اختیاری)",
|
||||
"design.store.publish.descriptionPlaceholder": "چه چیزی این طراحی را خاص میکند؟",
|
||||
"design.store.publish.screenshot": "اسکرینشات (اختیاری)",
|
||||
"design.store.publish.screenshotTooLarge": "این تصویر خیلی بزرگ است. لطفاً تصویر کوچکتری استفاده کن.",
|
||||
"design.store.publish.adminToken": "توکن ادمین (فقط برای نامهای رزرو شده لازم است)",
|
||||
"design.store.publish.adminTokenPlaceholder": "اگر نمیدانی این چیست، خالی بگذار",
|
||||
"design.store.publish.submit": "انتشار در فروشگاه",
|
||||
"design.store.publish.success": "طراحی منتشر شد!",
|
||||
"design.store.publish.pending": "ممنون! طراحی تو ارسال شد و پس از بررسی در فروشگاه نمایش داده میشود.",
|
||||
"design.store.publish.duplicate": "این طرح از قبل در فروشگاه وجود دارد. قبل از انتشار دوباره، کمی آن را تغییر دهید.",
|
||||
"design.store.publish.error": "انتشار ناموفق بود.",
|
||||
"options.section.erweiterungen": "افزونهها",
|
||||
"options.section.hotkeys": "کلیدهای میانبر",
|
||||
"options.section.whispern": "نجوا",
|
||||
"options.section.downloads": "دانلودها",
|
||||
"options.section.chat": "گفتگو",
|
||||
"options.section.sicherheit": "امنیت",
|
||||
"options.section.nachrichten": "پیامها",
|
||||
"options.section.meldungen": "اعلانها",
|
||||
"options.section.sounds": "صداها",
|
||||
"app.title": "برنامه",
|
||||
"app.subtitle": "تنظیمات عمومی برنامه",
|
||||
"app.group.server": "سرور",
|
||||
"app.group.misc": "متفرقه",
|
||||
"app.group.subscribe": "رفتار اشتراک کانال",
|
||||
"app.group.privacy": "حریم خصوصی",
|
||||
"app.micOnServerSwitch": "فعالسازی خودکار میکروفون هنگام تغییر سرور",
|
||||
"app.reconnectAfterSleep": "اتصال مجدد پس از حالت خواب",
|
||||
"app.middleClickQuickAccess": "استفاده از دکمه وسط ماوس برای دسترسی سریع در درخت",
|
||||
"app.updateFavoriteNickname": "بهروزرسانی خودکار نام مستعار در علاقهمندیها",
|
||||
"app.autoOpenChannelChat": "باز کردن خودکار چت کانال",
|
||||
"app.mutedTalkingSound": "پخش صدای هشدار هنگام صحبت با میکروفون بیصدا",
|
||||
"app.neverShowPokeDialog": "هرگز پنجره سقلمه را نشان نده",
|
||||
"app.subscribe.all": "اشتراک همه کانالها",
|
||||
"app.subscribe.current": "فقط اشتراک کانال فعلی و کانالهای قبلاً مشترکشده",
|
||||
"app.language": "زبان",
|
||||
"app.language.auto": "پیشفرض سیستم",
|
||||
"app.language.de": "Deutsch",
|
||||
"app.language.en": "English",
|
||||
"app.language.zh-CN": "简体中文",
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.helpTranslate": "زبان شما موجود نیست یا ترجمهای اشتباه دیدید؟ در Weblate کمک کنید →",
|
||||
"app.serverBanner": "نمایش بنر سرور",
|
||||
"app.serverBanner.hint": "بنر مستقیماً از نشانیای بارگیری میشود که مدیر سرور تعیین کرده است و آن میزبان نشانی IP شما را میبیند.",
|
||||
"app.chatImages": "بارگیری تصاویر در گفتگو",
|
||||
"app.chatImages.hint": "تصاویر برچسبهای [img] و مارکداون مستقیماً از نشانیای که فرستنده انتخاب کرده بارگیری میشوند و آن میزبان نشانی IP شما را میبیند. در حالت خاموش بهصورت پیوند نمایش داده میشوند.",
|
||||
"playback.title": "پخش",
|
||||
"playback.subtitle": "تنظیمات پخش را تغییر بده",
|
||||
"playback.profile": "پروفایل",
|
||||
"playback.default": "پیشفرض",
|
||||
"playback.device": "دستگاه پخش:",
|
||||
"playback.systemDefault": "پیشفرض سیستم",
|
||||
"playback.quiet": "آرام",
|
||||
"playback.loud": "بلند",
|
||||
"playback.voiceVolume": "میزان صدای صحبت",
|
||||
"playback.playTestTone": "▶ پخش صدای آزمایشی",
|
||||
"playback.options": "گزینهها",
|
||||
"playback.autoVolume": "تنظیم خودکار میزان صدا",
|
||||
"playback.ownMicClicks": "پخش کلیک میکروفون برای کاربر خودم",
|
||||
"playback.otherMicClicks": "پخش کلیک میکروفون برای سایر کاربران",
|
||||
"recording.title": "ضبط",
|
||||
"recording.subtitle": "تنظیمات ضبط را تغییر بده",
|
||||
"recording.device": "دستگاه ضبط:",
|
||||
"recording.activation": "فعالسازی",
|
||||
"recording.pushToTalk": "فشار برای صحبت (Push-To-Talk)",
|
||||
"recording.pttKey": "کلید Push-To-Talk:",
|
||||
"recording.pttKeyNone": "تنظیم نشده",
|
||||
"recording.pttKeyPress": "یک کلید یا دکمه ماوس را فشار دهید…",
|
||||
"recording.pttHint": "هر کلید یا دکمه ماوس (دکمه وسط یا کناری) کار میکند، اما فقط وقتی WebSpeak3 پنجره فعال باشد. مرورگرها اجازه نمیدهند وبسایتها ورودی برنامههای دیگر را ببینند، پس داخل بازی کار نمیکند. میتوانید دکمه 🗣️ را در نوار ابزار نگه دارید.",
|
||||
"hotkeys.subtitle": "میانبرهای صفحهکلید و ماوس",
|
||||
"hotkeys.pttEnabled": "استفاده از Push-To-Talk (به جای فعالسازی صوتی)",
|
||||
"hotkeys.shortcuts": "میانبرها",
|
||||
"hotkeys.shortcutsHint": "هنگام تایپ در یک فیلد متنی کار نمیکنند.",
|
||||
"recording.continuous": "ارسال پیوسته",
|
||||
"recording.voiceActivation": "تشخیص فعالسازی صوتی",
|
||||
"recording.testStart": "شروع آزمایش",
|
||||
"recording.testStop": "توقف آزمایش",
|
||||
"recording.hangoverDelay": "تأخیر قبل از غیرفعالسازی:",
|
||||
"recording.secondsUnit": "ثانیه",
|
||||
"recording.dsp": "پردازش دیجیتال سیگنال",
|
||||
"recording.typingAttenuation": "کاهش صدای تایپ",
|
||||
"recording.echoCancellation": "حذف پژواک",
|
||||
"recording.noiseSuppression": "حذف نویز پسزمینه",
|
||||
"recording.autoGainControl": "کنترل خودکار میزان صدا",
|
||||
"info.address": "آدرس:",
|
||||
"info.version": "نسخه:",
|
||||
"info.license": "مجوز:",
|
||||
"info.currentClients": "کاربران فعلی:",
|
||||
"info.currentChannels": "کانالهای فعلی:",
|
||||
"info.topic": "موضوع:",
|
||||
"info.audioCodec": "کدک صوتی:",
|
||||
"info.spacer": "فاصلهگذار:",
|
||||
"info.rawName": "نام خام:",
|
||||
"info.passwordProtected": "محافظتشده با رمز عبور:",
|
||||
"info.clients": "کاربران:",
|
||||
"info.country": "کشور:",
|
||||
"info.muted": "میکروفون بیصدا:",
|
||||
"info.outputMuted": "بلندگو بیصدا:",
|
||||
"info.serverGroups": "گروههای سرور:",
|
||||
"info.yes": "بله",
|
||||
"info.no": "خیر",
|
||||
"tree.noMatches": "نتیجهای یافت نشد",
|
||||
"tree.search": "جستجوی کانالها و کاربران",
|
||||
"tree.label": "کانالها",
|
||||
"tree.notConnected": "متصل نیست",
|
||||
"tree.clickToSelect": "برای انتخاب کلیک کن، برای ورود دوبار کلیک کن",
|
||||
"tree.clickToJoin": "برای ورود دوبار کلیک کن",
|
||||
"tree.joinNotConnected": "متصل نیست — نمیتوان کانال را تغییر داد",
|
||||
"tree.passwordProtected": "محافظتشده با رمز عبور",
|
||||
"tree.privateChatWith": "گفتگوی خصوصی با",
|
||||
"tree.poke": "سقلمه",
|
||||
"tree.channelCommander": "فرمانده کانال",
|
||||
"tree.away": "غایب",
|
||||
"tree.micMuted": "میکروفون بیصدا",
|
||||
"tree.talking": "در حال صحبت",
|
||||
"tree.noTalkPower": "در این کانال حق صحبت ندارد",
|
||||
"tree.soundMuted": "صدا بیصدا (کر)",
|
||||
"tree.streaming": "در حال پخش زنده",
|
||||
"publish.alpha": "آلفا",
|
||||
"publish.alphaTitle": "آلفا - ناپایدار، ممکن است هر زمان تغییر کند یا از کار بیفتد",
|
||||
"publish.demoUnavailable": "پخش زنده در حالت دمو در دسترس نیست - به یک سرور واقعی TeamSpeak 6 نیاز دارد.",
|
||||
"publish.alphaNote": "پخش زنده در مرحله آلفا است. این ویژگی از پروتکل مستندنشده Stream/Call در TeamSpeak 6 استفاده میکند، بنابراین اتصال، کیفیت تصویر و مدیریت بینندگان ممکن است بدون اطلاع قبلی دچار خطا شوند یا تغییر کنند. برای استفاده تولیدی مناسب نیست.",
|
||||
"publish.start": "اشتراکگذاری صفحه",
|
||||
"publish.stop": "توقف اشتراکگذاری",
|
||||
"publish.title": "پخش زنده تو",
|
||||
"publish.screen": "صفحه نمایش",
|
||||
"publish.starting": "در حال شروع…",
|
||||
"publish.viewers": "{count} بیننده",
|
||||
"publish.request.allow": "اجازه دادن",
|
||||
"publish.request.deny": "رد کردن",
|
||||
"publish.request.block": "مسدود کردن",
|
||||
"publish.request.blockHint": "رد کردن و دیگر نپرسیدن",
|
||||
"publish.dialog.title": "تنظیمات پخش زنده",
|
||||
"publish.dialog.basic": "تنظیمات پایه",
|
||||
"publish.dialog.advanced": "تنظیمات پیشرفته",
|
||||
"publish.dialog.golive": "شروع پخش زنده",
|
||||
"publish.dialog.cancel": "بازگشت",
|
||||
"publish.preset": "پیشتنظیم",
|
||||
"publish.preset.presentation": "ارائه",
|
||||
"publish.audio": "ضبط صدا",
|
||||
"publish.privacy": "حریم خصوصی",
|
||||
"publish.privacy.public": "عمومی",
|
||||
"publish.privacy.contacts": "مخاطبین",
|
||||
"publish.privacy.private": "خصوصی",
|
||||
"publish.resolution": "وضوح تصویر",
|
||||
"publish.res.source": "منبع اصلی",
|
||||
"publish.fps": "فریم بر ثانیه",
|
||||
"publish.bitrate": "بیتریت",
|
||||
"publish.audioBitrate": "بیتریت صدا [کیلوبیت بر ثانیه]",
|
||||
"publish.viewerLimit": "حداکثر تعداد بیننده",
|
||||
"publish.mode": "حالت اتصال",
|
||||
"publish.mode.p2p": "نظیر به نظیر (P2P)",
|
||||
"publish.mode.server": "سرور",
|
||||
"publish.mode.serverUnavailable": "حالت سرور از طریق SFU در TS6 انجام میشود و هنوز پیادهسازی نشده است.",
|
||||
"stream.untitled": "پخش زنده",
|
||||
"stream.stop": "بستن پخش زنده",
|
||||
"stream.live": "زنده",
|
||||
"stream.state.new": "در انتظار پیشنهاد اتصال…",
|
||||
"stream.state.connecting": "در حال اتصال…",
|
||||
"stream.state.connected": "زنده",
|
||||
"stream.state.disconnected": "اتصال قطع شد",
|
||||
"stream.state.failed": "اتصال ناموفق بود",
|
||||
"stream.state.closed": "پایان یافت",
|
||||
"chat.server": "سرور",
|
||||
"chat.channel": "کانال",
|
||||
"chat.notConnected": "متصل نیست",
|
||||
"chat.messageChannel": "پیام به کانال...",
|
||||
"chat.messageServer": "پیام به سرور...",
|
||||
"chat.messagePartner": "پیام به {name}...",
|
||||
"chat.send": "ارسال",
|
||||
"chat.you": "شما",
|
||||
"serverLog.clientJoin": "{client} وارد کانال «{channel}» شد",
|
||||
"serverLog.clientLeave": "{client} قطع اتصال شد (خروج)",
|
||||
"serverLog.clientChannelSwitch": "{client} از کانال «{fromChannel}» به «{toChannel}» منتقل شد",
|
||||
"serverLog.clientChannelGroupAssigned": "گروه کانال «{group}» به {client} اختصاص یافت",
|
||||
"serverLog.channelCreated": "کانال «{channel}» ایجاد شد",
|
||||
"serverLog.channelDeleted": "کانال «{channel}» حذف شد",
|
||||
"serverLog.channelEdited": "کانال «{channel}» ویرایش شد",
|
||||
"serverLog.serverEdited": "تنظیمات سرور تغییر کرد",
|
||||
"serverLog.permissionError": "مجوز کافی نیست: {action}",
|
||||
"poke.title": "سقلمه",
|
||||
"poke.optionalMessage": "پیام اختیاری...",
|
||||
"poke.send": "سقلمه",
|
||||
"poke.cancel": "لغو",
|
||||
"poke.pokedYou": "به تو سقلمه زد",
|
||||
"poke.dismiss": "رد کردن",
|
||||
"kick.title": "اخراج:",
|
||||
"kick.reasonPlaceholder": "دلیل (اختیاری)...",
|
||||
"kick.confirm": "اخراج",
|
||||
"kick.cancel": "لغو",
|
||||
"ban.title": "مسدود کردن:",
|
||||
"ban.reasonPlaceholder": "دلیل (اختیاری)...",
|
||||
"ban.duration": "مدت زمان:",
|
||||
"ban.durationPermanent": "دائمی",
|
||||
"ban.duration1h": "۱ ساعت",
|
||||
"ban.duration1d": "۱ روز",
|
||||
"ban.duration1w": "۱ هفته",
|
||||
"ban.confirm": "مسدود کردن",
|
||||
"ban.cancel": "لغو",
|
||||
"serverEdit.title": "ویرایش سرور مجازی",
|
||||
"serverEdit.tab.host": "میزبان",
|
||||
"serverEdit.tab.misc": "متفرقه",
|
||||
"serverEdit.tab.transmission": "انتقال",
|
||||
"serverEdit.tab.antiflood": "ضد سیل پیام",
|
||||
"serverEdit.tab.security": "امنیت",
|
||||
"serverEdit.tab.log": "گزارش",
|
||||
"serverEdit.name": "نام سرور:",
|
||||
"serverEdit.welcomeMessage": "پیام خوشآمدگویی:",
|
||||
"serverEdit.clearPassword": "حذف رمز عبور سرور",
|
||||
"serverEdit.newPassword": "رمز عبور جدید سرور:",
|
||||
"serverEdit.hostmessage": "پیام میزبان:",
|
||||
"serverEdit.hostmessageMode": "حالت نمایش:",
|
||||
"serverEdit.hostmessageMode.none": "نمایش داده نشود",
|
||||
"serverEdit.hostmessageMode.log": "نمایش در گزارش",
|
||||
"serverEdit.hostmessageMode.modal": "نمایش بهصورت پنجره",
|
||||
"serverEdit.hostmessageMode.modalquit": "نمایش بهصورت پنجره و قطع اتصال",
|
||||
"serverEdit.hostbannerUrl": "آدرس بنر میزبان:",
|
||||
"serverEdit.hostbannerGfxUrl": "آدرس تصویر بنر میزبان:",
|
||||
"serverEdit.hostbannerGfxInterval": "بازه بهروزرسانی بنر (ثانیه):",
|
||||
"serverEdit.hostbannerMode": "مقیاس بنر:",
|
||||
"serverEdit.hostbannerMode.noadjust": "تنظیم نشود",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "تنظیم (نادیده گرفتن نسبت ابعاد)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "تنظیم (حفظ نسبت ابعاد)",
|
||||
"serverEdit.hostbuttonTooltip": "راهنمای دکمه میزبان:",
|
||||
"serverEdit.hostbuttonUrl": "آدرس دکمه میزبان:",
|
||||
"serverEdit.hostbuttonGfxUrl": "آدرس تصویر دکمه میزبان:",
|
||||
"serverEdit.maxClients": "حداکثر کاربران:",
|
||||
"serverEdit.nickname": "نام مستعار سرور:",
|
||||
"serverEdit.phoneticName": "تلفظ نام:",
|
||||
"serverEdit.codecEncryptionMode": "رمزنگاری صدا:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "قابل تنظیم برای هر کانال",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "غیرفعال سراسری",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "فعال سراسری",
|
||||
"serverEdit.unchanged": "بدون تغییر",
|
||||
"serverEdit.save": "ذخیره",
|
||||
"serverEdit.cancel": "لغو",
|
||||
"serverProtocolLog.title": "گزارش سرور",
|
||||
"serverProtocolLog.empty": "هیچ رکورد گزارشی وجود ندارد.",
|
||||
"banList.title": "لیست مسدودشدهها",
|
||||
"banList.empty": "هیچ مسدودیای یافت نشد.",
|
||||
"banList.name": "نام",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "ایجادشده",
|
||||
"banList.duration": "مدت زمان",
|
||||
"banList.invoker": "توسط",
|
||||
"banList.reason": "دلیل",
|
||||
"banList.permanent": "دائمی",
|
||||
"banList.delete": "حذف",
|
||||
"banList.deleteAll": "حذف همه",
|
||||
"complainList.title": "لیست شکایات",
|
||||
"complainList.empty": "هیچ شکایتی یافت نشد.",
|
||||
"complainList.target": "هدف",
|
||||
"complainList.from": "از طرف",
|
||||
"complainList.message": "پیام",
|
||||
"complainList.timestamp": "زمان",
|
||||
"offlineMessages.title": "پیامهای آفلاین",
|
||||
"offlineMessages.empty": "هیچ پیامی یافت نشد.",
|
||||
"offlineMessages.subject": "موضوع",
|
||||
"offlineMessages.from": "از طرف",
|
||||
"offlineMessages.timestamp": "زمان",
|
||||
"offlineMessages.targetUid": "شناسه یکتای مقصد",
|
||||
"offlineMessages.message": "پیام",
|
||||
"offlineMessages.send": "ارسال",
|
||||
"offlineMessages.new": "پیام جدید",
|
||||
"offlineMessages.markRead": "علامتگذاری بهعنوان خواندهشده",
|
||||
"offlineMessages.backToList": "بازگشت به لیست",
|
||||
"dialog.cancel": "لغو",
|
||||
"groupAssign.channelTitle": "اختصاص گروه کانال",
|
||||
"groupAssign.serverTitle": "اختصاص گروه سرور",
|
||||
"groupAssign.empty": "هیچ گروهی یافت نشد.",
|
||||
"groupAssign.clickToRemove": "برای حذف کلیک کن",
|
||||
"serverQueryLogin.username": "نام کاربری",
|
||||
"serverQueryLogin.password": "رمز عبور",
|
||||
"serverQueryLogin.login": "ورود",
|
||||
"permissionOverview.title": "مجوزهای من",
|
||||
"permissionOverview.empty": "هیچ مجوزی یافت نشد.",
|
||||
"permissionOverview.name": "مجوز",
|
||||
"permissionOverview.value": "مقدار",
|
||||
"permissionOverview.negated": "معکوسشده",
|
||||
"permissionOverview.skip": "رد شدن",
|
||||
"permsEditor.title": "مجوزها",
|
||||
"permsEditor.tab.server": "گروههای سرور",
|
||||
"permsEditor.tab.client": "مجوزهای کاربر",
|
||||
"permsEditor.tab.channel": "مجوزهای کانال",
|
||||
"permsEditor.tab.channelgroup": "گروههای کانال",
|
||||
"permsEditor.tab.channelclient": "مجوزهای کاربر در کانال",
|
||||
"permsEditor.clientDbId": "شناسه یکتای پایگاهداده کاربر:",
|
||||
"permsEditor.load": "بارگذاری",
|
||||
"permsEditor.pickOnlineClient": "یا یک کاربر آنلاین را انتخاب کن...",
|
||||
"permsEditor.pickTarget": "یک گروه/کانال را از سمت چپ انتخاب کن یا شناسه کاربر را وارد کن.",
|
||||
"permsEditor.addPermission": "افزودن",
|
||||
"permsEditor.searchPermission": "جستجوی مجوز...",
|
||||
"dialog.ok": "تأیید",
|
||||
"channelContext.join": "تغییر به این کانال",
|
||||
"channelContext.files": "فایلها...",
|
||||
"fileBrowser.title": "انتقال فایل",
|
||||
"fileBrowser.up": "بالا",
|
||||
"fileBrowser.tooLarge": "فایل خیلی بزرگ است – حداکثر {mb} مگابایت برای هر آپلود.",
|
||||
"fileBrowser.refresh": "بارگذاری مجدد",
|
||||
"fileBrowser.newFolder": "پوشه جدید",
|
||||
"fileBrowser.upload": "بارگذاری",
|
||||
"fileBrowser.folderName": "نام پوشه",
|
||||
"fileBrowser.empty": "این پوشه خالی است.",
|
||||
"fileBrowser.name": "نام",
|
||||
"fileBrowser.size": "حجم",
|
||||
"fileBrowser.modified": "آخرین تغییر",
|
||||
"fileBrowser.download": "دانلود",
|
||||
"fileBrowser.rename": "تغییر نام",
|
||||
"fileBrowser.delete": "حذف",
|
||||
"fileBrowser.deleteConfirm": "واقعاً حذف شود؟",
|
||||
"fileBrowser.uploading": "در حال بارگذاری...",
|
||||
"fileBrowser.downloading": "در حال دانلود...",
|
||||
"serverContext.icons": "آیکونهای سرور...",
|
||||
"serverIcons.title": "مدیریت آیکونهای سرور",
|
||||
"serverIcons.upload": "بارگذاری آیکون",
|
||||
"serverIcons.iconId": "شناسه آیکون",
|
||||
"serverIcons.empty": "هیچ آیکونی یافت نشد.",
|
||||
"clientContext.privateChat": "گفتگوی خصوصی",
|
||||
"clientContext.poke": "سقلمه",
|
||||
"clientContext.watchStream": "تماشای پخش زنده",
|
||||
"clientContext.moveTo": "انتقال به…",
|
||||
"clientContext.volume": "بلندی صدا",
|
||||
"clientContext.volumeHint": "فقط برای شما. دوبار کلیک به ۱۰۰٪ برمیگرداند.",
|
||||
"clientContext.copyName": "کپی نام",
|
||||
"clientContext.connectionInfo": "نمایش اطلاعات اتصال",
|
||||
"clientContext.addWhisperTarget": "افزودن به مقصدهای نجوا",
|
||||
"clientContext.removeWhisperTarget": "حذف از مقصدهای نجوا",
|
||||
"clientContext.assignChannelGroup": "اختصاص گروه کانال",
|
||||
"clientContext.assignServerGroup": "اختصاص گروه سرور",
|
||||
"clientContext.kickChannel": "اخراج از کانال",
|
||||
"clientContext.kick": "اخراج از سرور",
|
||||
"clientContext.ban": "مسدود کردن",
|
||||
"clientContext.notSupported": "هنوز در کلاینت وب پشتیبانی نمیشود",
|
||||
"moveClient.title": "انتقال",
|
||||
"moveClient.empty": "هیچ کانالی موجود نیست.",
|
||||
"moveClient.current": "کانال فعلی",
|
||||
"moveClient.spacer": "فاصلهگذار",
|
||||
"serverContext.connectionInfo": "اطلاعات اتصال سرور",
|
||||
"serverContext.copyAddress": "کپی آدرس سرور",
|
||||
"serverContext.addFavorite": "افزودن به نشانکها",
|
||||
"serverContext.disconnect": "قطع اتصال",
|
||||
"connectError.dismiss": "رد کردن",
|
||||
"connectError.gatewayFull": "گیتوی در حال حاضر پر است. چند دقیقه دیگر دوباره امتحان کنید – یا WebSpeak3 را خودتان میزبانی کنید: github.com/WebSpeak3/webspeak3",
|
||||
"dialog.close": "بستن",
|
||||
"sounds.title": "صداها",
|
||||
"sounds.subtitle": "پیکربندی اعلانهای صوتی برای رویدادها",
|
||||
"sounds.enable": "فعالسازی صداها",
|
||||
"sounds.volume": "میزان صدا",
|
||||
"sounds.eventEnable": "فعالسازی این صدا",
|
||||
"sounds.event.connect": "متصل شد",
|
||||
"sounds.event.disconnect": "قطع اتصال شد",
|
||||
"sounds.event.clientJoin": "ورود کاربر",
|
||||
"sounds.event.clientLeave": "خروج کاربر",
|
||||
"sounds.event.message": "پیام دریافت شد",
|
||||
"sounds.event.poke": "سقلمه دریافت شد",
|
||||
"sounds.event.mute": "تغییر حالت بیصدا",
|
||||
"sounds.event.micClickOn": "کلیک میکروفون روشن",
|
||||
"sounds.event.micClickOff": "کلیک میکروفون خاموش",
|
||||
"sounds.event.whisper": "نجوا دریافت شد",
|
||||
"sounds.default": "پیشفرض",
|
||||
"sounds.custom": "فایل سفارشی: {name}",
|
||||
"sounds.test": "▶ آزمایش",
|
||||
"sounds.upload": "بارگذاری",
|
||||
"sounds.reset": "بازنشانی",
|
||||
"sounds.importSoundpack": "وارد کردن بسته صوتی (.ts3soundpack)",
|
||||
"sounds.importResult": "{matched} صدا وارد شد، {unmatched} فایل مطابقت نداشت",
|
||||
"nachrichten.title": "پیامها",
|
||||
"nachrichten.subtitle": "سفارشیسازی پیامها",
|
||||
"nachrichten.disconnectMessage": "قطع اتصال:",
|
||||
"nachrichten.disconnectMessagePlaceholder": "خروج",
|
||||
"nachrichten.presetsTitle": "پیامهای از پیش تنظیمشده",
|
||||
"nachrichten.type": "نوع",
|
||||
"nachrichten.type.away": "غیبت",
|
||||
"nachrichten.templateName": "نام الگو",
|
||||
"nachrichten.message": "پیام",
|
||||
"nachrichten.add": "افزودن",
|
||||
"nachrichten.delete": "حذف",
|
||||
"tabs.disconnect": "قطع اتصال",
|
||||
"identity.importInvalid": "«{file}» یک فایل هویت معتبر نیست.",
|
||||
"log.fileTransferFailed": "انتقال فایل ناموفق بود:",
|
||||
"log.serverReconnecting": "اتصال به سرور قطع شد، در حال اتصال دوباره…",
|
||||
"log.serverReconnected": "دوباره به سرور متصل شد",
|
||||
"log.fileTransferInvalidAddress": "انتقال فایل ناموفق بود (نشانی نامعتبر)",
|
||||
"sounds.importFailed": "این بسته صدا خوانده نشد - آیا یک فایل .ts3soundpack/ZIP معتبر است؟",
|
||||
"tabs.connections": "اتصالهای سرور",
|
||||
"shortcut.ctrl": "Ctrl",
|
||||
"about.text": "WebSpeak3 یک کلاینت TeamSpeak برای مرورگر است، متنباز و بدون نیاز به نصب.",
|
||||
"about.memorial.title": "به یاد Akimo",
|
||||
"about.memorial.text": "در ۲۱ اکتبر ۲۰۲۶ از پل رنگینکمان گذشت. 🌈🐾",
|
||||
"about.close": "بستن",
|
||||
"menu.extras.fileTransfers": "انتقال فایلها",
|
||||
"transfers.title": "انتقال فایلها",
|
||||
"transfers.empty": "انتقالی وجود ندارد.",
|
||||
"transfers.up": "آپلود",
|
||||
"transfers.down": "دانلود",
|
||||
"transfers.status.queued": "در صف",
|
||||
"transfers.status.running": "در حال انجام",
|
||||
"transfers.status.done": "تمام شد",
|
||||
"transfers.status.error": "ناموفق",
|
||||
"transfers.clearFinished": "حذف تمامشدهها",
|
||||
"transfers.finished": "انتقال تمام شد: {name}",
|
||||
"downloadSettings.subtitle": "تنظیمات دانلود",
|
||||
"downloadSettings.directory": "پوشه دانلود",
|
||||
"downloadSettings.directoryLabel": "پوشه برای دانلودها:",
|
||||
"downloadSettings.browserDefault": "پیشفرض مرورگر",
|
||||
"downloadSettings.change": "تغییر",
|
||||
"downloadSettings.reset": "بازنشانی",
|
||||
"downloadSettings.alwaysDir": "همیشه در این پوشه ذخیره شود",
|
||||
"downloadSettings.askEachTime": "هر بار پوشه دانلود پرسیده شود",
|
||||
"downloadSettings.unsupported": "این مرورگر نمیتواند پوشه انتخاب کند؛ دانلودها در پوشه دانلود مرورگر ذخیره میشوند.",
|
||||
"downloadSettings.interface": "رابط",
|
||||
"downloadSettings.showWindowOnStart": "نمایش پنجره انتقال فایل هنگام شروع دانلود",
|
||||
"downloadSettings.closeWindowWhenDone": "بستن پنجره انتقال فایل پس از پایان همه دانلودها",
|
||||
"downloadSettings.popupWhenDone": "نمایش پیام پس از پایان انتقال",
|
||||
"downloadSettings.uploadLimit": "پهنای باند آپلود",
|
||||
"downloadSettings.downloadLimit": "پهنای باند دانلود",
|
||||
"downloadSettings.maxUploads": "آپلودهای همزمان",
|
||||
"downloadSettings.maxDownloads": "دانلودهای همزمان",
|
||||
"downloadSettings.unlimited": "بدون محدودیت",
|
||||
"downloadSettings.limitedTo": "محدود به",
|
||||
"chatSettings.subtitle": "تنظیمات چت",
|
||||
"chatSettings.window": "پنجره چت",
|
||||
"chatSettings.maxLines": "حداکثر تعداد خطوط:",
|
||||
"chatSettings.font": "قلم:",
|
||||
"chatSettings.fontDefault": "پیشفرض",
|
||||
"chatSettings.fontReset": "بازنشانی قلم",
|
||||
"chatSettings.fontPreview": "چت با این قلم اینگونه دیده میشود.",
|
||||
"chatSettings.autoLog": "ثبت خودکار",
|
||||
"chatSettings.logChannel": "ثبت چتهای کانال",
|
||||
"chatSettings.logPrivate": "ثبت چتهای خصوصی",
|
||||
"chatSettings.logServer": "ثبت چتهای سرور",
|
||||
"chatSettings.logHint": "گزارشها فقط در این مرورگر ذخیره میشوند (۱۰۰۰ خط آخر هر چت).",
|
||||
"chatSettings.restore": "بارگذاری گزارشها",
|
||||
"chatSettings.restoreChannelLines": "بارگذاری گزارش چت کانال",
|
||||
"chatSettings.restorePrivateLines": "بارگذاری گزارش چت خصوصی",
|
||||
"chatSettings.notify": "اعلان برای پیامهای ورودی",
|
||||
"chatSettings.notifyServer": "سرور",
|
||||
"chatSettings.notifyChannel": "کانال",
|
||||
"chatSettings.notifyPrivate": "خصوصی",
|
||||
"chatSettings.linesUnit": "خط",
|
||||
"chatSettings.last": "آخرین",
|
||||
"securitySettings.subtitle": "تنظیمات امنیتی",
|
||||
"securitySettings.passwords": "رمزها",
|
||||
"securitySettings.saveChannelPasswords": "ذخیره رمز کانالها",
|
||||
"securitySettings.clearChannelPasswords": "حذف رمز کانالها",
|
||||
"securitySettings.channelPasswordsCleared": "رمزهای ذخیرهشده کانال حذف شدند.",
|
||||
"securitySettings.masterPassword": "استفاده از رمز اصلی",
|
||||
"securitySettings.changeMasterPassword": "تغییر رمز اصلی",
|
||||
"securitySettings.cleanup": "پاکسازی",
|
||||
"securitySettings.clearCacheOnExit": "خالی کردن حافظه نهان هنگام خروج",
|
||||
"securitySettings.clearUrlsOnExit": "حذف URLها هنگام خروج",
|
||||
"securitySettings.clearCache": "خالی کردن حافظه نهان",
|
||||
"securitySettings.cacheCleared": "حافظه نهان خالی شد.",
|
||||
"securitySettings.identities": "هویتها",
|
||||
"securitySettings.manageIdentities": "مدیریت هویتها",
|
||||
"notify.connection": "اتصال",
|
||||
"notify.connected": "به سرور متصل شد",
|
||||
"notify.disconnected": "از سرور قطع شد",
|
||||
"notify.lostConnection": "اتصال به سرور از دست رفت",
|
||||
"notify.channel": "کانال",
|
||||
"notify.created": "ایجاد شد",
|
||||
"notify.deleted": "حذف شد",
|
||||
"notify.edited": "ویرایش شد",
|
||||
"notify.moved": "جابجا شد",
|
||||
"notify.currentChannel": "کانال فعلی",
|
||||
"notify.otherChannel": "کانال دیگر",
|
||||
"notify.byYou": "توسط شما",
|
||||
"notify.byOther": "توسط کلاینت دیگر",
|
||||
"notify.server": "سرور",
|
||||
"notify.insufficientPermissions": "دسترسی ناکافی",
|
||||
"notify.error": "خطا",
|
||||
"notify.client": "کلاینت",
|
||||
"notify.switched": "کانال را عوض کرد",
|
||||
"notify.movedClient": "منتقل شد",
|
||||
"notify.kickedChannel": "از کانال اخراج شد",
|
||||
"notify.kickedServer": "از سرور اخراج شد",
|
||||
"notify.banned": "مسدود شد",
|
||||
"notify.toCurrent": "به کانال فعلی",
|
||||
"notify.fromCurrent": "از کانال فعلی",
|
||||
"notify.toOther": "به کانال دیگر",
|
||||
"notify.appears": "ظاهر میشود",
|
||||
"notify.stays": "قابل مشاهده میماند",
|
||||
"notify.disappears": "ناپدید میشود",
|
||||
"notify.serverGroup": "گروه سرور",
|
||||
"notify.channelGroup": "گروه کانال تغییر کرد",
|
||||
"notify.added": "اضافه شد",
|
||||
"notify.removed": "حذف شد",
|
||||
"notify.byServer": "توسط سرور",
|
||||
"notify.byUser": "توسط کاربر",
|
||||
"notify.recording": "ضبط",
|
||||
"notify.recordingStart": "ضبط شروع شد",
|
||||
"notify.recordingStop": "ضبط متوقف شد",
|
||||
"notify.recordingInChannel": "ضبط در کانال فعال است",
|
||||
"notify.talkPowerRequested": "درخواست اجازه صحبت",
|
||||
"notify.self": "خود",
|
||||
"notify.youSwitched": "کانال را عوض کردید",
|
||||
"notify.youMoved": "به کانال دیگری منتقل شدید",
|
||||
"notify.youKickedServer": "از سرور اخراج شدید",
|
||||
"notify.youKickedChannel": "از کانال اخراج شدید",
|
||||
"notify.youBanned": "مسدود شدید",
|
||||
"notify.talkPowerGranted": "اجازه صحبت داده شد",
|
||||
"notify.talkPowerRevoked": "اجازه صحبت گرفته شد",
|
||||
"notify.chat": "گفتگو",
|
||||
"notify.messageSent": "پیام ارسال شد",
|
||||
"notify.messageReceived": "پیام دریافت شد",
|
||||
"notify.capture": "ضبط صدا",
|
||||
"notify.playback": "پخش صدا",
|
||||
"notify.muted": "بیصدا شد",
|
||||
"notify.unmuted": "فعال شد",
|
||||
"notify.status": "وضعیت",
|
||||
"notify.away": "غایب",
|
||||
"notify.present": "برگشت",
|
||||
"notify.other": "سایر",
|
||||
"notify.poked": "سقلمه خوردید",
|
||||
"notify.transferComplete": "انتقال فایل کامل شد",
|
||||
"notify.transferFailed": "انتقال فایل ناموفق بود",
|
||||
"notify.whisperListEmpty": "فهرست نجوا خالی است",
|
||||
"notify.whisperTargetNotFound": "هدف نجوا پیدا نشد",
|
||||
"notify.whisperTooMany": "اهداف نجوا بیش از حد",
|
||||
"notify.special": "ویژه",
|
||||
"notify.micClickOtherOn": "کلیک میکروفون دیگران روشن",
|
||||
"notify.micClickOtherOff": "کلیک میکروفون دیگران خاموش",
|
||||
"notify.micClickSelfOn": "کلیک میکروفون خود روشن",
|
||||
"notify.micClickSelfOff": "کلیک میکروفون خود خاموش",
|
||||
"notify.whisperNotify": "اعلان نجوا",
|
||||
"notify.soundTest": "آزمایش صدا",
|
||||
"notify.test3d": "آزمایش سهبعدی",
|
||||
"notify.talkingWhileMuted": "صحبت در حالت بیصدا",
|
||||
"notify.subtitle": "تنظیم اعلانها",
|
||||
"notify.soundPack": "بسته صدا:",
|
||||
"notify.pack.builtin": "پیشفرض WebSpeak3",
|
||||
"notify.pack.none": "بدون صدا",
|
||||
"notify.importPack": "وارد کردن بسته صدای TS3 (.ts3_soundpack / .zip)",
|
||||
"notify.deletePack": "حذف بسته صدا",
|
||||
"notify.deletePackConfirm": "بسته صدای \"{name}\" حذف شود؟",
|
||||
"notify.importFailed": "این یک بسته صدای معتبر TS3 نیست (settings.ini وجود ندارد).",
|
||||
"notify.whenMuted": "وقتی خروجی بیصداست:",
|
||||
"notify.whenMuted.all": "پخش همه صداها",
|
||||
"notify.whenMuted.none": "هیچ صدایی پخش نشود",
|
||||
"notify.hintBefore": "توجه: بسته صدا را میتوان برای هر ",
|
||||
"notify.hintLink": "مورد علاقه",
|
||||
"notify.hintAfter": "جداگانه تنظیم کرد.",
|
||||
"notify.col.action": "رویداد",
|
||||
"notify.col.script": "اسکریپت صدا",
|
||||
"notify.col.text": "محل متن",
|
||||
"notify.text.server": "سرور",
|
||||
"notify.text.channel": "کانال",
|
||||
"notify.resetAll": "بازنشانی همه تغییرات",
|
||||
"notify.applyToFavorites": "استفاده از این بسته صدا برای همه موارد علاقه",
|
||||
"notify.applyToFavoritesConfirm": "همه موارد علاقه روی این بسته صدا تنظیم شوند؟ بستههای صدای جداگانه بازنشانی میشوند.",
|
||||
"notify.whenMuted.important": "فقط صداهای مهم پخش شوند",
|
||||
"notify.text.client": "کلاینت",
|
||||
"vault.title": "رمز اصلی",
|
||||
"vault.prompt": "هویتها و رمزهای ذخیرهشده شما رمزنگاری شدهاند. رمز اصلی را وارد کنید.",
|
||||
"vault.unlock": "باز کردن",
|
||||
"vault.wrong": "رمز اشتباه است.",
|
||||
"vault.forgot": "رمز را فراموش کردهام",
|
||||
"vault.forgotConfirm": "بدون رمز، دادهها قابل بازیابی نیستند. هویتها، موارد علاقه و رمزهای ذخیرهشده برای همیشه حذف شوند و از نو شروع کنید؟",
|
||||
"securitySettings.masterHint": "هویتها، موارد علاقه (با رمزها) و رمزهای ذخیرهشده کانال را رمزنگاری میکند. پس از هر بارگذاری پرسیده میشود.",
|
||||
"securitySettings.masterCurrent": "رمز اصلی فعلی",
|
||||
"securitySettings.masterNew": "رمز اصلی جدید",
|
||||
"securitySettings.masterRepeat": "تکرار",
|
||||
"securitySettings.masterMismatch": "رمزها یکسان نیستند.",
|
||||
"securitySettings.masterNote": "آن را به خاطر بسپارید: بدون آن، هویتها و رمزهای ذخیرهشده از دست میروند.",
|
||||
"sync.subtitle": "دادههای تو روی همه دستگاهها",
|
||||
"sync.intro": "حساب فقط یک شماره تصادفی است، در صورت تمایل با رمز عبور. بدون ایمیل، بدون نام. همه چیز پیش از بارگذاری روی دستگاه تو رمزگذاری میشود. سرور فقط دادههای ناخوانا میبیند.",
|
||||
"sync.create.title": "حساب جدید",
|
||||
"sync.create.withPassword": "یک رمز عبور تصادفی هم بساز (پیشنهادی)",
|
||||
"sync.create.withPasswordHint": "بدون رمز عبور، شماره حساب بهتنهایی برای دسترسی به دادههایت کافی است.",
|
||||
"sync.create.button": "ساخت حساب",
|
||||
"sync.create.busy": "در حال ساخت حساب …",
|
||||
"sync.login.title": "حساب موجود",
|
||||
"sync.number": "شماره حساب",
|
||||
"sync.password": "رمز عبور",
|
||||
"sync.passwordOptional": "رمز عبور (در صورت وجود)",
|
||||
"sync.login.hint": "پس از آن دادههای حساب جایگزین دادههای این دستگاه میشوند.",
|
||||
"sync.login.button": "ورود",
|
||||
"sync.server": "سرور همگامسازی",
|
||||
"sync.serverDefault": "پیشفرض (سرور رسمی WebSpeak3)",
|
||||
"sync.serverHint": "برای سرور رسمی خالی بگذار. هر حساب فقط روی سروری وجود دارد که روی آن ساخته شده است.",
|
||||
"sync.account.title": "حساب تو",
|
||||
"sync.copy": "کپی",
|
||||
"sync.copied": "کپی شد",
|
||||
"sync.show": "نمایش",
|
||||
"sync.hide": "پنهان",
|
||||
"sync.noPassword": "بدون رمز عبور",
|
||||
"sync.keepSafe": "شماره و رمز عبور را در جای امن نگه دار. اگر گم شوند، هیچکس نمیتواند دادههایت را بازیابی کند، حتی ما.",
|
||||
"sync.recoveryFile": "دانلود فایل بازیابی",
|
||||
"sync.qr.show": "نمایش کد QR",
|
||||
"sync.qr.hide": "پنهان کردن کد QR",
|
||||
"sync.qr.hint": "با دستگاه دیگر اسکن کن تا آنجا وارد شوی. هر کسی این کد را ببیند به حسابت دسترسی دارد.",
|
||||
"sync.password.add": "افزودن رمز عبور",
|
||||
"sync.password.remove": "حذف رمز عبور",
|
||||
"sync.password.addConfirm": "یک رمز عبور تصادفی جدید ساخته شود؟ دستگاههای دیگر باید با شماره و رمز عبور دوباره وارد شوند.",
|
||||
"sync.password.removeConfirm": "رمز عبور حذف شود؟ آنگاه شماره حساب بهتنهایی کافی است. دستگاههای دیگر باید دوباره وارد شوند.",
|
||||
"sync.categories": "همگامسازی",
|
||||
"sync.category.identities": "هویتها (شامل کلیدهای خصوصی)",
|
||||
"sync.category.favorites": "علاقهمندیها، رمز کانالها و مخاطبان",
|
||||
"sync.category.settings": "تنظیمات",
|
||||
"sync.category.designs": "طرحها و بستههای آیکون",
|
||||
"sync.category.whisper": "فهرستهای نجوا",
|
||||
"sync.categoriesHint": "دستگاههای صوتی، حجم صدا، کلید PTT و گزارشهای چت همیشه روی دستگاه میمانند.",
|
||||
"sync.status": "وضعیت",
|
||||
"sync.status.syncing": "در حال همگامسازی …",
|
||||
"sync.status.last": "آخرین همگامسازی: {time}",
|
||||
"sync.status.never": "هنوز همگامسازی نشده",
|
||||
"sync.conflict.title": "همگامسازی",
|
||||
"sync.conflict.text": "از آخرین همگامسازی، هم این دستگاه و هم حساب تغییر کردهاند. کدام معتبر باشد؟",
|
||||
"sync.conflict.local": "بارگذاری دادههای این دستگاه",
|
||||
"sync.conflict.server": "بارگیری دادههای حساب",
|
||||
"sync.syncNow": "همگامسازی اکنون",
|
||||
"sync.serverInfo": "سرور: {server}",
|
||||
"sync.logout": "خروج",
|
||||
"sync.logoutConfirm": "این دستگاه از حساب خارج شود؟ حساب و دادههایش حفظ میشوند.",
|
||||
"sync.delete": "حذف حساب",
|
||||
"sync.deleteConfirm": "حساب و همه دادههایش روی سرور برای همیشه حذف شود؟ دادههای این دستگاه باقی میمانند.",
|
||||
"sync.link.title": "اتصال به حساب",
|
||||
"sync.link.prompt": "این دستگاه به حساب {number} متصل شود؟ دادههای حساب جایگزین دادههای این دستگاه میشوند.",
|
||||
"sync.link.connect": "اتصال",
|
||||
"sync.error.password_required": "این حساب رمز عبور دارد.",
|
||||
"sync.error.unreachable": "سرور همگامسازی در دسترس نیست.",
|
||||
"sync.error.not_found": "حساب پیدا نشد یا رمز عبور اشتباه است. اگر رمز عبور روی دستگاه دیگری تغییر کرده، دوباره وارد شو.",
|
||||
"sync.error.rate_limited": "درخواستها بیش از حد است، لطفاً بعداً دوباره امتحان کن.",
|
||||
"sync.error.full": "سرور همگامسازی فعلاً حساب جدید نمیپذیرد.",
|
||||
"sync.error.pow_required": "بررسی امنیتی ناموفق بود، دوباره امتحان کن.",
|
||||
"sync.error.conflict": "دستگاه دیگری در این فاصله چیزی را تغییر داده است.",
|
||||
"sync.error.payload_too_large": "داده برای همگامسازی بیش از حد است (حداکثر ۱ مگابایت).",
|
||||
"sync.error.generic": "همگامسازی ناموفق بود."
|
||||
}
|
||||
@@ -0,0 +1,997 @@
|
||||
{
|
||||
"menu.connections": "连接",
|
||||
"menu.connections.connect": "连接",
|
||||
"menu.connections.disconnectCurrent": "断开当前服务器",
|
||||
"menu.connections.disconnectAll": "断开所有服务器",
|
||||
"menu.favorites": "收藏夹",
|
||||
"menu.favorites.add": "添加到收藏夹",
|
||||
"menu.favorites.manage": "管理收藏夹",
|
||||
"menu.self": "自己",
|
||||
"menu.rights": "权限",
|
||||
"menu.rights.serverGroups": "编辑服务器组...",
|
||||
"menu.rights.channelGroups": "编辑频道组...",
|
||||
"menu.rights.serverPermissions": "编辑服务器权限...",
|
||||
"menu.rights.channelPermissions": "编辑频道权限...",
|
||||
"menu.rights.overview": "权限概览...",
|
||||
"menu.rights.myRights": "查看我的权限",
|
||||
"menu.extras": "工具",
|
||||
"menu.help": "帮助",
|
||||
"menu.extras.identities": "身份",
|
||||
"menu.extras.contacts": "联系人",
|
||||
"menu.extras.collectedUrls": "收集的链接",
|
||||
"menu.extras.inviteFriend": "邀请好友",
|
||||
"menu.extras.whisperLists": "悄悄话列表",
|
||||
"menu.extras.whisperHistory": "悄悄话历史",
|
||||
"menu.extras.clientLog": "客户端日志",
|
||||
"menu.extras.banList": "封禁列表",
|
||||
"menu.extras.complaintList": "投诉列表",
|
||||
"menu.extras.offlineMessages": "离线消息",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery 登录",
|
||||
"menu.extras.serverLog": "服务器日志",
|
||||
"menu.extras.startRecording": "开始录音",
|
||||
"menu.extras.startMultitrackRecording": "开始多轨录音",
|
||||
"menu.extras.stopRecording": "停止录音",
|
||||
"menu.extras.options": "选项",
|
||||
"toolbar.setAway": "设为离开",
|
||||
"toolbar.backOnline": "恢复在线",
|
||||
"toolbar.awayOptions": "离开选项",
|
||||
"toolbar.whisper": "悄悄话目标",
|
||||
"whisper.channels": "频道",
|
||||
"whisper.clients": "用户",
|
||||
"whisper.clearAll": "清除所有悄悄话目标",
|
||||
"toolbar.micEnable": "启用麦克风",
|
||||
"toolbar.micMute": "麦克风静音",
|
||||
"toolbar.micUnmute": "取消麦克风静音",
|
||||
"toolbar.vadSensitivity": "语音激活灵敏度",
|
||||
"toolbar.pushToTalk": "按住说话",
|
||||
"tabAudio.start": "将标签页或窗口的声音共享到语音频道(戴耳机可避免回声)",
|
||||
"tabAudio.stop": "停止共享声音",
|
||||
"tabAudio.noAudio": "没有共享声音。请在选择窗口中选择标签页或窗口,并开启其声音。",
|
||||
"tabAudio.silent": "共享的声音已 5 秒没有任何内容。系统音频并非在每台 Windows 电脑上都有声音;请改为共享浏览器标签页(例如网页版 Spotify 或 YouTube),并开启“共享标签页音频”。",
|
||||
"toolbar.muteSound": "关闭声音(拒听)",
|
||||
"toolbar.unmuteSound": "开启声音(取消拒听)",
|
||||
"toolbar.chooseOutputDevice": "选择输出设备",
|
||||
"toolbar.toggleTheme": "切换主题",
|
||||
"away.setGlobal": "全局设为离开",
|
||||
"away.setGlobalStatus": "设置全局离开状态",
|
||||
"connect.title": "连接",
|
||||
"connect.serverAddress": "服务器昵称或地址:",
|
||||
"connect.serverPassword": "服务器密码:",
|
||||
"connect.nickname": "昵称:",
|
||||
"connect.phoneticNickname": "昵称读音:",
|
||||
"connect.identity": "身份:",
|
||||
"connect.defaultChannel": "默认频道:",
|
||||
"connect.recordingProfile": "录音配置:",
|
||||
"connect.channelPassword": "频道密码:",
|
||||
"connect.playbackProfile": "播放配置:",
|
||||
"connect.onetimeGrant": "一次性权限密钥:",
|
||||
"connect.serverType": "服务器类型:",
|
||||
"connect.serverType.auto": "自动",
|
||||
"connect.serverType.teamspeak": "TeamSpeak",
|
||||
"connect.serverType.teaspeak": "TeaSpeak",
|
||||
"connect.hotkeyProfile": "快捷键配置:",
|
||||
"connect.soundPack": "声音包:",
|
||||
"connect.more": "更多",
|
||||
"connect.less": "收起",
|
||||
"connect.connect": "连接",
|
||||
"connect.connecting": "正在连接…",
|
||||
"connect.newTab": "在新标签页中打开",
|
||||
"connect.cancel": "取消",
|
||||
"collectedUrls.title": "收集的链接",
|
||||
"collectedUrls.search": "搜索:",
|
||||
"collectedUrls.url": "链接",
|
||||
"collectedUrls.count": "次数",
|
||||
"collectedUrls.lastSeen": "最后提及",
|
||||
"collectedUrls.mentionedBy": "提及者",
|
||||
"collectedUrls.clearList": "清空列表",
|
||||
"inviteFriend.title": "邀请好友",
|
||||
"inviteFriend.type": "邀请类型",
|
||||
"inviteFriend.includeChannel": "包含当前频道",
|
||||
"inviteFriend.link": "链接",
|
||||
"inviteFriend.webspeak3Link": "WebSpeak3 链接",
|
||||
"inviteFriend.addPermissionKey": "添加权限密钥",
|
||||
"inviteFriend.copyToClipboard": "复制到剪贴板",
|
||||
"inviteFriend.copied": "已复制!",
|
||||
"clientLog.title": "客户端日志",
|
||||
"clientLog.level.critical": "严重",
|
||||
"clientLog.level.error": "错误",
|
||||
"clientLog.level.warning": "警告",
|
||||
"clientLog.level.info": "信息",
|
||||
"clientLog.level.debug": "调试",
|
||||
"clientLog.search": "搜索:",
|
||||
"clientLog.filter": "筛选:",
|
||||
"clientLog.caseSensitive": "区分大小写",
|
||||
"clientLog.mark": "标记",
|
||||
"whisperHistory.title": "悄悄话历史 - {server}",
|
||||
"whisperHistory.empty": "暂无悄悄话历史。",
|
||||
"whisperHistory.started": "正在向以下目标发送悄悄话:{targets}",
|
||||
"whisperSettings.subtitle": "悄悄话设置",
|
||||
"whisperSettings.rights": "传入悄悄话权限",
|
||||
"whisperSettings.mode.allow": "使用联系人单独设置,否则允许",
|
||||
"whisperSettings.mode.block": "使用联系人单独设置,否则禁止",
|
||||
"whisperSettings.mode.blockAll": "全部禁止",
|
||||
"whisperSettings.incoming": "传入悄悄话设置",
|
||||
"whisperSettings.sound": "有人对你悄悄话时播放声音",
|
||||
"whisperSettings.openHistory": "有人对你悄悄话时总是打开悄悄话记录",
|
||||
"whisperSettings.clearAfter": "从悄悄话记录中移除客户端的时间",
|
||||
"whisperSettings.minutes": "分钟",
|
||||
"whisperHistory.received": "{name} 对你说了悄悄话",
|
||||
"whisperHistory.stopped": "已停止悄悄话",
|
||||
"whisperHistory.clear": "清除",
|
||||
"whisperHistory.options": "选项",
|
||||
"whisperLists.title": "悄悄话列表",
|
||||
"whisperLists.namePlaceholder": "列表名称",
|
||||
"whisperLists.saveCurrent": "保存当前选择",
|
||||
"whisperLists.itemDetail": "{channels} 个频道,{clients} 个用户",
|
||||
"whisperLists.activate": "启用",
|
||||
"whisperLists.delete": "删除",
|
||||
"whisperLists.empty": "尚未保存悄悄话列表。请选择悄悄话目标并在此保存为列表。",
|
||||
"identities.title": "身份",
|
||||
"identities.activate": "启用",
|
||||
"identities.add": "新建身份",
|
||||
"identities.delete": "删除",
|
||||
"identities.newName": "新身份",
|
||||
"identities.generated": "已生成",
|
||||
"identities.pending": "将在下次连接时生成",
|
||||
"identities.listLabel": "本地身份",
|
||||
"identities.name": "身份名称:",
|
||||
"identities.phoneticNickname": "昵称读音:",
|
||||
"identities.uniqueId": "唯一 ID:",
|
||||
"identities.unknown": "未知",
|
||||
"identities.setDefault": "设为默认",
|
||||
"identities.isDefault": "当前用作默认身份",
|
||||
"identities.export": "导出",
|
||||
"identities.import": "导入",
|
||||
"connectionInfo.clientTitle": "连接信息 - {name}",
|
||||
"connectionInfo.serverTitle": "服务器连接信息",
|
||||
"connectionInfo.loading": "正在加载…",
|
||||
"connectionInfo.unavailable": "服务器无响应(可能缺少权限)。",
|
||||
"connectionInfo.ping": "延迟:",
|
||||
"connectionInfo.connectedSince": "连接时间:",
|
||||
"connectionInfo.uptime": "运行时间:",
|
||||
"connectionInfo.name": "名称:",
|
||||
"connectionInfo.avgPing": "平均延迟:",
|
||||
"connectionInfo.avgPacketLoss": "平均丢包率:",
|
||||
"connectionInfo.incoming": "传入",
|
||||
"connectionInfo.outgoing": "传出",
|
||||
"connectionInfo.packetsTransferred": "传输数据包",
|
||||
"connectionInfo.bytesTransferred": "传输字节",
|
||||
"connectionInfo.bandwidthLastSecond": "上一秒带宽",
|
||||
"connectionInfo.bandwidthLastMinute": "上一分钟带宽",
|
||||
"connectionInfo.ftBandwidth": "文件传输带宽",
|
||||
"connectionInfo.ftBytes": "文件传输字节",
|
||||
"connectionInfo.ip": "IP 地址:",
|
||||
"connectionInfo.packetLoss": "丢包率:",
|
||||
"connectionInfo.packetsSent": "已发送数据包:",
|
||||
"connectionInfo.packetsReceived": "已接收数据包:",
|
||||
"connectionInfo.bytesSent": "已发送数据:",
|
||||
"connectionInfo.bytesReceived": "已接收数据:",
|
||||
"connectionInfo.bandwidthSent": "发送带宽:",
|
||||
"connectionInfo.bandwidthReceived": "接收带宽:",
|
||||
"menu.self.recordingProfile": "录音配置",
|
||||
"menu.self.playbackProfile": "播放配置",
|
||||
"menu.self.hotkeyProfile": "快捷键配置",
|
||||
"menu.self.soundPack": "声音包",
|
||||
"menu.self.setAway": "设为离开",
|
||||
"menu.self.enableMic": "启用麦克风",
|
||||
"menu.self.disableMic": "禁用麦克风",
|
||||
"menu.self.muteOutput": "关闭扬声器/耳机",
|
||||
"menu.self.unmuteOutput": "开启扬声器/耳机",
|
||||
"menu.self.changeNickname": "更改昵称",
|
||||
"menu.self.requestTalkPower": "申请发言权限",
|
||||
"menu.self.setAvatar": "设置头像",
|
||||
"menu.self.setPhoneticNickname": "设置昵称读音",
|
||||
"menu.self.connectionInfo": "连接信息",
|
||||
"contacts.title": "联系人",
|
||||
"contacts.addOnlineClient": "选择在线用户...",
|
||||
"contacts.add": "添加",
|
||||
"contacts.remove": "移除",
|
||||
"contacts.empty": "暂无联系人。",
|
||||
"contacts.customName": "自定义名称:",
|
||||
"contacts.category.acquaintance": "熟人",
|
||||
"contacts.category.blocked": "已屏蔽",
|
||||
"contacts.category.friend": "好友",
|
||||
"contacts.phoneticName": "名称读音:",
|
||||
"contacts.whisperSetting": "悄悄话:",
|
||||
"contacts.whisperSetting.default": "默认",
|
||||
"contacts.whisperSetting.allow": "允许",
|
||||
"contacts.whisperSetting.block": "禁止",
|
||||
"contacts.show": "显示",
|
||||
"contacts.ignore": "忽略",
|
||||
"contacts.unignore": "取消忽略",
|
||||
"contacts.whisper": "悄悄话",
|
||||
"contacts.preferences": "偏好设置",
|
||||
"favorites.title": "🔖 myTeamSpeak 收藏夹",
|
||||
"favorites.synced": "已同步的收藏",
|
||||
"favorites.notLoggedIn": "未登录",
|
||||
"favorites.local": "本地收藏",
|
||||
"favorites.unnamed": "(未命名)",
|
||||
"favorites.bookmarkName": "收藏名称:",
|
||||
"favorites.newFavoriteName": "新收藏",
|
||||
"favorites.showServerQueryClients": "显示 ServerQuery 用户",
|
||||
"favorites.connectOnStartup": "启动时连接",
|
||||
"favorites.new": "新建收藏",
|
||||
"favorites.newFolder": "新建文件夹",
|
||||
"favorites.remove": "移除",
|
||||
"favorites.ok": "确定",
|
||||
"favorites.cancel": "取消",
|
||||
"favorites.apply": "应用",
|
||||
"away.dialog.title": "设置离开消息",
|
||||
"away.dialog.message": "消息:",
|
||||
"away.dialog.template": "模板:",
|
||||
"away.dialog.none": "<无>",
|
||||
"away.dialog.ok": "确定",
|
||||
"away.dialog.save": "保存",
|
||||
"away.dialog.cancel": "取消",
|
||||
"options.title": "选项",
|
||||
"options.ok": "确定",
|
||||
"options.cancel": "取消",
|
||||
"options.notImplemented": "此设置尚未实现。",
|
||||
"options.section.anwendung": "应用",
|
||||
"options.section.konto": "账户",
|
||||
"options.section.wiedergabe": "播放",
|
||||
"options.section.aufnahme": "录音",
|
||||
"options.section.design": "外观",
|
||||
"design.subtitle": "选择应用外观。",
|
||||
"design.theme.standard": "标准",
|
||||
"design.theme.standard.desc": "原始 WebSpeak3 设计。",
|
||||
"design.theme.nova": "Nova",
|
||||
"design.theme.nova.desc": "更现代的深色设计,带圆角元素。",
|
||||
"design.theme.pulse": "Pulse",
|
||||
"design.theme.pulse.desc": "卡片式布局,带面包屑栏和彩色强调。",
|
||||
"design.theme.ide": "Command Center",
|
||||
"design.theme.ide.desc": "面向高级用户的扁平化 IDE 风格技术布局。",
|
||||
"design.idePixelFont": "像素终端字体",
|
||||
"design.theme": "主题",
|
||||
"design.customThemes": "自定义主题",
|
||||
"design.iconPack": "图标包",
|
||||
"design.manage": "管理主题和图标…",
|
||||
"design.manage.title": "管理主题和图标",
|
||||
"design.iconPack.none": "尚未安装图标包。",
|
||||
"design.iconPack.import": "导入图标包",
|
||||
"design.iconPack.importError": "无法将此文件读取为图标包。",
|
||||
"design.iconPack.deleteConfirm": "确定删除此图标包?",
|
||||
"design.iconPack.hint": "TeamSpeak 3 图标包(.ts3_iconpack)或包含同名图片的 ZIP。替换说话指示灯、麦克风/声音静音、离开、频道指挥官、频道和服务器图标。",
|
||||
"design.notAvailable": "网页客户端暂不可用",
|
||||
"design.gif": "GIF 动画支持",
|
||||
"design.gif.avatars": "启用头像动画",
|
||||
"design.gif.images": "启用图片动画",
|
||||
"design.tree": "频道树",
|
||||
"design.tree.expandAll": "连接时展开所有频道",
|
||||
"design.tree.expandDepth": "展开到此层级的频道(0 = 全部)",
|
||||
"design.tree.expandOwn": "连接时仅展开自己的频道",
|
||||
"design.tree.clientsBelow": "将客户端排在子频道下方",
|
||||
"design.tree.flags": "显示客户端旗帜",
|
||||
"design.tree.overwolf": "显示 Overwolf 图标",
|
||||
"design.tree.badges": "显示徽章",
|
||||
"design.tree.groupIconsInMenus": "在右键菜单中显示组图标",
|
||||
"design.tree.hideInaccessibleGroups": "在右键菜单中隐藏不可访问的组",
|
||||
"design.tree.commanderLamp": "以指示灯显示频道指挥官",
|
||||
"design.tree.awayMessage": "在昵称旁显示离开消息",
|
||||
"design.tree.tooltips": "悬停时显示提示信息",
|
||||
"design.status.connected": "已连接",
|
||||
"options.section.erweiterungen": "扩展",
|
||||
"options.section.hotkeys": "快捷键",
|
||||
"options.section.whispern": "悄悄话",
|
||||
"options.section.downloads": "下载",
|
||||
"options.section.chat": "聊天",
|
||||
"options.section.sicherheit": "安全",
|
||||
"options.section.nachrichten": "消息",
|
||||
"options.section.meldungen": "通知",
|
||||
"options.section.sounds": "声音",
|
||||
"app.title": "应用",
|
||||
"app.subtitle": "常规应用设置",
|
||||
"app.group.server": "服务器",
|
||||
"app.group.misc": "其他",
|
||||
"app.group.subscribe": "频道订阅行为",
|
||||
"app.group.privacy": "隐私",
|
||||
"app.micOnServerSwitch": "切换服务器时自动启用麦克风",
|
||||
"app.reconnectAfterSleep": "睡眠模式后重新连接",
|
||||
"app.middleClickQuickAccess": "在频道树中使用鼠标中键快速操作",
|
||||
"app.updateFavoriteNickname": "自动更新收藏中的昵称",
|
||||
"app.autoOpenChannelChat": "自动打开频道聊天",
|
||||
"app.mutedTalkingSound": "麦克风静音时说话播放提示音",
|
||||
"app.neverShowPokeDialog": "从不显示戳一下对话框",
|
||||
"app.subscribe.all": "订阅所有频道",
|
||||
"app.subscribe.current": "仅订阅当前及之前订阅的频道",
|
||||
"app.language": "语言",
|
||||
"app.language.auto": "跟随系统",
|
||||
"app.language.de": "Deutsch",
|
||||
"app.language.en": "English",
|
||||
"app.language.zh-CN": "简体中文",
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →",
|
||||
"app.serverBanner": "显示服务器横幅",
|
||||
"app.serverBanner.hint": "横幅直接从服务器管理员设置的地址加载,该主机会看到你的 IP 地址。",
|
||||
"app.chatImages": "在聊天中加载图片",
|
||||
"app.chatImages.hint": "[img] 标签和 Markdown 中的图片直接从发送者指定的地址加载,该主机会看到你的 IP 地址。关闭时显示为链接。",
|
||||
"playback.title": "播放",
|
||||
"playback.subtitle": "更改播放设置",
|
||||
"playback.profile": "配置",
|
||||
"playback.default": "默认",
|
||||
"playback.device": "播放设备:",
|
||||
"playback.systemDefault": "系统默认",
|
||||
"playback.quiet": "安静",
|
||||
"playback.loud": "响亮",
|
||||
"playback.voiceVolume": "语音音量",
|
||||
"playback.playTestTone": "▶ 播放测试音",
|
||||
"playback.options": "选项",
|
||||
"playback.autoVolume": "自动调节音量",
|
||||
"playback.ownMicClicks": "播放自己的麦克风按键音",
|
||||
"playback.otherMicClicks": "播放其他用户的麦克风按键音",
|
||||
"recording.title": "录音",
|
||||
"recording.subtitle": "更改录音设置",
|
||||
"recording.device": "录音设备:",
|
||||
"recording.activation": "激活方式",
|
||||
"recording.pushToTalk": "按键说话",
|
||||
"recording.pttKey": "按键说话键:",
|
||||
"recording.pttKeyNone": "未设置",
|
||||
"recording.pttKeyPress": "请按下按键或鼠标按键…",
|
||||
"recording.pttHint": "可使用任意按键或鼠标按键(中键或侧键),但仅在 WebSpeak3 为当前活动窗口时有效。浏览器不允许网站读取其他程序中的输入,因此在游戏中无法使用。也可以按住工具栏中的 🗣️ 按钮。",
|
||||
"hotkeys.subtitle": "键盘和鼠标快捷键",
|
||||
"hotkeys.pttEnabled": "使用按键说话(代替语音激活)",
|
||||
"hotkeys.shortcuts": "快捷键",
|
||||
"hotkeys.shortcutsHint": "在文本框中输入时不会触发。",
|
||||
"recording.continuous": "持续传输",
|
||||
"recording.voiceActivation": "语音激活检测",
|
||||
"recording.testStart": "开始测试",
|
||||
"recording.testStop": "停止测试",
|
||||
"recording.hangoverDelay": "停止前延迟:",
|
||||
"recording.secondsUnit": "秒",
|
||||
"recording.dsp": "数字信号处理",
|
||||
"recording.typingAttenuation": "键盘声衰减",
|
||||
"recording.echoCancellation": "回声消除",
|
||||
"recording.noiseSuppression": "消除背景噪声",
|
||||
"info.address": "地址:",
|
||||
"info.version": "版本:",
|
||||
"info.license": "许可证:",
|
||||
"info.currentClients": "当前用户:",
|
||||
"info.currentChannels": "当前频道:",
|
||||
"info.topic": "主题:",
|
||||
"info.audioCodec": "音频编解码器:",
|
||||
"info.spacer": "间隔符:",
|
||||
"info.rawName": "原始名称:",
|
||||
"info.passwordProtected": "密码保护:",
|
||||
"info.clients": "用户:",
|
||||
"info.country": "国家:",
|
||||
"info.muted": "麦克风静音:",
|
||||
"info.outputMuted": "扬声器静音:",
|
||||
"info.serverGroups": "服务器组:",
|
||||
"info.yes": "是",
|
||||
"info.no": "否",
|
||||
"tree.noMatches": "无匹配结果",
|
||||
"tree.search": "搜索频道和用户",
|
||||
"tree.label": "频道",
|
||||
"tree.notConnected": "未连接",
|
||||
"tree.clickToSelect": "单击选择,双击加入",
|
||||
"tree.clickToJoin": "双击加入",
|
||||
"tree.joinNotConnected": "未连接 — 无法切换频道",
|
||||
"tree.passwordProtected": "受密码保护",
|
||||
"tree.privateChatWith": "与其私聊",
|
||||
"tree.poke": "戳一戳",
|
||||
"tree.channelCommander": "频道指挥官",
|
||||
"tree.away": "离开",
|
||||
"tree.micMuted": "麦克风已静音",
|
||||
"tree.talking": "正在说话",
|
||||
"tree.noTalkPower": "在此频道中没有发言权限",
|
||||
"tree.soundMuted": "声音已关闭(拒听)",
|
||||
"chat.server": "服务器",
|
||||
"chat.channel": "频道",
|
||||
"chat.notConnected": "未连接",
|
||||
"chat.messageChannel": "向频道发送消息...",
|
||||
"chat.messageServer": "向服务器发送消息...",
|
||||
"chat.messagePartner": "向 {name} 发送消息...",
|
||||
"chat.send": "发送",
|
||||
"chat.you": "你",
|
||||
"serverLog.clientJoin": "{client} 进入了频道“{channel}”",
|
||||
"serverLog.clientLeave": "{client} 已断开连接(离开)",
|
||||
"serverLog.clientChannelSwitch": "{client} 从频道“{fromChannel}”移动到“{toChannel}”",
|
||||
"serverLog.clientChannelGroupAssigned": "已将频道组“{group}”分配给 {client}",
|
||||
"serverLog.channelCreated": "频道“{channel}”已创建",
|
||||
"serverLog.channelDeleted": "频道“{channel}”已删除",
|
||||
"serverLog.channelEdited": "频道“{channel}”已编辑",
|
||||
"serverLog.serverEdited": "服务器设置已更改",
|
||||
"serverLog.permissionError": "缺少权限:{action}",
|
||||
"poke.title": "戳一戳",
|
||||
"poke.optionalMessage": "可选消息...",
|
||||
"poke.send": "发送",
|
||||
"poke.cancel": "取消",
|
||||
"poke.pokedYou": "戳了你一下",
|
||||
"poke.dismiss": "关闭",
|
||||
"kick.title": "踢出:",
|
||||
"kick.reasonPlaceholder": "原因(可选)...",
|
||||
"kick.confirm": "踢出",
|
||||
"kick.cancel": "取消",
|
||||
"ban.title": "封禁:",
|
||||
"ban.reasonPlaceholder": "原因(可选)...",
|
||||
"ban.duration": "时长:",
|
||||
"ban.durationPermanent": "永久",
|
||||
"ban.duration1h": "1 小时",
|
||||
"ban.duration1d": "1 天",
|
||||
"ban.duration1w": "1 周",
|
||||
"ban.confirm": "封禁",
|
||||
"ban.cancel": "取消",
|
||||
"serverEdit.title": "编辑虚拟服务器",
|
||||
"serverEdit.tab.host": "主机",
|
||||
"serverEdit.tab.misc": "其他",
|
||||
"serverEdit.tab.transmission": "传输",
|
||||
"serverEdit.tab.antiflood": "防刷屏",
|
||||
"serverEdit.tab.security": "安全",
|
||||
"serverEdit.tab.log": "日志",
|
||||
"serverEdit.name": "服务器名称:",
|
||||
"serverEdit.welcomeMessage": "欢迎消息:",
|
||||
"serverEdit.clearPassword": "移除服务器密码",
|
||||
"serverEdit.newPassword": "新服务器密码:",
|
||||
"serverEdit.hostmessage": "主机消息:",
|
||||
"serverEdit.hostmessageMode": "显示模式:",
|
||||
"serverEdit.hostmessageMode.none": "不显示",
|
||||
"serverEdit.hostmessageMode.log": "在日志中显示",
|
||||
"serverEdit.hostmessageMode.modal": "以对话框显示",
|
||||
"serverEdit.hostmessageMode.modalquit": "以对话框显示并断开连接",
|
||||
"serverEdit.hostbannerUrl": "主机横幅链接:",
|
||||
"serverEdit.hostbannerGfxUrl": "主机横幅图片链接:",
|
||||
"serverEdit.hostbannerGfxInterval": "横幅刷新间隔(秒):",
|
||||
"serverEdit.hostbannerMode": "横幅缩放:",
|
||||
"serverEdit.hostbannerMode.noadjust": "不调整",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "调整(忽略宽高比)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "调整(保持宽高比)",
|
||||
"serverEdit.hostbuttonTooltip": "主机按钮提示:",
|
||||
"serverEdit.hostbuttonUrl": "主机按钮链接:",
|
||||
"serverEdit.hostbuttonGfxUrl": "主机按钮图片链接:",
|
||||
"serverEdit.maxClients": "最大用户数:",
|
||||
"serverEdit.nickname": "服务器昵称:",
|
||||
"serverEdit.phoneticName": "名称读音:",
|
||||
"serverEdit.codecEncryptionMode": "语音加密:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "可按频道配置",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "全局禁用",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "全局启用",
|
||||
"serverEdit.unchanged": "保持不变",
|
||||
"serverEdit.save": "保存",
|
||||
"serverEdit.cancel": "取消",
|
||||
"serverProtocolLog.title": "服务器日志",
|
||||
"serverProtocolLog.empty": "暂无日志条目。",
|
||||
"banList.title": "封禁列表",
|
||||
"banList.empty": "未找到封禁记录。",
|
||||
"banList.name": "名称",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "创建时间",
|
||||
"banList.duration": "时长",
|
||||
"banList.invoker": "执行者",
|
||||
"banList.reason": "原因",
|
||||
"banList.permanent": "永久",
|
||||
"banList.delete": "删除",
|
||||
"banList.deleteAll": "全部删除",
|
||||
"complainList.title": "投诉列表",
|
||||
"complainList.empty": "未找到投诉记录。",
|
||||
"complainList.target": "对象",
|
||||
"complainList.from": "来自",
|
||||
"complainList.message": "消息",
|
||||
"complainList.timestamp": "时间",
|
||||
"offlineMessages.title": "离线消息",
|
||||
"offlineMessages.empty": "暂无消息。",
|
||||
"offlineMessages.subject": "主题",
|
||||
"offlineMessages.from": "来自",
|
||||
"offlineMessages.timestamp": "时间",
|
||||
"offlineMessages.targetUid": "目标 UID",
|
||||
"offlineMessages.message": "消息",
|
||||
"offlineMessages.send": "发送",
|
||||
"offlineMessages.new": "新消息",
|
||||
"offlineMessages.markRead": "标记为已读",
|
||||
"offlineMessages.backToList": "返回列表",
|
||||
"dialog.cancel": "取消",
|
||||
"groupAssign.channelTitle": "分配频道组",
|
||||
"groupAssign.serverTitle": "分配服务器组",
|
||||
"groupAssign.empty": "未找到组。",
|
||||
"groupAssign.clickToRemove": "单击移除",
|
||||
"serverQueryLogin.username": "用户名",
|
||||
"serverQueryLogin.password": "密码",
|
||||
"serverQueryLogin.login": "登录",
|
||||
"permissionOverview.title": "我的权限",
|
||||
"permissionOverview.empty": "未找到权限。",
|
||||
"permissionOverview.name": "权限",
|
||||
"permissionOverview.value": "值",
|
||||
"permissionOverview.negated": "否定",
|
||||
"permissionOverview.skip": "跳过",
|
||||
"permsEditor.title": "权限",
|
||||
"permsEditor.tab.server": "服务器组",
|
||||
"permsEditor.tab.client": "用户权限",
|
||||
"permsEditor.tab.channel": "频道权限",
|
||||
"permsEditor.tab.channelgroup": "频道组",
|
||||
"permsEditor.tab.channelclient": "频道用户权限",
|
||||
"permsEditor.clientDbId": "唯一用户数据库 ID:",
|
||||
"permsEditor.load": "加载",
|
||||
"permsEditor.pickOnlineClient": "或选择在线用户...",
|
||||
"permsEditor.pickTarget": "请在左侧选择组或频道,或输入用户 ID。",
|
||||
"permsEditor.addPermission": "添加",
|
||||
"permsEditor.searchPermission": "搜索权限...",
|
||||
"dialog.ok": "确定",
|
||||
"channelContext.join": "切换到频道",
|
||||
"channelContext.files": "文件...",
|
||||
"fileBrowser.title": "文件传输",
|
||||
"fileBrowser.up": "上一级",
|
||||
"fileBrowser.tooLarge": "文件过大——每次上传最多 {mb} MiB。",
|
||||
"fileBrowser.refresh": "刷新",
|
||||
"fileBrowser.newFolder": "新建文件夹",
|
||||
"fileBrowser.upload": "上传",
|
||||
"fileBrowser.folderName": "文件夹名称",
|
||||
"fileBrowser.empty": "此文件夹为空。",
|
||||
"fileBrowser.name": "名称",
|
||||
"fileBrowser.size": "大小",
|
||||
"fileBrowser.modified": "修改时间",
|
||||
"fileBrowser.download": "下载",
|
||||
"fileBrowser.rename": "重命名",
|
||||
"fileBrowser.delete": "删除",
|
||||
"fileBrowser.deleteConfirm": "确定要删除吗?",
|
||||
"fileBrowser.uploading": "正在上传...",
|
||||
"fileBrowser.downloading": "正在下载...",
|
||||
"serverContext.icons": "服务器图标...",
|
||||
"serverIcons.title": "管理服务器图标",
|
||||
"serverIcons.upload": "上传图标",
|
||||
"serverIcons.iconId": "图标 ID",
|
||||
"serverIcons.empty": "未找到图标。",
|
||||
"clientContext.privateChat": "私聊",
|
||||
"clientContext.poke": "戳一戳",
|
||||
"clientContext.moveTo": "移动到…",
|
||||
"clientContext.volume": "音量",
|
||||
"clientContext.volumeHint": "仅对你生效。双击恢复为 100%。",
|
||||
"clientContext.copyName": "复制名称",
|
||||
"clientContext.connectionInfo": "查看连接信息",
|
||||
"clientContext.addWhisperTarget": "添加为悄悄话目标",
|
||||
"clientContext.removeWhisperTarget": "从悄悄话目标中移除",
|
||||
"clientContext.assignChannelGroup": "分配频道组",
|
||||
"clientContext.assignServerGroup": "分配服务器组",
|
||||
"clientContext.kickChannel": "踢出频道",
|
||||
"clientContext.kick": "踢出服务器",
|
||||
"clientContext.ban": "封禁",
|
||||
"clientContext.notSupported": "网页客户端暂不支持此功能",
|
||||
"moveClient.title": "移动",
|
||||
"moveClient.empty": "没有可用频道。",
|
||||
"moveClient.current": "当前频道",
|
||||
"moveClient.spacer": "间隔频道",
|
||||
"serverContext.connectionInfo": "服务器连接信息",
|
||||
"serverContext.copyAddress": "复制服务器地址",
|
||||
"serverContext.addFavorite": "添加到收藏夹",
|
||||
"serverContext.disconnect": "断开连接",
|
||||
"connectError.dismiss": "关闭",
|
||||
"connectError.gatewayFull": "网关当前已满。请几分钟后再试,或自行部署 WebSpeak3:github.com/WebSpeak3/webspeak3",
|
||||
"dialog.close": "关闭",
|
||||
"sounds.title": "声音",
|
||||
"sounds.subtitle": "配置事件提示音",
|
||||
"sounds.enable": "启用声音",
|
||||
"sounds.volume": "音量",
|
||||
"sounds.eventEnable": "启用此声音",
|
||||
"sounds.event.connect": "已连接",
|
||||
"sounds.event.disconnect": "已断开",
|
||||
"sounds.event.clientJoin": "用户加入",
|
||||
"sounds.event.clientLeave": "用户离开",
|
||||
"sounds.event.message": "收到消息",
|
||||
"sounds.event.poke": "收到戳一戳",
|
||||
"sounds.event.mute": "切换静音",
|
||||
"sounds.event.micClickOn": "麦克风开启提示音",
|
||||
"sounds.event.micClickOff": "麦克风关闭提示音",
|
||||
"sounds.event.whisper": "收到悄悄话",
|
||||
"sounds.default": "默认",
|
||||
"sounds.custom": "自定义文件:{name}",
|
||||
"sounds.test": "▶ 测试",
|
||||
"sounds.upload": "上传",
|
||||
"sounds.reset": "重置",
|
||||
"sounds.importSoundpack": "导入声音包(.ts3soundpack)",
|
||||
"sounds.importResult": "已导入 {matched} 个声音,{unmatched} 个文件未匹配",
|
||||
"nachrichten.title": "消息",
|
||||
"nachrichten.subtitle": "自定义消息",
|
||||
"nachrichten.disconnectMessage": "断开连接:",
|
||||
"nachrichten.disconnectMessagePlaceholder": "离开",
|
||||
"nachrichten.presetsTitle": "预设消息",
|
||||
"nachrichten.type": "类型",
|
||||
"nachrichten.type.away": "离开",
|
||||
"nachrichten.templateName": "模板名称",
|
||||
"nachrichten.message": "消息",
|
||||
"nachrichten.add": "添加",
|
||||
"nachrichten.delete": "删除",
|
||||
"menu.help.about": "关于 WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "更新日志",
|
||||
"menu.help.translate": "参与翻译(Weblate)",
|
||||
"menu.extras.feedback": "发送反馈",
|
||||
"feedback.fab.nudge": "你觉得 WebSpeak3 怎么样?欢迎反馈!",
|
||||
"donate.label": "捐助",
|
||||
"donate.title": "在 Ko-fi 上支持 WebSpeak3",
|
||||
"pwa.updateAvailable": "有新版本可用",
|
||||
"pwa.reload": "重新加载",
|
||||
"news.label": "新闻",
|
||||
"news.release": "WebSpeak3 {version} 已发布",
|
||||
"news.theme": "商店新设计:“{name}”,作者 {author}",
|
||||
"feedback.dialog.title": "反馈",
|
||||
"feedback.dialog.intro": "报告一个问题,或分享改进 WebSpeak3 的想法。",
|
||||
"feedback.dialog.category": "类别",
|
||||
"feedback.dialog.category.bug": "错误",
|
||||
"feedback.dialog.category.idea": "建议",
|
||||
"feedback.dialog.category.report": "举报(违规/滥用)",
|
||||
"feedback.dialog.category.other": "其他",
|
||||
"feedback.dialog.reportHint": "举报内容保持私密,不会作为 GitHub Issue 公开。如有需要可注明相关服务器。",
|
||||
"feedback.dialog.message": "消息",
|
||||
"feedback.dialog.messagePlaceholder": "发生了什么,或者你有什么建议?",
|
||||
"feedback.dialog.email": "邮箱(可选,用于回复——仅私下保存,绝不公开)",
|
||||
"feedback.dialog.publishAsIssue": "作为公开的 GitHub Issue 发布",
|
||||
"feedback.dialog.publishAsIssueHint": "不勾选则反馈保持私密,仅维护者可见。",
|
||||
"feedback.dialog.publishAsIssueHintBug": "错误报告将始终作为公开的 GitHub Issue 发布。",
|
||||
"feedback.dialog.bug.environment": "浏览器和操作系统",
|
||||
"feedback.dialog.bug.server": "TeamSpeak 服务器(可选——保密,绝不公开)",
|
||||
"feedback.dialog.bug.steps": "出问题前你做了什么?(可选)",
|
||||
"feedback.dialog.bug.stepsPlaceholder": "例如:进入频道、切换输出设备…… 刷新页面后是否恢复?",
|
||||
"feedback.dialog.bug.diagnostics": "一并发送的技术信息",
|
||||
"feedback.dialog.send": "发送",
|
||||
"feedback.dialog.cancel": "取消",
|
||||
"feedback.dialog.sending": "发送中…",
|
||||
"feedback.dialog.success": "感谢你的反馈!",
|
||||
"feedback.dialog.successWithIssue": "谢谢!已创建 Issue:",
|
||||
"feedback.dialog.error": "发送失败,请稍后重试。",
|
||||
"restartNotice.title": "短暂中断",
|
||||
"restartNotice.body": "服务器即将短暂重启,你的连接会中断片刻。",
|
||||
"restartNotice.ack": "知道了",
|
||||
"menu.extras.tos": "使用条款",
|
||||
"tos.title": "client.webspeak3.de 使用条款",
|
||||
"tos.rule1": "本客户端仅供通过浏览器私人、非商业使用 TeamSpeak / TeaSpeak / VoySpeak 服务器。",
|
||||
"tos.rule2": "尤其禁止:任何违法行为、骚扰与仇恨言论、垃圾信息与刷屏、干扰服务运行,以及规避封禁。",
|
||||
"tos.rule3": "违规可能导致访问权限被无预警封禁;严重情况可能会上报相关部门。",
|
||||
"tos.rule4Pre": "出于运行安全和滥用检测的目的,连接信息(服务器地址、服务器名称、连接时间)会被记录,并在 90 天后自动删除 —— 详见",
|
||||
"tos.rule4Post": "。",
|
||||
"tos.privacyLinkText": "隐私政策",
|
||||
"tos.rule5Pre": "如遇滥用或投诉:详见",
|
||||
"tos.rule5Post": "。",
|
||||
"tos.legalLinkText": "法律声明(Impressum)",
|
||||
"tos.rule6": "点击“接受”即表示你同意本条款。你的同意状态仅保存在本地浏览器中;若条款更新,系统会再次询问。",
|
||||
"tos.accept": "接受",
|
||||
"tos.close": "关闭",
|
||||
"connect.novaSubtitle": "WebSpeak3 完全在浏览器中运行 —— 无需下载",
|
||||
"channelPasswordDialog.title": "需要频道密码",
|
||||
"channelPasswordDialog.prompt": "此频道受密码保护,请输入密码:",
|
||||
"channelPasswordDialog.wrongPassword": "密码错误,请重试:",
|
||||
"channelPasswordDialog.submit": "加入",
|
||||
"channelPasswordDialog.cancel": "取消",
|
||||
"design.custom.new": "+ 新建设计",
|
||||
"design.custom.import": "导入设计",
|
||||
"design.custom.edit": "编辑",
|
||||
"design.custom.duplicate": "复制",
|
||||
"design.custom.export": "导出",
|
||||
"design.custom.delete": "删除",
|
||||
"design.custom.deleteConfirm": "确定要删除此设计吗?",
|
||||
"design.custom.newTitle": "创建新设计",
|
||||
"design.custom.editTitle": "编辑设计",
|
||||
"design.custom.name": "名称",
|
||||
"design.custom.base": "基础布局",
|
||||
"design.custom.css": "CSS",
|
||||
"design.custom.hint": "此 CSS 会在设计启用时加载。使用 .ts-app { ... } 以及现有的 CSS 变量(--accent、--bg、--text、--border 等)来调整颜色、圆角和间距 —— 通过 .ts-app .some-class { display: none } 或调整顺序,甚至可以改变布局。",
|
||||
"design.custom.save": "保存",
|
||||
"design.custom.copyOf": "{name} 的副本",
|
||||
"design.custom.importError": "该文件无法作为 WebSpeak3 设计读取。",
|
||||
"design.store.open": "商店",
|
||||
"design.store.title": "设计商店",
|
||||
"design.store.back": "返回",
|
||||
"design.store.loading": "加载中…",
|
||||
"design.store.unavailable": "此服务器未启用设计商店。",
|
||||
"design.store.empty": "商店里还没有设计。",
|
||||
"design.store.install": "安装",
|
||||
"design.store.installed": "已安装",
|
||||
"design.store.by": "作者:{author}",
|
||||
"design.store.screenshotAlt": "{name} 的截图",
|
||||
"design.store.rating.rate": "评{stars}星",
|
||||
"design.store.rating.summary": "{average}({count})",
|
||||
"design.store.rating.none": "暂无评分",
|
||||
"design.store.publishTitle": "发布设计",
|
||||
"design.store.publish.select": "选择你自己的设计",
|
||||
"design.store.publish.none": "你还没有可发布的自定义设计。",
|
||||
"design.store.publish.author": "你的名字(可选)",
|
||||
"design.store.publish.authorPlaceholder": "匿名",
|
||||
"design.store.publish.description": "描述(可选)",
|
||||
"design.store.publish.descriptionPlaceholder": "这个设计有什么特别之处?",
|
||||
"design.store.publish.screenshot": "截图(可选)",
|
||||
"design.store.publish.screenshotTooLarge": "图片太大,请使用更小的截图。",
|
||||
"design.store.publish.adminToken": "管理员令牌(仅保留名称需要)",
|
||||
"design.store.publish.adminTokenPlaceholder": "不确定的话请留空",
|
||||
"design.store.publish.submit": "发布到商店",
|
||||
"design.store.publish.success": "设计已发布!",
|
||||
"design.store.publish.pending": "谢谢!你的设计已提交,审核通过后将显示在商店中。",
|
||||
"design.store.publish.duplicate": "该设计已在商店中。请稍作修改后再发布。",
|
||||
"design.store.publish.error": "发布失败。",
|
||||
"recording.autoGainControl": "自动增益控制",
|
||||
"tree.streaming": "正在直播",
|
||||
"publish.alpha": "内测",
|
||||
"publish.alphaTitle": "内测阶段 —— 不稳定,可能随时变更或失效",
|
||||
"publish.demoUnavailable": "演示模式下无法使用直播功能 —— 需要真实的 TeamSpeak 6 服务器。",
|
||||
"publish.alphaNote": "直播功能处于内测阶段,使用的是 TeamSpeak 6 未公开文档的 Stream/Call 协议,因此连接、画质和观众处理可能会出错或在无预警的情况下发生变化,不建议用于正式场合。",
|
||||
"publish.start": "共享屏幕",
|
||||
"publish.stop": "停止共享",
|
||||
"publish.title": "你的直播",
|
||||
"publish.screen": "屏幕",
|
||||
"publish.starting": "启动中…",
|
||||
"publish.viewers": "{count} 人观看",
|
||||
"publish.request.allow": "允许",
|
||||
"publish.request.deny": "拒绝",
|
||||
"publish.request.block": "屏蔽",
|
||||
"publish.request.blockHint": "拒绝并不再询问",
|
||||
"publish.dialog.title": "直播设置",
|
||||
"publish.dialog.basic": "基本设置",
|
||||
"publish.dialog.advanced": "高级设置",
|
||||
"publish.dialog.golive": "开始直播",
|
||||
"publish.dialog.cancel": "返回",
|
||||
"publish.preset": "预设",
|
||||
"publish.preset.presentation": "演示",
|
||||
"publish.audio": "采集音频",
|
||||
"publish.privacy": "可见范围",
|
||||
"publish.privacy.public": "公开",
|
||||
"publish.privacy.contacts": "联系人",
|
||||
"publish.privacy.private": "私密",
|
||||
"publish.resolution": "分辨率",
|
||||
"publish.res.source": "源画质",
|
||||
"publish.fps": "帧率",
|
||||
"publish.bitrate": "码率",
|
||||
"publish.audioBitrate": "音频码率 [Kbps]",
|
||||
"publish.viewerLimit": "观众人数上限",
|
||||
"publish.mode": "连接模式",
|
||||
"publish.mode.p2p": "点对点(P2P)",
|
||||
"publish.mode.server": "服务器",
|
||||
"publish.mode.serverUnavailable": "服务器模式需经过 TS6 的 SFU,尚未实现。",
|
||||
"stream.untitled": "直播",
|
||||
"stream.stop": "关闭直播",
|
||||
"stream.live": "直播中",
|
||||
"stream.state.new": "等待推流…",
|
||||
"stream.state.connecting": "连接中…",
|
||||
"stream.state.connected": "直播中",
|
||||
"stream.state.disconnected": "连接中断",
|
||||
"stream.state.failed": "连接失败",
|
||||
"stream.state.closed": "已结束",
|
||||
"clientContext.watchStream": "观看直播",
|
||||
"tabs.disconnect": "断开连接",
|
||||
"identity.importInvalid": "“{file}”不是有效的身份文件。",
|
||||
"log.fileTransferFailed": "文件传输失败:",
|
||||
"log.serverReconnecting": "与服务器的连接已断开,正在重新连接…",
|
||||
"log.serverReconnected": "已重新连接到服务器",
|
||||
"log.fileTransferInvalidAddress": "文件传输失败(地址无效)",
|
||||
"sounds.importFailed": "无法读取此音效包——它是有效的 .ts3soundpack/ZIP 文件吗?",
|
||||
"tabs.connections": "服务器连接",
|
||||
"shortcut.ctrl": "Ctrl",
|
||||
"about.text": "WebSpeak3 是一款浏览器 TeamSpeak 客户端,开源且无需安装。",
|
||||
"about.memorial.title": "纪念 Akimo",
|
||||
"about.memorial.text": "于 2026 年 10 月 21 日走过彩虹桥。🌈🐾",
|
||||
"about.close": "关闭",
|
||||
"menu.extras.fileTransfers": "文件传输",
|
||||
"transfers.title": "文件传输",
|
||||
"transfers.empty": "没有传输。",
|
||||
"transfers.up": "上传",
|
||||
"transfers.down": "下载",
|
||||
"transfers.status.queued": "排队中",
|
||||
"transfers.status.running": "进行中",
|
||||
"transfers.status.done": "完成",
|
||||
"transfers.status.error": "失败",
|
||||
"transfers.clearFinished": "移除已完成",
|
||||
"transfers.finished": "传输完成:{name}",
|
||||
"downloadSettings.subtitle": "下载设置",
|
||||
"downloadSettings.directory": "下载目录",
|
||||
"downloadSettings.directoryLabel": "下载目录:",
|
||||
"downloadSettings.browserDefault": "浏览器默认",
|
||||
"downloadSettings.change": "更改",
|
||||
"downloadSettings.reset": "重置",
|
||||
"downloadSettings.alwaysDir": "始终保存到此目录",
|
||||
"downloadSettings.askEachTime": "每次询问下载目录",
|
||||
"downloadSettings.unsupported": "此浏览器无法选择文件夹;下载将保存到浏览器的下载文件夹。",
|
||||
"downloadSettings.interface": "界面",
|
||||
"downloadSettings.showWindowOnStart": "开始下载时显示文件传输窗口",
|
||||
"downloadSettings.closeWindowWhenDone": "所有下载完成后关闭文件传输窗口",
|
||||
"downloadSettings.popupWhenDone": "传输完成时显示弹出提示",
|
||||
"downloadSettings.uploadLimit": "上传带宽",
|
||||
"downloadSettings.downloadLimit": "下载带宽",
|
||||
"downloadSettings.maxUploads": "同时上传数",
|
||||
"downloadSettings.maxDownloads": "同时下载数",
|
||||
"downloadSettings.unlimited": "不限制",
|
||||
"downloadSettings.limitedTo": "限制为",
|
||||
"chatSettings.subtitle": "聊天设置",
|
||||
"chatSettings.window": "聊天窗口",
|
||||
"chatSettings.maxLines": "最大行数:",
|
||||
"chatSettings.font": "字体:",
|
||||
"chatSettings.fontDefault": "默认",
|
||||
"chatSettings.fontReset": "重置字体",
|
||||
"chatSettings.fontPreview": "使用此字体时聊天的样子。",
|
||||
"chatSettings.autoLog": "自动记录",
|
||||
"chatSettings.logChannel": "记录频道聊天",
|
||||
"chatSettings.logPrivate": "记录私聊",
|
||||
"chatSettings.logServer": "记录服务器聊天",
|
||||
"chatSettings.logHint": "记录只保存在此浏览器中(每个聊天最近 1000 行)。",
|
||||
"chatSettings.restore": "加载记录",
|
||||
"chatSettings.restoreChannelLines": "加载频道聊天记录",
|
||||
"chatSettings.restorePrivateLines": "加载私聊记录",
|
||||
"chatSettings.notify": "新消息提示",
|
||||
"chatSettings.notifyServer": "服务器",
|
||||
"chatSettings.notifyChannel": "频道",
|
||||
"chatSettings.notifyPrivate": "私聊",
|
||||
"chatSettings.linesUnit": "行",
|
||||
"chatSettings.last": "最近",
|
||||
"securitySettings.subtitle": "安全设置",
|
||||
"securitySettings.passwords": "密码",
|
||||
"securitySettings.saveChannelPasswords": "保存频道密码",
|
||||
"securitySettings.clearChannelPasswords": "删除频道密码",
|
||||
"securitySettings.channelPasswordsCleared": "已删除保存的频道密码。",
|
||||
"securitySettings.masterPassword": "使用主密码",
|
||||
"securitySettings.changeMasterPassword": "更改主密码",
|
||||
"securitySettings.cleanup": "清理",
|
||||
"securitySettings.clearCacheOnExit": "退出时清空缓存",
|
||||
"securitySettings.clearUrlsOnExit": "退出时删除 URL",
|
||||
"securitySettings.clearCache": "清空缓存",
|
||||
"securitySettings.cacheCleared": "缓存已清空。",
|
||||
"securitySettings.identities": "身份",
|
||||
"securitySettings.manageIdentities": "管理身份",
|
||||
"notify.connection": "连接",
|
||||
"notify.connected": "已连接到服务器",
|
||||
"notify.disconnected": "已从服务器断开",
|
||||
"notify.lostConnection": "与服务器的连接丢失",
|
||||
"notify.channel": "频道",
|
||||
"notify.created": "已创建",
|
||||
"notify.deleted": "已删除",
|
||||
"notify.edited": "已编辑",
|
||||
"notify.moved": "已移动",
|
||||
"notify.currentChannel": "当前频道",
|
||||
"notify.otherChannel": "其他频道",
|
||||
"notify.byYou": "由你",
|
||||
"notify.byOther": "由其他客户端",
|
||||
"notify.server": "服务器",
|
||||
"notify.insufficientPermissions": "权限不足",
|
||||
"notify.error": "错误",
|
||||
"notify.client": "客户端",
|
||||
"notify.switched": "切换频道",
|
||||
"notify.movedClient": "被移动",
|
||||
"notify.kickedChannel": "被踢出频道",
|
||||
"notify.kickedServer": "被踢出服务器",
|
||||
"notify.banned": "被封禁",
|
||||
"notify.toCurrent": "进入当前频道",
|
||||
"notify.fromCurrent": "离开当前频道",
|
||||
"notify.toOther": "进入其他频道",
|
||||
"notify.appears": "出现",
|
||||
"notify.stays": "仍可见",
|
||||
"notify.disappears": "消失",
|
||||
"notify.serverGroup": "服务器组",
|
||||
"notify.channelGroup": "频道组已更改",
|
||||
"notify.added": "已添加",
|
||||
"notify.removed": "已移除",
|
||||
"notify.byServer": "由服务器",
|
||||
"notify.byUser": "由用户",
|
||||
"notify.recording": "录音",
|
||||
"notify.recordingStart": "开始录音",
|
||||
"notify.recordingStop": "停止录音",
|
||||
"notify.recordingInChannel": "频道内正在录音",
|
||||
"notify.talkPowerRequested": "请求发言权",
|
||||
"notify.self": "自己",
|
||||
"notify.youSwitched": "切换了频道",
|
||||
"notify.youMoved": "被移动到其他频道",
|
||||
"notify.youKickedServer": "被踢出服务器",
|
||||
"notify.youKickedChannel": "被踢出频道",
|
||||
"notify.youBanned": "被封禁",
|
||||
"notify.talkPowerGranted": "获得发言权",
|
||||
"notify.talkPowerRevoked": "发言权被撤销",
|
||||
"notify.chat": "聊天",
|
||||
"notify.messageSent": "消息已发送",
|
||||
"notify.messageReceived": "收到消息",
|
||||
"notify.capture": "声音采集",
|
||||
"notify.playback": "声音播放",
|
||||
"notify.muted": "已静音",
|
||||
"notify.unmuted": "已取消静音",
|
||||
"notify.status": "状态",
|
||||
"notify.away": "离开",
|
||||
"notify.present": "回来",
|
||||
"notify.other": "其他",
|
||||
"notify.poked": "被戳",
|
||||
"notify.transferComplete": "文件传输完成",
|
||||
"notify.transferFailed": "文件传输失败",
|
||||
"notify.whisperListEmpty": "悄悄话列表为空",
|
||||
"notify.whisperTargetNotFound": "未找到悄悄话目标",
|
||||
"notify.whisperTooMany": "悄悄话目标过多",
|
||||
"notify.special": "特殊",
|
||||
"notify.micClickOtherOn": "他人麦克风开",
|
||||
"notify.micClickOtherOff": "他人麦克风关",
|
||||
"notify.micClickSelfOn": "自己麦克风开",
|
||||
"notify.micClickSelfOff": "自己麦克风关",
|
||||
"notify.whisperNotify": "悄悄话提示",
|
||||
"notify.soundTest": "声音测试",
|
||||
"notify.test3d": "3D 测试",
|
||||
"notify.talkingWhileMuted": "静音时说话",
|
||||
"notify.subtitle": "配置通知",
|
||||
"notify.soundPack": "声音包:",
|
||||
"notify.pack.builtin": "WebSpeak3 默认",
|
||||
"notify.pack.none": "无声音",
|
||||
"notify.importPack": "导入 TS3 声音包 (.ts3_soundpack / .zip)",
|
||||
"notify.deletePack": "删除声音包",
|
||||
"notify.deletePackConfirm": "删除声音包 \"{name}\"?",
|
||||
"notify.importFailed": "这不是有效的 TS3 声音包(缺少 settings.ini)。",
|
||||
"notify.whenMuted": "输出静音时:",
|
||||
"notify.whenMuted.all": "播放所有声音",
|
||||
"notify.whenMuted.none": "不播放声音",
|
||||
"notify.hintBefore": "提示:可以为每个",
|
||||
"notify.hintLink": "收藏",
|
||||
"notify.hintAfter": "单独设置声音包。",
|
||||
"notify.col.action": "动作",
|
||||
"notify.col.script": "声音脚本",
|
||||
"notify.col.text": "文本位置",
|
||||
"notify.text.server": "服务器",
|
||||
"notify.text.channel": "频道",
|
||||
"notify.resetAll": "重置所有更改",
|
||||
"notify.applyToFavorites": "将此声音包用于所有收藏",
|
||||
"notify.applyToFavoritesConfirm": "将所有收藏设为此声音包?单个收藏的声音包设置将被重置。",
|
||||
"notify.whenMuted.important": "仅播放重要声音",
|
||||
"notify.text.client": "客户端",
|
||||
"vault.title": "主密码",
|
||||
"vault.prompt": "你的身份和已保存的密码已加密。请输入主密码。",
|
||||
"vault.unlock": "解锁",
|
||||
"vault.wrong": "密码错误。",
|
||||
"vault.forgot": "忘记密码",
|
||||
"vault.forgotConfirm": "没有密码无法恢复数据。永久删除身份、收藏和已保存的密码并重新开始?",
|
||||
"securitySettings.masterHint": "加密身份、收藏(含密码)和已保存的频道密码。每次重新加载后都会询问。",
|
||||
"securitySettings.masterCurrent": "当前主密码",
|
||||
"securitySettings.masterNew": "新主密码",
|
||||
"securitySettings.masterRepeat": "重复",
|
||||
"securitySettings.masterMismatch": "两次密码不一致。",
|
||||
"securitySettings.masterNote": "请牢记:没有它,身份和已保存的密码将丢失。",
|
||||
"sync.subtitle": "在所有设备上使用你的数据",
|
||||
"sync.intro": "账户只是一个随机号码,可选附加密码。无需邮箱,无需姓名。所有数据在上传前都会在你的设备上加密,服务器只能看到无法读取的数据。",
|
||||
"sync.create.title": "新账户",
|
||||
"sync.create.withPassword": "同时生成随机密码(推荐)",
|
||||
"sync.create.withPasswordHint": "没有密码时,仅凭账户号码就能访问你的数据。",
|
||||
"sync.create.button": "创建账户",
|
||||
"sync.create.busy": "正在创建账户 …",
|
||||
"sync.login.title": "已有账户",
|
||||
"sync.number": "账户号码",
|
||||
"sync.password": "密码",
|
||||
"sync.passwordOptional": "密码(如有)",
|
||||
"sync.login.hint": "之后账户中的数据将替换此设备上的数据。",
|
||||
"sync.login.button": "登录",
|
||||
"sync.server": "同步服务器",
|
||||
"sync.serverDefault": "默认(WebSpeak3 官方服务器)",
|
||||
"sync.serverHint": "留空则使用官方服务器。账户只存在于创建它的服务器上。",
|
||||
"sync.account.title": "你的账户",
|
||||
"sync.copy": "复制",
|
||||
"sync.copied": "已复制",
|
||||
"sync.show": "显示",
|
||||
"sync.hide": "隐藏",
|
||||
"sync.noPassword": "无密码",
|
||||
"sync.keepSafe": "请妥善保管号码和密码。一旦丢失,任何人都无法恢复你的数据,包括我们。",
|
||||
"sync.recoveryFile": "下载恢复文件",
|
||||
"sync.qr.show": "显示二维码",
|
||||
"sync.qr.hide": "隐藏二维码",
|
||||
"sync.qr.hint": "用另一台设备扫描即可在那里登录。看到此二维码的人都能访问你的账户。",
|
||||
"sync.password.add": "添加密码",
|
||||
"sync.password.remove": "移除密码",
|
||||
"sync.password.addConfirm": "生成新的随机密码?其他设备之后需要用号码和密码重新登录。",
|
||||
"sync.password.removeConfirm": "移除密码?之后仅凭账户号码即可访问。其他设备需要重新登录。",
|
||||
"sync.categories": "同步内容",
|
||||
"sync.category.identities": "身份(包括私钥)",
|
||||
"sync.category.favorites": "收藏、频道密码和联系人",
|
||||
"sync.category.settings": "设置",
|
||||
"sync.category.designs": "主题和图标包",
|
||||
"sync.category.whisper": "悄悄话列表",
|
||||
"sync.categoriesHint": "音频设备、音量、按键通话键和聊天记录始终保留在本设备上。",
|
||||
"sync.status": "状态",
|
||||
"sync.status.syncing": "正在同步 …",
|
||||
"sync.status.last": "上次同步:{time}",
|
||||
"sync.status.never": "尚未同步",
|
||||
"sync.conflict.title": "同步",
|
||||
"sync.conflict.text": "自上次同步以来,此设备和账户都有更改。以哪个为准?",
|
||||
"sync.conflict.local": "上传此设备的数据",
|
||||
"sync.conflict.server": "加载账户中的数据",
|
||||
"sync.syncNow": "立即同步",
|
||||
"sync.serverInfo": "服务器:{server}",
|
||||
"sync.logout": "退出登录",
|
||||
"sync.logoutConfirm": "将此设备退出账户?账户及其数据会保留。",
|
||||
"sync.delete": "删除账户",
|
||||
"sync.deleteConfirm": "永久删除服务器上的账户及其所有数据?此设备上的数据会保留。",
|
||||
"sync.link.title": "连接账户",
|
||||
"sync.link.prompt": "将此设备连接到账户 {number}?账户中的数据将替换此设备上的数据。",
|
||||
"sync.link.connect": "连接",
|
||||
"sync.error.password_required": "此账户设有密码。",
|
||||
"sync.error.unreachable": "无法连接同步服务器。",
|
||||
"sync.error.not_found": "账户不存在或密码错误。如果密码已在其他设备上更改,请重新登录。",
|
||||
"sync.error.rate_limited": "请求过多,请稍后再试。",
|
||||
"sync.error.full": "同步服务器暂不接受新账户。",
|
||||
"sync.error.pow_required": "安全检查失败,请重试。",
|
||||
"sync.error.conflict": "另一台设备在此期间做了更改。",
|
||||
"sync.error.payload_too_large": "同步数据过多(最多 1 MB)。",
|
||||
"sync.error.generic": "同步失败。"
|
||||
}
|
||||
@@ -1,536 +0,0 @@
|
||||
export const zhCN: Record<string, string> = {
|
||||
"menu.connections": "连接",
|
||||
"menu.connections.connect": "连接",
|
||||
"menu.connections.disconnectCurrent": "断开当前服务器",
|
||||
"menu.connections.disconnectAll": "断开所有服务器",
|
||||
"menu.favorites": "收藏夹",
|
||||
"menu.favorites.add": "添加到收藏夹",
|
||||
"menu.favorites.manage": "管理收藏夹",
|
||||
"menu.self": "自己",
|
||||
"menu.rights": "权限",
|
||||
"menu.rights.serverGroups": "编辑服务器组...",
|
||||
"menu.rights.channelGroups": "编辑频道组...",
|
||||
"menu.rights.serverPermissions": "编辑服务器权限...",
|
||||
"menu.rights.channelPermissions": "编辑频道权限...",
|
||||
"menu.rights.overview": "权限概览...",
|
||||
"menu.rights.myRights": "查看我的权限",
|
||||
"menu.extras": "工具",
|
||||
"menu.help": "帮助",
|
||||
"menu.extras.identities": "身份",
|
||||
"menu.extras.contacts": "联系人",
|
||||
"menu.extras.collectedUrls": "收集的链接",
|
||||
"menu.extras.inviteFriend": "邀请好友",
|
||||
"menu.extras.whisperLists": "悄悄话列表",
|
||||
"menu.extras.whisperHistory": "悄悄话历史",
|
||||
"menu.extras.clientLog": "客户端日志",
|
||||
"menu.extras.banList": "封禁列表",
|
||||
"menu.extras.complaintList": "投诉列表",
|
||||
"menu.extras.offlineMessages": "离线消息",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery 登录",
|
||||
"menu.extras.serverLog": "服务器日志",
|
||||
"menu.extras.startRecording": "开始录音",
|
||||
"menu.extras.startMultitrackRecording": "开始多轨录音",
|
||||
"menu.extras.stopRecording": "停止录音",
|
||||
"menu.extras.options": "选项",
|
||||
|
||||
"toolbar.setAway": "设为离开",
|
||||
"toolbar.backOnline": "恢复在线",
|
||||
"toolbar.awayOptions": "离开选项",
|
||||
"toolbar.whisper": "悄悄话目标",
|
||||
"whisper.channels": "频道",
|
||||
"whisper.clients": "用户",
|
||||
"whisper.clearAll": "清除所有悄悄话目标",
|
||||
"toolbar.micEnable": "启用麦克风",
|
||||
"toolbar.micMute": "麦克风静音",
|
||||
"toolbar.micUnmute": "取消麦克风静音",
|
||||
"toolbar.vadSensitivity": "语音激活灵敏度",
|
||||
"toolbar.muteSound": "关闭声音(拒听)",
|
||||
"toolbar.unmuteSound": "开启声音(取消拒听)",
|
||||
"toolbar.chooseOutputDevice": "选择输出设备",
|
||||
"toolbar.toggleTheme": "切换主题",
|
||||
|
||||
"away.setGlobal": "全局设为离开",
|
||||
"away.setGlobalStatus": "设置全局离开状态",
|
||||
|
||||
"connect.title": "连接",
|
||||
"connect.serverAddress": "服务器昵称或地址:",
|
||||
"connect.serverPassword": "服务器密码:",
|
||||
"connect.nickname": "昵称:",
|
||||
"connect.phoneticNickname": "昵称读音:",
|
||||
"connect.identity": "身份:",
|
||||
"connect.defaultChannel": "默认频道:",
|
||||
"connect.recordingProfile": "录音配置:",
|
||||
"connect.channelPassword": "频道密码:",
|
||||
"connect.playbackProfile": "播放配置:",
|
||||
"connect.onetimeGrant": "一次性权限密钥:",
|
||||
"connect.serverType": "服务器类型:",
|
||||
"connect.serverType.auto": "自动",
|
||||
"connect.serverType.teamspeak": "TeamSpeak",
|
||||
"connect.serverType.teaspeak": "TeaSpeak",
|
||||
"connect.hotkeyProfile": "快捷键配置:",
|
||||
"connect.sendMyTeamSpeakId": "发送 myTeamSpeak ID",
|
||||
"connect.soundPack": "声音包:",
|
||||
"connect.more": "更多",
|
||||
"connect.less": "收起",
|
||||
"connect.connect": "连接",
|
||||
"connect.connecting": "正在连接…",
|
||||
"connect.newTab": "在新标签页中打开",
|
||||
"connect.cancel": "取消",
|
||||
|
||||
"collectedUrls.title": "收集的链接",
|
||||
"collectedUrls.search": "搜索:",
|
||||
"collectedUrls.url": "链接",
|
||||
"collectedUrls.count": "次数",
|
||||
"collectedUrls.lastSeen": "最后提及",
|
||||
"collectedUrls.mentionedBy": "提及者",
|
||||
"collectedUrls.clearList": "清空列表",
|
||||
|
||||
"inviteFriend.title": "邀请好友",
|
||||
"inviteFriend.type": "邀请类型",
|
||||
"inviteFriend.includeChannel": "包含当前频道",
|
||||
"inviteFriend.link": "链接",
|
||||
"inviteFriend.addPermissionKey": "添加权限密钥",
|
||||
"inviteFriend.copyToClipboard": "复制到剪贴板",
|
||||
"inviteFriend.copied": "已复制!",
|
||||
|
||||
"clientLog.title": "客户端日志",
|
||||
"clientLog.level.critical": "严重",
|
||||
"clientLog.level.error": "错误",
|
||||
"clientLog.level.warning": "警告",
|
||||
"clientLog.level.info": "信息",
|
||||
"clientLog.level.debug": "调试",
|
||||
"clientLog.search": "搜索:",
|
||||
"clientLog.filter": "筛选:",
|
||||
"clientLog.caseSensitive": "区分大小写",
|
||||
"clientLog.mark": "标记",
|
||||
|
||||
"whisperHistory.title": "悄悄话历史 - {server}",
|
||||
"whisperHistory.empty": "暂无悄悄话历史。",
|
||||
"whisperHistory.started": "正在向以下目标发送悄悄话:{targets}",
|
||||
"whisperHistory.stopped": "已停止悄悄话",
|
||||
"whisperHistory.clear": "清除",
|
||||
"whisperHistory.options": "选项",
|
||||
|
||||
"whisperLists.title": "悄悄话列表",
|
||||
"whisperLists.namePlaceholder": "列表名称",
|
||||
"whisperLists.saveCurrent": "保存当前选择",
|
||||
"whisperLists.itemDetail": "{channels} 个频道,{clients} 个用户",
|
||||
"whisperLists.activate": "启用",
|
||||
"whisperLists.delete": "删除",
|
||||
"whisperLists.empty": "尚未保存悄悄话列表。请选择悄悄话目标并在此保存为列表。",
|
||||
|
||||
"identities.title": "身份",
|
||||
"identities.activate": "启用",
|
||||
"identities.add": "新建身份",
|
||||
"identities.delete": "删除",
|
||||
"identities.newName": "新身份",
|
||||
"identities.generated": "已生成",
|
||||
"identities.pending": "将在下次连接时生成",
|
||||
"identities.listLabel": "本地身份",
|
||||
"identities.name": "身份名称:",
|
||||
"identities.phoneticNickname": "昵称读音:",
|
||||
"identities.uniqueId": "唯一 ID:",
|
||||
"identities.unknown": "未知",
|
||||
"identities.setDefault": "设为默认",
|
||||
"identities.isDefault": "当前用作默认身份",
|
||||
"identities.export": "导出",
|
||||
"identities.import": "导入",
|
||||
|
||||
"connectionInfo.clientTitle": "连接信息 - {name}",
|
||||
"connectionInfo.serverTitle": "服务器连接信息",
|
||||
"connectionInfo.loading": "正在加载…",
|
||||
"connectionInfo.unavailable": "服务器无响应(可能缺少权限)。",
|
||||
"connectionInfo.ping": "延迟:",
|
||||
"connectionInfo.connectedSince": "连接时间:",
|
||||
"connectionInfo.uptime": "运行时间:",
|
||||
"connectionInfo.name": "名称:",
|
||||
"connectionInfo.avgPing": "平均延迟:",
|
||||
"connectionInfo.avgPacketLoss": "平均丢包率:",
|
||||
"connectionInfo.incoming": "传入",
|
||||
"connectionInfo.outgoing": "传出",
|
||||
"connectionInfo.packetsTransferred": "传输数据包",
|
||||
"connectionInfo.bytesTransferred": "传输字节",
|
||||
"connectionInfo.bandwidthLastSecond": "上一秒带宽",
|
||||
"connectionInfo.bandwidthLastMinute": "上一分钟带宽",
|
||||
"connectionInfo.ftBandwidth": "文件传输带宽",
|
||||
"connectionInfo.ftBytes": "文件传输字节",
|
||||
"connectionInfo.ip": "IP 地址:",
|
||||
"connectionInfo.packetLoss": "丢包率:",
|
||||
"connectionInfo.packetsSent": "已发送数据包:",
|
||||
"connectionInfo.packetsReceived": "已接收数据包:",
|
||||
"connectionInfo.bytesSent": "已发送数据:",
|
||||
"connectionInfo.bytesReceived": "已接收数据:",
|
||||
"connectionInfo.bandwidthSent": "发送带宽:",
|
||||
"connectionInfo.bandwidthReceived": "接收带宽:",
|
||||
|
||||
"menu.self.recordingProfile": "录音配置",
|
||||
"menu.self.playbackProfile": "播放配置",
|
||||
"menu.self.hotkeyProfile": "快捷键配置",
|
||||
"menu.self.soundPack": "声音包",
|
||||
"menu.self.setAway": "设为离开",
|
||||
"menu.self.enableMic": "启用麦克风",
|
||||
"menu.self.disableMic": "禁用麦克风",
|
||||
"menu.self.muteOutput": "关闭扬声器/耳机",
|
||||
"menu.self.unmuteOutput": "开启扬声器/耳机",
|
||||
"menu.self.changeNickname": "更改昵称",
|
||||
"menu.self.requestTalkPower": "申请发言权限",
|
||||
"menu.self.setAvatar": "设置头像",
|
||||
"menu.self.setPhoneticNickname": "设置昵称读音",
|
||||
"menu.self.connectionInfo": "连接信息",
|
||||
|
||||
"contacts.title": "联系人",
|
||||
"contacts.addOnlineClient": "选择在线用户...",
|
||||
"contacts.add": "添加",
|
||||
"contacts.remove": "移除",
|
||||
"contacts.empty": "暂无联系人。",
|
||||
"contacts.customName": "自定义名称:",
|
||||
"contacts.category.acquaintance": "熟人",
|
||||
"contacts.category.blocked": "已屏蔽",
|
||||
"contacts.category.friend": "好友",
|
||||
"contacts.phoneticName": "名称读音:",
|
||||
"contacts.show": "显示",
|
||||
"contacts.ignore": "忽略",
|
||||
"contacts.unignore": "取消忽略",
|
||||
"contacts.whisper": "悄悄话",
|
||||
"contacts.preferences": "偏好设置",
|
||||
|
||||
"favorites.title": "🔖 myTeamSpeak 收藏夹",
|
||||
"favorites.synced": "已同步的收藏",
|
||||
"favorites.notLoggedIn": "未登录",
|
||||
"favorites.local": "本地收藏",
|
||||
"favorites.unnamed": "(未命名)",
|
||||
"favorites.bookmarkName": "收藏名称:",
|
||||
"favorites.newFavoriteName": "新收藏",
|
||||
"favorites.showServerQueryClients": "显示 ServerQuery 用户",
|
||||
"favorites.connectOnStartup": "启动时连接",
|
||||
"favorites.enableMyTeamSpeak": "启用 myTeamSpeak 功能",
|
||||
"favorites.new": "新建收藏",
|
||||
"favorites.newFolder": "新建文件夹",
|
||||
"favorites.remove": "移除",
|
||||
"favorites.ok": "确定",
|
||||
"favorites.cancel": "取消",
|
||||
"favorites.apply": "应用",
|
||||
|
||||
"away.dialog.title": "设置离开消息",
|
||||
"away.dialog.message": "消息:",
|
||||
"away.dialog.template": "模板:",
|
||||
"away.dialog.none": "<无>",
|
||||
"away.dialog.ok": "确定",
|
||||
"away.dialog.save": "保存",
|
||||
"away.dialog.cancel": "取消",
|
||||
|
||||
"options.title": "选项",
|
||||
"options.ok": "确定",
|
||||
"options.cancel": "取消",
|
||||
"options.notImplemented": "此设置尚未实现。",
|
||||
"options.section.anwendung": "应用",
|
||||
"options.section.wiedergabe": "播放",
|
||||
"options.section.aufnahme": "录音",
|
||||
"options.section.design": "外观",
|
||||
"design.subtitle": "选择应用外观。",
|
||||
"design.theme.standard": "标准",
|
||||
"design.theme.standard.desc": "原始 WebSpeak3 设计。",
|
||||
"design.theme.nova": "Nova",
|
||||
"design.theme.nova.desc": "更现代的深色设计,带圆角元素。",
|
||||
"design.theme.greenteaspeak": "GreenTeaSpeak",
|
||||
"design.theme.greenteaspeak.desc": "经典 GreenTeaSpeak 客户端布局:深色面板与金色菜单栏。",
|
||||
"design.status.connected": "已连接",
|
||||
"options.section.erweiterungen": "扩展",
|
||||
"options.section.hotkeys": "快捷键",
|
||||
"options.section.whispern": "悄悄话",
|
||||
"options.section.downloads": "下载",
|
||||
"options.section.chat": "聊天",
|
||||
"options.section.sicherheit": "安全",
|
||||
"options.section.nachrichten": "消息",
|
||||
"options.section.meldungen": "通知",
|
||||
"options.section.sounds": "声音",
|
||||
|
||||
"app.title": "应用",
|
||||
"app.subtitle": "常规应用设置",
|
||||
"app.language": "语言",
|
||||
"app.language.auto": "跟随系统",
|
||||
"app.language.de": "Deutsch",
|
||||
"app.language.en": "English",
|
||||
"app.language.zh-CN": "简体中文",
|
||||
|
||||
"playback.title": "播放",
|
||||
"playback.subtitle": "更改播放设置",
|
||||
"playback.profile": "配置",
|
||||
"playback.default": "默认",
|
||||
"playback.device": "播放设备:",
|
||||
"playback.systemDefault": "系统默认",
|
||||
"playback.quiet": "安静",
|
||||
"playback.loud": "响亮",
|
||||
"playback.voiceVolume": "语音音量",
|
||||
"playback.playTestTone": "▶ 播放测试音",
|
||||
"playback.options": "选项",
|
||||
"playback.autoVolume": "自动调节音量",
|
||||
"playback.ownMicClicks": "播放自己的麦克风按键音",
|
||||
"playback.otherMicClicks": "播放其他用户的麦克风按键音",
|
||||
|
||||
"recording.title": "录音",
|
||||
"recording.subtitle": "更改录音设置",
|
||||
"recording.device": "录音设备:",
|
||||
"recording.activation": "激活方式",
|
||||
"recording.pushToTalk": "按键说话",
|
||||
"recording.continuous": "持续传输",
|
||||
"recording.voiceActivation": "语音激活检测",
|
||||
"recording.testStart": "开始测试",
|
||||
"recording.testStop": "停止测试",
|
||||
"recording.hangoverDelay": "停止前延迟:",
|
||||
"recording.secondsUnit": "秒",
|
||||
"recording.dsp": "数字信号处理",
|
||||
"recording.typingAttenuation": "键盘声衰减",
|
||||
"recording.echoCancellation": "回声消除",
|
||||
"recording.noiseSuppression": "消除背景噪声",
|
||||
|
||||
"info.address": "地址:",
|
||||
"info.version": "版本:",
|
||||
"info.license": "许可证:",
|
||||
"info.currentClients": "当前用户:",
|
||||
"info.currentChannels": "当前频道:",
|
||||
"info.topic": "主题:",
|
||||
"info.audioCodec": "音频编解码器:",
|
||||
"info.spacer": "间隔符:",
|
||||
"info.rawName": "原始名称:",
|
||||
"info.passwordProtected": "密码保护:",
|
||||
"info.clients": "用户:",
|
||||
"info.country": "国家:",
|
||||
"info.muted": "麦克风静音:",
|
||||
"info.outputMuted": "扬声器静音:",
|
||||
"info.serverGroups": "服务器组:",
|
||||
"info.yes": "是",
|
||||
"info.no": "否",
|
||||
|
||||
"tree.notConnected": "未连接",
|
||||
"tree.clickToSelect": "单击选择,双击加入",
|
||||
"tree.clickToJoin": "双击加入",
|
||||
"tree.joinNotConnected": "未连接 — 无法切换频道",
|
||||
"tree.passwordProtected": "受密码保护",
|
||||
"tree.privateChatWith": "与其私聊",
|
||||
"tree.poke": "戳一戳",
|
||||
"tree.channelCommander": "频道指挥官",
|
||||
"tree.away": "离开",
|
||||
"tree.micMuted": "麦克风已静音",
|
||||
"tree.talking": "正在说话",
|
||||
"tree.noTalkPower": "在此频道中没有发言权限",
|
||||
"tree.soundMuted": "声音已关闭(拒听)",
|
||||
|
||||
"chat.server": "服务器",
|
||||
"chat.channel": "频道",
|
||||
"chat.notConnected": "未连接",
|
||||
"chat.messageChannel": "向频道发送消息...",
|
||||
"chat.messageServer": "向服务器发送消息...",
|
||||
"chat.messagePartner": "向 {name} 发送消息...",
|
||||
"chat.send": "发送",
|
||||
"chat.you": "你",
|
||||
|
||||
"serverLog.clientJoin": "{client} 进入了频道“{channel}”",
|
||||
"serverLog.clientLeave": "{client} 已断开连接(离开)",
|
||||
"serverLog.clientChannelSwitch": "{client} 从频道“{fromChannel}”移动到“{toChannel}”",
|
||||
"serverLog.clientChannelGroupAssigned": "已将频道组“{group}”分配给 {client}",
|
||||
"serverLog.channelCreated": "频道“{channel}”已创建",
|
||||
"serverLog.channelDeleted": "频道“{channel}”已删除",
|
||||
"serverLog.channelEdited": "频道“{channel}”已编辑",
|
||||
"serverLog.serverEdited": "服务器设置已更改",
|
||||
"serverLog.permissionError": "缺少权限:{action}",
|
||||
|
||||
"poke.title": "戳一戳",
|
||||
"poke.optionalMessage": "可选消息...",
|
||||
"poke.send": "发送",
|
||||
"poke.cancel": "取消",
|
||||
"poke.pokedYou": "戳了你一下",
|
||||
"poke.dismiss": "关闭",
|
||||
|
||||
"kick.title": "踢出:",
|
||||
"kick.reasonPlaceholder": "原因(可选)...",
|
||||
"kick.confirm": "踢出",
|
||||
"kick.cancel": "取消",
|
||||
|
||||
"ban.title": "封禁:",
|
||||
"ban.reasonPlaceholder": "原因(可选)...",
|
||||
"ban.duration": "时长:",
|
||||
"ban.durationPermanent": "永久",
|
||||
"ban.duration1h": "1 小时",
|
||||
"ban.duration1d": "1 天",
|
||||
"ban.duration1w": "1 周",
|
||||
"ban.confirm": "封禁",
|
||||
"ban.cancel": "取消",
|
||||
|
||||
"serverEdit.title": "编辑虚拟服务器",
|
||||
"serverEdit.tab.host": "主机",
|
||||
"serverEdit.tab.misc": "其他",
|
||||
"serverEdit.tab.transmission": "传输",
|
||||
"serverEdit.tab.antiflood": "防刷屏",
|
||||
"serverEdit.tab.security": "安全",
|
||||
"serverEdit.tab.log": "日志",
|
||||
"serverEdit.name": "服务器名称:",
|
||||
"serverEdit.welcomeMessage": "欢迎消息:",
|
||||
"serverEdit.clearPassword": "移除服务器密码",
|
||||
"serverEdit.newPassword": "新服务器密码:",
|
||||
"serverEdit.hostmessage": "主机消息:",
|
||||
"serverEdit.hostmessageMode": "显示模式:",
|
||||
"serverEdit.hostmessageMode.none": "不显示",
|
||||
"serverEdit.hostmessageMode.log": "在日志中显示",
|
||||
"serverEdit.hostmessageMode.modal": "以对话框显示",
|
||||
"serverEdit.hostmessageMode.modalquit": "以对话框显示并断开连接",
|
||||
"serverEdit.hostbannerUrl": "主机横幅链接:",
|
||||
"serverEdit.hostbannerGfxUrl": "主机横幅图片链接:",
|
||||
"serverEdit.hostbannerGfxInterval": "横幅刷新间隔(秒):",
|
||||
"serverEdit.hostbannerMode": "横幅缩放:",
|
||||
"serverEdit.hostbannerMode.noadjust": "不调整",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "调整(忽略宽高比)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "调整(保持宽高比)",
|
||||
"serverEdit.hostbuttonTooltip": "主机按钮提示:",
|
||||
"serverEdit.hostbuttonUrl": "主机按钮链接:",
|
||||
"serverEdit.hostbuttonGfxUrl": "主机按钮图片链接:",
|
||||
"serverEdit.maxClients": "最大用户数:",
|
||||
"serverEdit.nickname": "服务器昵称:",
|
||||
"serverEdit.phoneticName": "名称读音:",
|
||||
"serverEdit.codecEncryptionMode": "语音加密:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "可按频道配置",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "全局禁用",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "全局启用",
|
||||
"serverEdit.unchanged": "保持不变",
|
||||
"serverEdit.save": "保存",
|
||||
"serverEdit.cancel": "取消",
|
||||
|
||||
"serverProtocolLog.title": "服务器日志",
|
||||
"serverProtocolLog.empty": "暂无日志条目。",
|
||||
"banList.title": "封禁列表",
|
||||
"banList.empty": "未找到封禁记录。",
|
||||
"banList.name": "名称",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "创建时间",
|
||||
"banList.duration": "时长",
|
||||
"banList.invoker": "执行者",
|
||||
"banList.reason": "原因",
|
||||
"banList.permanent": "永久",
|
||||
"banList.delete": "删除",
|
||||
"banList.deleteAll": "全部删除",
|
||||
"complainList.title": "投诉列表",
|
||||
"complainList.empty": "未找到投诉记录。",
|
||||
"complainList.target": "对象",
|
||||
"complainList.from": "来自",
|
||||
"complainList.message": "消息",
|
||||
"complainList.timestamp": "时间",
|
||||
"offlineMessages.title": "离线消息",
|
||||
"offlineMessages.empty": "暂无消息。",
|
||||
"offlineMessages.subject": "主题",
|
||||
"offlineMessages.from": "来自",
|
||||
"offlineMessages.timestamp": "时间",
|
||||
"offlineMessages.targetUid": "目标 UID",
|
||||
"offlineMessages.message": "消息",
|
||||
"offlineMessages.send": "发送",
|
||||
"offlineMessages.new": "新消息",
|
||||
"offlineMessages.markRead": "标记为已读",
|
||||
"offlineMessages.backToList": "返回列表",
|
||||
"dialog.cancel": "取消",
|
||||
|
||||
"groupAssign.channelTitle": "分配频道组",
|
||||
"groupAssign.serverTitle": "分配服务器组",
|
||||
"groupAssign.empty": "未找到组。",
|
||||
"groupAssign.clickToRemove": "单击移除",
|
||||
|
||||
"serverQueryLogin.username": "用户名",
|
||||
"serverQueryLogin.password": "密码",
|
||||
"serverQueryLogin.login": "登录",
|
||||
|
||||
"permissionOverview.title": "我的权限",
|
||||
"permissionOverview.empty": "未找到权限。",
|
||||
"permissionOverview.name": "权限",
|
||||
"permissionOverview.value": "值",
|
||||
"permissionOverview.negated": "否定",
|
||||
"permissionOverview.skip": "跳过",
|
||||
|
||||
"permsEditor.title": "权限",
|
||||
"permsEditor.tab.server": "服务器组",
|
||||
"permsEditor.tab.client": "用户权限",
|
||||
"permsEditor.tab.channel": "频道权限",
|
||||
"permsEditor.tab.channelgroup": "频道组",
|
||||
"permsEditor.tab.channelclient": "频道用户权限",
|
||||
"permsEditor.clientDbId": "唯一用户数据库 ID:",
|
||||
"permsEditor.load": "加载",
|
||||
"permsEditor.pickOnlineClient": "或选择在线用户...",
|
||||
"permsEditor.pickTarget": "请在左侧选择组或频道,或输入用户 ID。",
|
||||
"permsEditor.addPermission": "添加",
|
||||
"permsEditor.searchPermission": "搜索权限...",
|
||||
|
||||
"dialog.ok": "确定",
|
||||
"channelContext.join": "切换到频道",
|
||||
"channelContext.files": "文件...",
|
||||
"fileBrowser.title": "文件传输",
|
||||
"fileBrowser.up": "上一级",
|
||||
"fileBrowser.refresh": "刷新",
|
||||
"fileBrowser.newFolder": "新建文件夹",
|
||||
"fileBrowser.upload": "上传",
|
||||
"fileBrowser.folderName": "文件夹名称",
|
||||
"fileBrowser.empty": "此文件夹为空。",
|
||||
"fileBrowser.name": "名称",
|
||||
"fileBrowser.size": "大小",
|
||||
"fileBrowser.modified": "修改时间",
|
||||
"fileBrowser.download": "下载",
|
||||
"fileBrowser.rename": "重命名",
|
||||
"fileBrowser.delete": "删除",
|
||||
"fileBrowser.deleteConfirm": "确定要删除吗?",
|
||||
"fileBrowser.uploading": "正在上传...",
|
||||
"fileBrowser.downloading": "正在下载...",
|
||||
|
||||
"serverContext.icons": "服务器图标...",
|
||||
"serverIcons.title": "管理服务器图标",
|
||||
"serverIcons.upload": "上传图标",
|
||||
"serverIcons.iconId": "图标 ID",
|
||||
"serverIcons.empty": "未找到图标。",
|
||||
|
||||
"clientContext.privateChat": "私聊",
|
||||
"clientContext.poke": "戳一戳",
|
||||
"clientContext.copyName": "复制名称",
|
||||
"clientContext.connectionInfo": "查看连接信息",
|
||||
"clientContext.addWhisperTarget": "添加为悄悄话目标",
|
||||
"clientContext.removeWhisperTarget": "从悄悄话目标中移除",
|
||||
"clientContext.assignChannelGroup": "分配频道组",
|
||||
"clientContext.assignServerGroup": "分配服务器组",
|
||||
"clientContext.kickChannel": "踢出频道",
|
||||
"clientContext.kick": "踢出服务器",
|
||||
"clientContext.ban": "封禁",
|
||||
"clientContext.notSupported": "网页客户端暂不支持此功能",
|
||||
|
||||
"serverContext.connectionInfo": "服务器连接信息",
|
||||
"serverContext.copyAddress": "复制服务器地址",
|
||||
"serverContext.addFavorite": "添加到收藏夹",
|
||||
"serverContext.disconnect": "断开连接",
|
||||
|
||||
"connectError.dismiss": "关闭",
|
||||
"dialog.close": "关闭",
|
||||
|
||||
"sounds.title": "声音",
|
||||
"sounds.subtitle": "配置事件提示音",
|
||||
"sounds.enable": "启用声音",
|
||||
"sounds.volume": "音量",
|
||||
"sounds.eventEnable": "启用此声音",
|
||||
"sounds.event.connect": "已连接",
|
||||
"sounds.event.disconnect": "已断开",
|
||||
"sounds.event.clientJoin": "用户加入",
|
||||
"sounds.event.clientLeave": "用户离开",
|
||||
"sounds.event.message": "收到消息",
|
||||
"sounds.event.poke": "收到戳一戳",
|
||||
"sounds.default": "默认",
|
||||
"sounds.custom": "自定义文件:{name}",
|
||||
"sounds.test": "▶ 测试",
|
||||
"sounds.upload": "上传",
|
||||
"sounds.reset": "重置",
|
||||
"sounds.importSoundpack": "导入声音包(.ts3soundpack)",
|
||||
"sounds.importResult": "已导入 {matched} 个声音,{unmatched} 个文件未匹配",
|
||||
|
||||
"nachrichten.title": "消息",
|
||||
"nachrichten.subtitle": "自定义消息",
|
||||
"nachrichten.disconnectMessage": "断开连接:",
|
||||
"nachrichten.disconnectMessagePlaceholder": "离开",
|
||||
"nachrichten.presetsTitle": "预设消息",
|
||||
"nachrichten.type": "类型",
|
||||
"nachrichten.type.away": "离开",
|
||||
"nachrichten.templateName": "模板名称",
|
||||
"nachrichten.message": "消息",
|
||||
"nachrichten.add": "添加",
|
||||
"nachrichten.delete": "删除",
|
||||
};
|
||||
+174
-8
@@ -1,11 +1,177 @@
|
||||
import { StrictMode } from 'react'
|
||||
import './storageFallback'
|
||||
import { StrictMode, useState, type FormEvent, type ReactNode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import './styles/greenteaspeak.css'
|
||||
import App from './App.tsx'
|
||||
import './App.css'
|
||||
import { LanguageProvider, useT } from './i18n'
|
||||
import { discardVault, hasVault, unlockVault } from './vault'
|
||||
import {
|
||||
SYNC_CATEGORIES,
|
||||
accountInfo,
|
||||
formatAccountNumber,
|
||||
loginSyncAccount,
|
||||
normalizePassword,
|
||||
pullAtStartup,
|
||||
resolveConflict,
|
||||
startAutoSync,
|
||||
syncErrorKey,
|
||||
takeSyncLink,
|
||||
} from './sync'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
const root = createRoot(document.getElementById('root')!)
|
||||
|
||||
// App reads its stored identities/favorites while loading, so it's imported only after the vault is open
|
||||
// and the sync account (Options -> Konto) had its chance to bring in newer data.
|
||||
async function start() {
|
||||
const { default: App } = await import('./App.tsx')
|
||||
startAutoSync()
|
||||
root.render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
}
|
||||
|
||||
const dialog = (node: ReactNode) => root.render(<LanguageProvider>{node}</LanguageProvider>)
|
||||
|
||||
async function boot() {
|
||||
const link = takeSyncLink()
|
||||
if (link) return dialog(<SyncLinkDialog link={link} />)
|
||||
// Don't hold the client hostage to a slow sync server.
|
||||
const deadline = Date.now() + 5000
|
||||
const result = await Promise.race([
|
||||
pullAtStartup(deadline),
|
||||
new Promise<'ok'>((resolve) => setTimeout(() => resolve('ok'), 5000)),
|
||||
])
|
||||
if (result === 'conflict') return dialog(<SyncConflictDialog />)
|
||||
void start()
|
||||
}
|
||||
|
||||
/** Opened through the QR code / link from Options -> Konto on another device. */
|
||||
function SyncLinkDialog({ link }: { link: { number: string; password?: string; server: string } }) {
|
||||
const t = useT()
|
||||
const [password, setPassword] = useState(link.password ?? '')
|
||||
const [askPassword, setAskPassword] = useState(false)
|
||||
const [error, setError] = useState('')
|
||||
const [busy, setBusy] = useState(false)
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault()
|
||||
setBusy(true)
|
||||
setError('')
|
||||
try {
|
||||
if (!password) {
|
||||
const info = await accountInfo(link.number, link.server)
|
||||
if (!info.exists) throw new Error('not_found')
|
||||
if (info.hasPassword) {
|
||||
setAskPassword(true)
|
||||
setBusy(false)
|
||||
return
|
||||
}
|
||||
}
|
||||
await loginSyncAccount(link.number, password ? normalizePassword(password) : undefined, link.server, SYNC_CATEGORIES)
|
||||
void start()
|
||||
} catch (err) {
|
||||
setError(t(syncErrorKey(err)))
|
||||
setBusy(false)
|
||||
}
|
||||
}
|
||||
return (
|
||||
<div className="ts-dialog-backdrop">
|
||||
<form className="ts-dialog ts-vault-dialog" onSubmit={submit}>
|
||||
<h3>{t('sync.link.title')}</h3>
|
||||
<p>{t('sync.link.prompt', { number: formatAccountNumber(link.number) })}</p>
|
||||
{askPassword && (
|
||||
<label className="ts-dialog-field">
|
||||
{t('sync.password')}
|
||||
<input autoFocus value={password} onChange={(e) => setPassword(e.target.value)} />
|
||||
</label>
|
||||
)}
|
||||
{error && <p className="ts-vault-wrong">{error}</p>}
|
||||
<div className="ts-dialog-buttons">
|
||||
<button type="button" onClick={() => void start()}>
|
||||
{t('dialog.cancel')}
|
||||
</button>
|
||||
<button type="submit" disabled={busy || (askPassword && !password)}>
|
||||
{t('sync.link.connect')}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function SyncConflictDialog() {
|
||||
const t = useT()
|
||||
const [busy, setBusy] = useState(false)
|
||||
const take = async (side: 'server' | 'local') => {
|
||||
setBusy(true)
|
||||
try {
|
||||
await resolveConflict(side)
|
||||
} finally {
|
||||
void start()
|
||||
}
|
||||
}
|
||||
return (
|
||||
<div className="ts-dialog-backdrop">
|
||||
<div className="ts-dialog ts-vault-dialog">
|
||||
<h3>{t('sync.conflict.title')}</h3>
|
||||
<p>{t('sync.conflict.text')}</p>
|
||||
<div className="ts-dialog-buttons">
|
||||
<button disabled={busy} onClick={() => void take('local')}>
|
||||
{t('sync.conflict.local')}
|
||||
</button>
|
||||
<button disabled={busy} onClick={() => void take('server')}>
|
||||
{t('sync.conflict.server')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function Unlock() {
|
||||
const t = useT()
|
||||
const [password, setPassword] = useState('')
|
||||
const [wrong, setWrong] = useState(false)
|
||||
const [busy, setBusy] = useState(false)
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault()
|
||||
setBusy(true)
|
||||
if (await unlockVault(password)) return void boot()
|
||||
setBusy(false)
|
||||
setWrong(true)
|
||||
}
|
||||
return (
|
||||
<div className="ts-dialog-backdrop">
|
||||
<form className="ts-dialog ts-vault-dialog" onSubmit={submit}>
|
||||
<h3>{t('vault.title')}</h3>
|
||||
<p>{t('vault.prompt')}</p>
|
||||
<input type="password" autoFocus value={password} onChange={(e) => setPassword(e.target.value)} />
|
||||
{wrong && <p className="ts-vault-wrong">{t('vault.wrong')}</p>}
|
||||
<div className="ts-dialog-buttons">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
if (!window.confirm(t('vault.forgotConfirm'))) return
|
||||
discardVault()
|
||||
void boot()
|
||||
}}
|
||||
>
|
||||
{t('vault.forgot')}
|
||||
</button>
|
||||
<button type="submit" disabled={busy || !password}>
|
||||
{t('vault.unlock')}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
if (hasVault())
|
||||
root.render(
|
||||
<LanguageProvider>
|
||||
<Unlock />
|
||||
</LanguageProvider>,
|
||||
)
|
||||
else void boot()
|
||||
@@ -0,0 +1,323 @@
|
||||
import { unzipSync } from "fflate";
|
||||
import { SOUND_EVENTS, playSound, playSoundBlob, type SoundEventId } from "./sounds";
|
||||
|
||||
/** Options -> Meldungen: TS3's notification tree. Keys are TeamSpeak's own
|
||||
* sound pack keys, so a real .ts3_soundpack's settings.ini maps 1:1. */
|
||||
export interface NotificationNode {
|
||||
/** Locale key under "notify.". */
|
||||
label: string;
|
||||
key?: string;
|
||||
children?: NotificationNode[];
|
||||
}
|
||||
|
||||
const leaf = (label: string, key: string): NotificationNode => ({ label, key });
|
||||
const group = (label: string, children: NotificationNode[]): NotificationNode => ({ label, children });
|
||||
const byWho = (p: string) => [leaf("byYou", `${p}_BY_YOU`), leaf("byOther", `${p}_BY_OTHER`)];
|
||||
const where = (p: string) => [leaf("server", `${p}_SERVER`), leaf("currentChannel", `${p}_CURRENT_CHANNEL`)];
|
||||
const byServerUser = (p: string) => [leaf("byServer", `${p}_BY_SERVER`), leaf("byUser", `${p}_BY_USER`)];
|
||||
const moves = (p: string) => [
|
||||
group("toCurrent", [leaf("appears", `${p}_TO_CURRENT_CHANNEL_APPEARS`), leaf("stays", `${p}_TO_CURRENT_CHANNEL_STAYS`)]),
|
||||
group("fromCurrent", [
|
||||
leaf("disappears", `${p}_FROM_CURRENT_CHANNEL_DISAPPEARS`),
|
||||
leaf("stays", `${p}_FROM_CURRENT_CHANNEL_STAYS`),
|
||||
]),
|
||||
group("toOther", [
|
||||
leaf("appears", `${p}_TO_OTHER_CHANNEL_APPEARS`),
|
||||
leaf("disappears", `${p}_TO_OTHER_CHANNEL_DISAPPEARS`),
|
||||
leaf("stays", `${p}_TO_OTHER_CHANNEL_STAYS`),
|
||||
]),
|
||||
];
|
||||
|
||||
export const NOTIFICATION_TREE: NotificationNode[] = [
|
||||
group("connection", [
|
||||
leaf("connected", "CONNECTION_CONNECTED"),
|
||||
leaf("disconnected", "CONNECTION_DISCONNECTED"),
|
||||
leaf("lostConnection", "CONNECTION_LOST_CONNECTION"),
|
||||
]),
|
||||
group("channel", [
|
||||
group("created", byWho("CHANNEL_CREATED")),
|
||||
group("deleted", byWho("CHANNEL_DELETED")),
|
||||
group("edited", [
|
||||
group("currentChannel", byWho("CHANNEL_EDITED_CURRENT")),
|
||||
group("otherChannel", byWho("CHANNEL_EDITED_OTHER")),
|
||||
]),
|
||||
group("moved", byWho("CHANNEL_MOVED")),
|
||||
]),
|
||||
group("server", [
|
||||
group("edited", byWho("SERVER_EDITED")),
|
||||
leaf("insufficientPermissions", "SERVER_INSUFFICIENT_PERMISSIONS"),
|
||||
leaf("error", "SERVER_ERROR"),
|
||||
]),
|
||||
group("client", [
|
||||
group("connection", [
|
||||
group("connected", where("CLIENT_CONNECTION_CONNECTED")),
|
||||
group("disconnected", where("CLIENT_CONNECTION_DISCONNECTED")),
|
||||
group("lostConnection", where("CLIENT_CONNECTION_LOST_CONNECTION")),
|
||||
]),
|
||||
group("switched", moves("CLIENT_SWITCHED")),
|
||||
group("movedClient", moves("CLIENT_MOVED")),
|
||||
group("kickedChannel", moves("CLIENT_WAS_KICKED_FROM_CHANNEL")),
|
||||
group("kickedServer", where("CLIENT_WAS_KICKED_FROM_SERVER")),
|
||||
group("banned", where("CLIENT_WAS_BANNED")),
|
||||
group("serverGroup", [
|
||||
group("added", byServerUser("CLIENT_SERVERGROUP_ADDED")),
|
||||
group("removed", byServerUser("CLIENT_SERVERGROUP_REMOVED")),
|
||||
]),
|
||||
group("channelGroup", byServerUser("CLIENT_CHANNELGROUP_CHANGED")),
|
||||
group("recording", [
|
||||
leaf("recordingStart", "CLIENT_RECORDING_START"),
|
||||
leaf("recordingStop", "CLIENT_RECORDING_STOP"),
|
||||
leaf("recordingInChannel", "CLIENT_RECORDING_IN_CHANNEL"),
|
||||
]),
|
||||
leaf("talkPowerRequested", "CLIENT_REQUESTED_TALK_POWER"),
|
||||
]),
|
||||
group("self", [
|
||||
leaf("youSwitched", "YOU_SWITCHED_CHANNEL"),
|
||||
leaf("youMoved", "YOU_WERE_MOVED_TO_DIFFERENT_CHANNEL"),
|
||||
leaf("youKickedServer", "YOU_WERE_KICKED_FROM_SERVER"),
|
||||
leaf("youKickedChannel", "YOU_WERE_KICKED_FROM_CHANNEL"),
|
||||
leaf("youBanned", "YOU_WERE_BANNED"),
|
||||
leaf("talkPowerGranted", "YOU_WERE_GRANTED_TALK_POWER"),
|
||||
leaf("talkPowerRevoked", "YOU_WERE_REVOKED_TALK_POWER"),
|
||||
group("serverGroup", [
|
||||
group("added", byServerUser("YOU_SERVERGROUP_ADDED")),
|
||||
group("removed", byServerUser("YOU_SERVERGROUP_REMOVED")),
|
||||
]),
|
||||
group("channelGroup", byServerUser("YOU_CHANNELGROUP_CHANGED")),
|
||||
]),
|
||||
group("chat", [leaf("messageSent", "CHAT_SENT_MESSAGE"), leaf("messageReceived", "CHAT_RECEIVED_MESSAGE")]),
|
||||
group("capture", [leaf("muted", "SOUND_CAPTURE_MUTED"), leaf("unmuted", "SOUND_CAPTURE_UNMUTED")]),
|
||||
group("playback", [leaf("muted", "SOUND_PLAYBACK_MUTED"), leaf("unmuted", "SOUND_PLAYBACK_UNMUTED")]),
|
||||
group("status", [leaf("away", "STATUS_SET_AWAY"), leaf("present", "STATUS_SET_PRESENT")]),
|
||||
group("other", [
|
||||
leaf("poked", "OTHER_RECEIVED_POKE"),
|
||||
leaf("transferComplete", "OTHER_FILETRANSFER_COMPLETE"),
|
||||
leaf("transferFailed", "OTHER_FILETRANSFER_FAILED"),
|
||||
leaf("whisperListEmpty", "OTHER_WHISPERLIST_EMPTY"),
|
||||
leaf("whisperTargetNotFound", "OTHER_WHISPERTARGET_NOT_FOUND"),
|
||||
leaf("whisperTooMany", "OTHER_WHISPERTARGET_TOO_MANY"),
|
||||
]),
|
||||
// Like native: no checkboxes here, these are switched on/off on their own options pages.
|
||||
group("special", [
|
||||
leaf("micClickOtherOn", "SPECIAL_MIC_CLICK_OTHER_ON"),
|
||||
leaf("micClickOtherOff", "SPECIAL_MIC_CLICK_OTHER_OFF"),
|
||||
leaf("micClickSelfOn", "SPECIAL_MIC_CLICK_SELF_ON"),
|
||||
leaf("micClickSelfOff", "SPECIAL_MIC_CLICK_SELF_OFF"),
|
||||
leaf("whisperNotify", "SPECIAL_WHISPER_NOTIFY"),
|
||||
leaf("soundTest", "SPECIAL_SOUND_TEST"),
|
||||
leaf("test3d", "SPECIAL_3D_TEST"),
|
||||
leaf("talkingWhileMuted", "SPECIAL_TALKING_WHILE_MUTED"),
|
||||
]),
|
||||
];
|
||||
|
||||
export const isSpecialKey = (key: string) => key.startsWith("SPECIAL_");
|
||||
|
||||
/** WebSpeak3's own pack: plays the chimes from Options -> Sounds (or the file you put there). */
|
||||
const BUILTIN_SCRIPTS: Record<string, SoundEventId> = {
|
||||
CONNECTION_CONNECTED: "connect",
|
||||
CONNECTION_DISCONNECTED: "disconnect",
|
||||
CONNECTION_LOST_CONNECTION: "disconnect",
|
||||
CLIENT_CONNECTION_CONNECTED_SERVER: "clientJoin",
|
||||
CLIENT_CONNECTION_CONNECTED_CURRENT_CHANNEL: "clientJoin",
|
||||
CLIENT_CONNECTION_DISCONNECTED_SERVER: "clientLeave",
|
||||
CLIENT_CONNECTION_DISCONNECTED_CURRENT_CHANNEL: "clientLeave",
|
||||
CLIENT_CONNECTION_LOST_CONNECTION_SERVER: "clientLeave",
|
||||
CLIENT_CONNECTION_LOST_CONNECTION_CURRENT_CHANNEL: "clientLeave",
|
||||
CLIENT_SWITCHED_TO_CURRENT_CHANNEL_APPEARS: "clientJoin",
|
||||
CLIENT_SWITCHED_TO_CURRENT_CHANNEL_STAYS: "clientJoin",
|
||||
CLIENT_SWITCHED_FROM_CURRENT_CHANNEL_DISAPPEARS: "clientLeave",
|
||||
CLIENT_SWITCHED_FROM_CURRENT_CHANNEL_STAYS: "clientLeave",
|
||||
CHAT_RECEIVED_MESSAGE: "message",
|
||||
OTHER_RECEIVED_POKE: "poke",
|
||||
SOUND_CAPTURE_MUTED: "mute",
|
||||
SOUND_CAPTURE_UNMUTED: "mute",
|
||||
SOUND_PLAYBACK_MUTED: "mute",
|
||||
SOUND_PLAYBACK_UNMUTED: "mute",
|
||||
SPECIAL_MIC_CLICK_OTHER_ON: "micClickOn",
|
||||
SPECIAL_MIC_CLICK_OTHER_OFF: "micClickOff",
|
||||
SPECIAL_MIC_CLICK_SELF_ON: "micClickOn",
|
||||
SPECIAL_MIC_CLICK_SELF_OFF: "micClickOff",
|
||||
SPECIAL_WHISPER_NOTIFY: "whisper",
|
||||
SPECIAL_TALKING_WHILE_MUTED: "mute",
|
||||
};
|
||||
|
||||
export const BUILTIN_PACK = "builtin";
|
||||
export const NO_SOUNDS_PACK = "none";
|
||||
|
||||
export interface SoundPack {
|
||||
id: string;
|
||||
name: string;
|
||||
scripts: Record<string, string>;
|
||||
/** Lowercased path relative to settings.ini -> audio. */
|
||||
files: Record<string, Blob>;
|
||||
}
|
||||
|
||||
/** Where an event's text line goes; several at once, like native's multiple choice.
|
||||
* "client" = the private chat with the client it's about. */
|
||||
export type TextPosition = "server" | "channel" | "client";
|
||||
|
||||
export interface NotificationOverride {
|
||||
off?: boolean;
|
||||
script?: string;
|
||||
text?: TextPosition[];
|
||||
}
|
||||
|
||||
export interface NotificationSettings {
|
||||
pack: string;
|
||||
/** "important": only IMPORTANT_KEYS while the output is muted. */
|
||||
whenMuted: "all" | "important" | "none";
|
||||
overrides: Record<string, NotificationOverride>;
|
||||
}
|
||||
|
||||
const SETTINGS_KEY = "webspeak3:notification-settings";
|
||||
const DEFAULT_SETTINGS: NotificationSettings = { pack: BUILTIN_PACK, whenMuted: "all", overrides: {} };
|
||||
|
||||
let settings: NotificationSettings = (() => {
|
||||
try {
|
||||
return { ...DEFAULT_SETTINGS, ...JSON.parse(localStorage.getItem(SETTINGS_KEY) ?? "{}") };
|
||||
} catch {
|
||||
return DEFAULT_SETTINGS;
|
||||
}
|
||||
})();
|
||||
|
||||
export const getNotificationSettings = () => settings;
|
||||
|
||||
export function saveNotificationSettings(next: NotificationSettings): void {
|
||||
settings = next;
|
||||
localStorage.setItem(SETTINGS_KEY, JSON.stringify(next));
|
||||
}
|
||||
|
||||
/** Set by the app: output muted state, and the active favorite's pack override. */
|
||||
let playbackMuted = false;
|
||||
let sessionPack: string | undefined;
|
||||
export const setNotificationPlaybackMuted = (muted: boolean) => void (playbackMuted = muted);
|
||||
export const setSessionSoundPack = (pack: string | undefined) => void (sessionPack = pack || undefined);
|
||||
|
||||
// --- imported packs (IndexedDB, blobs don't fit localStorage) ---
|
||||
|
||||
function withPacks<T>(mode: IDBTransactionMode, run: (store: IDBObjectStore) => IDBRequest<T>): Promise<T> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const open = indexedDB.open("webspeak3-soundpacks", 1);
|
||||
open.onupgradeneeded = () => open.result.createObjectStore("packs", { keyPath: "id" });
|
||||
open.onerror = () => reject(open.error);
|
||||
open.onsuccess = () => {
|
||||
const req = run(open.result.transaction("packs", mode).objectStore("packs"));
|
||||
req.onsuccess = () => resolve(req.result);
|
||||
req.onerror = () => reject(req.error);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
let packsCache: Promise<SoundPack[]> | null = null;
|
||||
|
||||
export function loadSoundPacks(): Promise<SoundPack[]> {
|
||||
packsCache ??= withPacks<SoundPack[]>("readonly", (s) => s.getAll()).catch(() => []);
|
||||
return packsCache;
|
||||
}
|
||||
|
||||
export async function deleteSoundPack(id: string): Promise<void> {
|
||||
await withPacks("readwrite", (s) => s.delete(id)).catch(() => {});
|
||||
packsCache = null;
|
||||
}
|
||||
|
||||
const AUDIO = /\.(wav|mp3|ogg|m4a)$/i;
|
||||
|
||||
/** Parses a TS3 sound pack (.ts3_soundpack / .zip with a settings.ini). */
|
||||
export function parseSoundPackZip(data: Uint8Array, fallbackName: string): SoundPack {
|
||||
const entries = unzipSync(data);
|
||||
const iniPath = Object.keys(entries)
|
||||
.filter((p) => p.toLowerCase().endsWith("settings.ini"))
|
||||
.sort((a, b) => a.length - b.length)[0];
|
||||
if (!iniPath) throw new Error("settings.ini missing");
|
||||
const base = iniPath.slice(0, iniPath.length - "settings.ini".length).toLowerCase();
|
||||
const ini = new TextDecoder().decode(entries[iniPath]);
|
||||
let section = "";
|
||||
let name = fallbackName;
|
||||
const scripts: Record<string, string> = {};
|
||||
for (const raw of ini.split(/\r?\n/)) {
|
||||
const line = raw.trim();
|
||||
if (!line || line.startsWith("#") || line.startsWith(";")) continue;
|
||||
const head = /^\[(.+)\]$/.exec(line);
|
||||
if (head) {
|
||||
section = head[1].toLowerCase();
|
||||
continue;
|
||||
}
|
||||
const eq = line.indexOf("=");
|
||||
if (eq < 0) continue;
|
||||
const k = line.slice(0, eq).trim();
|
||||
const v = line.slice(eq + 1).trim();
|
||||
if (section === "info" && k === "name" && v) name = v;
|
||||
else if (section === "soundfiles") scripts[k] = v;
|
||||
}
|
||||
const files: Record<string, Blob> = {};
|
||||
for (const [path, bytes] of Object.entries(entries)) {
|
||||
const lower = path.toLowerCase();
|
||||
if (lower.startsWith(base) && AUDIO.test(lower)) files[lower.slice(base.length)] = new Blob([bytes.slice()]);
|
||||
}
|
||||
return { id: `pack:${Date.now()}`, name, scripts, files };
|
||||
}
|
||||
|
||||
export async function importSoundPack(file: File): Promise<SoundPack> {
|
||||
const pack = parseSoundPackZip(new Uint8Array(await file.arrayBuffer()), file.name.replace(/\.[^.]+$/, ""));
|
||||
await withPacks("readwrite", (s) => s.put(pack));
|
||||
packsCache = null;
|
||||
return pack;
|
||||
}
|
||||
|
||||
// --- resolving + playing ---
|
||||
|
||||
/** The pack's own script for a key ("" = silent). */
|
||||
export function packScript(pack: SoundPack | undefined, packId: string, key: string): string {
|
||||
if (packId === NO_SOUNDS_PACK) return "";
|
||||
if (packId === BUILTIN_PACK) return BUILTIN_SCRIPTS[key] ? `play("${BUILTIN_SCRIPTS[key]}")` : "";
|
||||
return pack?.scripts[key] ?? "";
|
||||
}
|
||||
|
||||
/** Text positions native offers for a key: everything gets Server, events about
|
||||
* channels/yourself also Channel, events about another client also Client. */
|
||||
export function textPositionChoices(key: string): TextPosition[] {
|
||||
if (key.startsWith("CLIENT_") || key === "OTHER_RECEIVED_POKE") return ["server", "channel", "client"];
|
||||
if (/^(CHANNEL|YOU|CHAT)_/.test(key)) return ["server", "channel"];
|
||||
return ["server"];
|
||||
}
|
||||
|
||||
// ponytail: guessed set, native doesn't document which sounds count as "wichtig".
|
||||
const IMPORTANT_KEYS = /^(CONNECTION_|YOU_WERE_|SOUND_|OTHER_RECEIVED_POKE$|SERVER_ERROR$)/;
|
||||
|
||||
export const isNotificationEnabled = (key: string) => isSpecialKey(key) || !settings.overrides[key]?.off;
|
||||
|
||||
/** Where the event's text goes; nowhere when the row is unticked. */
|
||||
export function notificationTextPositions(key: string): TextPosition[] {
|
||||
if (!isNotificationEnabled(key)) return [];
|
||||
const text = settings.overrides[key]?.text;
|
||||
return Array.isArray(text) ? text : ["server"];
|
||||
}
|
||||
|
||||
export type NotificationVars = Record<string, string>;
|
||||
|
||||
export async function runSoundScript(script: string, packId: string, vars: NotificationVars = {}): Promise<void> {
|
||||
const pack = packId.startsWith("pack:") ? (await loadSoundPacks()).find((p) => p.id === packId) : undefined;
|
||||
const fill = (s: string) => s.replace(/\$\{(\w+)\}/g, (_, v: string) => vars[v] ?? (v === "clientType" ? "neutral" : ""));
|
||||
for (const [, fn, arg] of script.matchAll(/(play|say)\(\s*"([^"]*)"\s*\)/g)) {
|
||||
const value = fill(arg);
|
||||
if (fn === "say") {
|
||||
if ("speechSynthesis" in window) speechSynthesis.speak(new SpeechSynthesisUtterance(value));
|
||||
} else if (packId === BUILTIN_PACK || !pack) {
|
||||
if ((SOUND_EVENTS as string[]).includes(value)) await playSound(value as SoundEventId);
|
||||
} else {
|
||||
const blob = pack.files[value.toLowerCase().replace(/\\/g, "/")];
|
||||
if (blob) await playSoundBlob(blob);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Plays the sound for a TS3 notification key, honouring the Meldungen settings. */
|
||||
export async function notify(key: string, vars?: NotificationVars): Promise<void> {
|
||||
if (!isNotificationEnabled(key)) return;
|
||||
if (playbackMuted && (settings.whenMuted === "none" || (settings.whenMuted === "important" && !IMPORTANT_KEYS.test(key))))
|
||||
return;
|
||||
const packId = sessionPack ?? settings.pack;
|
||||
const override = settings.overrides[key]?.script;
|
||||
const pack = packId.startsWith("pack:") ? (await loadSoundPacks()).find((p) => p.id === packId) : undefined;
|
||||
await runSoundScript(override ?? packScript(pack, packId, key), packId, vars);
|
||||
}
|
||||
@@ -0,0 +1,493 @@
|
||||
// Publishing a stream that TeamSpeak 6 clients can watch.
|
||||
//
|
||||
// The mirror image of stream.ts. Where a viewer answers an offer, a publisher
|
||||
// makes one - TS6 puts the first SDP in `respondjoinstreamrequest`, so the
|
||||
// side that owns the stream is the side that offers.
|
||||
//
|
||||
// The exchange, from our side:
|
||||
//
|
||||
// 1. setupStream -> notifystreamstarted naming our own clid + the id
|
||||
// 2. wait <- notifyjoinstreamrequest, one per viewer
|
||||
// 3. offer respondJoinStream(accept, <our SDP>)
|
||||
// 4. answer <- {cmd:"answer", args:{answer:"<sdp>"}}
|
||||
// 5. trickle ICE both directions via {cmd:"iceCandidate"}
|
||||
//
|
||||
// TS6's P2P mode is a mesh: there is no SFU in the path, so every viewer gets
|
||||
// its own peer connection and its own copy of the encoded media.
|
||||
|
||||
import { DEFAULT_ICE_SERVERS, type StreamEvent } from "./stream";
|
||||
|
||||
// The three enums below are read straight out of TS6's own UI bundle
|
||||
// (main.js), not inferred - see ts6-re/findings §10.
|
||||
|
||||
/** `type` in `setupstream`: what is being captured. */
|
||||
export const StreamSource = {
|
||||
NONE: 0,
|
||||
CAMERA: 1,
|
||||
SCREEN: 2,
|
||||
WINDOW: 3,
|
||||
EXISTING_SESSION: 4,
|
||||
} as const;
|
||||
|
||||
/** `accessibility` in `setupstream`: TS6's Privacy setting. */
|
||||
export const StreamAccess = {
|
||||
NONE: 0,
|
||||
PUBLIC: 1,
|
||||
CONTACTS_ONLY: 2,
|
||||
PRIVATE: 3,
|
||||
} as const;
|
||||
|
||||
/** `mode` in `setupstream`: TS6's Connection Mode. */
|
||||
export const StreamMode = {
|
||||
NONE: 0,
|
||||
P2P: 1,
|
||||
SFU: 2,
|
||||
} as const;
|
||||
|
||||
export interface StreamPublishOptions {
|
||||
name: string;
|
||||
/** Send the capture's audio track too, when the source has one. */
|
||||
audio: boolean;
|
||||
/** One of StreamAccess. */
|
||||
accessibility: number;
|
||||
/** One of StreamMode. Only P2P is implemented; SFU needs the mediasoup path. */
|
||||
mode: number;
|
||||
/** 0 means unlimited. */
|
||||
viewerLimit: number;
|
||||
/** Capture height in pixels; 0 keeps the source's own resolution. */
|
||||
height: number;
|
||||
/** Capture frame rate; 0 leaves it to the browser. */
|
||||
fps: number;
|
||||
videoBitrateKbps: number;
|
||||
audioBitrateKbps: number;
|
||||
/**
|
||||
* What the encoder should protect when it runs out of bitrate. Slides and
|
||||
* code want "detail" (keep text sharp, drop frames); a game wants "motion".
|
||||
*/
|
||||
contentHint: "motion" | "detail";
|
||||
}
|
||||
|
||||
export interface StreamPublisherOptions {
|
||||
send: (message: Record<string, unknown>) => void;
|
||||
/** Needed to recognise our own `notifystreamstarted` among everyone's. */
|
||||
ownClientId: number;
|
||||
onStateChange?: (state: PublishState) => void;
|
||||
onViewersChange?: (viewers: number[]) => void;
|
||||
/** Join requests awaiting a decision, as [clid, message] pairs. */
|
||||
onPendingChange?: (pending: [number, string][]) => void;
|
||||
onError?: (error: string) => void;
|
||||
iceServers?: RTCIceServer[];
|
||||
}
|
||||
|
||||
export type PublishState = "idle" | "starting" | "live" | "stopped";
|
||||
|
||||
interface Viewer {
|
||||
pc: RTCPeerConnection;
|
||||
/** Candidates that arrived before the answer; replayed after. */
|
||||
pending: RTCIceCandidateInit[];
|
||||
answered: boolean;
|
||||
}
|
||||
|
||||
export class StreamPublisher {
|
||||
private readonly opts: StreamPublisherOptions;
|
||||
private readonly viewers = new Map<number, Viewer>();
|
||||
/** Requests waiting for the user to decide: clid -> the viewer's message. */
|
||||
private readonly pending = new Map<number, string>();
|
||||
/** Clients denied with "block"; they are refused without asking again. */
|
||||
private readonly blocked = new Set<number>();
|
||||
private media: MediaStream | null = null;
|
||||
private state: PublishState = "idle";
|
||||
private options: StreamPublishOptions | null = null;
|
||||
|
||||
/** Assigned by the server, not by us; null until notifystreamstarted. */
|
||||
streamId: string | null = null;
|
||||
|
||||
/** The local capture, for showing the user what they are sending. */
|
||||
get previewStream(): MediaStream | null {
|
||||
return this.media;
|
||||
}
|
||||
|
||||
constructor(opts: StreamPublisherOptions) {
|
||||
this.opts = opts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Captures a screen and announces the stream.
|
||||
*
|
||||
* `getDisplayMedia` is secure-context-only, so this throws on a plain-http
|
||||
* origin - the same limitation the microphone already has.
|
||||
*/
|
||||
async start(options: StreamPublishOptions): Promise<void> {
|
||||
if (this.state === "live" || this.state === "starting") return;
|
||||
if (!navigator.mediaDevices?.getDisplayMedia) {
|
||||
this.fail("Screen sharing requires HTTPS (or localhost) - the site is not a secure context.");
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState("starting");
|
||||
this.options = options;
|
||||
|
||||
const video: MediaTrackConstraints = {};
|
||||
if (options.height > 0) video.height = { ideal: options.height };
|
||||
if (options.fps > 0) video.frameRate = { ideal: options.fps };
|
||||
|
||||
try {
|
||||
this.media = await navigator.mediaDevices.getDisplayMedia({
|
||||
video: Object.keys(video).length > 0 ? video : true,
|
||||
audio: options.audio,
|
||||
});
|
||||
} catch (err) {
|
||||
this.setState("idle");
|
||||
this.fail(`Could not capture the screen: ${describe(err)}`);
|
||||
return;
|
||||
}
|
||||
|
||||
for (const track of this.media.getVideoTracks()) track.contentHint = options.contentHint;
|
||||
|
||||
// The browser's own "stop sharing" bar bypasses our UI entirely, so the
|
||||
// track ending is the authoritative signal that the stream is over.
|
||||
for (const track of this.media.getTracks()) {
|
||||
track.onended = () => this.stop();
|
||||
}
|
||||
|
||||
this.opts.send({
|
||||
type: "setupStream",
|
||||
name: options.name,
|
||||
// The browser's own picker decides whether this is a whole screen or a
|
||||
// single window, so the type is read back off the track rather than
|
||||
// asked for up front.
|
||||
streamType: this.detectSourceType(),
|
||||
bitrate: options.videoBitrateKbps * 1000,
|
||||
accessibility: options.accessibility,
|
||||
mode: options.mode,
|
||||
viewerLimit: options.viewerLimit,
|
||||
audio: options.audio && this.media.getAudioTracks().length > 0,
|
||||
});
|
||||
}
|
||||
|
||||
/** Feeds one `streamEvent` in; events for other streams are ignored. */
|
||||
handleEvent(event: StreamEvent): void {
|
||||
switch (event.name) {
|
||||
case "notifystreamstarted":
|
||||
// Everyone in the channel sees this, so the clid decides whether it
|
||||
// is the answer to our own setupstream.
|
||||
if (Number(event.args.clid) === this.opts.ownClientId && event.args.id) {
|
||||
this.streamId = event.args.id;
|
||||
this.setState("live");
|
||||
}
|
||||
break;
|
||||
case "notifyjoinstreamrequest":
|
||||
if (event.args.id === this.streamId) void this.admit(event.args);
|
||||
break;
|
||||
case "notifystreamsignaling":
|
||||
if (event.args.id === this.streamId) void this.handleSignaling(event.args);
|
||||
break;
|
||||
case "notifystreamclientleft":
|
||||
if (event.args.id === this.streamId) this.dropViewer(Number(event.args.clid));
|
||||
break;
|
||||
case "notifystreamstopped":
|
||||
if (event.args.id === this.streamId) this.teardown("stopped");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Decides what to do with an incoming join request.
|
||||
*
|
||||
* This mirrors TS6's own publisher-side rule, which is the only place either
|
||||
* setting is enforced at all - the server stores `accessibility` and
|
||||
* `viewer_limit`, echoes them back, and then forwards every request anyway
|
||||
* (verified live: a PRIVATE stream at viewer_limit=1 still had both viewers
|
||||
* announced to us).
|
||||
*
|
||||
* The important half is what happens to a request we do not take: TS6 leaves
|
||||
* it *pending* rather than refusing it. A refusal is not sticky - TS6's own
|
||||
* "block" path is deny plus a ban - so a refused client simply asks again, in
|
||||
* a loop, and shows its user nothing. Left pending, it asks once and displays
|
||||
* "waiting for access" until we answer.
|
||||
*/
|
||||
private async admit(args: Record<string, string>): Promise<void> {
|
||||
const clid = Number(args.clid);
|
||||
if (!Number.isFinite(clid) || !this.media || !this.streamId) return;
|
||||
|
||||
// is_remove=1 is how TS6 says "stop watching"; the same notify carries it.
|
||||
if (args.is_remove === "1") {
|
||||
this.dropViewer(clid);
|
||||
return;
|
||||
}
|
||||
if (this.viewers.has(clid) || this.pending.has(clid)) return;
|
||||
|
||||
// Explicitly blocked earlier: refuse without bothering the user again.
|
||||
if (this.blocked.has(clid)) {
|
||||
this.refuse(clid, "Blocked");
|
||||
return;
|
||||
}
|
||||
|
||||
const limit = this.options?.viewerLimit ?? 0;
|
||||
const full = limit > 0 && this.viewers.size >= limit;
|
||||
const autoAccept = this.options?.accessibility === StreamAccess.PUBLIC && !full;
|
||||
|
||||
if (!autoAccept) {
|
||||
// CONTACTS_ONLY behaves as PRIVATE here: the contact list is a TS6
|
||||
// account feature webspeak3 has no access to, so it cannot be consulted.
|
||||
this.pending.set(clid, args.msg ?? "");
|
||||
this.notifyPending();
|
||||
return;
|
||||
}
|
||||
|
||||
await this.openTo(clid);
|
||||
}
|
||||
|
||||
/** Lets a pending viewer in. Called by admit() or by the user. */
|
||||
async approve(clid: number): Promise<void> {
|
||||
if (!this.pending.delete(clid)) return;
|
||||
this.notifyPending();
|
||||
await this.openTo(clid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns a pending viewer away. `block` also remembers the refusal, which is
|
||||
* what makes it stick - TS6 pairs its deny with a ban for the same reason.
|
||||
*/
|
||||
deny(clid: number, block = false): void {
|
||||
this.pending.delete(clid);
|
||||
if (block) this.blocked.add(clid);
|
||||
this.notifyPending();
|
||||
this.refuse(clid, block ? "Blocked" : "Denied");
|
||||
}
|
||||
|
||||
private refuse(clid: number, message: string): void {
|
||||
if (!this.streamId) return;
|
||||
this.opts.send({
|
||||
type: "respondJoinStream",
|
||||
streamId: this.streamId,
|
||||
clientId: clid,
|
||||
accept: false,
|
||||
message,
|
||||
});
|
||||
}
|
||||
|
||||
/** Builds the peer connection for a viewer we have decided to let in. */
|
||||
private async openTo(clid: number): Promise<void> {
|
||||
if (!this.media || !this.streamId || this.viewers.has(clid)) return;
|
||||
|
||||
const pc = new RTCPeerConnection({ iceServers: this.opts.iceServers ?? DEFAULT_ICE_SERVERS });
|
||||
const viewer: Viewer = { pc, pending: [], answered: false };
|
||||
this.viewers.set(clid, viewer);
|
||||
|
||||
for (const track of this.media.getTracks()) pc.addTrack(track, this.media);
|
||||
|
||||
pc.onicecandidate = (ev) => {
|
||||
if (!ev.candidate) return;
|
||||
this.signal(clid, "iceCandidate", {
|
||||
sdp: ev.candidate.candidate,
|
||||
mid: ev.candidate.sdpMid ?? "0",
|
||||
mLine: ev.candidate.sdpMLineIndex ?? 0,
|
||||
});
|
||||
};
|
||||
pc.onconnectionstatechange = () => {
|
||||
if (pc.connectionState === "failed" || pc.connectionState === "closed") this.dropViewer(clid);
|
||||
};
|
||||
|
||||
try {
|
||||
const offer = await pc.createOffer();
|
||||
await pc.setLocalDescription(offer);
|
||||
await this.applySendParameters(pc);
|
||||
this.opts.send({
|
||||
type: "respondJoinStream",
|
||||
streamId: this.streamId,
|
||||
clientId: clid,
|
||||
accept: true,
|
||||
offer: offer.sdp ?? "",
|
||||
});
|
||||
this.notifyViewers();
|
||||
} catch (err) {
|
||||
this.dropViewer(clid);
|
||||
this.fail(`Could not offer the stream to client ${clid}: ${describe(err)}`);
|
||||
}
|
||||
}
|
||||
|
||||
private async handleSignaling(args: Record<string, string>): Promise<void> {
|
||||
const clid = Number(args.clid);
|
||||
const viewer = this.viewers.get(clid);
|
||||
if (!viewer) return;
|
||||
|
||||
let msg: { cmd: string; args: unknown };
|
||||
try {
|
||||
msg = JSON.parse(args.json ?? "");
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
|
||||
const payload = msg.args as Record<string, unknown> | string | null;
|
||||
switch (msg.cmd) {
|
||||
case "answer": {
|
||||
// Same key rule as the sending side: the key is named after the cmd.
|
||||
const sdp =
|
||||
typeof payload === "string"
|
||||
? payload
|
||||
: typeof payload?.answer === "string"
|
||||
? payload.answer
|
||||
: typeof payload?.sdp === "string"
|
||||
? payload.sdp
|
||||
: null;
|
||||
if (!sdp) return;
|
||||
try {
|
||||
await viewer.pc.setRemoteDescription({ type: "answer", sdp });
|
||||
viewer.answered = true;
|
||||
const pending = viewer.pending;
|
||||
viewer.pending = [];
|
||||
for (const c of pending) {
|
||||
try {
|
||||
await viewer.pc.addIceCandidate(c);
|
||||
} catch (err) {
|
||||
console.warn("[publish] ignoring buffered ICE candidate:", describe(err));
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
this.fail(`Could not accept the viewer's answer: ${describe(err)}`);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "iceCandidate": {
|
||||
if (typeof payload !== "object" || payload === null) return;
|
||||
const candidate = payload.sdp;
|
||||
if (typeof candidate !== "string" || !candidate) return;
|
||||
const init: RTCIceCandidateInit = {
|
||||
candidate,
|
||||
sdpMid: typeof payload.mid === "string" ? payload.mid : undefined,
|
||||
sdpMLineIndex: typeof payload.mLine === "number" ? payload.mLine : undefined,
|
||||
};
|
||||
// TS6 trickles from the moment it gets the offer, so these routinely
|
||||
// beat its own answer. Holding them is not an edge case.
|
||||
if (!viewer.answered) {
|
||||
viewer.pending.push(init);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await viewer.pc.addIceCandidate(init);
|
||||
} catch (err) {
|
||||
console.warn("[publish] ignoring ICE candidate:", describe(err));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Caps each sender at the configured bitrate and pins the resolution.
|
||||
*
|
||||
* `setupstream`'s `bitrate` is only what the stream *advertises* - the
|
||||
* server does not even echo our value back unchanged, and it certainly does
|
||||
* not reach the encoder. The actual limit is a sender parameter, and the
|
||||
* encodings it lives on only exist once a local description is set.
|
||||
*
|
||||
* `degradationPreference` matters just as much. Its default for a track
|
||||
* hinted "motion" is to protect the frame rate and shrink the picture, which
|
||||
* for a screen share is exactly backwards: the user picked 1080p, so 1080p is
|
||||
* the thing to keep. Measured on a 1440x1080 capture at a 6000 kbps cap:
|
||||
*
|
||||
* default / maintain-framerate / balanced -> 480x270, a 3x downscale
|
||||
* maintain-resolution -> 1440x810, no downscale
|
||||
*
|
||||
* Without this the encoder collapses within seconds of the connection coming
|
||||
* up and never recovers, and every resolution setting above 360p is a lie.
|
||||
*/
|
||||
private async applySendParameters(pc: RTCPeerConnection): Promise<void> {
|
||||
const options = this.options;
|
||||
if (!options) return;
|
||||
for (const sender of pc.getSenders()) {
|
||||
if (!sender.track) continue;
|
||||
const video = sender.track.kind === "video";
|
||||
const kbps = video ? options.videoBitrateKbps : options.audioBitrateKbps;
|
||||
const params = sender.getParameters();
|
||||
if (video) params.degradationPreference = "maintain-resolution";
|
||||
if (kbps > 0) {
|
||||
if (!params.encodings || params.encodings.length === 0) params.encodings = [{}];
|
||||
for (const encoding of params.encodings) encoding.maxBitrate = kbps * 1000;
|
||||
}
|
||||
try {
|
||||
await sender.setParameters(params);
|
||||
} catch (err) {
|
||||
// Not fatal - the stream still runs, just uncapped and free to shrink.
|
||||
console.warn("[publish] could not apply the send parameters:", describe(err));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps the capture to TS6's source enum.
|
||||
*
|
||||
* `displaySurface` is what the user actually picked in the browser's own
|
||||
* share dialog, so it is more truthful than anything we could ask for in
|
||||
* advance. A browser tab has no TS6 equivalent and reads closest to a window.
|
||||
*/
|
||||
private detectSourceType(): number {
|
||||
const surface = this.media?.getVideoTracks()[0]?.getSettings().displaySurface;
|
||||
return surface === "monitor" ? StreamSource.SCREEN : StreamSource.WINDOW;
|
||||
}
|
||||
|
||||
private dropViewer(clid: number): void {
|
||||
// Someone can also leave while their request is still queued - by closing
|
||||
// TS6, or by giving up on "waiting for access". The row has to go with
|
||||
// them, or the user is left approving a viewer who is no longer there.
|
||||
if (this.pending.delete(clid)) this.notifyPending();
|
||||
|
||||
const viewer = this.viewers.get(clid);
|
||||
if (!viewer) return;
|
||||
this.viewers.delete(clid);
|
||||
viewer.pc.close();
|
||||
this.notifyViewers();
|
||||
}
|
||||
|
||||
/** Stops the capture and takes the stream down. Safe to call twice. */
|
||||
stop(): void {
|
||||
if (this.state === "idle" || this.state === "stopped") return;
|
||||
if (this.streamId) this.opts.send({ type: "stopStream", streamId: this.streamId });
|
||||
this.teardown("stopped");
|
||||
}
|
||||
|
||||
private teardown(state: PublishState): void {
|
||||
for (const [, viewer] of this.viewers) viewer.pc.close();
|
||||
this.viewers.clear();
|
||||
this.pending.clear();
|
||||
this.blocked.clear();
|
||||
for (const track of this.media?.getTracks() ?? []) track.stop();
|
||||
this.media = null;
|
||||
this.streamId = null;
|
||||
this.options = null;
|
||||
this.notifyViewers();
|
||||
this.notifyPending();
|
||||
this.setState(state);
|
||||
}
|
||||
|
||||
private signal(clid: number, cmd: string, args: unknown): void {
|
||||
this.opts.send({
|
||||
type: "streamSignal",
|
||||
streamId: this.streamId,
|
||||
clientId: clid,
|
||||
payload: { cmd, args },
|
||||
});
|
||||
}
|
||||
|
||||
private setState(state: PublishState): void {
|
||||
this.state = state;
|
||||
this.opts.onStateChange?.(state);
|
||||
}
|
||||
|
||||
private notifyViewers(): void {
|
||||
this.opts.onViewersChange?.([...this.viewers.keys()]);
|
||||
}
|
||||
|
||||
private notifyPending(): void {
|
||||
this.opts.onPendingChange?.([...this.pending.entries()]);
|
||||
}
|
||||
|
||||
private fail(message: string): void {
|
||||
this.opts.onError?.(message);
|
||||
}
|
||||
}
|
||||
|
||||
function describe(err: unknown): string {
|
||||
return err instanceof Error ? err.message : String(err);
|
||||
}
|
||||
@@ -23,6 +23,10 @@ const EVENT_KEYWORDS: Record<SoundEventId, string[]> = {
|
||||
clientLeave: ["userleftchannel", "userleftvisibility", "clientleftview", "userleave", "userleft", "leave"],
|
||||
message: ["textmessagereceived", "chatmessage", "newmessage", "message"],
|
||||
poke: ["gotpoked", "poke"],
|
||||
mute: ["micmuted", "microphonemuted", "micactivated", "microphoneactivated"],
|
||||
micClickOn: ["micclickon"],
|
||||
micClickOff: ["micclickoff"],
|
||||
whisper: ["whisperreceived", "whisper"],
|
||||
};
|
||||
|
||||
function normalize(filename: string): string {
|
||||
|
||||
+104
-10
@@ -1,6 +1,35 @@
|
||||
export type SoundEventId = "connect" | "disconnect" | "clientJoin" | "clientLeave" | "message" | "poke";
|
||||
export type SoundEventId =
|
||||
| "connect"
|
||||
| "disconnect"
|
||||
| "clientJoin"
|
||||
| "clientLeave"
|
||||
| "message"
|
||||
| "poke"
|
||||
| "mute"
|
||||
| "micClickOn"
|
||||
| "micClickOff"
|
||||
| "whisper";
|
||||
|
||||
export const SOUND_EVENTS: SoundEventId[] = ["connect", "disconnect", "clientJoin", "clientLeave", "message", "poke"];
|
||||
export const SOUND_EVENTS: SoundEventId[] = [
|
||||
"connect",
|
||||
"disconnect",
|
||||
"clientJoin",
|
||||
"clientLeave",
|
||||
"message",
|
||||
"poke",
|
||||
"mute",
|
||||
"micClickOn",
|
||||
"micClickOff",
|
||||
"whisper",
|
||||
];
|
||||
|
||||
/** "ide" swaps the default chimes for synthetic terminal blips (Command Center layout). */
|
||||
type SoundStyle = "classic" | "ide";
|
||||
let soundStyle: SoundStyle = "classic";
|
||||
|
||||
export function setSoundStyle(style: SoundStyle): void {
|
||||
soundStyle = style;
|
||||
}
|
||||
|
||||
const ENABLED_KEY = "webspeak3:sounds-enabled";
|
||||
const VOLUME_KEY = "webspeak3:sounds-volume";
|
||||
@@ -141,8 +170,8 @@ class NotificationSoundPlayer {
|
||||
const { context, destination } = this.ensure();
|
||||
if (context.state === "suspended") context.resume().catch(() => {});
|
||||
const now = context.currentTime;
|
||||
for (const note of synthNotes(event)) {
|
||||
this.playNote(context, destination, now + note.delay, note.freq, note.duration, volume * note.gain);
|
||||
for (const note of soundStyle === "ide" ? ideNotes(event) : synthNotes(event)) {
|
||||
this.playNote(context, destination, now + note.delay, volume * note.gain, note);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,13 +179,13 @@ class NotificationSoundPlayer {
|
||||
context: AudioContext,
|
||||
destination: AudioNode,
|
||||
startTime: number,
|
||||
freq: number,
|
||||
duration: number,
|
||||
peakGain: number
|
||||
peakGain: number,
|
||||
{ freq, endFreq, duration, type = "sine" }: SynthNote
|
||||
): void {
|
||||
const osc = context.createOscillator();
|
||||
osc.type = "sine";
|
||||
osc.frequency.value = freq;
|
||||
osc.type = type;
|
||||
osc.frequency.setValueAtTime(freq, startTime);
|
||||
if (endFreq) osc.frequency.exponentialRampToValueAtTime(endFreq, startTime + duration);
|
||||
const gain = context.createGain();
|
||||
gain.gain.setValueAtTime(0, startTime);
|
||||
gain.gain.linearRampToValueAtTime(peakGain, startTime + 0.02);
|
||||
@@ -169,7 +198,17 @@ class NotificationSoundPlayer {
|
||||
|
||||
/** Soft, modern two/three-note chimes - a sine-wave, quick-attack/exponential-decay
|
||||
* shape reads as gentle rather than the harsh square/saw beeps of classic UI sounds. */
|
||||
function synthNotes(event: SoundEventId): { delay: number; freq: number; duration: number; gain: number }[] {
|
||||
interface SynthNote {
|
||||
delay: number;
|
||||
freq: number;
|
||||
/** Glide to this frequency over the note's duration. */
|
||||
endFreq?: number;
|
||||
duration: number;
|
||||
gain: number;
|
||||
type?: OscillatorType;
|
||||
}
|
||||
|
||||
function synthNotes(event: SoundEventId): SynthNote[] {
|
||||
switch (event) {
|
||||
case "connect":
|
||||
return [
|
||||
@@ -195,6 +234,55 @@ function synthNotes(event: SoundEventId): { delay: number; freq: number; duratio
|
||||
{ delay: 0, freq: 987.77, duration: 0.1, gain: 0.5 },
|
||||
{ delay: 0.12, freq: 987.77, duration: 0.1, gain: 0.5 },
|
||||
];
|
||||
case "mute":
|
||||
return [{ delay: 0, freq: 660, duration: 0.06, gain: 0.3 }];
|
||||
case "micClickOn":
|
||||
return [{ delay: 0, freq: 1400, duration: 0.03, gain: 0.15 }];
|
||||
case "micClickOff":
|
||||
return [{ delay: 0, freq: 900, duration: 0.03, gain: 0.15 }];
|
||||
case "whisper":
|
||||
return [
|
||||
{ delay: 0, freq: 783.99, duration: 0.12, gain: 0.2 },
|
||||
{ delay: 0.1, freq: 659.25, duration: 0.16, gain: 0.18 },
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
/** Command Center: short, dry, synthetic blips - square/triangle clicks and
|
||||
* quick arpeggios instead of soft chimes. Square waves are loud, so lower gains. */
|
||||
function ideNotes(event: SoundEventId): SynthNote[] {
|
||||
switch (event) {
|
||||
case "connect":
|
||||
return [
|
||||
{ delay: 0, freq: 440, duration: 0.1, gain: 0.3 },
|
||||
{ delay: 0.1, freq: 554.37, duration: 0.1, gain: 0.3 },
|
||||
{ delay: 0.2, freq: 659.25, duration: 0.14, gain: 0.3 },
|
||||
];
|
||||
case "disconnect":
|
||||
return [{ delay: 0, freq: 200, endFreq: 50, duration: 0.2, gain: 0.45, type: "triangle" }];
|
||||
case "clientJoin":
|
||||
return [
|
||||
{ delay: 0, freq: 800, duration: 0.07, gain: 0.18 },
|
||||
{ delay: 0.1, freq: 800, duration: 0.07, gain: 0.18 },
|
||||
];
|
||||
case "clientLeave":
|
||||
return [{ delay: 0, freq: 600, endFreq: 400, duration: 0.09, gain: 0.18 }];
|
||||
case "message":
|
||||
return [{ delay: 0, freq: 1200, duration: 0.04, gain: 0.12, type: "square" }];
|
||||
case "poke":
|
||||
return [
|
||||
{ delay: 0, freq: 1000, duration: 0.05, gain: 0.12, type: "square" },
|
||||
{ delay: 0.08, freq: 1000, duration: 0.05, gain: 0.12, type: "square" },
|
||||
{ delay: 0.16, freq: 1000, duration: 0.05, gain: 0.12, type: "square" },
|
||||
];
|
||||
case "mute":
|
||||
return [{ delay: 0, freq: 300, endFreq: 50, duration: 0.04, gain: 0.15, type: "square" }];
|
||||
case "micClickOn":
|
||||
return [{ delay: 0, freq: 1600, duration: 0.02, gain: 0.08, type: "square" }];
|
||||
case "micClickOff":
|
||||
return [{ delay: 0, freq: 1000, duration: 0.02, gain: 0.08, type: "square" }];
|
||||
case "whisper":
|
||||
return [{ delay: 0, freq: 900, endFreq: 700, duration: 0.08, gain: 0.1, type: "triangle" }];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,6 +292,12 @@ export function setSoundsOutputDevice(deviceId: string): void {
|
||||
void player.setOutputDevice(deviceId);
|
||||
}
|
||||
|
||||
/** A file from an imported sound pack (Options -> Meldungen). */
|
||||
export async function playSoundBlob(blob: Blob): Promise<void> {
|
||||
if (!loadSoundsEnabled()) return;
|
||||
await player.playBlob(blob, loadSoundsVolume()).catch(() => {});
|
||||
}
|
||||
|
||||
export async function playSound(event: SoundEventId): Promise<void> {
|
||||
if (!loadSoundsEnabled()) return;
|
||||
if (!loadEventSoundEnabled(event)) return;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// With storage blocked (privacy settings, some embedded webviews) merely
|
||||
// touching `localStorage` throws, and dozens of module-level reads would
|
||||
// leave a blank page. Swap in an in-memory stand-in so the app runs; settings
|
||||
// just don't survive a reload then. Imported first thing in main.tsx.
|
||||
try {
|
||||
const probe = "__webspeak3_probe__";
|
||||
localStorage.setItem(probe, probe);
|
||||
localStorage.removeItem(probe);
|
||||
} catch {
|
||||
const data = new Map<string, string>();
|
||||
const memory: Storage = {
|
||||
get length() {
|
||||
return data.size;
|
||||
},
|
||||
key: (i) => [...data.keys()][i] ?? null,
|
||||
getItem: (k) => data.get(k) ?? null,
|
||||
setItem: (k, v) => void data.set(k, String(v)),
|
||||
removeItem: (k) => void data.delete(k),
|
||||
clear: () => data.clear(),
|
||||
};
|
||||
Object.defineProperty(window, "localStorage", { value: memory, configurable: true });
|
||||
}
|
||||
@@ -0,0 +1,315 @@
|
||||
// Viewing a TeamSpeak 6 Stream/Call broadcast in the browser.
|
||||
//
|
||||
// TS6's stream signaling rides the ordinary TS3 command channel, so everything
|
||||
// here travels the same WebSocket as the rest of the session: the connector
|
||||
// unescapes the TS wire format and hands us the JSON payload untouched (see
|
||||
// ts6-re/findings/ts6-stream-protocol-static-analysis.md).
|
||||
//
|
||||
// The exchange, from our side:
|
||||
//
|
||||
// 1. discover client_is_streaming=1 on a client in view
|
||||
// 2. joinStream -> notifyrespondjoinstreamrequest (decision=1 + SDP offer)
|
||||
// 3. answer <- streamSignal {cmd:"answer"}
|
||||
// 4. trickle ICE both directions via {cmd:"iceCandidate"}
|
||||
//
|
||||
// TS6 publishes sendonly, so this is a receive-only peer connection.
|
||||
|
||||
/** A `streamEvent` as the connector emits it. */
|
||||
export interface StreamEvent {
|
||||
type: "streamEvent";
|
||||
name: string;
|
||||
args: Record<string, string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The payload shape inside `notifystreamsignaling`'s `json` argument.
|
||||
*
|
||||
* Each `cmd` names its own key inside `args`, and the key is *not* `sdp`
|
||||
* except for `iceCandidate`: an answer is `{answer: "<sdp>"}`, an offer
|
||||
* `{offer: "<sdp>"}`, a candidate `{sdp, mid, mLine}`. Live-verified against
|
||||
* TS6 6.0.0-beta12.1 - `{sdp: "<sdp>"}` and a bare string are both accepted
|
||||
* by the server and then silently dropped by the client.
|
||||
*/
|
||||
interface SignalingMessage {
|
||||
cmd: string;
|
||||
args: unknown;
|
||||
}
|
||||
|
||||
export interface StreamInfo {
|
||||
id: string;
|
||||
clientId: number;
|
||||
name: string;
|
||||
/** Current viewer count as of the last notifystreaminfo. */
|
||||
viewers: number;
|
||||
hasAudio: boolean;
|
||||
bitrate: number;
|
||||
}
|
||||
|
||||
export interface StreamViewerOptions {
|
||||
/** Sends one message up the session WebSocket. */
|
||||
send: (message: Record<string, unknown>) => void;
|
||||
/** The remote media, once the first track arrives. */
|
||||
onTrack: (stream: MediaStream) => void;
|
||||
onStateChange?: (state: RTCPeerConnectionState) => void;
|
||||
onError?: (error: string) => void;
|
||||
/** The viewer shut down — by us, or because the publisher stopped. */
|
||||
onClosed?: () => void;
|
||||
/**
|
||||
* ICE servers to use. TS6 itself only ever configures `stun:` URLs and so
|
||||
* never gathers a relay candidate, but it will happily *connect* to one we
|
||||
* offer - which is how webspeak3 can work on networks where TS6 cannot.
|
||||
*/
|
||||
iceServers?: RTCIceServer[];
|
||||
}
|
||||
|
||||
export const DEFAULT_ICE_SERVERS: RTCIceServer[] = [
|
||||
{ urls: "stun:turn.teamspeak.com:3478" },
|
||||
{ urls: "stun:turn2.teamspeak.com:3478" },
|
||||
{ urls: "stun:stun.l.google.com:19302" },
|
||||
];
|
||||
|
||||
/**
|
||||
* Reads a stream's properties out of a `notifystreaminfo` / `notifystreamstarted`.
|
||||
*
|
||||
* The two notifies disagree on one name: `notifystreaminfo` says
|
||||
* `accessibility`, `notifystreamstarted` shortens it to `access`. Only
|
||||
* `notifystreaminfo` carries `viewer`.
|
||||
*/
|
||||
export function parseStreamInfo(args: Record<string, string>): StreamInfo | null {
|
||||
const id = args.id;
|
||||
const clientId = Number(args.clid);
|
||||
if (!id || !Number.isFinite(clientId)) return null;
|
||||
return {
|
||||
id,
|
||||
clientId,
|
||||
name: args.name ?? "",
|
||||
viewers: Number(args.viewer ?? 0) || 0,
|
||||
hasAudio: args.audio === "1",
|
||||
bitrate: Number(args.bitrate ?? 0) || 0,
|
||||
};
|
||||
}
|
||||
|
||||
export class StreamViewer {
|
||||
private pc: RTCPeerConnection | null = null;
|
||||
private readonly opts: StreamViewerOptions;
|
||||
private readonly remote = new MediaStream();
|
||||
|
||||
/** Candidates that arrived before setRemoteDescription; replayed after. */
|
||||
private pendingRemoteCandidates: RTCIceCandidateInit[] = [];
|
||||
private remoteDescriptionSet = false;
|
||||
private closed = false;
|
||||
|
||||
readonly streamId: string;
|
||||
readonly peerClientId: number;
|
||||
|
||||
constructor(streamId: string, peerClientId: number, opts: StreamViewerOptions) {
|
||||
this.streamId = streamId;
|
||||
this.peerClientId = peerClientId;
|
||||
this.opts = opts;
|
||||
}
|
||||
|
||||
/** Asks the publishing client to let us watch. The offer arrives asynchronously. */
|
||||
join(message = ""): void {
|
||||
this.opts.send({
|
||||
type: "joinStream",
|
||||
streamId: this.streamId,
|
||||
clientId: this.peerClientId,
|
||||
message,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Feeds one `streamEvent` in. Events for other streams are ignored, so the
|
||||
* caller can pass everything it receives without filtering.
|
||||
*/
|
||||
handleEvent(event: StreamEvent): void {
|
||||
if (this.closed) return;
|
||||
if (event.args.id && event.args.id !== this.streamId) return;
|
||||
|
||||
switch (event.name) {
|
||||
case "notifyrespondjoinstreamrequest":
|
||||
void this.handleJoinResponse(event.args);
|
||||
break;
|
||||
case "notifystreamsignaling":
|
||||
void this.handleSignaling(event.args);
|
||||
break;
|
||||
case "notifystreamstopped":
|
||||
case "notifystreamclientleft":
|
||||
this.close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private async handleJoinResponse(args: Record<string, string>): Promise<void> {
|
||||
if (args.decision !== "1") {
|
||||
this.fail(args.msg ? `Stream join refused: ${args.msg}` : "Stream join refused");
|
||||
return;
|
||||
}
|
||||
if (!args.offer) {
|
||||
this.fail("Stream join accepted but no SDP offer was sent");
|
||||
return;
|
||||
}
|
||||
await this.acceptOffer(args.offer);
|
||||
}
|
||||
|
||||
private async acceptOffer(sdp: string): Promise<void> {
|
||||
const pc = this.ensurePeerConnection();
|
||||
try {
|
||||
await pc.setRemoteDescription({ type: "offer", sdp });
|
||||
this.remoteDescriptionSet = true;
|
||||
await this.flushRemoteCandidates();
|
||||
|
||||
const answer = await pc.createAnswer();
|
||||
await pc.setLocalDescription(answer);
|
||||
this.signal("answer", { answer: answer.sdp ?? "" });
|
||||
} catch (err) {
|
||||
this.fail(`Could not answer the stream offer: ${describe(err)}`);
|
||||
}
|
||||
}
|
||||
|
||||
private async handleSignaling(args: Record<string, string>): Promise<void> {
|
||||
let msg: SignalingMessage;
|
||||
try {
|
||||
msg = JSON.parse(args.json ?? "");
|
||||
} catch {
|
||||
this.fail("Received malformed stream signaling payload");
|
||||
return;
|
||||
}
|
||||
|
||||
switch (msg.cmd) {
|
||||
case "iceCandidate": {
|
||||
const candidate =
|
||||
typeof msg.args === "object" && msg.args !== null
|
||||
? candidateFromArgs(msg.args as Record<string, unknown>)
|
||||
: null;
|
||||
if (!candidate) return;
|
||||
if (!this.remoteDescriptionSet) {
|
||||
// TS6 starts trickling immediately, so these routinely beat the
|
||||
// offer's setRemoteDescription. Holding them is not an edge case.
|
||||
this.pendingRemoteCandidates.push(candidate);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await this.ensurePeerConnection().addIceCandidate(candidate);
|
||||
} catch (err) {
|
||||
// A single unusable candidate must not tear the session down; ICE
|
||||
// only needs one working pair.
|
||||
console.warn("[stream] ignoring ICE candidate:", describe(err));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "offer":
|
||||
case "reconnectOffer": {
|
||||
// Renegotiation from the publisher, e.g. after it switches source.
|
||||
// `offer` mirrors the `answer` key we send; the other two are cheap
|
||||
// to tolerate and cost nothing if they never arrive.
|
||||
const a = msg.args as Record<string, unknown> | string | null;
|
||||
const sdp =
|
||||
typeof a === "string"
|
||||
? a
|
||||
: typeof a?.offer === "string"
|
||||
? a.offer
|
||||
: typeof a?.sdp === "string"
|
||||
? a.sdp
|
||||
: null;
|
||||
if (sdp) await this.acceptOffer(sdp);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private async flushRemoteCandidates(): Promise<void> {
|
||||
const pending = this.pendingRemoteCandidates;
|
||||
this.pendingRemoteCandidates = [];
|
||||
const pc = this.ensurePeerConnection();
|
||||
for (const candidate of pending) {
|
||||
try {
|
||||
await pc.addIceCandidate(candidate);
|
||||
} catch (err) {
|
||||
console.warn("[stream] ignoring buffered ICE candidate:", describe(err));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private ensurePeerConnection(): RTCPeerConnection {
|
||||
if (this.pc) return this.pc;
|
||||
|
||||
const pc = new RTCPeerConnection({
|
||||
iceServers: this.opts.iceServers ?? DEFAULT_ICE_SERVERS,
|
||||
});
|
||||
|
||||
pc.ontrack = (ev) => {
|
||||
this.remote.addTrack(ev.track);
|
||||
this.opts.onTrack(this.remote);
|
||||
};
|
||||
|
||||
pc.onicecandidate = (ev) => {
|
||||
if (!ev.candidate) return; // end-of-candidates; TS6 sends no such marker
|
||||
this.signal("iceCandidate", {
|
||||
sdp: ev.candidate.candidate,
|
||||
mid: ev.candidate.sdpMid ?? "0",
|
||||
mLine: ev.candidate.sdpMLineIndex ?? 0,
|
||||
});
|
||||
};
|
||||
|
||||
pc.onconnectionstatechange = () => {
|
||||
this.opts.onStateChange?.(pc.connectionState);
|
||||
if (pc.connectionState === "failed") this.fail("The stream connection failed");
|
||||
};
|
||||
|
||||
this.pc = pc;
|
||||
return pc;
|
||||
}
|
||||
|
||||
private signal(cmd: string, args: unknown): void {
|
||||
this.opts.send({
|
||||
type: "streamSignal",
|
||||
streamId: this.streamId,
|
||||
clientId: this.peerClientId,
|
||||
payload: { cmd, args },
|
||||
});
|
||||
}
|
||||
|
||||
private fail(message: string): void {
|
||||
this.opts.onError?.(message);
|
||||
}
|
||||
|
||||
/** Leaves the stream and releases the peer connection. Safe to call twice. */
|
||||
close(): void {
|
||||
if (this.closed) return;
|
||||
this.closed = true;
|
||||
|
||||
this.opts.send({
|
||||
type: "leaveStream",
|
||||
streamId: this.streamId,
|
||||
clientId: this.peerClientId,
|
||||
});
|
||||
|
||||
for (const track of this.remote.getTracks()) track.stop();
|
||||
this.pc?.close();
|
||||
this.pc = null;
|
||||
this.opts.onClosed?.();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds an `RTCIceCandidateInit` from TS6's `iceCandidate` args.
|
||||
*
|
||||
* TS6 names them `sdp`, `mid` and `mLine`, which map to `candidate`, `sdpMid`
|
||||
* and `sdpMLineIndex`.
|
||||
*/
|
||||
function candidateFromArgs(args: Record<string, unknown>): RTCIceCandidateInit | null {
|
||||
const candidate = args.sdp;
|
||||
if (typeof candidate !== "string" || !candidate) return null;
|
||||
return {
|
||||
candidate,
|
||||
sdpMid: typeof args.mid === "string" ? args.mid : undefined,
|
||||
sdpMLineIndex: typeof args.mLine === "number" ? args.mLine : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
function describe(err: unknown): string {
|
||||
return err instanceof Error ? err.message : String(err);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,717 @@
|
||||
/* Command Center (IDE style): explorer | voice grid + terminal | inspector,
|
||||
flat zinc/emerald, always dark regardless of the light/dark toggle.
|
||||
Variables sit in :where() so custom themes can override them; component
|
||||
rules use .ts-app.ts-design-ide like Pulse does, so they beat App.css
|
||||
without !important. Imported right after App.css in App.tsx - the order
|
||||
matters for the zero-specificity block. */
|
||||
|
||||
/* Pixel terminal font, self-hosted (OFL) so no visitor IP goes to Google Fonts.
|
||||
The file only downloads once an element actually uses it. */
|
||||
@font-face {
|
||||
font-family: "VT323";
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("../assets/fonts/vt323-latin.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "VT323";
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("../assets/fonts/vt323-latin-ext.woff2") format("woff2");
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
:where(.ts-app.ts-design-ide) {
|
||||
/* VT323 has no bold cut; faux-bold smears the pixels. */
|
||||
font-synthesis-weight: none;
|
||||
--ide-mono: VT323, "Fira Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
|
||||
--ide-font: var(--ide-mono);
|
||||
--ide-panel: #18181b;
|
||||
--ide-faint: #71717a;
|
||||
--ide-accent-bg: rgba(16, 185, 129, 0.1);
|
||||
|
||||
font-family: var(--ide-font);
|
||||
/* VT323 has a tiny x-height and narrow glyphs: scale it up and space it out. */
|
||||
font-size-adjust: 0.55;
|
||||
letter-spacing: 0.05em;
|
||||
font-size: 13px;
|
||||
|
||||
--bg: #09090b;
|
||||
--bg-toolbar-1: #18181b;
|
||||
--bg-toolbar-2: #18181b;
|
||||
--border: #27272a;
|
||||
--border-soft: #27272a;
|
||||
--text: #e4e4e7;
|
||||
--text-muted: #a1a1aa;
|
||||
--text-faint: #71717a;
|
||||
--accent: #10b981;
|
||||
--success: #10b981;
|
||||
--input-bg: #09090b;
|
||||
--input-text: #e4e4e7;
|
||||
--button-bg-1: #18181b;
|
||||
--button-bg-2: #18181b;
|
||||
--button-bg-hover-1: #27272a;
|
||||
--button-bg-hover-2: #27272a;
|
||||
--row-hover: #27272a;
|
||||
--client-text: #a1a1aa;
|
||||
--self-text: #10b981;
|
||||
--log-bg: #09090b;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide ::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide ::-webkit-scrollbar-track {
|
||||
background: var(--bg);
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide ::-webkit-scrollbar-thumb {
|
||||
background: #3f3f46;
|
||||
border: 2px solid var(--bg);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide *:focus-visible {
|
||||
outline: 1px solid var(--accent);
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
/* Terminal font everywhere, beating base rules that pick their own family */
|
||||
.ts-app.ts-design-ide:not(.ts-ide-plain-font) :is(*, *::before, *::after) {
|
||||
font-family: var(--ide-font);
|
||||
}
|
||||
|
||||
/* Pixel font switched off in the design options: sans UI, regular mono for the terminal bits */
|
||||
.ts-app.ts-design-ide.ts-ide-plain-font {
|
||||
--ide-mono: "Fira Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
|
||||
--ide-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
font-size-adjust: none;
|
||||
letter-spacing: normal;
|
||||
font-synthesis-weight: auto;
|
||||
}
|
||||
|
||||
/* Form controls reset size adjust and spacing in the UA sheet instead of inheriting them */
|
||||
.ts-app.ts-design-ide :is(button, input, select, textarea) {
|
||||
font-size-adjust: inherit;
|
||||
letter-spacing: inherit;
|
||||
}
|
||||
|
||||
/* ---------- Header: menubar + toolbar + connection tabs ---------- */
|
||||
|
||||
/* No own row for the menubar: the hamburger floats into the toolbar row */
|
||||
.ts-app.ts-design-ide > .ts-menubar {
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide > .ts-menubar .ts-nova-menu-dropdown {
|
||||
position: absolute;
|
||||
top: 0.4rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide > .ts-toolbar {
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide > .ts-toolbar {
|
||||
background: var(--ide-panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-icon-button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
box-shadow: none;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-icon-button:hover {
|
||||
background: var(--row-hover);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .gts-connection-tabs {
|
||||
font-family: var(--ide-mono);
|
||||
background: var(--bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .gts-connection-tab {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-right: 1px solid var(--border);
|
||||
border-radius: 0;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .gts-connection-tab-active {
|
||||
background: var(--ide-panel);
|
||||
color: var(--text);
|
||||
box-shadow: inset 0 2px 0 var(--accent);
|
||||
}
|
||||
|
||||
/* ---------- Body: explorer | center | inspector ---------- */
|
||||
|
||||
.ts-app.ts-design-ide > .ts-body {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) 18rem;
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
/* Flatten the Standard "upper row" so tree and info panel become grid cells */
|
||||
.ts-app.ts-design-ide .ts-upper {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-resize-handle-vertical,
|
||||
.ts-app.ts-design-ide .ts-resize-handle-horizontal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-panel,
|
||||
.ts-app.ts-design-ide .ts-side-panel {
|
||||
grid-row: 1;
|
||||
overflow-y: auto;
|
||||
background: var(--ide-panel);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-panel {
|
||||
font-family: var(--ide-mono);
|
||||
grid-column: 1;
|
||||
overflow-x: hidden;
|
||||
min-width: 16rem;
|
||||
padding: 0 0 0.5rem;
|
||||
border-right: 1px solid var(--border);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-side-panel {
|
||||
font-family: var(--ide-mono);
|
||||
grid-column: 3;
|
||||
border-left: 1px solid var(--border);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-panel {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
/* Section headers like an IDE side bar */
|
||||
.ts-app.ts-design-ide .ts-tree-panel::before,
|
||||
.ts-app.ts-design-ide .ts-side-panel::before {
|
||||
font-family: var(--ide-mono);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
height: 2rem;
|
||||
padding: 0 1rem;
|
||||
margin-bottom: 0.4rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ide-faint);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-panel::before {
|
||||
content: "Explorer";
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-side-panel::before {
|
||||
content: "Inspector";
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-panel > * {
|
||||
margin-left: 0.5rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-row {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-row-selected {
|
||||
background: var(--ide-accent-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Explorer tree as in the mockup: carets and dots instead of folder/server icons and orbs */
|
||||
.ts-app.ts-design-ide .ts-server-row > svg,
|
||||
.ts-app.ts-design-ide .ts-channel-row > svg {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-server-row {
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-server-row::before {
|
||||
content: "\25BE";
|
||||
color: var(--ide-faint);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-row {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-channel-row {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-channel-row:has(+ .ts-tree-list .ts-self) {
|
||||
color: var(--text);
|
||||
background: rgba(39, 39, 42, 0.5);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-expander span {
|
||||
border-top-color: var(--ide-faint);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-expander-collapsed span {
|
||||
border-top-color: transparent;
|
||||
border-left-color: var(--ide-faint);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-client-row.ts-self {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-client-row.ts-talking {
|
||||
outline: 1px solid var(--accent);
|
||||
outline-offset: -1px;
|
||||
background: rgba(16, 185, 129, 0.05);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-talk-lamp-idle,
|
||||
.ts-app.ts-design-ide .ts-talk-lamp-talking {
|
||||
position: relative;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin: 0 4px;
|
||||
background: #52525b;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-talk-lamp-talking {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-talk-lamp-talking::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
animation: ts-ide-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||
}
|
||||
|
||||
@keyframes ts-ide-ping {
|
||||
75%,
|
||||
100% {
|
||||
transform: scale(2.5);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* The narrow explorer must not squeeze the name away in favour of the away message */
|
||||
.ts-app.ts-design-ide .ts-client-row .ts-tree-label {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-client-away-message {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-talk-lamp-muted {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-search {
|
||||
font-family: var(--ide-mono);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Inspector content */
|
||||
.ts-app.ts-design-ide .ts-info-panel {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-info-title {
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-info-row {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-info-connection-link {
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* ---------- Center: breadcrumb, voice grid, terminal ---------- */
|
||||
|
||||
.ts-app.ts-design-ide .ts-ide-breadcrumb {
|
||||
font-family: var(--ide-mono);
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
height: 2rem;
|
||||
padding: 0 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 12px;
|
||||
color: var(--ide-faint);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-ide-breadcrumb span {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
||||
align-content: start;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
overflow: hidden;
|
||||
background: var(--ide-panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile:hover,
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile-active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile-active {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(16, 185, 129, 0.35);
|
||||
}
|
||||
|
||||
/* Speaking glow along the top edge */
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile-active::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
height: 2px;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-avatar {
|
||||
font-family: var(--ide-mono);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
overflow: hidden;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg);
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-name {
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile-active .ts-speaking-now-name {
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-head .ts-talk-lamp-muted {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* Little audio visualizer for the speaker */
|
||||
.ts-app.ts-design-ide .ts-speaking-now-bars {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 2px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-bars i {
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: var(--accent);
|
||||
animation: ts-ide-bar 0.8s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-bars i:nth-child(2) {
|
||||
animation-delay: -0.3s;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-bars i:nth-child(3) {
|
||||
animation-delay: -0.55s;
|
||||
}
|
||||
|
||||
@keyframes ts-ide-bar {
|
||||
from {
|
||||
height: 25%;
|
||||
}
|
||||
to {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-groups {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-group {
|
||||
font-family: var(--ide-mono);
|
||||
padding: 0 0.25rem;
|
||||
border: 1px solid var(--group-color);
|
||||
background: color-mix(in srgb, var(--group-color) 10%, transparent);
|
||||
color: color-mix(in srgb, var(--group-color) 75%, #fff);
|
||||
font-size: 9px;
|
||||
line-height: 1.5;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile-selected {
|
||||
border-color: var(--text-muted);
|
||||
background: #1f1f23;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Speaking wins over selected */
|
||||
.ts-app.ts-design-ide .ts-speaking-now-tile-selected.ts-speaking-now-tile-active {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-speaking-now-status {
|
||||
font-family: var(--ide-mono);
|
||||
margin-top: 0.375rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 11px;
|
||||
color: var(--ide-faint);
|
||||
}
|
||||
|
||||
/* Terminal: fixed-height bottom pane once the voice grid is above it */
|
||||
.ts-app.ts-design-ide .ts-chat-panel:has(.ts-speaking-now) .ts-chat-messages {
|
||||
flex: 0 0 11rem;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-tabs {
|
||||
order: 1;
|
||||
gap: 1.5rem;
|
||||
padding: 0.5rem 1rem 0;
|
||||
background: var(--ide-panel);
|
||||
border-top: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-messages {
|
||||
font-family: var(--ide-mono);
|
||||
order: 2;
|
||||
padding: 1rem;
|
||||
background: var(--ide-panel);
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-tab {
|
||||
font-family: var(--ide-mono);
|
||||
padding: 0 0 0.5rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
border-radius: 0;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ide-faint);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-tab:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-tab-active {
|
||||
border-bottom-color: var(--accent);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-from {
|
||||
color: #d4d4d8;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-line-self .ts-chat-from {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-line-log {
|
||||
color: #60a5fa;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-bubble {
|
||||
background: none;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Prompt-style input */
|
||||
.ts-app.ts-design-ide .ts-chat-input-row {
|
||||
font-family: var(--ide-mono);
|
||||
order: 3;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.3rem 1rem;
|
||||
background: var(--bg);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-input-row::before {
|
||||
content: "➜ ~/channel";
|
||||
flex-shrink: 0;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
color: #60a5fa;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-input-row textarea,
|
||||
.ts-app.ts-design-ide .ts-chat-input-row input {
|
||||
font-family: var(--ide-mono);
|
||||
background: transparent;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
font-size: 12px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-input-row button,
|
||||
.ts-app.ts-design-ide .ts-dialog button:not(.ts-icon-button) {
|
||||
letter-spacing: 0.05em;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: none;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Client log strip at the very bottom */
|
||||
.ts-app.ts-design-ide > .ts-log {
|
||||
font-family: var(--ide-mono);
|
||||
background: var(--bg);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Narrow screens: stack instead of three columns */
|
||||
@media (max-width: 900px) {
|
||||
.ts-app.ts-design-ide > .ts-body {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-tree-panel {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
width: auto !important;
|
||||
max-height: 40vh;
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-side-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-design-ide .ts-chat-panel {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.ts-app.ts-design-ide .ts-talk-lamp-talking::after,
|
||||
.ts-app.ts-design-ide .ts-speaking-now-bars i {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
+477
@@ -0,0 +1,477 @@
|
||||
// Options -> Konto: Mullvad-style account sync. A random 16-digit account number
|
||||
// (+ an optional random password) is all there is. Both derive, on this device,
|
||||
// the account id the server files the data under, the AES key and the auth
|
||||
// secret, so the server only ever holds an encrypted blob (gateway/src/sync.ts).
|
||||
//
|
||||
// Pulled once at startup (main.tsx, before App reads localStorage) and pushed on
|
||||
// a timer whenever a synced key changed. A remote change made while this tab is
|
||||
// open shows up as a conflict on the next push, not live.
|
||||
|
||||
export type SyncCategory = "identities" | "favorites" | "settings" | "designs" | "whisper";
|
||||
export const SYNC_CATEGORIES: SyncCategory[] = ["identities", "favorites", "settings", "designs", "whisper"];
|
||||
|
||||
// Device-specific keys (audio devices, volumes, PTT key, chat logs, caches) stay local.
|
||||
const CATEGORY_KEYS: Record<SyncCategory, string[]> = {
|
||||
identities: ["webspeak3:identities", "webspeak3:identity", "webspeak3:active-identity"],
|
||||
favorites: ["webspeak3:favorites", "webspeak3:channel-passwords", "webspeak3:contacts"],
|
||||
settings: [
|
||||
"webspeak3:app-settings",
|
||||
"webspeak3:chat-settings",
|
||||
"webspeak3:chat-images",
|
||||
"webspeak3:server-banner",
|
||||
"webspeak3:download-settings",
|
||||
"webspeak3:notification-settings",
|
||||
"webspeak3:security-settings",
|
||||
"webspeak3:away-presets",
|
||||
"webspeak3:disconnect-message",
|
||||
"webspeak3:language",
|
||||
"webspeak3:sounds-enabled",
|
||||
"webspeak3:sounds-volume",
|
||||
"webspeak3:other-mic-clicks",
|
||||
"webspeak3:own-mic-clicks",
|
||||
],
|
||||
designs: [
|
||||
"webspeak3:custom-themes",
|
||||
"webspeak3:design-selection",
|
||||
"webspeak3:design-theme",
|
||||
"webspeak3:icon-pack",
|
||||
"webspeak3:icon-packs",
|
||||
"webspeak3:ide-pixel-font",
|
||||
"webspeak3:tree-options",
|
||||
],
|
||||
whisper: ["webspeak3:whisper-lists", "webspeak3:whisper-settings"],
|
||||
};
|
||||
|
||||
/** Per-sound toggles are stored as "webspeak3:sounds-enabled:<id>". */
|
||||
function categoryOf(key: string): SyncCategory | null {
|
||||
for (const c of SYNC_CATEGORIES)
|
||||
if (CATEGORY_KEYS[c].some((k) => key === k || (k === "webspeak3:sounds-enabled" && key.startsWith(`${k}:`)))) return c;
|
||||
return null;
|
||||
}
|
||||
|
||||
export const SYNC_ACCOUNT_KEY = "webspeak3:sync-account";
|
||||
|
||||
const meta = (name: string) => document.querySelector<HTMLMetaElement>(`meta[name="webspeak3-${name}"]`)?.content;
|
||||
export const DEFAULT_SYNC_SERVER =
|
||||
meta("sync-url") ||
|
||||
import.meta.env.VITE_SYNC_URL ||
|
||||
(import.meta.env.DEV ? "http://localhost:8081/api/sync" : "https://gateway.webspeak3.de/api/sync");
|
||||
|
||||
export interface SyncAccount {
|
||||
number: string;
|
||||
password?: string;
|
||||
server: string;
|
||||
categories: SyncCategory[];
|
||||
/** Server version this device last wrote or read. */
|
||||
version: number;
|
||||
/** Hash of the synced keys at that point; differs = local changes to push. */
|
||||
syncedHash: string;
|
||||
lastSync?: number;
|
||||
}
|
||||
|
||||
export type SyncState = "off" | "idle" | "syncing" | "error" | "conflict";
|
||||
export interface SyncStatus {
|
||||
state: SyncState;
|
||||
error?: string;
|
||||
lastSync?: number;
|
||||
}
|
||||
|
||||
// --- tiny external store for the Konto panel ---------------------------------
|
||||
|
||||
let status: SyncStatus = { state: "off" };
|
||||
const listeners = new Set<() => void>();
|
||||
function setStatus(next: SyncStatus) {
|
||||
status = next;
|
||||
for (const l of listeners) l();
|
||||
}
|
||||
export const getSyncStatus = () => status;
|
||||
export function subscribeSyncStatus(l: () => void) {
|
||||
listeners.add(l);
|
||||
return () => void listeners.delete(l);
|
||||
}
|
||||
|
||||
export function loadSyncAccount(): SyncAccount | null {
|
||||
try {
|
||||
const raw = localStorage.getItem(SYNC_ACCOUNT_KEY);
|
||||
return raw ? (JSON.parse(raw) as SyncAccount) : null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function saveSyncAccount(account: SyncAccount | null) {
|
||||
if (account) localStorage.setItem(SYNC_ACCOUNT_KEY, JSON.stringify(account));
|
||||
else localStorage.removeItem(SYNC_ACCOUNT_KEY);
|
||||
}
|
||||
|
||||
// --- number, password, crypto -------------------------------------------------
|
||||
|
||||
function randomChars(alphabet: string, count: number): string {
|
||||
let out = "";
|
||||
const limit = 256 - (256 % alphabet.length); // reject to avoid modulo bias
|
||||
while (out.length < count) {
|
||||
for (const b of crypto.getRandomValues(new Uint8Array(count))) {
|
||||
if (b < limit && out.length < count) out += alphabet[b % alphabet.length];
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
export const generateAccountNumber = () => randomChars("0123456789", 16);
|
||||
/** 20 characters (~100 bits) without look-alikes, in groups of five. */
|
||||
export const generatePassword = () => randomChars("ABCDEFGHJKLMNPQRSTUVWXYZ23456789", 20).replace(/(.{5})(?=.)/g, "$1-");
|
||||
export const formatAccountNumber = (n: string) => n.replace(/(\d{4})(?=\d)/g, "$1 ");
|
||||
/** null unless exactly 16 digits (spaces and dashes are ignored). */
|
||||
export const normalizeAccountNumber = (s: string) => {
|
||||
const digits = s.replace(/[\s-]/g, "");
|
||||
return /^\d{16}$/.test(digits) ? digits : null;
|
||||
};
|
||||
export const normalizePassword = (s: string) => s.trim().toUpperCase();
|
||||
|
||||
const enc = (s: string) => new TextEncoder().encode(s);
|
||||
const hex = (bytes: ArrayBuffer | Uint8Array) =>
|
||||
[...new Uint8Array(bytes)].map((b) => b.toString(16).padStart(2, "0")).join("");
|
||||
const b64 = (bytes: Uint8Array) => {
|
||||
let s = "";
|
||||
for (let i = 0; i < bytes.length; i += 0x8000) s += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
|
||||
return btoa(s);
|
||||
};
|
||||
const unb64 = (s: string) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0));
|
||||
const sha256Hex = async (s: string) => hex(await crypto.subtle.digest("SHA-256", enc(s)));
|
||||
|
||||
interface Keys {
|
||||
id: string;
|
||||
key: CryptoKey;
|
||||
auth: string;
|
||||
}
|
||||
|
||||
const keyCache = new Map<string, Promise<Keys>>();
|
||||
function deriveKeys(number: string, password = ""): Promise<Keys> {
|
||||
const cacheKey = `${number}\n${password}`;
|
||||
let keys = keyCache.get(cacheKey);
|
||||
if (!keys) {
|
||||
keys = (async () => {
|
||||
const base = await crypto.subtle.importKey("raw", enc(cacheKey), "PBKDF2", false, ["deriveBits"]);
|
||||
const bits = new Uint8Array(
|
||||
await crypto.subtle.deriveBits(
|
||||
{ name: "PBKDF2", salt: enc(`webspeak3-sync:${number}`), iterations: 310_000, hash: "SHA-256" },
|
||||
base,
|
||||
512
|
||||
)
|
||||
);
|
||||
return {
|
||||
// The id depends on the number only, so a new device can ask whether a password is needed.
|
||||
id: await sha256Hex(`webspeak3-sync-id:${number}`),
|
||||
key: await crypto.subtle.importKey("raw", bits.slice(0, 32), "AES-GCM", false, ["encrypt", "decrypt"]),
|
||||
auth: hex(bits.slice(32)),
|
||||
};
|
||||
})();
|
||||
keyCache.set(cacheKey, keys);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
interface Payload {
|
||||
v: 1;
|
||||
categories: SyncCategory[];
|
||||
items: Record<string, string>;
|
||||
}
|
||||
|
||||
/** Padded to a power of two (min 4 KB) so the blob size says little about its content. */
|
||||
async function encrypt(key: CryptoKey, payload: Payload): Promise<string> {
|
||||
const json = enc(JSON.stringify(payload));
|
||||
let size = 4096;
|
||||
while (size < json.length) size *= 2;
|
||||
const plain = new Uint8Array(size).fill(0x20); // trailing spaces: JSON.parse ignores them
|
||||
plain.set(json);
|
||||
const iv = crypto.getRandomValues(new Uint8Array(12));
|
||||
const data = new Uint8Array(await crypto.subtle.encrypt({ name: "AES-GCM", iv }, key, plain));
|
||||
const out = new Uint8Array(12 + data.length);
|
||||
out.set(iv);
|
||||
out.set(data, 12);
|
||||
return b64(out);
|
||||
}
|
||||
|
||||
async function decrypt(key: CryptoKey, data: string): Promise<Payload> {
|
||||
const bytes = unb64(data);
|
||||
const plain = await crypto.subtle.decrypt({ name: "AES-GCM", iv: bytes.subarray(0, 12) }, key, bytes.subarray(12));
|
||||
return JSON.parse(new TextDecoder().decode(plain)) as Payload;
|
||||
}
|
||||
|
||||
// --- local snapshot -------------------------------------------------------------
|
||||
|
||||
/** Goes through length/key(i), which the vault's stand-in Storage also answers for secrets. */
|
||||
function snapshot(categories: SyncCategory[]): Record<string, string> {
|
||||
const items: Record<string, string> = {};
|
||||
for (let i = 0; i < localStorage.length; i++) {
|
||||
const k = localStorage.key(i);
|
||||
if (!k) continue;
|
||||
const c = categoryOf(k);
|
||||
if (c && categories.includes(c)) items[k] = localStorage.getItem(k) ?? "";
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
const hashItems = (items: Record<string, string>) =>
|
||||
sha256Hex(JSON.stringify(Object.keys(items).sort().map((k) => [k, items[k]])));
|
||||
|
||||
/** Remote replaces local for every category both sides sync; keys gone remotely go locally too. */
|
||||
function applyPayload(payload: Payload, categories: SyncCategory[]) {
|
||||
const shared = categories.filter((c) => payload.categories.includes(c));
|
||||
for (const k of Object.keys(snapshot(shared))) if (!(k in payload.items)) localStorage.removeItem(k);
|
||||
for (const [k, v] of Object.entries(payload.items)) {
|
||||
const c = categoryOf(k);
|
||||
if (c && shared.includes(c)) localStorage.setItem(k, v);
|
||||
}
|
||||
}
|
||||
|
||||
// --- server calls ---------------------------------------------------------------
|
||||
|
||||
const ERROR_CODES = new Set(["password_required", "unreachable", "not_found", "rate_limited", "full", "pow_required", "conflict", "payload_too_large"]);
|
||||
/** Locale key for an error thrown by the functions below. */
|
||||
export const syncErrorKey = (err: unknown) => {
|
||||
const code = err instanceof Error ? err.message : String(err);
|
||||
return ERROR_CODES.has(code) ? `sync.error.${code}` : "sync.error.generic";
|
||||
};
|
||||
|
||||
async function call(server: string, path: string, init: RequestInit = {}, auth?: string) {
|
||||
let res: Response;
|
||||
try {
|
||||
res = await fetch(`${server.replace(/\/$/, "")}${path}`, {
|
||||
...init,
|
||||
headers: {
|
||||
...(init.body ? { "Content-Type": "application/json" } : {}),
|
||||
...(auth ? { Authorization: `Bearer ${auth}` } : {}),
|
||||
},
|
||||
});
|
||||
} catch {
|
||||
throw new Error("unreachable");
|
||||
}
|
||||
const body = (await res.json().catch(() => ({}))) as Record<string, unknown>;
|
||||
if (!res.ok) throw new Error(String(body.error ?? res.status));
|
||||
return body;
|
||||
}
|
||||
|
||||
export async function accountInfo(number: string, server: string): Promise<{ exists: boolean; hasPassword?: boolean }> {
|
||||
const { id } = await deriveKeys(number);
|
||||
return (await call(server, `/${id}/meta`)) as { exists: boolean; hasPassword?: boolean };
|
||||
}
|
||||
|
||||
/** Same check as gateway/src/sync.ts: leading zero bits of sha256(challenge:nonce).
|
||||
* Batched, because one awaited digest at a time is dominated by the await. */
|
||||
async function solvePow(challenge: string, bits: number): Promise<string> {
|
||||
const zeroBits = (hash: Uint8Array) => {
|
||||
let zeros = 0;
|
||||
for (const b of hash) {
|
||||
if (b !== 0) return zeros + Math.clz32(b) - 24;
|
||||
zeros += 8;
|
||||
}
|
||||
return zeros;
|
||||
};
|
||||
for (let start = 0; ; start += 256) {
|
||||
const hashes = await Promise.all(
|
||||
Array.from({ length: 256 }, (_, i) => crypto.subtle.digest("SHA-256", enc(`${challenge}:${start + i}`)))
|
||||
);
|
||||
const hit = hashes.findIndex((h) => zeroBits(new Uint8Array(h)) >= bits);
|
||||
if (hit >= 0) return String(start + hit);
|
||||
}
|
||||
}
|
||||
|
||||
async function push(account: SyncAccount, items: Record<string, string>, extra: Record<string, unknown> = {}) {
|
||||
const k = await deriveKeys(account.number, account.password);
|
||||
const data = await encrypt(k.key, { v: 1, categories: account.categories, items });
|
||||
return (await call(
|
||||
account.server,
|
||||
`/${k.id}`,
|
||||
{ method: "PUT", body: JSON.stringify({ version: account.version, data, hasPassword: !!account.password, ...extra }) },
|
||||
k.auth
|
||||
)) as { version: number };
|
||||
}
|
||||
|
||||
async function pull(account: Pick<SyncAccount, "number" | "password" | "server">) {
|
||||
const k = await deriveKeys(account.number, account.password);
|
||||
const body = (await call(account.server, `/${k.id}`, {}, k.auth)) as { version: number; data: string };
|
||||
return { version: body.version, payload: await decrypt(k.key, body.data) };
|
||||
}
|
||||
|
||||
// --- what the Konto panel and main.tsx use ------------------------------------
|
||||
|
||||
export async function createSyncAccount(withPassword: boolean, server: string, categories: SyncCategory[]) {
|
||||
const account: SyncAccount = {
|
||||
number: generateAccountNumber(),
|
||||
password: withPassword ? generatePassword() : undefined,
|
||||
server,
|
||||
categories,
|
||||
version: 0,
|
||||
syncedHash: "",
|
||||
};
|
||||
const { challenge, bits } = (await call(server, "/challenge", { method: "POST" })) as { challenge: string; bits: number };
|
||||
const nonce = await solvePow(challenge, bits);
|
||||
const items = snapshot(categories);
|
||||
const { version } = await push(account, items, { pow: { challenge, nonce } });
|
||||
saveSyncAccount({ ...account, version, syncedHash: await hashItems(items), lastSync: Date.now() });
|
||||
setStatus({ state: "idle", lastSync: Date.now() });
|
||||
}
|
||||
|
||||
/** Logs this device into an existing account: the account's data replaces the local one. Reload afterwards. */
|
||||
export async function loginSyncAccount(number: string, password: string | undefined, server: string, categories: SyncCategory[]) {
|
||||
const { version, payload } = await pull({ number, password, server });
|
||||
applyPayload(payload, categories);
|
||||
saveSyncAccount({
|
||||
number,
|
||||
password,
|
||||
server,
|
||||
categories,
|
||||
version,
|
||||
syncedHash: await hashItems(snapshot(categories)),
|
||||
lastSync: Date.now(),
|
||||
});
|
||||
}
|
||||
|
||||
/** Startup pull (main.tsx). Returns "conflict" when both sides changed. Past
|
||||
* `deadline` App is already running on the local data, so nothing is applied. */
|
||||
export async function pullAtStartup(deadline: number): Promise<"ok" | "conflict"> {
|
||||
const account = loadSyncAccount();
|
||||
if (!account) return "ok";
|
||||
setStatus({ state: "syncing", lastSync: account.lastSync });
|
||||
try {
|
||||
const { version, payload } = await pull(account);
|
||||
if (version === account.version || Date.now() > deadline) {
|
||||
setStatus({ state: "idle", lastSync: account.lastSync });
|
||||
return "ok";
|
||||
}
|
||||
if ((await hashItems(snapshot(account.categories))) !== account.syncedHash) {
|
||||
setStatus({ state: "conflict", lastSync: account.lastSync });
|
||||
return "conflict";
|
||||
}
|
||||
applyPayload(payload, account.categories);
|
||||
const lastSync = Date.now();
|
||||
saveSyncAccount({ ...account, version, syncedHash: await hashItems(snapshot(account.categories)), lastSync });
|
||||
setStatus({ state: "idle", lastSync });
|
||||
return "ok";
|
||||
} catch (err) {
|
||||
setStatus({ state: "error", error: (err as Error).message, lastSync: account.lastSync });
|
||||
return "ok";
|
||||
}
|
||||
}
|
||||
|
||||
/** "server": take the account's data (reload afterwards). "local": overwrite it with this device's. */
|
||||
export async function resolveConflict(take: "server" | "local") {
|
||||
const account = loadSyncAccount();
|
||||
if (!account) return;
|
||||
const { version, payload } = await pull(account);
|
||||
if (take === "server") {
|
||||
applyPayload(payload, account.categories);
|
||||
saveSyncAccount({ ...account, version, syncedHash: await hashItems(snapshot(account.categories)), lastSync: Date.now() });
|
||||
return;
|
||||
}
|
||||
saveSyncAccount({ ...account, version, syncedHash: "" });
|
||||
setStatus({ state: "idle", lastSync: account.lastSync });
|
||||
await syncNow();
|
||||
}
|
||||
|
||||
let pushing = false;
|
||||
/** Pushes when a synced key changed since the last sync. */
|
||||
export async function syncNow() {
|
||||
const account = loadSyncAccount();
|
||||
if (!account || pushing || status.state === "conflict") return;
|
||||
const items = snapshot(account.categories);
|
||||
const hash = await hashItems(items);
|
||||
if (hash === account.syncedHash) return;
|
||||
pushing = true;
|
||||
setStatus({ state: "syncing", lastSync: account.lastSync });
|
||||
try {
|
||||
const { version } = await push(account, items);
|
||||
const lastSync = Date.now();
|
||||
saveSyncAccount({ ...account, version, syncedHash: hash, lastSync });
|
||||
setStatus({ state: "idle", lastSync });
|
||||
} catch (err) {
|
||||
const code = (err as Error).message;
|
||||
setStatus({ state: code === "conflict" ? "conflict" : "error", error: code, lastSync: account.lastSync });
|
||||
} finally {
|
||||
pushing = false;
|
||||
}
|
||||
}
|
||||
|
||||
let timer: number | undefined;
|
||||
export function startAutoSync() {
|
||||
if (timer !== undefined) return;
|
||||
if (loadSyncAccount() && status.state === "off") setStatus({ state: "idle", lastSync: loadSyncAccount()?.lastSync });
|
||||
timer = window.setInterval(() => void syncNow(), 15_000);
|
||||
document.addEventListener("visibilitychange", () => {
|
||||
if (document.visibilityState === "hidden") void syncNow();
|
||||
});
|
||||
}
|
||||
|
||||
export async function setSyncCategories(categories: SyncCategory[]) {
|
||||
const account = loadSyncAccount();
|
||||
if (!account) return;
|
||||
// syncedHash no longer matches the new selection, so the next tick pushes it.
|
||||
saveSyncAccount({ ...account, categories, syncedHash: "" });
|
||||
await syncNow();
|
||||
}
|
||||
|
||||
/** Adds (random) or removes the password. Re-encrypts under the new key on the server. */
|
||||
export async function changeSyncPassword(withPassword: boolean) {
|
||||
const account = loadSyncAccount();
|
||||
if (!account) return;
|
||||
const next: SyncAccount = { ...account, password: withPassword ? generatePassword() : undefined };
|
||||
const newKeys = await deriveKeys(next.number, next.password);
|
||||
const items = snapshot(account.categories);
|
||||
// Encrypted with the new key, authorized with the old one, handing over the new auth.
|
||||
const k = await deriveKeys(account.number, account.password);
|
||||
const data = await encrypt(newKeys.key, { v: 1, categories: account.categories, items });
|
||||
const { version } = (await call(
|
||||
account.server,
|
||||
`/${k.id}`,
|
||||
{ method: "PUT", body: JSON.stringify({ version: account.version, data, hasPassword: withPassword, newAuth: newKeys.auth }) },
|
||||
k.auth
|
||||
)) as { version: number };
|
||||
saveSyncAccount({ ...next, version, syncedHash: await hashItems(items), lastSync: Date.now() });
|
||||
setStatus({ state: "idle", lastSync: Date.now() });
|
||||
}
|
||||
|
||||
/** Unlinks this device only; the account and its data stay on the server. */
|
||||
export function logoutSyncAccount() {
|
||||
saveSyncAccount(null);
|
||||
setStatus({ state: "off" });
|
||||
}
|
||||
|
||||
export async function deleteSyncAccount() {
|
||||
const account = loadSyncAccount();
|
||||
if (!account) return;
|
||||
const k = await deriveKeys(account.number, account.password);
|
||||
await call(account.server, `/${k.id}`, { method: "DELETE" }, k.auth);
|
||||
logoutSyncAccount();
|
||||
}
|
||||
|
||||
/** Link for the QR code: the fragment never reaches any server. */
|
||||
export function syncLink(account: SyncAccount): string {
|
||||
const params = new URLSearchParams({ sync: account.number });
|
||||
if (account.password) params.set("syncpw", account.password);
|
||||
if (account.server !== DEFAULT_SYNC_SERVER) params.set("syncserver", account.server);
|
||||
return `${location.origin}${location.pathname}#${params}`;
|
||||
}
|
||||
|
||||
/** Reads (and strips from the address bar) a link made by syncLink(). */
|
||||
export function takeSyncLink(): { number: string; password?: string; server: string } | null {
|
||||
const params = new URLSearchParams(location.hash.slice(1));
|
||||
const number = normalizeAccountNumber(params.get("sync") ?? "");
|
||||
if (!number) return null;
|
||||
const password = params.get("syncpw") ?? undefined;
|
||||
const server = params.get("syncserver") ?? DEFAULT_SYNC_SERVER;
|
||||
for (const k of ["sync", "syncpw", "syncserver"]) params.delete(k);
|
||||
history.replaceState(null, "", location.pathname + location.search + (params.size ? `#${params}` : ""));
|
||||
return { number, password, server };
|
||||
}
|
||||
|
||||
export function recoveryText(account: SyncAccount): string {
|
||||
return [
|
||||
"WebSpeak3",
|
||||
"",
|
||||
`Account number: ${formatAccountNumber(account.number)}`,
|
||||
...(account.password ? [`Password: ${account.password}`] : []),
|
||||
...(account.server !== DEFAULT_SYNC_SERVER ? [`Server: ${account.server}`] : []),
|
||||
"",
|
||||
].join("\n");
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export type ConnectionTabItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
connected?: boolean;
|
||||
connecting?: boolean;
|
||||
};
|
||||
|
||||
export type GreenteaSpeakChromeProps = {
|
||||
/** @deprecated Prefer `tabs` + `activeTabId` for multi-join. */
|
||||
connected?: boolean;
|
||||
/** @deprecated Prefer `tabs`. */
|
||||
serverName?: string;
|
||||
tabs?: ConnectionTabItem[];
|
||||
activeTabId?: string | null;
|
||||
onSelectTab?: (id: string) => void;
|
||||
onCloseTab?: (id: string) => void;
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
/**
|
||||
* GTS branding chrome: connection-tab strip (multi-join) + brand label when empty.
|
||||
* Renders children unchanged — WebSpeak keeps its own React state/handlers.
|
||||
*/
|
||||
export function GreenteaSpeakChrome({
|
||||
connected,
|
||||
serverName,
|
||||
tabs,
|
||||
activeTabId,
|
||||
onSelectTab,
|
||||
onCloseTab,
|
||||
children,
|
||||
}: GreenteaSpeakChromeProps) {
|
||||
const resolvedTabs: ConnectionTabItem[] =
|
||||
tabs ??
|
||||
(connected
|
||||
? [{ id: "legacy", label: (serverName ?? "").trim() || "GreenTeaSpeak", connected: true }]
|
||||
: []);
|
||||
|
||||
const hasTabs = resolvedTabs.length > 0;
|
||||
|
||||
return (
|
||||
<>
|
||||
{hasTabs ? (
|
||||
<div className="gts-connection-tabs" role="tablist" aria-label="Server-Verbindungen">
|
||||
{resolvedTabs.map((tab) => {
|
||||
const isActive = tab.id === (activeTabId ?? resolvedTabs[0]?.id);
|
||||
return (
|
||||
<div
|
||||
key={tab.id}
|
||||
role="tab"
|
||||
aria-selected={isActive}
|
||||
className={`gts-connection-tab${isActive ? " gts-connection-tab-active" : ""}${
|
||||
tab.connecting ? " gts-connection-tab-connecting" : ""
|
||||
}`}
|
||||
onClick={() => onSelectTab?.(tab.id)}
|
||||
title={tab.label}
|
||||
>
|
||||
<span className="gts-connection-tab-label">{tab.label}</span>
|
||||
{onCloseTab ? (
|
||||
<button
|
||||
type="button"
|
||||
className="gts-connection-tab-close"
|
||||
title="Verbindung trennen"
|
||||
aria-label={`Tab schließen: ${tab.label}`}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onCloseTab(tab.id);
|
||||
}}
|
||||
>
|
||||
×
|
||||
</button>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
) : (
|
||||
<div className="gts-connection-tabs gts-brand-strip">
|
||||
<span className="gts-brand-label">GreenTeaSpeak</span>
|
||||
</div>
|
||||
)}
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
/**
|
||||
* Maps WebSpeak gateway WebSocket payloads to the shape the GreenTeaSpeak
|
||||
* shell expects. The browser UI still uses App.tsx state; this module is the
|
||||
* contract layer so GTS chrome never talks to Electron IPC.
|
||||
*/
|
||||
|
||||
export type GatewayServerType = "auto" | "teamspeak" | "teaspeak";
|
||||
|
||||
export type GatewayConnectPayload = {
|
||||
type: "connect";
|
||||
host: string;
|
||||
nickname: string;
|
||||
serverPassword?: string;
|
||||
channelPassword?: string;
|
||||
defaultChannel?: string;
|
||||
identity?: string;
|
||||
privilegeKey?: string;
|
||||
serverType?: GatewayServerType;
|
||||
};
|
||||
|
||||
export type GatewayOutboundAction =
|
||||
| GatewayConnectPayload
|
||||
| { type: "disconnect" }
|
||||
| { type: "switchChannel"; channelId: number }
|
||||
| { type: "sendChat"; message: string; target?: "channel" | "server" | number }
|
||||
| { type: string; [key: string]: unknown };
|
||||
|
||||
/** Build the connect message sent on the WebSpeak gateway socket. */
|
||||
export function buildGatewayConnect(input: {
|
||||
host: string;
|
||||
nickname: string;
|
||||
serverPassword?: string;
|
||||
channelPassword?: string;
|
||||
defaultChannel?: string;
|
||||
identity?: string;
|
||||
privilegeKey?: string;
|
||||
serverType?: GatewayServerType;
|
||||
}): GatewayConnectPayload {
|
||||
return {
|
||||
type: "connect",
|
||||
host: input.host.trim(),
|
||||
nickname: input.nickname.trim(),
|
||||
serverPassword: input.serverPassword?.trim() || undefined,
|
||||
channelPassword: input.channelPassword?.trim() || undefined,
|
||||
defaultChannel: input.defaultChannel?.trim() || undefined,
|
||||
identity: input.identity || undefined,
|
||||
privilegeKey: input.privilegeKey?.trim() || undefined,
|
||||
serverType: input.serverType || "auto",
|
||||
};
|
||||
}
|
||||
|
||||
export function sendGatewayAction(ws: WebSocket | null, action: GatewayOutboundAction): boolean {
|
||||
if (!ws || ws.readyState !== WebSocket.OPEN) return false;
|
||||
ws.send(JSON.stringify(action));
|
||||
return true;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
export const GREENTEASPEAK_THEME_ID = "greenteaspeak" as const;
|
||||
|
||||
export function isGreenteaSpeakTheme(theme: string): boolean {
|
||||
return theme === GREENTEASPEAK_THEME_ID;
|
||||
}
|
||||
|
||||
export {
|
||||
GreenteaSpeakChrome,
|
||||
type GreenteaSpeakChromeProps,
|
||||
type ConnectionTabItem,
|
||||
} from "./GreenteaSpeakChrome";
|
||||
|
||||
export {
|
||||
buildGatewayConnect,
|
||||
sendGatewayAction,
|
||||
type GatewayConnectPayload,
|
||||
type GatewayOutboundAction,
|
||||
type GatewayServerType,
|
||||
} from "./gatewayAdapter";
|
||||
@@ -0,0 +1,146 @@
|
||||
// Options -> Sicherheit -> "Master Passwort benutzen". The keys below hold secrets
|
||||
// (identity private keys, server/channel passwords, the store admin token). With a
|
||||
// master password they live AES-GCM encrypted in one localStorage entry and only in
|
||||
// memory once unlocked. Like storageFallback.ts, this swaps window.localStorage for
|
||||
// a stand-in, so the dozens of plain localStorage reads in the app keep working.
|
||||
// main.tsx unlocks before importing App, whose module-level code reads these keys.
|
||||
|
||||
export const PROTECTED_KEYS = [
|
||||
"webspeak3:identities",
|
||||
"webspeak3:identity",
|
||||
"webspeak3:favorites",
|
||||
"webspeak3:channel-passwords",
|
||||
"webspeak3:store-admin-token",
|
||||
"webspeak3:sync-account",
|
||||
];
|
||||
|
||||
const VAULT_KEY = "webspeak3:vault";
|
||||
const ITERATIONS = 310_000;
|
||||
|
||||
interface StoredVault {
|
||||
salt: string;
|
||||
iv: string;
|
||||
data: string;
|
||||
}
|
||||
|
||||
const real = window.localStorage;
|
||||
let unlocked: { key: CryptoKey; salt: Uint8Array; secrets: Map<string, string> } | null = null;
|
||||
|
||||
const b64 = (bytes: Uint8Array) => btoa(String.fromCharCode(...bytes));
|
||||
const unb64 = (s: string) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0));
|
||||
|
||||
async function deriveKey(password: string, salt: Uint8Array): Promise<CryptoKey> {
|
||||
const base = await crypto.subtle.importKey("raw", new TextEncoder().encode(password), "PBKDF2", false, ["deriveKey"]);
|
||||
return crypto.subtle.deriveKey(
|
||||
{ name: "PBKDF2", salt: salt as BufferSource, iterations: ITERATIONS, hash: "SHA-256" },
|
||||
base,
|
||||
{ name: "AES-GCM", length: 256 },
|
||||
false,
|
||||
["encrypt", "decrypt"]
|
||||
);
|
||||
}
|
||||
|
||||
export const hasVault = () => real.getItem(VAULT_KEY) !== null;
|
||||
export const isVaultUnlocked = () => unlocked !== null;
|
||||
|
||||
// Writes are chained so an older encryption never lands after a newer one.
|
||||
let writing: Promise<void> = Promise.resolve();
|
||||
function persist(): Promise<void> {
|
||||
writing = writing.then(async () => {
|
||||
if (!unlocked) return;
|
||||
const iv = crypto.getRandomValues(new Uint8Array(12));
|
||||
const plain = new TextEncoder().encode(JSON.stringify(Object.fromEntries(unlocked.secrets)));
|
||||
const data = new Uint8Array(await crypto.subtle.encrypt({ name: "AES-GCM", iv }, unlocked.key, plain));
|
||||
real.setItem(VAULT_KEY, JSON.stringify({ salt: b64(unlocked.salt), iv: b64(iv), data: b64(data) } satisfies StoredVault));
|
||||
});
|
||||
return writing;
|
||||
}
|
||||
|
||||
function installProxy(): void {
|
||||
const secrets = () => unlocked!.secrets;
|
||||
const isProtected = (k: string) => PROTECTED_KEYS.includes(k);
|
||||
const proxy: Storage = {
|
||||
get length() {
|
||||
return real.length + secrets().size;
|
||||
},
|
||||
key: (i) => (i < real.length ? real.key(i) : ([...secrets().keys()][i - real.length] ?? null)),
|
||||
getItem: (k) => (isProtected(k) ? (secrets().get(k) ?? null) : real.getItem(k)),
|
||||
setItem: (k, v) => {
|
||||
if (!isProtected(k)) return real.setItem(k, v);
|
||||
secrets().set(k, String(v));
|
||||
void persist();
|
||||
},
|
||||
removeItem: (k) => {
|
||||
if (!isProtected(k)) return real.removeItem(k);
|
||||
secrets().delete(k);
|
||||
void persist();
|
||||
},
|
||||
clear: () => {
|
||||
real.clear();
|
||||
secrets().clear();
|
||||
},
|
||||
};
|
||||
// Object.keys(localStorage) has to see real keys too.
|
||||
for (let i = 0; i < real.length; i++) {
|
||||
const k = real.key(i)!;
|
||||
if (k !== VAULT_KEY) Object.defineProperty(proxy, k, { get: () => real.getItem(k), enumerable: true, configurable: true });
|
||||
}
|
||||
Object.defineProperty(window, "localStorage", { value: proxy, configurable: true });
|
||||
}
|
||||
|
||||
async function openStored(password: string) {
|
||||
await writing;
|
||||
const stored: StoredVault = JSON.parse(real.getItem(VAULT_KEY)!);
|
||||
const salt = unb64(stored.salt);
|
||||
const key = await deriveKey(password, salt);
|
||||
try {
|
||||
const plain = await crypto.subtle.decrypt({ name: "AES-GCM", iv: unb64(stored.iv) as BufferSource }, key, unb64(stored.data) as BufferSource);
|
||||
return { key, salt, secrets: new Map<string, string>(Object.entries(JSON.parse(new TextDecoder().decode(plain)))) };
|
||||
} catch {
|
||||
return null; // wrong password
|
||||
}
|
||||
}
|
||||
|
||||
/** false = wrong password. */
|
||||
export async function unlockVault(password: string): Promise<boolean> {
|
||||
unlocked = await openStored(password);
|
||||
if (unlocked) installProxy();
|
||||
return unlocked !== null;
|
||||
}
|
||||
|
||||
/** Re-asks the current password before changing or removing it. */
|
||||
export const checkMasterPassword = async (password: string) => (await openStored(password)) !== null;
|
||||
|
||||
/** Turns the master password on, or changes it when already on. */
|
||||
export async function setMasterPassword(password: string): Promise<void> {
|
||||
const salt = crypto.getRandomValues(new Uint8Array(16));
|
||||
const key = await deriveKey(password, salt);
|
||||
if (unlocked) {
|
||||
unlocked = { ...unlocked, key, salt };
|
||||
} else {
|
||||
const secrets = new Map<string, string>();
|
||||
for (const k of PROTECTED_KEYS) {
|
||||
const v = real.getItem(k);
|
||||
if (v !== null) secrets.set(k, v);
|
||||
}
|
||||
unlocked = { key, salt, secrets };
|
||||
installProxy();
|
||||
}
|
||||
await persist();
|
||||
for (const k of PROTECTED_KEYS) real.removeItem(k);
|
||||
}
|
||||
|
||||
/** Turns it off: secrets go back to plain localStorage. */
|
||||
export async function removeMasterPassword(): Promise<void> {
|
||||
if (!unlocked) return;
|
||||
await writing;
|
||||
for (const [k, v] of unlocked.secrets) real.setItem(k, v);
|
||||
real.removeItem(VAULT_KEY);
|
||||
unlocked = null;
|
||||
Object.defineProperty(window, "localStorage", { value: real, configurable: true });
|
||||
}
|
||||
|
||||
/** "Passwort vergessen": drops the encrypted data for good. */
|
||||
export function discardVault(): void {
|
||||
real.removeItem(VAULT_KEY);
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference types="vite-plugin-pwa/client" />
|
||||
/// <reference types="vite-plugin-pwa/react" />
|
||||
|
||||
/** Injected by vite.config.ts; matches the `buildId` in version.json. */
|
||||
declare const __BUILD_ID__: string
|
||||
+186
-22
@@ -4,6 +4,8 @@
|
||||
// microphone -> server direction (which it Opus-encodes), stereo mixed
|
||||
// for the server -> speakers direction (already decoded/mixed for us).
|
||||
|
||||
import type { Aec3Instance } from "./aec3";
|
||||
|
||||
export const SAMPLE_RATE = 48000;
|
||||
export const FRAME_SAMPLES = 960; // 20ms @ 48kHz
|
||||
|
||||
@@ -41,6 +43,10 @@ export interface MicCaptureOptions {
|
||||
* browser's own AEC runs can bring back audible echo residue in speaker+mic
|
||||
* (no headset) setups - some users get a cleaner result with it off. */
|
||||
autoGainControl?: boolean;
|
||||
/** When set, mic audio is run through this AEC3 instance (opts:
|
||||
* captureNumChannels=1) before VAD/encoding, in place of relying solely on
|
||||
* the browser's native echoCancellation. */
|
||||
aec3?: Aec3Instance;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,12 +54,18 @@ export interface MicCaptureOptions {
|
||||
*
|
||||
* Uses voice activation (like TeamSpeak's own "Sprachaktivierung"): frames are
|
||||
* only sent while the input level is above `threshold`, plus a short hangover
|
||||
* so the tail of a word isn't cut off. `onActivity` reports transitions so the
|
||||
* so the tail of a word isn't cut off. With `pushToTalk` set, only while
|
||||
* `pttPressed` is. `onActivity` reports transitions so the
|
||||
* UI can show a local "currently transmitting" indicator.
|
||||
*/
|
||||
export class MicCapture {
|
||||
private stream: MediaStream | null = null;
|
||||
private source: MediaStreamAudioSourceNode | null = null;
|
||||
private merger: ChannelMergerNode | null = null;
|
||||
private extra: MediaStreamAudioSourceNode | null = null;
|
||||
private pendingExtra: number[] = [];
|
||||
/** Loudest extra-source sample since setExtraAudio(), to spot a silent share. */
|
||||
extraPeak = 0;
|
||||
private processor: ScriptProcessorNode | null = null;
|
||||
private silence: GainNode | null = null;
|
||||
private monitorTarget: AudioNode | null = null;
|
||||
@@ -67,9 +79,20 @@ export class MicCapture {
|
||||
private echoCancellation: boolean;
|
||||
private noiseSuppression: boolean;
|
||||
private autoGainControl: boolean;
|
||||
private aec3?: Aec3Instance;
|
||||
private aec3Out: Float32Array[] | null = null;
|
||||
private context: AudioContext;
|
||||
threshold: number;
|
||||
hangoverSeconds: number;
|
||||
/** Push-to-talk: send while `pttPressed` instead of voice activation. */
|
||||
pushToTalk = false;
|
||||
pttPressed = false;
|
||||
/** Send all the time, no voice activation (ignored while pushToTalk). */
|
||||
continuous = false;
|
||||
/** Damp the mic right after a keystroke, so typing doesn't trigger
|
||||
* voice activation and is quieter while talking. See noteTyping(). */
|
||||
typingAttenuation = false;
|
||||
private typingUntil = 0;
|
||||
|
||||
constructor(context: AudioContext, options: MicCaptureOptions) {
|
||||
this.context = context;
|
||||
@@ -82,6 +105,7 @@ export class MicCapture {
|
||||
this.echoCancellation = options.echoCancellation ?? true;
|
||||
this.noiseSuppression = options.noiseSuppression ?? true;
|
||||
this.autoGainControl = options.autoGainControl ?? true;
|
||||
this.aec3 = options.aec3;
|
||||
}
|
||||
|
||||
async start(): Promise<void> {
|
||||
@@ -108,9 +132,28 @@ export class MicCapture {
|
||||
// before the AudioContext would otherwise be allowed to leave "suspended".
|
||||
if (this.context.state === "suspended") await this.context.resume();
|
||||
this.source = this.context.createMediaStreamSource(this.stream);
|
||||
this.processor = this.context.createScriptProcessor(2048, 1, 1);
|
||||
// Channel 0 is the mic, channel 1 the optional extra source (setExtraAudio).
|
||||
this.merger = this.context.createChannelMerger(2);
|
||||
this.processor = this.context.createScriptProcessor(2048, 2, 1);
|
||||
this.processor.onaudioprocess = (event) => {
|
||||
const input = event.inputBuffer.getChannelData(0);
|
||||
const raw = event.inputBuffer.getChannelData(0);
|
||||
let input: Float32Array = raw;
|
||||
if (this.aec3) {
|
||||
const captureIn = [raw];
|
||||
const outSize = this.aec3.processSize(captureIn);
|
||||
if (!this.aec3Out || this.aec3Out[0].length !== outSize) this.aec3Out = [new Float32Array(outSize)];
|
||||
this.aec3.process(this.aec3Out, captureIn);
|
||||
input = this.aec3Out[0];
|
||||
}
|
||||
if (this.typingAttenuation && this.context.currentTime < this.typingUntil) {
|
||||
// Copy first: `raw` is the input buffer, not ours to change.
|
||||
input = input.map((v) => v * 0.1);
|
||||
}
|
||||
// Mirrors the (possibly AEC3-cancelled) signal to the output buffer, so
|
||||
// setMonitoring() below can tap what's actually being sent rather than
|
||||
// the raw pre-cancellation mic feed - a self-test through the raw feed
|
||||
// always howls, whether or not AEC3 is on.
|
||||
event.outputBuffer.getChannelData(0).set(input);
|
||||
|
||||
let sumSquares = 0;
|
||||
for (let i = 0; i < input.length; i++) sumSquares += input[i] * input[i];
|
||||
@@ -119,7 +162,9 @@ export class MicCapture {
|
||||
|
||||
const now = this.context.currentTime;
|
||||
if (rms >= this.threshold) this.activeUntil = now + this.hangoverSeconds;
|
||||
const shouldBeActive = now < this.activeUntil;
|
||||
const talking = this.pushToTalk ? this.pttPressed : this.continuous || now < this.activeUntil;
|
||||
// Shared audio (music, a video) has its own pauses; keep sending throughout.
|
||||
const shouldBeActive = this.extra !== null || talking;
|
||||
if (shouldBeActive !== this.active) {
|
||||
this.active = shouldBeActive;
|
||||
this.onActivity?.(this.active);
|
||||
@@ -129,11 +174,28 @@ export class MicCapture {
|
||||
if (!this.active) return;
|
||||
|
||||
for (let i = 0; i < input.length; i++) this.pending.push(input[i]);
|
||||
// Mixed in per frame rather than per tick: AEC3 may hand back a block of
|
||||
// a different size than it got, and the extra source never went through
|
||||
// it (it isn't an echo of anything).
|
||||
if (this.extra) {
|
||||
const extra = event.inputBuffer.getChannelData(1);
|
||||
for (let i = 0; i < extra.length; i++) {
|
||||
this.pendingExtra.push(extra[i]);
|
||||
this.extraPeak = Math.max(this.extraPeak, Math.abs(extra[i]));
|
||||
}
|
||||
}
|
||||
// AEC3's blocks make the two queues jitter against each other. Padding
|
||||
// a short extra queue with silence clicks; skip it once instead, which
|
||||
// leaves it a frame ahead from then on. Cap the lead to bound latency.
|
||||
if (this.pendingExtra.length > 4 * FRAME_SAMPLES) this.pendingExtra.splice(0, this.pendingExtra.length - 2 * FRAME_SAMPLES);
|
||||
while (this.pending.length >= FRAME_SAMPLES) {
|
||||
const frame = this.pending.splice(0, FRAME_SAMPLES);
|
||||
const extra = this.pendingExtra.length >= FRAME_SAMPLES ? this.pendingExtra.splice(0, FRAME_SAMPLES) : [];
|
||||
const int16 = new Int16Array(FRAME_SAMPLES);
|
||||
for (let i = 0; i < FRAME_SAMPLES; i++) {
|
||||
const clamped = Math.max(-1, Math.min(1, frame[i]));
|
||||
// Shared music is mastered near full scale; at -6 dB it leaves room
|
||||
// for the voice on top instead of clipping.
|
||||
const clamped = Math.max(-1, Math.min(1, frame[i] + (extra[i] ?? 0) * 0.5));
|
||||
int16[i] = clamped < 0 ? clamped * 32768 : clamped * 32767;
|
||||
}
|
||||
this.onFrame(int16ToBase64(int16));
|
||||
@@ -143,35 +205,63 @@ export class MicCapture {
|
||||
// it through a muted gain node so we don't hear our own mic echoed back.
|
||||
this.silence = this.context.createGain();
|
||||
this.silence.gain.value = 0;
|
||||
this.source.connect(this.processor);
|
||||
this.source.connect(this.merger, 0, 0);
|
||||
this.merger.connect(this.processor);
|
||||
this.processor.connect(this.silence);
|
||||
this.silence.connect(this.context.destination);
|
||||
}
|
||||
|
||||
/** Call on every keystroke; with typingAttenuation on, the next ~0.2 s are damped. */
|
||||
noteTyping(): void {
|
||||
this.typingUntil = this.context.currentTime + 0.2;
|
||||
}
|
||||
|
||||
/** Mixes a second stream (e.g. a shared tab's audio) into what is sent, or
|
||||
* removes it with null. The caller keeps ownership of the stream. */
|
||||
setExtraAudio(stream: MediaStream | null): void {
|
||||
this.extra?.disconnect();
|
||||
this.extra = null;
|
||||
this.pendingExtra = [];
|
||||
this.extraPeak = 0;
|
||||
if (stream && this.merger) {
|
||||
this.extra = this.context.createMediaStreamSource(stream);
|
||||
this.extra.connect(this.merger, 0, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/** 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. */
|
||||
/** Routes the (possibly AEC3-cancelled) mic signal to `destination` too, so
|
||||
* you can hear yourself - a mic test - until disabled again. Taps the
|
||||
* processor's output rather than the raw source, so the test actually
|
||||
* reflects AEC3 when it's on, instead of always howling via the
|
||||
* uncancelled raw feed. */
|
||||
setMonitoring(enabled: boolean, destination: AudioNode): void {
|
||||
if (!this.source) return;
|
||||
if (!this.processor) return;
|
||||
if (enabled && this.monitorTarget !== destination) {
|
||||
if (this.monitorTarget) this.source.disconnect(this.monitorTarget);
|
||||
this.source.connect(destination);
|
||||
if (this.monitorTarget) this.processor.disconnect(this.monitorTarget);
|
||||
this.processor.connect(destination);
|
||||
this.monitorTarget = destination;
|
||||
} else if (!enabled && this.monitorTarget) {
|
||||
this.source.disconnect(this.monitorTarget);
|
||||
this.processor.disconnect(this.monitorTarget);
|
||||
this.monitorTarget = null;
|
||||
}
|
||||
}
|
||||
|
||||
stop(): void {
|
||||
if (this.source && this.monitorTarget) this.source.disconnect(this.monitorTarget);
|
||||
if (this.processor && this.monitorTarget) this.processor.disconnect(this.monitorTarget);
|
||||
this.monitorTarget = null;
|
||||
this.processor?.disconnect();
|
||||
this.silence?.disconnect();
|
||||
this.source?.disconnect();
|
||||
this.extra?.disconnect();
|
||||
this.merger?.disconnect();
|
||||
this.extra = null;
|
||||
this.merger = null;
|
||||
this.pendingExtra = [];
|
||||
this.stream?.getTracks().forEach((t) => t.stop());
|
||||
this.processor = null;
|
||||
this.silence = null;
|
||||
@@ -272,19 +362,44 @@ type SinkableContext = AudioContext & { setSinkId?: (id: string) => Promise<void
|
||||
* `AudioContext.setSinkId` (Chrome 110+) only retargets the context itself,
|
||||
* while `HTMLMediaElement.setSinkId` (Chrome, and Firefox 130+) only works on
|
||||
* a media element. Routing through the element lets `setOutputDevice` use
|
||||
* whichever one the browser actually supports.
|
||||
* whichever one the browser actually supports. Browsers without
|
||||
* `HTMLMediaElement.setSinkId` (mobile ones) play straight to the context.
|
||||
*/
|
||||
export class AudioPlayer {
|
||||
private nextTime = 0;
|
||||
private destination: MediaStreamAudioDestinationNode;
|
||||
private element: SinkableElement;
|
||||
// null where media elements can't switch devices (Android Chrome/Firefox):
|
||||
// there the detour buys nothing and its <audio> element stays silent.
|
||||
private destination: MediaStreamAudioDestinationNode | null = null;
|
||||
private element: SinkableElement | null = null;
|
||||
private gain: GainNode;
|
||||
// Voice frames only (not test tone, clicks or mic monitoring), so the
|
||||
// leveler can sit between them and the volume gain.
|
||||
private voice: GainNode;
|
||||
private leveler: DynamicsCompressorNode;
|
||||
private context: AudioContext;
|
||||
private aecTap: ScriptProcessorNode | null = null;
|
||||
private aecSink: GainNode | null = null;
|
||||
|
||||
constructor(context: AudioContext) {
|
||||
this.context = context;
|
||||
this.destination = context.createMediaStreamDestination();
|
||||
this.gain = context.createGain();
|
||||
this.voice = context.createGain();
|
||||
// "Automatic volume leveling": evens out loud and quiet speakers. Browsers
|
||||
// add their own makeup gain, so quiet voices come up too.
|
||||
// ponytail: one compressor for the whole mix, not per speaker like TS3.
|
||||
this.leveler = context.createDynamicsCompressor();
|
||||
this.leveler.threshold.value = -30;
|
||||
this.leveler.knee.value = 10;
|
||||
this.leveler.ratio.value = 4;
|
||||
this.leveler.attack.value = 0.005;
|
||||
this.leveler.release.value = 0.3;
|
||||
this.leveler.connect(this.gain);
|
||||
this.voice.connect(this.gain);
|
||||
if (!("setSinkId" in HTMLMediaElement.prototype)) {
|
||||
this.gain.connect(context.destination);
|
||||
return;
|
||||
}
|
||||
this.destination = context.createMediaStreamDestination();
|
||||
this.gain.connect(this.destination);
|
||||
this.element = document.createElement("audio") as SinkableElement;
|
||||
this.element.autoplay = true;
|
||||
@@ -293,6 +408,12 @@ export class AudioPlayer {
|
||||
document.body.appendChild(this.element);
|
||||
}
|
||||
|
||||
/** Mobile browsers ignore `autoplay` for audible media, so the hidden
|
||||
* element stays paused (silent) until play() runs inside a user gesture. */
|
||||
unlock(): void {
|
||||
if (this.element?.paused) this.element.play().catch(() => {});
|
||||
}
|
||||
|
||||
playFrame(base64Pcm: string): void {
|
||||
const int16 = base64ToInt16(base64Pcm);
|
||||
const frames = int16.length / 2;
|
||||
@@ -308,7 +429,7 @@ export class AudioPlayer {
|
||||
|
||||
const source = this.context.createBufferSource();
|
||||
source.buffer = buffer;
|
||||
source.connect(this.gain);
|
||||
source.connect(this.voice);
|
||||
|
||||
const now = this.context.currentTime;
|
||||
if (this.nextTime < now + 0.02) {
|
||||
@@ -329,6 +450,11 @@ export class AudioPlayer {
|
||||
this.gain.gain.value = gain;
|
||||
}
|
||||
|
||||
setAutoVolume(enabled: boolean): void {
|
||||
this.voice.disconnect();
|
||||
this.voice.connect(enabled ? this.leveler : this.gain);
|
||||
}
|
||||
|
||||
/** The node all voice/test audio ultimately reaches - use as a mic-monitoring target so it also respects volume/output device. */
|
||||
getInputNode(): AudioNode {
|
||||
return this.gain;
|
||||
@@ -340,21 +466,54 @@ export class AudioPlayer {
|
||||
osc.type = "sine";
|
||||
osc.frequency.value = 440;
|
||||
const toneGain = this.context.createGain();
|
||||
toneGain.gain.value = 0.3;
|
||||
const now = this.context.currentTime;
|
||||
// Soft fade in and decay instead of a flat, hard-edged beep.
|
||||
toneGain.gain.setValueAtTime(0, now);
|
||||
toneGain.gain.linearRampToValueAtTime(0.15, now + 0.03);
|
||||
toneGain.gain.exponentialRampToValueAtTime(0.0001, now + 0.8);
|
||||
osc.connect(toneGain);
|
||||
toneGain.connect(this.gain);
|
||||
const now = this.context.currentTime;
|
||||
osc.start(now);
|
||||
osc.stop(now + 0.6);
|
||||
osc.stop(now + 0.85);
|
||||
osc.onended = () => {
|
||||
osc.disconnect();
|
||||
toneGain.disconnect();
|
||||
};
|
||||
}
|
||||
|
||||
/** Feeds everything played back through this player into `aec3.analyze()` as
|
||||
* the far-end/render reference, so a paired `MicCapture`'s aec3 `process()`
|
||||
* calls can cancel it back out of the mic signal. Taps post-gain: what's
|
||||
* actually reaching the speakers is what needs cancelling, not the
|
||||
* pre-volume mix. */
|
||||
attachAecRenderTap(aec3: Pick<Aec3Instance, "analyze">): void {
|
||||
this.detachAecRenderTap();
|
||||
const tap = this.context.createScriptProcessor(2048, 2, 2);
|
||||
tap.onaudioprocess = (e) => {
|
||||
aec3.analyze([e.inputBuffer.getChannelData(0), e.inputBuffer.getChannelData(1)]);
|
||||
};
|
||||
const sink = this.context.createGain();
|
||||
sink.gain.value = 0;
|
||||
this.gain.connect(tap);
|
||||
tap.connect(sink);
|
||||
sink.connect(this.context.destination);
|
||||
this.aecTap = tap;
|
||||
this.aecSink = sink;
|
||||
}
|
||||
|
||||
detachAecRenderTap(): void {
|
||||
if (this.aecTap) {
|
||||
this.gain.disconnect(this.aecTap);
|
||||
this.aecTap.disconnect();
|
||||
this.aecTap = null;
|
||||
}
|
||||
this.aecSink?.disconnect();
|
||||
this.aecSink = null;
|
||||
}
|
||||
|
||||
/** Routes playback to a specific device (empty string = system default). */
|
||||
async setOutputDevice(deviceId: string): Promise<void> {
|
||||
if (typeof this.element.setSinkId === "function") {
|
||||
if (typeof this.element?.setSinkId === "function") {
|
||||
await this.element.setSinkId(deviceId);
|
||||
return;
|
||||
}
|
||||
@@ -366,9 +525,14 @@ export class AudioPlayer {
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
this.detachAecRenderTap();
|
||||
this.voice.disconnect();
|
||||
this.leveler.disconnect();
|
||||
this.gain.disconnect();
|
||||
if (!this.element) return;
|
||||
this.element.pause();
|
||||
this.element.srcObject = null;
|
||||
this.element.remove();
|
||||
this.destination.stream.getTracks().forEach((t) => t.stop());
|
||||
this.destination?.stream.getTracks().forEach((t) => t.stop());
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
"types": ["vite/client"],
|
||||
"allowArbitraryExtensions": true,
|
||||
"skipLibCheck": true,
|
||||
"resolveJsonModule": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
|
||||
+101
-2
@@ -1,9 +1,108 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { execSync } from 'node:child_process'
|
||||
import { defineConfig, type Plugin } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
// Identifies the build a bundle came from. Only has to differ between two
|
||||
// builds — the client compares its own baked-in value against version.json to
|
||||
// notice when it is running something the server no longer serves.
|
||||
function resolveBuildId(): string {
|
||||
const fromCi = process.env.CF_PAGES_COMMIT_SHA || process.env.GITHUB_SHA
|
||||
if (fromCi) return fromCi.slice(0, 12)
|
||||
try {
|
||||
return execSync('git rev-parse --short=12 HEAD', { stdio: ['ignore', 'pipe', 'ignore'] })
|
||||
.toString()
|
||||
.trim()
|
||||
} catch {
|
||||
// No git checkout (the Docker build copies sources in without .git).
|
||||
return String(Date.now())
|
||||
}
|
||||
}
|
||||
|
||||
const buildId = resolveBuildId()
|
||||
|
||||
// version.json must never be precached, or a stuck client would ask the very
|
||||
// cache it is stuck in what the server has. `.json` is not in globPatterns
|
||||
// below, so Workbox leaves it alone and the fetch always hits the network.
|
||||
function versionManifest(): Plugin {
|
||||
return {
|
||||
name: 'webspeak3-version-manifest',
|
||||
apply: 'build',
|
||||
generateBundle() {
|
||||
this.emitFile({
|
||||
type: 'asset',
|
||||
fileName: 'version.json',
|
||||
source: `${JSON.stringify({ buildId })}\n`,
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
define: {
|
||||
__BUILD_ID__: JSON.stringify(buildId),
|
||||
},
|
||||
plugins: [
|
||||
react(),
|
||||
versionManifest(),
|
||||
VitePWA({
|
||||
// The generated worker takes over as soon as it has installed
|
||||
// (skipWaiting + clientsClaim). It must NOT wait for the page to ask it
|
||||
// to: between 2026-09-07 and 2026-09-10 this was `prompt`, and every
|
||||
// client cached in that window froze — the new worker sat in `waiting`
|
||||
// forever because the only code that could have released it (the update
|
||||
// toast) lived in the version behind that worker. Deciding *when* to
|
||||
// reload is a UI concern and stays one: `onNeedReload` in App.tsx shows
|
||||
// the toast instead of pulling the page out from under an active
|
||||
// connection.
|
||||
registerType: 'autoUpdate',
|
||||
// We register from inside the app (virtual:pwa-register/react) rather
|
||||
// than through an injected registerSW.js, because that script would
|
||||
// reload the page on its own the moment a new worker activates.
|
||||
injectRegister: false,
|
||||
// Dev-time Workbox would sit in front of Vite's own HMR/WS traffic and
|
||||
// stale-cache the app shell while iterating — only ever ship the SW in
|
||||
// production builds.
|
||||
devOptions: { enabled: false },
|
||||
includeAssets: ['favicon.ico', 'apple-touch-icon.png'],
|
||||
manifest: {
|
||||
name: 'WebSpeak3',
|
||||
short_name: 'WebSpeak3',
|
||||
description: 'An independent, self-hosted web client for TeamSpeak 3 servers.',
|
||||
theme_color: '#03060d',
|
||||
background_color: '#03060d',
|
||||
display: 'standalone',
|
||||
start_url: '.',
|
||||
icons: [
|
||||
{ src: 'favicon-192.png', sizes: '192x192', type: 'image/png' },
|
||||
{ src: 'icon-512.png', sizes: '512x512', type: 'image/png' },
|
||||
{ src: 'icon-512-maskable.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
// Both are what `registerType: 'autoUpdate'` is supposed to imply, but
|
||||
// the plugin only sets them when it also injects registerSW.js (see
|
||||
// resolveOptions: `injectRegister === 'auto' || injectRegister == null`)
|
||||
// — with injectRegister: false they have to be spelled out, or the
|
||||
// generated worker is byte-identical to the `prompt` one and strands
|
||||
// clients all over again. Verified in dist/sw.js after building.
|
||||
skipWaiting: true,
|
||||
clientsClaim: true,
|
||||
// Precache the built app shell (JS/CSS/HTML/icons) only. The gateway's
|
||||
// /ws endpoint and any file-transfer/API traffic must never be
|
||||
// intercepted or cached — Workbox's default fetch handler already
|
||||
// ignores non-GET and non-http(s) requests (ws:// isn't touched), so
|
||||
// no extra runtimeCaching exclusions are needed here.
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
|
||||
// The SPA fallback answers every navigation with index.html — except
|
||||
// the gateway's own pages under /api/ (e.g. /api/store/admin), which
|
||||
// would otherwise open the client instead when UI and gateway share
|
||||
// an origin.
|
||||
navigateFallbackDenylist: [/^\/api\//],
|
||||
},
|
||||
}),
|
||||
],
|
||||
// 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 || '/',
|
||||
|
||||
Reference in new issue
Block a user