mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 08:52:51 +08:00
Compare commits
67
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0eda9a22c | ||
|
|
bdfc0bcc10 | ||
|
|
6bdd0fa171 | ||
|
|
ccceacba07 | ||
|
|
f56990f033 | ||
|
|
a58a649818 | ||
|
|
a26b7e02ec | ||
|
|
386c6ad49b | ||
|
|
a8cf46f2da | ||
|
|
c5635102f0 | ||
|
|
27fbd3cd10 | ||
|
|
dfae1b53d2 | ||
|
|
e221c9d73d | ||
|
|
8ff35abdf1 | ||
|
|
bb152a9bda | ||
|
|
0b76f2e354 | ||
|
|
0ad64fd4f8 | ||
|
|
c6fbc04236 | ||
|
|
7deee1a8c3 | ||
|
|
69efb64db6 | ||
|
|
e917e8e906 | ||
|
|
5e2b2860ae | ||
|
|
80e36539f3 | ||
|
|
b70b4d1fc9 | ||
|
|
fd24ae740e | ||
|
|
c10572feda | ||
|
|
c305fc4e1e | ||
|
|
ec3a693292 | ||
|
|
6bc3dca567 | ||
|
|
0a1163d4f9 | ||
|
|
fee0169463 | ||
|
|
b7ef6f78e7 | ||
|
|
6e343c4d4c | ||
|
|
4847972c80 | ||
|
|
44450ab35f | ||
|
|
9d6dcebfa9 | ||
|
|
e26b02c449 | ||
|
|
f629666bc2 | ||
|
|
684e597529 | ||
|
|
79df26c3bc | ||
|
|
b4ec2a26b6 | ||
|
|
ecc07308f6 | ||
|
|
53ccb22189 | ||
|
|
17899ae137 | ||
|
|
ea7b97b161 | ||
|
|
6d6803d9b3 | ||
|
|
7901aafbb1 | ||
|
|
41ac845fbc | ||
|
|
0f8576ac6c | ||
|
|
db8b5ea958 | ||
|
|
203e8fba51 | ||
|
|
b9d4bd533d | ||
|
|
dbe9a3c2df | ||
|
|
bd0122812d | ||
|
|
4318ce359f | ||
|
|
181b0fc43b | ||
|
|
330ecccadb | ||
|
|
74f688aba8 | ||
|
|
a300daedeb | ||
|
|
46ae5b120e | ||
|
|
284645f18d | ||
|
|
67c4bc1072 | ||
|
|
7bcced06fd | ||
|
|
f5cb4dd160 | ||
|
|
a0ede4a12a | ||
|
|
6c1fec8dcc | ||
|
|
6c4ace585d |
No files matched your search
@@ -1,57 +0,0 @@
|
||||
name: Deploy demo to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "web/**"
|
||||
- ".github/workflows/deploy-demo.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: web/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: web
|
||||
run: npm ci
|
||||
|
||||
- name: Build (demo mode)
|
||||
working-directory: web
|
||||
env:
|
||||
VITE_DEMO_MODE: "true"
|
||||
VITE_BASE_PATH: /webspeak3/
|
||||
run: npm run build
|
||||
|
||||
- uses: actions/configure-pages@v5
|
||||
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: web/dist
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
@@ -0,0 +1,75 @@
|
||||
name: Safari WebSpeak3 client check
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "web/src/**"
|
||||
- "web/index.html"
|
||||
- "web/public/**"
|
||||
- ".github/workflows/safari-check.yml"
|
||||
- "tests/safari_smoke.py"
|
||||
schedule:
|
||||
- cron: "17 5 * * 1"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: safari-landing-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
safari:
|
||||
name: Safari on macOS
|
||||
runs-on: macos-15
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
cache-dependency-path: web/package-lock.json
|
||||
|
||||
- name: Install and build WebSpeak3 client
|
||||
working-directory: web
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Start local preview
|
||||
working-directory: web
|
||||
run: |
|
||||
npm run preview -- --host 127.0.0.1 --port 4173 > /tmp/webspeak3-preview.log 2>&1 &
|
||||
for attempt in {1..30}; do
|
||||
curl --fail --silent http://127.0.0.1:4173/ > /dev/null && exit 0
|
||||
sleep 1
|
||||
done
|
||||
cat /tmp/webspeak3-preview.log
|
||||
exit 1
|
||||
|
||||
- name: Prepare Safari automation
|
||||
run: |
|
||||
sudo safaridriver --enable
|
||||
python3 -m venv .venv-safari
|
||||
.venv-safari/bin/python -m pip install selenium
|
||||
|
||||
- name: Test WebSpeak3 client in Safari
|
||||
env:
|
||||
BASE_URL: http://127.0.0.1:4173/
|
||||
run: .venv-safari/bin/python tests/safari_smoke.py
|
||||
|
||||
- name: Upload Safari screenshots
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: safari-client-screenshots
|
||||
path: test-results/safari-client-*.png
|
||||
if-no-files-found: ignore
|
||||
retention-days: 14
|
||||
@@ -7,3 +7,5 @@ dist-ssr/
|
||||
.env.local
|
||||
.DS_Store
|
||||
docker-compose.override.yml
|
||||
.claude/
|
||||
CLAUDE.md
|
||||
@@ -0,0 +1,2 @@
|
||||
/cache
|
||||
/project.local.yml
|
||||
@@ -0,0 +1,170 @@
|
||||
# the name by which the project can be referenced within Serena/when chatting with the LLM.
|
||||
project_name: "ts-web-client"
|
||||
|
||||
# list of language servers to start when using the LSP backend; choose from:
|
||||
# ada al angular ansible bash
|
||||
# bsl clojure cpp cpp_ccls crystal
|
||||
# csharp csharp_omnisharp cue dart deno
|
||||
# elixir elm erlang fortran fsharp
|
||||
# gdscript gleam go groovy haskell
|
||||
# haxe hlsl html java json
|
||||
# julia kotlin latex lean4 lua
|
||||
# luau markdown matlab msl nextflow
|
||||
# nix ocaml pascal perl php
|
||||
# php_phpactor php_phpantom powershell python python_basedpyright
|
||||
# python_jedi python_pyrefly python_ty qml r
|
||||
# rego ruby ruby_solargraph rust scala
|
||||
# scss solidity svelte swift systemverilog
|
||||
# terraform toml typescript typescript_vts vue
|
||||
# wolfram yaml zig
|
||||
# (This list may be outdated; generated with scripts/print_language_list.py;
|
||||
# For the current list, see values of the LanguageServerId enum here:
|
||||
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
|
||||
# For some languages, there are several alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
|
||||
# Note:
|
||||
# - For C, use cpp
|
||||
# - For JavaScript, use typescript
|
||||
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
|
||||
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
|
||||
# - For Deno projects, use deno (serves the same .ts/.js files as typescript; requires the deno CLI on PATH)
|
||||
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
|
||||
# - For Free Pascal/Lazarus, use pascal
|
||||
# Special requirements:
|
||||
# Some language servers require additional setup/installations.
|
||||
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
|
||||
# When using multiple language servers, the first language server that supports a given file will be used for that file.
|
||||
# The first language server is the default language and the respective language server will be used as a fallback.
|
||||
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
|
||||
language_servers:
|
||||
- rust
|
||||
- typescript
|
||||
|
||||
# the encoding used by text files in the project
|
||||
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
|
||||
encoding: "utf-8"
|
||||
|
||||
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
|
||||
# the command runs in the project root directory and is only executed if the project is trusted
|
||||
# (see trusted_project_path_patterns in the global configuration).
|
||||
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
|
||||
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
|
||||
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
|
||||
# example: activation_command: "npx nx run-many -t build"
|
||||
activation_command:
|
||||
|
||||
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
|
||||
# must be a positive number.
|
||||
activation_command_timeout: 180.0
|
||||
|
||||
# line ending convention to use when writing source files.
|
||||
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
|
||||
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
|
||||
line_ending:
|
||||
|
||||
# The language backend to use for this project.
|
||||
# If not set, the global setting from serena_config.yml is used.
|
||||
# Valid values: LSP, JetBrains
|
||||
# Note: the backend is fixed at startup. If a project with a different backend
|
||||
# is activated post-init, an error will be returned.
|
||||
language_backend:
|
||||
|
||||
# whether to use project's .gitignore files to ignore files
|
||||
ignore_all_files_in_gitignore: true
|
||||
|
||||
# advanced configuration option allowing to configure language server-specific options.
|
||||
# Maps the language key to the options.
|
||||
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
|
||||
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
|
||||
ls_specific_settings: {}
|
||||
|
||||
# list of workspace folder paths (LSP backend only).
|
||||
# These folders will be used to build up Serena's symbol index.
|
||||
# Paths must be within the project root and should thus be relative to the project root.
|
||||
# Furthermore, the paths should not be filtered by ignore settings.
|
||||
# Default setting: The entire project root folder (".") is considered.
|
||||
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
|
||||
# ls_workspace_folders:
|
||||
# - "./subproject1"
|
||||
# - "./subproject2"
|
||||
ls_workspace_folders:
|
||||
- "."
|
||||
|
||||
# list of additional workspace folder paths for cross-package reference support.
|
||||
# Paths can be absolute or relative to the project root.
|
||||
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
|
||||
# symbols and references across package boundaries, but these folders are not indexed by Serena,
|
||||
# i.e. the respective symbols will not be found using Serena's symbol search tools.
|
||||
# Example:
|
||||
# additional_workspace_folders:
|
||||
# - ../sibling-package
|
||||
# - ../shared-lib
|
||||
ls_additional_workspace_folders: []
|
||||
|
||||
# list of additional paths to ignore in this project.
|
||||
# Same syntax as gitignore, so you can use * and **.
|
||||
# Important: quote patterns that start with `*`, otherwise YAML treats them as aliases.
|
||||
# Example:
|
||||
# ignored_paths:
|
||||
# - "examples/**"
|
||||
# - ".worktrees/**"
|
||||
# - "**/bin/**"
|
||||
# - "**/obj/**"
|
||||
# Note: global ignored_paths from serena_config.yml are also applied additively.
|
||||
ignored_paths: []
|
||||
|
||||
# whether the project is in read-only mode
|
||||
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
|
||||
# Added on 2025-04-18
|
||||
read_only: false
|
||||
|
||||
# list of tool names to exclude.
|
||||
# This extends the existing exclusions (e.g. from the global configuration)
|
||||
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
|
||||
excluded_tools: []
|
||||
|
||||
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
|
||||
# This extends the existing inclusions (e.g. from the global configuration).
|
||||
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
|
||||
included_optional_tools: []
|
||||
|
||||
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
|
||||
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
|
||||
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
|
||||
fixed_tools: []
|
||||
|
||||
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
|
||||
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
|
||||
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
|
||||
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
|
||||
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
|
||||
# for this project.
|
||||
# This setting can, in turn, be overridden by CLI parameters (--mode).
|
||||
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
|
||||
default_modes:
|
||||
|
||||
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
|
||||
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
|
||||
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
|
||||
added_modes:
|
||||
|
||||
# initial prompt for the project. It will always be given to the LLM upon activating the project
|
||||
# (contrary to the memories, which are loaded on demand).
|
||||
initial_prompt: ""
|
||||
|
||||
# time budget (seconds) per tool call for the retrieval of additional symbol information
|
||||
# such as docstrings or parameter information.
|
||||
# This overrides the corresponding setting in the global configuration; see the documentation there.
|
||||
# If null or missing, use the setting from the global configuration.
|
||||
symbol_info_budget:
|
||||
|
||||
# list of regex patterns which, when matched, mark a memory entry as read‑only.
|
||||
# Extends the list from the global configuration, merging the two lists.
|
||||
read_only_memory_patterns: []
|
||||
|
||||
# list of regex patterns for memories to completely ignore.
|
||||
# Matching memories will not appear in list_memories or activate_project output
|
||||
# and cannot be accessed via read_memory or write_memory.
|
||||
# To access ignored memory files, use the read_file tool on the raw file path.
|
||||
# Extends the list from the global configuration, merging the two lists.
|
||||
# Example: ["_archive/.*", "_episodes/.*"]
|
||||
ignored_memory_patterns: []
|
||||
@@ -17,13 +17,15 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://moepchi.github.io/webspeak3/">🕹️ Live Demo</a> ·
|
||||
<a href="https://webspeak3.de">🌐 Website</a> ·
|
||||
<a href="https://client.webspeak3.de">💬 Open Client</a> ·
|
||||
<a href="https://demo.webspeak3.de">🕹️ Live Demo</a> ·
|
||||
<a href="#-installation">🚀 Quick Start</a> ·
|
||||
<a href="#-installation">📖 Installation</a> ·
|
||||
<a href="https://github.com/Moepchi/webspeak3/issues">🐛 Report Bug</a>
|
||||
</p>
|
||||
|
||||
> The [live demo](https://moepchi.github.io/webspeak3/) runs entirely in your browser with simulated data — no real TeamSpeak server involved. It's there to show the UI, not the real connection.
|
||||
> 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.
|
||||
|
||||
---
|
||||
|
||||
@@ -46,10 +48,18 @@
|
||||
|---|---|
|
||||
| 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6 servers over a WebSocket gateway — the server stays exactly as-is |
|
||||
| 🎙️ **Low-latency voice** | Opus-encoded voice with voice activation ("Sprachaktivierung") and adjustable sensitivity |
|
||||
| 🤫 **Whisper** | Target your voice at specific channels or clients instead of your whole current channel |
|
||||
| 🔊 **Custom audio output picker** | Route playback to any output device — works even in browsers without `AudioContext.setSinkId` |
|
||||
| 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab |
|
||||
| 🌳 **Live channel/client tree** | Correct ordering, status icons (channel commander, away, muted, deafened), click to switch channels |
|
||||
| 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab — Shift+Enter for a newline |
|
||||
| 🌳 **Live channel/client tree** | Correct ordering, status icons (channel commander, away, muted, deafened), country flags, click to switch channels |
|
||||
| 🖱️ **Right-click context menu** | Private chat, poke, copy name, and whisper-target toggle straight from a client's row |
|
||||
| 📜 **Server log** | Join/leave/switch, channel-group, and channel/server-change events shown inline, like the native client |
|
||||
| 🔔 **Custom sound notifications** | Per-event sounds (connect, poke, messages, ...) with volume control and `.ts3soundpack` import |
|
||||
| 🪪 **Persistent identity** | Keeps the same client UID across sessions instead of generating a new one every connect |
|
||||
| 👉 **Poke & away status** | Poke clients with an optional message; set yourself away with presets or a custom status |
|
||||
| ⭐ **Favorites & reconnect** | Remembers your last server/nickname; switch servers without leaving your tab |
|
||||
| 📱 **Mobile-friendly layout** | Responsive single-column layout for narrow screens, not just a shrunk desktop UI |
|
||||
| 🌍 **Localized UI** | Interface available in German and English, detected automatically or switchable in Options |
|
||||
| 🌗 **Dark / light theme** | Clean, modern UI that adapts to your preference |
|
||||
| 🔁 **Seamless reconnect** | Switch connections mid-session — old state tears down cleanly, no leaks or duplicates |
|
||||
|
||||
|
||||
Generated
+1
@@ -2641,6 +2641,7 @@ dependencies = [
|
||||
"futures",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"time",
|
||||
"tokio",
|
||||
"tracing-subscriber",
|
||||
"tsclientlib",
|
||||
|
||||
@@ -15,3 +15,4 @@ clap = { version = "4", features = ["derive"] }
|
||||
anyhow = "1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
base64 = "0.22"
|
||||
time = "0.3"
|
||||
+1605
-18
File diff suppressed because it is too large.
Load diff
@@ -16,3 +16,15 @@ services:
|
||||
# webspeak3:
|
||||
# ports:
|
||||
# - "8080:8080"
|
||||
|
||||
cloudflared:
|
||||
image: cloudflare/cloudflared:latest
|
||||
container_name: webspeak3-cloudflared
|
||||
restart: unless-stopped
|
||||
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
|
||||
# Token comes from a gitignored .env file next to this compose file:
|
||||
# CLOUDFLARE_TUNNEL_TOKEN=eyJ...
|
||||
# No depends_on/network wiring needed - the tunnel's Public Hostname
|
||||
# config (set in the Cloudflare dashboard) points at the webspeak3
|
||||
# service by its Compose service name (http://webspeak3:8080), and
|
||||
# Compose puts both services on the same default network automatically.
|
||||
@@ -114,10 +114,154 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
await connection?.setOutputMuted(msg.muted);
|
||||
break;
|
||||
}
|
||||
case "setNickname": {
|
||||
await connection?.setNickname(msg.nickname);
|
||||
break;
|
||||
}
|
||||
case "setWhisperTargets": {
|
||||
await connection?.setWhisperTargets(msg.channelIds ?? [], msg.clientIds ?? []);
|
||||
break;
|
||||
}
|
||||
case "getClientConnectionInfo": {
|
||||
await connection?.getClientConnectionInfo(msg.clientId);
|
||||
break;
|
||||
}
|
||||
case "getServerConnectionInfo": {
|
||||
await connection?.getServerConnectionInfo();
|
||||
break;
|
||||
}
|
||||
case "kickFromChannel": {
|
||||
await connection?.kickFromChannel(msg.clientId, msg.reason ?? "");
|
||||
break;
|
||||
}
|
||||
case "kickFromServer": {
|
||||
await connection?.kickFromServer(msg.clientId, msg.reason ?? "");
|
||||
break;
|
||||
}
|
||||
case "banClient": {
|
||||
await connection?.banClient(msg.clientId, msg.seconds ?? 0, msg.reason ?? "");
|
||||
break;
|
||||
}
|
||||
case "editServer": {
|
||||
await connection?.editServer(msg.payload ?? {});
|
||||
break;
|
||||
}
|
||||
case "getServerLog": {
|
||||
await connection?.getServerLog();
|
||||
break;
|
||||
}
|
||||
case "getBanList": {
|
||||
await connection?.getBanList();
|
||||
break;
|
||||
}
|
||||
case "deleteBan": {
|
||||
await connection?.deleteBan(msg.banId);
|
||||
break;
|
||||
}
|
||||
case "deleteAllBans": {
|
||||
await connection?.deleteAllBans();
|
||||
break;
|
||||
}
|
||||
case "getComplainList": {
|
||||
await connection?.getComplainList();
|
||||
break;
|
||||
}
|
||||
case "deleteComplaint": {
|
||||
await connection?.deleteComplaint(msg.targetClientDbId, msg.fromClientDbId);
|
||||
break;
|
||||
}
|
||||
case "deleteAllComplaintsFor": {
|
||||
await connection?.deleteAllComplaintsFor(msg.targetClientDbId);
|
||||
break;
|
||||
}
|
||||
case "getOfflineMessageList": {
|
||||
await connection?.getOfflineMessageList();
|
||||
break;
|
||||
}
|
||||
case "getOfflineMessage": {
|
||||
await connection?.getOfflineMessage(msg.messageId);
|
||||
break;
|
||||
}
|
||||
case "sendOfflineMessage": {
|
||||
await connection?.sendOfflineMessage(msg.clientUid, msg.subject, msg.message);
|
||||
break;
|
||||
}
|
||||
case "deleteOfflineMessage": {
|
||||
await connection?.deleteOfflineMessage(msg.messageId);
|
||||
break;
|
||||
}
|
||||
case "markOfflineMessageRead": {
|
||||
await connection?.markOfflineMessageRead(msg.messageId);
|
||||
break;
|
||||
}
|
||||
case "getChannelGroupList": {
|
||||
await connection?.getChannelGroupList();
|
||||
break;
|
||||
}
|
||||
case "getServerGroupList": {
|
||||
await connection?.getServerGroupList();
|
||||
break;
|
||||
}
|
||||
case "setChannelGroup": {
|
||||
await connection?.setChannelGroup(msg.channelGroupId, msg.channelId, msg.clientDbId);
|
||||
break;
|
||||
}
|
||||
case "addServerGroup": {
|
||||
await connection?.addServerGroup(msg.serverGroupId, msg.clientDbId);
|
||||
break;
|
||||
}
|
||||
case "removeServerGroup": {
|
||||
await connection?.removeServerGroup(msg.serverGroupId, msg.clientDbId);
|
||||
break;
|
||||
}
|
||||
case "serverQueryLogin": {
|
||||
await connection?.serverQueryLogin(msg.username, msg.password);
|
||||
break;
|
||||
}
|
||||
case "getPermissionOverview": {
|
||||
await connection?.getPermissionOverview();
|
||||
break;
|
||||
}
|
||||
case "getFileList": {
|
||||
await connection?.getFileList(msg.channelId, msg.path);
|
||||
break;
|
||||
}
|
||||
case "createDirectory": {
|
||||
await connection?.createDirectory(msg.channelId, msg.dirname);
|
||||
break;
|
||||
}
|
||||
case "deleteFile": {
|
||||
await connection?.deleteFile(msg.channelId, msg.name);
|
||||
break;
|
||||
}
|
||||
case "renameFile": {
|
||||
await connection?.renameFile(msg.channelId, msg.oldName, msg.newName);
|
||||
break;
|
||||
}
|
||||
case "downloadFile": {
|
||||
await connection?.downloadFile(msg.channelId, msg.path);
|
||||
break;
|
||||
}
|
||||
case "uploadFile": {
|
||||
await connection?.uploadFile(msg.channelId, msg.path, msg.dataBase64);
|
||||
break;
|
||||
}
|
||||
case "getPermissionCatalog": {
|
||||
await connection?.getPermissionCatalog();
|
||||
break;
|
||||
}
|
||||
case "getPermList": {
|
||||
await connection?.getPermList(msg.scope, msg.id1, msg.id2);
|
||||
break;
|
||||
}
|
||||
case "addPermission": {
|
||||
await connection?.addPermission(msg.scope, msg.ids, msg.permId, msg.value, msg.negated, msg.skip);
|
||||
break;
|
||||
}
|
||||
case "removePermission": {
|
||||
await connection?.removePermission(msg.scope, msg.ids, msg.permId);
|
||||
break;
|
||||
}
|
||||
case "disconnect": {
|
||||
await connection?.disconnect(msg.message ?? "");
|
||||
break;
|
||||
|
||||
@@ -32,6 +32,71 @@ export interface ClientInfo {
|
||||
awayMessage: string;
|
||||
isChannelCommander: boolean;
|
||||
country: string;
|
||||
uid: string;
|
||||
databaseId: number;
|
||||
channelGroup: number;
|
||||
serverGroups: number[];
|
||||
hasTalkPower: boolean;
|
||||
}
|
||||
|
||||
export interface GroupEntry {
|
||||
id: number;
|
||||
name: string;
|
||||
iconId: number;
|
||||
}
|
||||
|
||||
export interface PermissionOverviewEntry {
|
||||
name: string;
|
||||
description: string;
|
||||
value: number;
|
||||
negated: boolean;
|
||||
skip: boolean;
|
||||
}
|
||||
|
||||
export interface PermissionCatalogEntry {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export type PermScope = "server" | "channelgroup" | "channel" | "client" | "channelclient";
|
||||
|
||||
export interface BanListEntry {
|
||||
banId: number;
|
||||
ip: string;
|
||||
name: string;
|
||||
uid: string;
|
||||
lastNickname: string;
|
||||
created: string;
|
||||
durationSecs: number;
|
||||
invokerName: string;
|
||||
reason: string;
|
||||
enforcements: number;
|
||||
}
|
||||
|
||||
export interface ComplainListEntry {
|
||||
targetClientDbId: number;
|
||||
targetName: string;
|
||||
fromClientDbId: number;
|
||||
fromName: string;
|
||||
message: string;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
export interface OfflineMessageListEntry {
|
||||
messageId: number;
|
||||
clientUid: string;
|
||||
subject: string;
|
||||
timestamp: string;
|
||||
isRead: boolean;
|
||||
}
|
||||
|
||||
export interface FileListEntry {
|
||||
path: string;
|
||||
name: string;
|
||||
size: number;
|
||||
isFile: boolean;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
export type ServerLogEntry =
|
||||
@@ -65,7 +130,51 @@ export type Ts3ConnectionEvent =
|
||||
| { type: "talkers"; clients: number[] }
|
||||
| { type: "disconnected"; reason: string }
|
||||
| { type: "error"; message: string }
|
||||
| ({ type: "serverLog" } & ServerLogEntry);
|
||||
| ({ type: "serverLog" } & ServerLogEntry)
|
||||
| {
|
||||
type: "clientConnectionInfo";
|
||||
clientId: number;
|
||||
pingMs: number | null;
|
||||
connectedSecs: number | null;
|
||||
ip: string | null;
|
||||
packetsSent: number;
|
||||
bytesSent: number;
|
||||
packetsReceived: number;
|
||||
bytesReceived: number;
|
||||
packetLossPercent: number;
|
||||
}
|
||||
| {
|
||||
type: "serverConnectionInfo";
|
||||
pingMs: number;
|
||||
connectedSecs: number;
|
||||
packetLossPercent: number;
|
||||
packetsSentTotal: number;
|
||||
bytesSentTotal: number;
|
||||
packetsReceivedTotal: number;
|
||||
bytesReceivedTotal: number;
|
||||
bandwidthSentLastSecond: number;
|
||||
bandwidthReceivedLastSecond: number;
|
||||
}
|
||||
| { type: "serverProtocolLog"; lines: string[] }
|
||||
| { type: "banList"; entries: BanListEntry[] }
|
||||
| { type: "complainList"; entries: ComplainListEntry[] }
|
||||
| { type: "offlineMessageList"; entries: OfflineMessageListEntry[] }
|
||||
| {
|
||||
type: "offlineMessage";
|
||||
messageId: number;
|
||||
clientUid: string;
|
||||
subject: string;
|
||||
message: string;
|
||||
timestamp: string;
|
||||
}
|
||||
| { type: "channelGroupList"; entries: GroupEntry[] }
|
||||
| { type: "serverGroupList"; entries: GroupEntry[] }
|
||||
| { type: "permissionOverview"; entries: PermissionOverviewEntry[] }
|
||||
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
|
||||
| { type: "fileDownloadData"; cid: number; path: string; data: string }
|
||||
| { type: "fileUploadDone"; cid: number; path: string }
|
||||
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
|
||||
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] };
|
||||
|
||||
export interface Ts3ConnectOptions {
|
||||
host: string;
|
||||
@@ -122,6 +231,11 @@ export class Ts3Connection {
|
||||
away_message: string;
|
||||
is_channel_commander: boolean;
|
||||
country: string;
|
||||
uid: string;
|
||||
database_id: number;
|
||||
channel_group: number;
|
||||
server_groups: number[];
|
||||
has_talk_power: boolean;
|
||||
}
|
||||
|
||||
interface RawChannelInfo {
|
||||
@@ -155,7 +269,87 @@ export class Ts3Connection {
|
||||
| { type: "talkers"; clients: number[] }
|
||||
| { type: "disconnected"; reason: string }
|
||||
| { type: "error"; message: string }
|
||||
| ({ type: "serverLog" } & ServerLogEntry);
|
||||
| ({ type: "serverLog" } & ServerLogEntry)
|
||||
| {
|
||||
type: "clientConnectionInfo";
|
||||
client_id: number;
|
||||
ping_ms: number | null;
|
||||
connected_secs: number | null;
|
||||
ip: string | null;
|
||||
packets_sent: number;
|
||||
bytes_sent: number;
|
||||
packets_received: number;
|
||||
bytes_received: number;
|
||||
packet_loss_percent: number;
|
||||
}
|
||||
| {
|
||||
type: "serverConnectionInfo";
|
||||
ping_ms: number;
|
||||
connected_secs: number;
|
||||
packet_loss_percent: number;
|
||||
packets_sent_total: number;
|
||||
bytes_sent_total: number;
|
||||
packets_received_total: number;
|
||||
bytes_received_total: number;
|
||||
bandwidth_sent_last_second: number;
|
||||
bandwidth_received_last_second: number;
|
||||
}
|
||||
| { type: "serverProtocolLog"; lines: string[] }
|
||||
| {
|
||||
type: "banList";
|
||||
entries: {
|
||||
ban_id: number;
|
||||
ip: string;
|
||||
name: string;
|
||||
uid: string;
|
||||
last_nickname: string;
|
||||
created: string;
|
||||
duration_secs: number;
|
||||
invoker_name: string;
|
||||
reason: string;
|
||||
enforcements: number;
|
||||
}[];
|
||||
}
|
||||
| {
|
||||
type: "complainList";
|
||||
entries: {
|
||||
target_client_db_id: number;
|
||||
target_name: string;
|
||||
from_client_db_id: number;
|
||||
from_name: string;
|
||||
message: string;
|
||||
timestamp: string;
|
||||
}[];
|
||||
}
|
||||
| {
|
||||
type: "offlineMessageList";
|
||||
entries: {
|
||||
message_id: number;
|
||||
client_uid: string;
|
||||
subject: string;
|
||||
timestamp: string;
|
||||
is_read: boolean;
|
||||
}[];
|
||||
}
|
||||
| {
|
||||
type: "offlineMessage";
|
||||
message_id: number;
|
||||
client_uid: string;
|
||||
subject: string;
|
||||
message: string;
|
||||
timestamp: string;
|
||||
}
|
||||
| { type: "channelGroupList"; entries: GroupEntry[] }
|
||||
| { type: "serverGroupList"; entries: GroupEntry[] }
|
||||
| {
|
||||
type: "permissionOverview";
|
||||
entries: { name: string; description: string; value: number; negated: boolean; skip: boolean }[];
|
||||
}
|
||||
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
|
||||
| { type: "fileDownloadData"; cid: number; path: string; data: string }
|
||||
| { type: "fileUploadDone"; cid: number; path: string }
|
||||
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
|
||||
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] };
|
||||
|
||||
if (event.type === "connected") {
|
||||
this.emit({
|
||||
@@ -192,6 +386,11 @@ export class Ts3Connection {
|
||||
awayMessage: c.away_message,
|
||||
isChannelCommander: c.is_channel_commander,
|
||||
country: c.country,
|
||||
uid: c.uid,
|
||||
databaseId: c.database_id,
|
||||
channelGroup: c.channel_group,
|
||||
serverGroups: c.server_groups,
|
||||
hasTalkPower: c.has_talk_power,
|
||||
})),
|
||||
});
|
||||
} else if (event.type === "privateMessage") {
|
||||
@@ -202,6 +401,80 @@ export class Ts3Connection {
|
||||
fromSelf: event.from_self,
|
||||
message: event.message,
|
||||
});
|
||||
} else if (event.type === "clientConnectionInfo") {
|
||||
this.emit({
|
||||
type: "clientConnectionInfo",
|
||||
clientId: event.client_id,
|
||||
pingMs: event.ping_ms,
|
||||
connectedSecs: event.connected_secs,
|
||||
ip: event.ip,
|
||||
packetsSent: event.packets_sent,
|
||||
bytesSent: event.bytes_sent,
|
||||
packetsReceived: event.packets_received,
|
||||
bytesReceived: event.bytes_received,
|
||||
packetLossPercent: event.packet_loss_percent,
|
||||
});
|
||||
} else if (event.type === "serverConnectionInfo") {
|
||||
this.emit({
|
||||
type: "serverConnectionInfo",
|
||||
pingMs: event.ping_ms,
|
||||
connectedSecs: event.connected_secs,
|
||||
packetLossPercent: event.packet_loss_percent,
|
||||
packetsSentTotal: event.packets_sent_total,
|
||||
bytesSentTotal: event.bytes_sent_total,
|
||||
packetsReceivedTotal: event.packets_received_total,
|
||||
bytesReceivedTotal: event.bytes_received_total,
|
||||
bandwidthSentLastSecond: event.bandwidth_sent_last_second,
|
||||
bandwidthReceivedLastSecond: event.bandwidth_received_last_second,
|
||||
});
|
||||
} else if (event.type === "banList") {
|
||||
this.emit({
|
||||
type: "banList",
|
||||
entries: event.entries.map((e) => ({
|
||||
banId: e.ban_id,
|
||||
ip: e.ip,
|
||||
name: e.name,
|
||||
uid: e.uid,
|
||||
lastNickname: e.last_nickname,
|
||||
created: e.created,
|
||||
durationSecs: e.duration_secs,
|
||||
invokerName: e.invoker_name,
|
||||
reason: e.reason,
|
||||
enforcements: e.enforcements,
|
||||
})),
|
||||
});
|
||||
} else if (event.type === "complainList") {
|
||||
this.emit({
|
||||
type: "complainList",
|
||||
entries: event.entries.map((e) => ({
|
||||
targetClientDbId: e.target_client_db_id,
|
||||
targetName: e.target_name,
|
||||
fromClientDbId: e.from_client_db_id,
|
||||
fromName: e.from_name,
|
||||
message: e.message,
|
||||
timestamp: e.timestamp,
|
||||
})),
|
||||
});
|
||||
} else if (event.type === "offlineMessageList") {
|
||||
this.emit({
|
||||
type: "offlineMessageList",
|
||||
entries: event.entries.map((e) => ({
|
||||
messageId: e.message_id,
|
||||
clientUid: e.client_uid,
|
||||
subject: e.subject,
|
||||
timestamp: e.timestamp,
|
||||
isRead: e.is_read,
|
||||
})),
|
||||
});
|
||||
} else if (event.type === "offlineMessage") {
|
||||
this.emit({
|
||||
type: "offlineMessage",
|
||||
messageId: event.message_id,
|
||||
clientUid: event.client_uid,
|
||||
subject: event.subject,
|
||||
message: event.message,
|
||||
timestamp: event.timestamp,
|
||||
});
|
||||
} else {
|
||||
this.emit(event);
|
||||
}
|
||||
@@ -227,6 +500,194 @@ export class Ts3Connection {
|
||||
this.child?.stdin.write(`switch ${channelId}\n`);
|
||||
}
|
||||
|
||||
async getClientConnectionInfo(clientId: number): Promise<void> {
|
||||
this.child?.stdin.write(`clientconninfo ${clientId}\n`);
|
||||
}
|
||||
|
||||
async getServerConnectionInfo(): Promise<void> {
|
||||
this.child?.stdin.write(`serverconninfo\n`);
|
||||
}
|
||||
|
||||
async kickFromChannel(clientId: number, reason: string): Promise<void> {
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`kickchannel ${clientId} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
async kickFromServer(clientId: number, reason: string): Promise<void> {
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`kickserver ${clientId} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
async banClient(clientId: number, seconds: number, reason: string): Promise<void> {
|
||||
const sanitized = reason.replace(/[\r\n]+/g, " ").trim();
|
||||
this.child?.stdin.write(`banclient ${clientId} ${Math.max(0, Math.floor(seconds))} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
/** Every field is optional - only send what actually changed. JSON.stringify
|
||||
* already escapes embedded newlines, so this is safe as a single stdin line
|
||||
* without extra sanitization. */
|
||||
async editServer(payload: {
|
||||
name?: string;
|
||||
welcomeMessage?: string;
|
||||
password?: string;
|
||||
maxClients?: number;
|
||||
hostmessage?: string;
|
||||
hostmessageMode?: string;
|
||||
hostbannerUrl?: string;
|
||||
hostbannerGfxUrl?: string;
|
||||
hostbannerGfxIntervalSecs?: number;
|
||||
hostbannerMode?: string;
|
||||
hostbuttonTooltip?: string;
|
||||
hostbuttonUrl?: string;
|
||||
hostbuttonGfxUrl?: string;
|
||||
nickname?: string;
|
||||
phoneticName?: string;
|
||||
codecEncryptionMode?: string;
|
||||
}): Promise<void> {
|
||||
this.child?.stdin.write(`serveredit ${JSON.stringify(payload)}\n`);
|
||||
}
|
||||
|
||||
async getServerLog(): Promise<void> {
|
||||
this.child?.stdin.write(`serverlog\n`);
|
||||
}
|
||||
|
||||
async getBanList(): Promise<void> {
|
||||
this.child?.stdin.write(`banlist\n`);
|
||||
}
|
||||
|
||||
async deleteBan(banId: number): Promise<void> {
|
||||
this.child?.stdin.write(`bandel ${banId}\n`);
|
||||
}
|
||||
|
||||
async deleteAllBans(): Promise<void> {
|
||||
this.child?.stdin.write(`bandelall\n`);
|
||||
}
|
||||
|
||||
async getComplainList(): Promise<void> {
|
||||
this.child?.stdin.write(`complainlist\n`);
|
||||
}
|
||||
|
||||
async deleteComplaint(targetClientDbId: number, fromClientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`complaindel ${targetClientDbId} ${fromClientDbId}\n`);
|
||||
}
|
||||
|
||||
async deleteAllComplaintsFor(targetClientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`complaindelall ${targetClientDbId}\n`);
|
||||
}
|
||||
|
||||
async getOfflineMessageList(): Promise<void> {
|
||||
this.child?.stdin.write(`messagelist\n`);
|
||||
}
|
||||
|
||||
async getOfflineMessage(messageId: number): Promise<void> {
|
||||
this.child?.stdin.write(`messageget ${messageId}\n`);
|
||||
}
|
||||
|
||||
async sendOfflineMessage(clientUid: string, subject: string, message: string): Promise<void> {
|
||||
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.child?.stdin.write(`messageadd ${sanitize(clientUid)}\t${sanitize(subject)}\t${sanitize(message)}\n`);
|
||||
}
|
||||
|
||||
async deleteOfflineMessage(messageId: number): Promise<void> {
|
||||
this.child?.stdin.write(`messagedel ${messageId}\n`);
|
||||
}
|
||||
|
||||
async markOfflineMessageRead(messageId: number): Promise<void> {
|
||||
this.child?.stdin.write(`messageupdateflag ${messageId} 1\n`);
|
||||
}
|
||||
|
||||
async getChannelGroupList(): Promise<void> {
|
||||
this.child?.stdin.write(`channelgrouplist\n`);
|
||||
}
|
||||
|
||||
async getServerGroupList(): Promise<void> {
|
||||
this.child?.stdin.write(`servergrouplist\n`);
|
||||
}
|
||||
|
||||
async setChannelGroup(channelGroupId: number, channelId: number, clientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`setchannelgroup ${channelGroupId} ${channelId} ${clientDbId}\n`);
|
||||
}
|
||||
|
||||
async addServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`addservergroup ${serverGroupId} ${clientDbId}\n`);
|
||||
}
|
||||
|
||||
async removeServerGroup(serverGroupId: number, clientDbId: number): Promise<void> {
|
||||
this.child?.stdin.write(`delservergroup ${serverGroupId} ${clientDbId}\n`);
|
||||
}
|
||||
|
||||
async serverQueryLogin(username: string, password: string): Promise<void> {
|
||||
const u = Buffer.from(username, "utf8").toString("base64");
|
||||
const p = Buffer.from(password, "utf8").toString("base64");
|
||||
this.child?.stdin.write(`serverquerylogin ${u} ${p}\n`);
|
||||
}
|
||||
|
||||
async getPermissionOverview(): Promise<void> {
|
||||
this.child?.stdin.write(`permoverview\n`);
|
||||
}
|
||||
|
||||
async getPermissionCatalog(): Promise<void> {
|
||||
this.child?.stdin.write(`permissionlist\n`);
|
||||
}
|
||||
|
||||
async getPermList(scope: PermScope, id1: number, id2?: number): Promise<void> {
|
||||
const args = id2 !== undefined ? `${scope} ${id1} ${id2}` : `${scope} ${id1}`;
|
||||
this.child?.stdin.write(`permlist ${args}\n`);
|
||||
}
|
||||
|
||||
/** `negated`/`skip` only apply to the "server" and "client" scopes - the
|
||||
* connector ignores extra trailing args for scopes that don't use them, so
|
||||
* it's safe to always pass through what the caller gave. */
|
||||
async addPermission(
|
||||
scope: PermScope,
|
||||
ids: number[],
|
||||
permId: number,
|
||||
value: number,
|
||||
negated = false,
|
||||
skip = false
|
||||
): Promise<void> {
|
||||
let args = `${scope} ${ids.join(" ")} ${permId} ${value}`;
|
||||
if (scope === "server") args += ` ${negated ? 1 : 0} ${skip ? 1 : 0}`;
|
||||
else if (scope === "client") args += ` ${skip ? 1 : 0}`;
|
||||
this.child?.stdin.write(`permadd ${args}\n`);
|
||||
}
|
||||
|
||||
async removePermission(scope: PermScope, ids: number[], permId: number): Promise<void> {
|
||||
this.child?.stdin.write(`permdel ${scope} ${ids.join(" ")} ${permId}\n`);
|
||||
}
|
||||
|
||||
async getFileList(channelId: number, path: string): Promise<void> {
|
||||
const sanitized = (path || "/").replace(/[\r\n]+/g, " ").trim() || "/";
|
||||
this.child?.stdin.write(`ftlist ${channelId} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
async createDirectory(channelId: number, dirname: string): Promise<void> {
|
||||
const sanitized = dirname.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`ftmkdir ${channelId} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
async deleteFile(channelId: number, name: string): Promise<void> {
|
||||
const sanitized = name.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`ftdelete ${channelId} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
async renameFile(channelId: number, oldName: string, newName: string): Promise<void> {
|
||||
const sanitize = (s: string) => s.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.child?.stdin.write(`ftrename ${channelId}\t${sanitize(oldName)}\t${sanitize(newName)}\n`);
|
||||
}
|
||||
|
||||
async downloadFile(channelId: number, path: string): Promise<void> {
|
||||
const sanitized = path.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`ftdownload ${channelId} ${sanitized}\n`);
|
||||
}
|
||||
|
||||
/** `dataBase64` is the raw file content, base64-encoded - the browser reads
|
||||
* the picked File as a data URL/ArrayBuffer and sends it up already encoded. */
|
||||
async uploadFile(channelId: number, path: string, dataBase64: string): Promise<void> {
|
||||
const sanitizedPath = path.replace(/[\r\n\t]+/g, " ").trim();
|
||||
this.child?.stdin.write(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}\n`);
|
||||
}
|
||||
|
||||
async sendChatMessage(message: string): Promise<void> {
|
||||
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`chat ${sanitized}\n`);
|
||||
@@ -268,6 +729,11 @@ export class Ts3Connection {
|
||||
this.child?.stdin.write(`muteoutput ${muted ? "1" : "0"}\n`);
|
||||
}
|
||||
|
||||
async setNickname(nickname: string): Promise<void> {
|
||||
const sanitized = nickname.replace(/[\r\n]+/g, " ").trim();
|
||||
if (sanitized) this.child?.stdin.write(`nickname ${sanitized}\n`);
|
||||
}
|
||||
|
||||
/** Empty channelIds/clientIds clears whisper mode, returning outgoing
|
||||
* voice to the normal current-channel broadcast. */
|
||||
async setWhisperTargets(channelIds: number[], clientIds: number[]): Promise<void> {
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
|
||||
|
||||
BASE_URL = os.environ.get("BASE_URL", "https://client.webspeak3.de/")
|
||||
RESULTS = Path("test-results")
|
||||
RESULTS.mkdir(exist_ok=True)
|
||||
|
||||
|
||||
def wait_for_text(driver: webdriver.Safari, selector: str, text: str) -> None:
|
||||
WebDriverWait(driver, 15).until(
|
||||
lambda current: text in current.find_element(By.CSS_SELECTOR, selector).text
|
||||
)
|
||||
|
||||
|
||||
def check_page(driver: webdriver.Safari, width: int, height: int, label: str) -> None:
|
||||
driver.set_window_size(width, height)
|
||||
driver.get(BASE_URL)
|
||||
|
||||
wait_for_text(driver, ".ts-app-title", "WebSpeak3")
|
||||
assert "WebSpeak3" in driver.title
|
||||
|
||||
capabilities = driver.execute_script(
|
||||
"""
|
||||
return {
|
||||
secureContext: window.isSecureContext,
|
||||
mediaDevices: Boolean(navigator.mediaDevices),
|
||||
getUserMedia: typeof navigator.mediaDevices?.getUserMedia === 'function',
|
||||
audioContext: typeof (window.AudioContext || window.webkitAudioContext) === 'function',
|
||||
webSocket: typeof window.WebSocket === 'function'
|
||||
};
|
||||
"""
|
||||
)
|
||||
assert capabilities["secureContext"]
|
||||
assert capabilities["mediaDevices"]
|
||||
assert capabilities["getUserMedia"]
|
||||
assert capabilities["audioContext"]
|
||||
assert capabilities["webSocket"]
|
||||
|
||||
connections_menu = driver.find_element(By.CSS_SELECTOR, ".ts-menubar-dropdown .ts-menubar-item")
|
||||
driver.execute_script("arguments[0].click()", connections_menu)
|
||||
connect_item = WebDriverWait(driver, 10).until(
|
||||
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-menu .ts-menu-item")
|
||||
)
|
||||
driver.execute_script("arguments[0].click()", connect_item)
|
||||
dialog = WebDriverWait(driver, 10).until(
|
||||
lambda current: current.find_element(By.CSS_SELECTOR, ".ts-connect-dialog")
|
||||
)
|
||||
assert dialog.is_displayed()
|
||||
assert len(dialog.find_elements(By.CSS_SELECTOR, "input")) >= 3
|
||||
|
||||
driver.save_screenshot(str(RESULTS / f"safari-client-{label}.png"))
|
||||
|
||||
|
||||
def main() -> None:
|
||||
options = webdriver.SafariOptions()
|
||||
driver = webdriver.Safari(options=options)
|
||||
try:
|
||||
check_page(driver, 1440, 1000, "desktop")
|
||||
check_page(driver, 390, 844, "mobile")
|
||||
finally:
|
||||
driver.quit()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,68 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#071018" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<link rel="icon" href="../favicon.ico" />
|
||||
<link rel="canonical" href="https://webspeak3.de/" />
|
||||
|
||||
<title>WebSpeak3 – TeamSpeak 3 im Browser | Open Source</title>
|
||||
<meta name="description" content="WebSpeak3 bringt TeamSpeak 3 mit Voice, Chat, Channel Tree und Whisper in den Browser. Open Source, mobil und vollständig selbst hostbar per Docker." />
|
||||
<meta name="keywords" content="TeamSpeak 3 Browser, TS3 Web Client, TeamSpeak Web Client, WebSpeak3, self-hosted voice chat, Docker, Open Source" />
|
||||
<meta name="author" content="Moepchi" />
|
||||
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
|
||||
<meta name="googlebot" content="index, follow" />
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:locale" content="de_DE" />
|
||||
<meta property="og:site_name" content="WebSpeak3" />
|
||||
<meta property="og:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
|
||||
<meta property="og:description" content="Der moderne, quelloffene und selbst gehostete Browser-Client für TeamSpeak 3 – mit Voice, Chat, Whisper und mobiler Oberfläche." />
|
||||
<meta property="og:url" content="https://webspeak3.de/" />
|
||||
<meta property="og:image" content="https://webspeak3.de/og-image.png" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
<meta property="og:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
|
||||
<meta name="twitter:description" content="Open Source, mobil und selbst hostbar: Voice, Chat, Channel Tree und Whisper direkt im Browser." />
|
||||
<meta name="twitter:image" content="https://webspeak3.de/og-image.png" />
|
||||
<meta name="twitter:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SoftwareApplication",
|
||||
"name": "WebSpeak3",
|
||||
"description": "Ein moderner, quelloffener und selbst gehosteter Browser-Client für TeamSpeak 3 Server.",
|
||||
"url": "https://webspeak3.de/",
|
||||
"downloadUrl": "https://github.com/Moepchi/webspeak3",
|
||||
"softwareHelp": "https://github.com/Moepchi/webspeak3#-installation",
|
||||
"applicationCategory": "CommunicationApplication",
|
||||
"applicationSubCategory": "VoiceChatApplication",
|
||||
"operatingSystem": "Any modern web browser",
|
||||
"isAccessibleForFree": true,
|
||||
"license": "https://github.com/Moepchi/webspeak3/blob/main/LICENSE",
|
||||
"codeRepository": "https://github.com/Moepchi/webspeak3",
|
||||
"image": "https://webspeak3.de/og-image.png",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Moepchi",
|
||||
"url": "https://github.com/Moepchi"
|
||||
},
|
||||
"offers": {
|
||||
"@type": "Offer",
|
||||
"price": "0",
|
||||
"priceCurrency": "EUR"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="landing-root"></div>
|
||||
<script type="module" src="../src/landing.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
/landing/ / 301
|
||||
/landing / 301
|
||||
/index.html / 301
|
||||
/ /landing/index.html 200
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 379 KiB |
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://webspeak3.de/sitemap.xml
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 421 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 820 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 811 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://webspeak3.de/</loc>
|
||||
<lastmod>2026-08-11</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
+721
-1
@@ -440,6 +440,42 @@
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-info-connection-link {
|
||||
margin-top: 0.5rem;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
color: var(--accent);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ts-info-connection-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.ts-connection-info-dialog {
|
||||
width: 380px;
|
||||
}
|
||||
|
||||
.ts-connection-info-loading {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-connection-info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 0.35rem 0.75rem;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-connection-info-grid span:nth-child(odd) {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-row-selected {
|
||||
background: var(--row-hover);
|
||||
outline: 1px solid var(--border);
|
||||
@@ -465,6 +501,8 @@
|
||||
border-radius: 2px;
|
||||
white-space: nowrap;
|
||||
line-height: 18px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.ts-server-row {
|
||||
@@ -507,6 +545,14 @@
|
||||
background: color-mix(in srgb, #4caf50 15%, transparent);
|
||||
}
|
||||
|
||||
.ts-client-icons {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
margin-left: auto;
|
||||
padding-right: 0.3rem;
|
||||
}
|
||||
|
||||
.ts-status-icons {
|
||||
display: inline-flex;
|
||||
gap: 0.15rem;
|
||||
@@ -514,8 +560,32 @@
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.ts-group-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
object-fit: contain;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-group-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ts-poke-button {
|
||||
margin-left: auto;
|
||||
/* No margin-left: auto here - .ts-client-icons already has one, and two
|
||||
auto margins in the same row split the free space between them (leaving
|
||||
a gap before the icons instead of pushing the whole trailing group
|
||||
flush to the edge). Let the poke button just trail the icon cluster. */
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
@@ -541,6 +611,20 @@
|
||||
background: color-mix(in srgb, var(--log-error) 30%, var(--button-bg-1)) !important;
|
||||
}
|
||||
|
||||
.ts-recording-on {
|
||||
background: color-mix(in srgb, var(--log-error) 35%, var(--button-bg-1)) !important;
|
||||
animation: ts-recording-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ts-recording-pulse {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.55;
|
||||
}
|
||||
}
|
||||
|
||||
.ts-client-away-message {
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
@@ -767,6 +851,612 @@
|
||||
width: 420px;
|
||||
}
|
||||
|
||||
.ts-collected-urls-dialog {
|
||||
width: 700px;
|
||||
}
|
||||
|
||||
.ts-invite-friend-dialog {
|
||||
width: 520px;
|
||||
}
|
||||
|
||||
.ts-client-log-dialog {
|
||||
width: 760px;
|
||||
}
|
||||
|
||||
.ts-whisper-history-dialog {
|
||||
width: 560px;
|
||||
}
|
||||
|
||||
.ts-contacts-dialog {
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
.ts-contacts-body {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.ts-contacts-list-col {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ts-contacts-fields-col {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-contacts-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 3px;
|
||||
height: 220px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ts-contacts-list-item {
|
||||
padding: 0.3rem 0.5rem;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-contacts-list-item:hover {
|
||||
background: var(--hover-bg, rgba(255, 255, 255, 0.05));
|
||||
}
|
||||
|
||||
.ts-contacts-list-item-selected {
|
||||
background: var(--accent-soft, rgba(78, 161, 247, 0.2));
|
||||
}
|
||||
|
||||
.ts-contacts-list-empty {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-contacts-online-dot {
|
||||
display: inline-block;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #4caf50;
|
||||
margin-right: 0.4rem;
|
||||
}
|
||||
|
||||
.ts-contacts-category-acquaintance {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-contacts-category-friend {
|
||||
color: #4caf50;
|
||||
}
|
||||
|
||||
.ts-contacts-category-blocked {
|
||||
color: #e5534b;
|
||||
}
|
||||
|
||||
.ts-contacts-category-group {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-contacts-actions {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
padding-top: 0.4rem;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-whisper-history-list {
|
||||
height: 260px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-whisper-history-empty {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-whisper-history-row {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
padding: 0.3rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-whisper-lists-dialog {
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-list {
|
||||
list-style: none;
|
||||
margin: 0.5rem 0 0;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 3px;
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
padding: 0.4rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-item-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-item-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-item-detail {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-item-actions {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-whisper-lists-empty {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-identities-dialog {
|
||||
width: 520px;
|
||||
}
|
||||
|
||||
.ts-identities-body {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.ts-identities-list-label {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.ts-identities-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 3px;
|
||||
width: 180px;
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ts-identities-list li {
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-identities-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.ts-identities-list-item {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0.35rem 0.5rem;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-identities-list-item-default {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ts-identities-detail {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.ts-identities-readonly {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-identities-status {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-log-level-row {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ts-log-list {
|
||||
height: 320px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 3px;
|
||||
font-family: monospace;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-log-row {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
padding: 0.15rem 0.4rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ts-server-protocol-log-dialog {
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
.ts-ban-list-dialog,
|
||||
.ts-complain-list-dialog {
|
||||
width: 720px;
|
||||
}
|
||||
|
||||
.ts-ban-list-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-ban-list-table th,
|
||||
.ts-ban-list-table td {
|
||||
text-align: left;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.ts-ban-list-table th {
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ts-dialog-buttons-left {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-offline-messages-dialog {
|
||||
width: 720px;
|
||||
}
|
||||
|
||||
.ts-offline-message-compose,
|
||||
.ts-offline-message-detail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-offline-message-detail-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-offline-message-detail-uid {
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-offline-message-detail-body {
|
||||
white-space: pre-wrap;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-offline-message-compose textarea {
|
||||
resize: vertical;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.ts-group-assign-dialog {
|
||||
width: 420px;
|
||||
}
|
||||
|
||||
.ts-group-assign-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.15rem;
|
||||
}
|
||||
|
||||
.ts-group-assign-list .ts-menu-item {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ts-group-assign-current {
|
||||
background: var(--bg-hover, rgba(255, 255, 255, 0.06));
|
||||
}
|
||||
|
||||
.ts-group-assign-hint {
|
||||
margin-left: auto;
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-permission-overview-dialog {
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
.ts-permission-overview-scroll {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ts-file-browser-dialog {
|
||||
width: 680px;
|
||||
}
|
||||
|
||||
.ts-file-browser-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ts-file-browser-path {
|
||||
flex: 1;
|
||||
font-family: monospace;
|
||||
color: var(--text-muted);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ts-file-browser-actions {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.ts-link-button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--accent, #4a9eff);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ts-link-button:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.ts-server-icons-dialog {
|
||||
width: 560px;
|
||||
}
|
||||
|
||||
.ts-server-icons-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
|
||||
gap: 0.6rem;
|
||||
max-height: 420px;
|
||||
overflow-y: auto;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.ts-server-icons-tile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.4rem;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-server-icons-tile img,
|
||||
.ts-server-icons-tile-loading {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.ts-server-icons-tile-loading {
|
||||
background: var(--border-soft);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.ts-perms-editor-dialog {
|
||||
width: 820px;
|
||||
max-width: 95vw;
|
||||
}
|
||||
|
||||
.ts-perms-editor-tabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ts-perms-editor-tab {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0.5rem 0.8rem;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
.ts-perms-editor-tab-active {
|
||||
color: var(--text);
|
||||
border-bottom-color: var(--accent, #4a9eff);
|
||||
}
|
||||
|
||||
.ts-perms-editor-body {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.ts-perms-editor-picker {
|
||||
width: 180px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-perms-editor-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
max-height: 380px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.ts-perms-editor-list li {
|
||||
padding: 0.3rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-perms-editor-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.ts-perms-editor-list-empty {
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-perms-editor-selected {
|
||||
font-weight: bold;
|
||||
color: var(--accent, #4a9eff);
|
||||
}
|
||||
|
||||
.ts-perms-editor-client-picker {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.ts-perms-editor-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ts-perms-editor-add-form {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 0.5rem;
|
||||
padding: 0.4rem;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.ts-server-protocol-log-line {
|
||||
padding: 0.15rem 0.4rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.ts-log-time {
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-log-category {
|
||||
flex-shrink: 0;
|
||||
width: 90px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.ts-log-level {
|
||||
flex-shrink: 0;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.ts-log-message {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.ts-log-row-critical .ts-log-level,
|
||||
.ts-log-row-error .ts-log-level {
|
||||
color: #e5534b;
|
||||
}
|
||||
|
||||
.ts-log-row-warning .ts-log-level {
|
||||
color: #e5c34b;
|
||||
}
|
||||
|
||||
.ts-collected-urls-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
max-height: 360px;
|
||||
display: block;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ts-collected-urls-table thead,
|
||||
.ts-collected-urls-table tbody {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.ts-collected-urls-table th {
|
||||
text-align: left;
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
padding: 0.3rem 0.4rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-collected-urls-table td {
|
||||
padding: 0.3rem 0.4rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ts-collected-urls-table a {
|
||||
color: var(--link, #4ea1f7);
|
||||
}
|
||||
|
||||
.ts-away-dialog .ts-dialog-row {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -1274,10 +1964,40 @@
|
||||
padding: 0.3rem 0.7rem;
|
||||
}
|
||||
|
||||
.ts-serverquery-login-compose {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.ts-serverquery-login-compose input {
|
||||
min-width: 260px;
|
||||
}
|
||||
|
||||
.ts-poke-compose button:hover {
|
||||
background: linear-gradient(var(--button-bg-hover-1), var(--button-bg-hover-2));
|
||||
}
|
||||
|
||||
.ts-ban-compose {
|
||||
flex-wrap: wrap;
|
||||
max-width: 380px;
|
||||
}
|
||||
|
||||
.ts-ban-duration-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-ban-duration-field select {
|
||||
background: var(--input-bg);
|
||||
color: var(--input-text);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
padding: 0.2rem 0.4rem;
|
||||
}
|
||||
|
||||
.ts-poke-notice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
+4476
-81
File diff suppressed because it is too large.
Load diff
+404
-5
@@ -29,6 +29,11 @@ interface DemoClient {
|
||||
awayMessage: string;
|
||||
isChannelCommander: boolean;
|
||||
country: string;
|
||||
uid: string;
|
||||
databaseId: number;
|
||||
channelGroup: number;
|
||||
serverGroups: number[];
|
||||
hasTalkPower: boolean;
|
||||
}
|
||||
|
||||
const DEMO_CHANNELS: DemoChannel[] = [
|
||||
@@ -37,13 +42,116 @@ const DEMO_CHANNELS: DemoChannel[] = [
|
||||
{ id: 3, parent: 0, order: 2, name: "AFK", topic: "", codec: "Opus Voice", maxClients: null, hasPassword: false },
|
||||
];
|
||||
|
||||
const DEMO_NPCS: DemoClient[] = [
|
||||
{ id: 102, channel: 1, name: "Alex", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: true, country: "US" },
|
||||
{ id: 103, channel: 2, name: "Sam", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "GB" },
|
||||
{ id: 104, channel: 2, name: "Jordan", inputMuted: true, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "CA" },
|
||||
{ id: 105, channel: 3, name: "Riley", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: true, awayMessage: "brb, grabbing coffee", isChannelCommander: false, country: "DE" },
|
||||
const DEMO_CHANNEL_GROUPS = [
|
||||
{ id: 1, name: "Channel Admin", iconId: 0 },
|
||||
{ id: 2, name: "Operator", iconId: 0 },
|
||||
{ id: 3, name: "Voice", iconId: 0 },
|
||||
{ id: 4, name: "Guest", iconId: 0 },
|
||||
];
|
||||
|
||||
const DEMO_SERVER_GROUPS = [
|
||||
{ id: 1, name: "Server Admin", iconId: 0 },
|
||||
{ id: 2, name: "Moderator", iconId: 0 },
|
||||
{ id: 3, name: "Trusted", iconId: 0 },
|
||||
{ id: 4, name: "Guest", iconId: 0 },
|
||||
];
|
||||
|
||||
const DEMO_NPCS: DemoClient[] = [
|
||||
{ id: 102, channel: 1, name: "Alex", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: true, country: "US", uid: "demo-uid-alex", databaseId: 2, channelGroup: 2, serverGroups: [2], hasTalkPower: true },
|
||||
{ id: 103, channel: 2, name: "Sam", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "GB", uid: "demo-uid-sam", databaseId: 3, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
|
||||
{ id: 104, channel: 2, name: "Jordan", inputMuted: true, outputMuted: false, inputHardwareEnabled: true, away: false, awayMessage: "", isChannelCommander: false, country: "CA", uid: "demo-uid-jordan", databaseId: 4, channelGroup: 4, serverGroups: [4], hasTalkPower: true },
|
||||
{ id: 105, channel: 3, name: "Riley", inputMuted: false, outputMuted: false, inputHardwareEnabled: true, away: true, awayMessage: "brb, grabbing coffee", isChannelCommander: false, country: "DE", uid: "demo-uid-riley", databaseId: 5, channelGroup: 4, serverGroups: [3, 4], hasTalkPower: true },
|
||||
];
|
||||
|
||||
interface DemoFileEntry {
|
||||
path: string;
|
||||
name: string;
|
||||
size: number;
|
||||
isFile: boolean;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
/** Keyed by "<channelId>:<path>" - a tiny in-memory filesystem so the
|
||||
* channel file browser has something real to navigate/mutate in the demo. */
|
||||
const DEMO_FILES: Record<string, DemoFileEntry[]> = {
|
||||
"1:/": [
|
||||
{ path: "/", name: "readme.txt", size: 182, isFile: true, timestamp: "2024-01-01 12:00:00" },
|
||||
{ path: "/", name: "Musik", size: 0, isFile: false, timestamp: "2024-01-01 12:00:00" },
|
||||
],
|
||||
"1:/Musik": [
|
||||
{ path: "/Musik", name: "lobby-theme.mp3", size: 4 * 1024 * 1024, isFile: true, timestamp: "2024-01-02 09:30:00" },
|
||||
],
|
||||
"2:/": [],
|
||||
"3:/": [],
|
||||
// Channel 0 is TS3's special server-wide icon repository, not a real channel.
|
||||
"0:/": [
|
||||
{ path: "/", name: "icon_100", size: 68, isFile: true, timestamp: "2024-01-01 12:00:00" },
|
||||
{ path: "/", name: "icon_200", size: 68, isFile: true, timestamp: "2024-01-01 12:00:00" },
|
||||
],
|
||||
};
|
||||
|
||||
// A tiny 1x1 transparent PNG, reused as the fake image data for every demo icon.
|
||||
const DEMO_ICON_PNG_BASE64 =
|
||||
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=";
|
||||
|
||||
function demoFileKey(channelId: number, path: string): string {
|
||||
return `${channelId}:${path}`;
|
||||
}
|
||||
|
||||
function demoNowTimestamp(): string {
|
||||
return new Date().toISOString().slice(0, 19).replace("T", " ");
|
||||
}
|
||||
|
||||
interface DemoPermEntry {
|
||||
name: string;
|
||||
description: string;
|
||||
value: number;
|
||||
negated: boolean;
|
||||
skip: boolean;
|
||||
}
|
||||
|
||||
// A small fake permission catalog (real TS3 servers expose ~500 of these) -
|
||||
// enough for the permissions editor's "add permission" picker to be usable.
|
||||
const DEMO_PERMISSION_CATALOG: { id: number; name: string; description: string }[] = [
|
||||
{ id: 1, name: "b_client_info_view", description: "View own client info" },
|
||||
{ id: 2, name: "b_client_permissionoverview_view", description: "View permission overview" },
|
||||
{ id: 3, name: "i_channel_join_power", description: "Power to join channels" },
|
||||
{ id: 4, name: "i_client_talk_power", description: "Talk power" },
|
||||
{ id: 5, name: "b_client_use_priority_speaker", description: "Use priority speaker" },
|
||||
{ id: 6, name: "i_client_max_channel_subscriptions", description: "Max channel subscriptions" },
|
||||
{ id: 7, name: "b_channel_join_permanent", description: "Join permanent channels" },
|
||||
{ id: 8, name: "b_client_kick_from_channel", description: "Kick client from channel" },
|
||||
{ id: 9, name: "b_client_kick_from_server", description: "Kick client from server" },
|
||||
{ id: 10, name: "b_client_ban_client", description: "Ban client" },
|
||||
{ id: 11, name: "i_channel_create_modify_power", description: "Power to create/modify channels" },
|
||||
{ id: 12, name: "b_virtualserver_modify_name", description: "Modify server name" },
|
||||
{ id: 13, name: "b_ft_file_upload", description: "Upload files" },
|
||||
{ id: 14, name: "b_ft_file_download", description: "Download files" },
|
||||
];
|
||||
|
||||
// Keyed by "<scope>:<id1>:<id2 ?? ->" - the fake permission set currently
|
||||
// assigned to one server group / channel group / channel / client /
|
||||
// channel+client combination.
|
||||
const DEMO_PERM_LISTS: Record<string, DemoPermEntry[]> = {
|
||||
"server:1:-": [
|
||||
{ name: "b_client_kick_from_server", description: "Kick client from server", value: 1, negated: false, skip: false },
|
||||
{ name: "b_client_ban_client", description: "Ban client", value: 1, negated: false, skip: false },
|
||||
],
|
||||
"server:4:-": [
|
||||
{ name: "i_channel_join_power", description: "Power to join channels", value: 25, negated: false, skip: false },
|
||||
],
|
||||
"channelgroup:1:-": [
|
||||
{ name: "i_channel_create_modify_power", description: "Power to create/modify channels", value: 75, negated: false, skip: false },
|
||||
],
|
||||
"client:1:-": [
|
||||
{ name: "b_client_info_view", description: "View own client info", value: 1, negated: false, skip: false },
|
||||
],
|
||||
};
|
||||
|
||||
function demoPermKey(scope: string, id1: number, id2?: number): string {
|
||||
return `${scope}:${id1}:${id2 ?? "-"}`;
|
||||
}
|
||||
|
||||
const SELF_ID = 101;
|
||||
|
||||
/**
|
||||
@@ -62,6 +170,8 @@ export class DemoSocket {
|
||||
private closed = false;
|
||||
private timers: number[] = [];
|
||||
private selfChannel = 1;
|
||||
private selfChannelGroup = 4;
|
||||
private selfServerGroups = new Set<number>([4]);
|
||||
|
||||
constructor() {
|
||||
this.after(400, () => {
|
||||
@@ -166,6 +276,290 @@ export class DemoSocket {
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "getClientConnectionInfo": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "clientConnectionInfo",
|
||||
clientId: msg.clientId,
|
||||
pingMs: 12.4,
|
||||
connectedSecs: 217,
|
||||
ip: msg.clientId === SELF_ID ? "127.0.0.1" : null,
|
||||
packetsSent: 4213,
|
||||
bytesSent: 512_340,
|
||||
packetsReceived: 3987,
|
||||
bytesReceived: 498_120,
|
||||
packetLossPercent: 0,
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "getServerConnectionInfo": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "serverConnectionInfo",
|
||||
pingMs: 8.1,
|
||||
connectedSecs: 217,
|
||||
packetLossPercent: 0,
|
||||
packetsSentTotal: 21_004,
|
||||
bytesSentTotal: 2_411_000,
|
||||
packetsReceivedTotal: 19_872,
|
||||
bytesReceivedTotal: 2_198_500,
|
||||
bandwidthSentLastSecond: 4200,
|
||||
bandwidthReceivedLastSecond: 3900,
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "getServerLog": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "serverProtocolLog",
|
||||
lines: [
|
||||
"2026-08-05 10:12:03.421128|INFO |VirtualServerBase|1 |connect to server successful, connection accepted",
|
||||
"2026-08-05 10:12:04.001912|INFO |VirtualServerBase|1 |client 'Guest'(id:101) connected",
|
||||
"2026-08-05 10:14:19.552031|INFO |VirtualServerBase|1 |client 'Sam'(id:103) connected",
|
||||
"2026-08-05 10:15:02.884120|INFO |VirtualServerBase|1 |client 'Jordan'(id:104) switched channel",
|
||||
],
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "getBanList": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "banList",
|
||||
entries: [
|
||||
{
|
||||
banId: 1,
|
||||
ip: "203.0.113.42",
|
||||
name: "TrollUser",
|
||||
uid: "demo-uid-troll",
|
||||
lastNickname: "TrollUser",
|
||||
created: "2026-07-28 14:02:11",
|
||||
durationSecs: 0,
|
||||
invokerName: "Alex",
|
||||
reason: "Spamming the server chat",
|
||||
enforcements: 0,
|
||||
},
|
||||
{
|
||||
banId: 2,
|
||||
ip: "198.51.100.7",
|
||||
name: "",
|
||||
uid: "demo-uid-annoying",
|
||||
lastNickname: "AnnoyingGuest",
|
||||
created: "2026-08-01 09:44:53",
|
||||
durationSecs: 3600,
|
||||
invokerName: "Sam",
|
||||
reason: "Repeated channel spam",
|
||||
enforcements: 1,
|
||||
},
|
||||
],
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "deleteBan":
|
||||
case "deleteAllBans":
|
||||
// No observable effect - the frontend already optimistically removes
|
||||
// the deleted row(s) from its own state.
|
||||
break;
|
||||
case "getComplainList": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "complainList",
|
||||
entries: [
|
||||
{
|
||||
targetClientDbId: 104,
|
||||
targetName: "Jordan",
|
||||
fromClientDbId: 103,
|
||||
fromName: "Sam",
|
||||
message: "Kept talking over everyone in voice chat.",
|
||||
timestamp: "2026-08-02 18:21:07",
|
||||
},
|
||||
],
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "deleteComplaint":
|
||||
case "deleteAllComplaintsFor":
|
||||
break;
|
||||
case "getOfflineMessageList": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "offlineMessageList",
|
||||
entries: [
|
||||
{
|
||||
messageId: 1,
|
||||
clientUid: "demo-uid-sam",
|
||||
subject: "Missed you online",
|
||||
timestamp: "2026-08-03 20:11:44",
|
||||
isRead: false,
|
||||
},
|
||||
],
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "getOfflineMessage": {
|
||||
this.after(300, () =>
|
||||
this.emit({
|
||||
type: "offlineMessage",
|
||||
messageId: msg.messageId,
|
||||
clientUid: "demo-uid-sam",
|
||||
subject: "Missed you online",
|
||||
message: "Hey, we were on last night in the Gaming channel - join us next time!",
|
||||
timestamp: "2026-08-03 20:11:44",
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "sendOfflineMessage":
|
||||
case "deleteOfflineMessage":
|
||||
case "markOfflineMessageRead":
|
||||
// No observable effect - the frontend already optimistically updates
|
||||
// its own state for delete/read, and there's no NPC to reply to a send.
|
||||
break;
|
||||
case "getChannelGroupList":
|
||||
this.after(300, () => this.emit({ type: "channelGroupList", entries: DEMO_CHANNEL_GROUPS }));
|
||||
break;
|
||||
case "getServerGroupList":
|
||||
this.after(300, () => this.emit({ type: "serverGroupList", entries: DEMO_SERVER_GROUPS }));
|
||||
break;
|
||||
case "setChannelGroup": {
|
||||
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
|
||||
if (npc) npc.channelGroup = msg.channelGroupId;
|
||||
else if (msg.clientDbId === 1) this.selfChannelGroup = msg.channelGroupId;
|
||||
this.after(200, () => this.sendChannels(this.lastNickname));
|
||||
break;
|
||||
}
|
||||
case "addServerGroup": {
|
||||
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
|
||||
if (npc) {
|
||||
if (!npc.serverGroups.includes(msg.serverGroupId)) npc.serverGroups.push(msg.serverGroupId);
|
||||
} else if (msg.clientDbId === 1) {
|
||||
this.selfServerGroups.add(msg.serverGroupId);
|
||||
}
|
||||
this.after(200, () => this.sendChannels(this.lastNickname));
|
||||
break;
|
||||
}
|
||||
case "removeServerGroup": {
|
||||
const npc = DEMO_NPCS.find((c) => c.databaseId === msg.clientDbId);
|
||||
if (npc) {
|
||||
npc.serverGroups = npc.serverGroups.filter((g) => g !== msg.serverGroupId);
|
||||
} else if (msg.clientDbId === 1) {
|
||||
this.selfServerGroups.delete(msg.serverGroupId);
|
||||
}
|
||||
this.after(200, () => this.sendChannels(this.lastNickname));
|
||||
break;
|
||||
}
|
||||
case "serverQueryLogin":
|
||||
// No observable effect - the demo has no real ServerQuery backend to
|
||||
// authenticate against.
|
||||
break;
|
||||
case "getPermissionOverview": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
type: "permissionOverview",
|
||||
entries: [
|
||||
{ name: "b_client_info_view", description: "View own client info", value: 1, negated: false, skip: false },
|
||||
{ name: "b_client_permissionoverview_view", description: "View permission overview", value: 1, negated: false, skip: false },
|
||||
{ name: "i_channel_join_power", description: "Power to join channels", value: 25, negated: false, skip: false },
|
||||
{ name: "i_client_talk_power", description: "Talk power", value: 25, negated: false, skip: false },
|
||||
{ name: "b_client_use_priority_speaker", description: "Use priority speaker", value: 0, negated: true, skip: false },
|
||||
{ name: "i_client_max_channel_subscriptions", description: "Max channel subscriptions", value: -1, negated: false, skip: false },
|
||||
{ name: "b_channel_join_permanent", description: "Join permanent channels", value: 1, negated: false, skip: false },
|
||||
],
|
||||
})
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "getPermissionCatalog": {
|
||||
this.after(300, () => this.emit({ type: "permissionCatalog", entries: DEMO_PERMISSION_CATALOG }));
|
||||
break;
|
||||
}
|
||||
case "getPermList": {
|
||||
const key = demoPermKey(msg.scope, msg.id1, msg.id2);
|
||||
this.after(300, () =>
|
||||
this.emit({ type: "permList", scope: msg.scope, id1: msg.id1, id2: msg.id2 ?? null, entries: DEMO_PERM_LISTS[key] ?? [] })
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "addPermission": {
|
||||
const [id1, id2] = msg.ids as number[];
|
||||
const key = demoPermKey(msg.scope, id1, id2);
|
||||
const catalogEntry = DEMO_PERMISSION_CATALOG.find((p) => p.id === msg.permId);
|
||||
const name = catalogEntry?.name ?? `#${msg.permId}`;
|
||||
const description = catalogEntry?.description ?? "";
|
||||
const list = (DEMO_PERM_LISTS[key] ?? []).filter((e) => e.name !== name);
|
||||
list.push({ name, description, value: msg.value, negated: !!msg.negated, skip: !!msg.skip });
|
||||
DEMO_PERM_LISTS[key] = list;
|
||||
break;
|
||||
}
|
||||
case "removePermission": {
|
||||
const [id1, id2] = msg.ids as number[];
|
||||
const key = demoPermKey(msg.scope, id1, id2);
|
||||
const catalogEntry = DEMO_PERMISSION_CATALOG.find((p) => p.id === msg.permId);
|
||||
const name = catalogEntry?.name ?? `#${msg.permId}`;
|
||||
if (DEMO_PERM_LISTS[key]) DEMO_PERM_LISTS[key] = DEMO_PERM_LISTS[key].filter((e) => e.name !== name);
|
||||
break;
|
||||
}
|
||||
case "getFileList": {
|
||||
const key = demoFileKey(msg.channelId, msg.path);
|
||||
this.after(300, () =>
|
||||
this.emit({ type: "fileList", cid: msg.channelId, path: msg.path, entries: DEMO_FILES[key] ?? [] })
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "createDirectory": {
|
||||
const dir = msg.dirname as string;
|
||||
const parent = dir.slice(0, dir.lastIndexOf("/")) || "/";
|
||||
const name = dir.slice(dir.lastIndexOf("/") + 1);
|
||||
const parentKey = demoFileKey(msg.channelId, parent);
|
||||
DEMO_FILES[parentKey] = (DEMO_FILES[parentKey] ?? []).filter((e) => e.name !== name);
|
||||
DEMO_FILES[parentKey].push({ path: parent, name, size: 0, isFile: false, timestamp: demoNowTimestamp() });
|
||||
DEMO_FILES[demoFileKey(msg.channelId, dir)] = [];
|
||||
break;
|
||||
}
|
||||
case "deleteFile": {
|
||||
const full = msg.name as string;
|
||||
const parent = full.slice(0, full.lastIndexOf("/")) || "/";
|
||||
const name = full.slice(full.lastIndexOf("/") + 1);
|
||||
const parentKey = demoFileKey(msg.channelId, parent);
|
||||
if (DEMO_FILES[parentKey]) DEMO_FILES[parentKey] = DEMO_FILES[parentKey].filter((e) => e.name !== name);
|
||||
break;
|
||||
}
|
||||
case "renameFile": {
|
||||
const oldFull = msg.oldName as string;
|
||||
const newFull = msg.newName as string;
|
||||
const parent = oldFull.slice(0, oldFull.lastIndexOf("/")) || "/";
|
||||
const oldName = oldFull.slice(oldFull.lastIndexOf("/") + 1);
|
||||
const newName = newFull.slice(newFull.lastIndexOf("/") + 1);
|
||||
const entry = DEMO_FILES[demoFileKey(msg.channelId, parent)]?.find((e) => e.name === oldName);
|
||||
if (entry) entry.name = newName;
|
||||
break;
|
||||
}
|
||||
case "downloadFile": {
|
||||
const full = msg.path as string;
|
||||
const name = full.slice(full.lastIndexOf("/") + 1);
|
||||
const data =
|
||||
msg.channelId === 0
|
||||
? DEMO_ICON_PNG_BASE64
|
||||
: btoa(`This is a demo file. There is no real content behind "${name}" in WebSpeak3's demo mode.`);
|
||||
this.after(400, () => this.emit({ type: "fileDownloadData", cid: msg.channelId, path: full, data }));
|
||||
break;
|
||||
}
|
||||
case "uploadFile": {
|
||||
const full = msg.path as string;
|
||||
const parent = full.slice(0, full.lastIndexOf("/")) || "/";
|
||||
const name = full.slice(full.lastIndexOf("/") + 1);
|
||||
const parentKey = demoFileKey(msg.channelId, parent);
|
||||
const sizeBytes = Math.floor(((msg.dataBase64 as string).length * 3) / 4);
|
||||
DEMO_FILES[parentKey] = (DEMO_FILES[parentKey] ?? []).filter((e) => e.name !== name);
|
||||
DEMO_FILES[parentKey].push({ path: parent, name, size: sizeBytes, isFile: true, timestamp: demoNowTimestamp() });
|
||||
this.after(400, () => this.emit({ type: "fileUploadDone", cid: msg.channelId, path: full }));
|
||||
break;
|
||||
}
|
||||
// "disconnect" is intentionally unhandled here: handleDisconnect() in
|
||||
// App.tsx always calls socket.close() right after sending it, and
|
||||
// close() already emits the "disconnected" event below.
|
||||
@@ -220,6 +614,11 @@ export class DemoSocket {
|
||||
awayMessage: "",
|
||||
isChannelCommander: false,
|
||||
country: "",
|
||||
uid: "demo-uid-self",
|
||||
databaseId: 1,
|
||||
channelGroup: this.selfChannelGroup,
|
||||
serverGroups: [...this.selfServerGroups],
|
||||
hasTalkPower: true,
|
||||
};
|
||||
this.emit({ type: "channels", channels: DEMO_CHANNELS, clients: [self, ...DEMO_NPCS] });
|
||||
}
|
||||
|
||||
+518
-4
@@ -20,19 +20,24 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"menu.favorites.manage": "Favoriten verwalten",
|
||||
"menu.self": "Selbst",
|
||||
"menu.rights": "Rechte",
|
||||
"menu.rights.serverGroups": "Server-Gruppen bearbeiten...",
|
||||
"menu.rights.channelGroups": "Channel-Gruppen bearbeiten...",
|
||||
"menu.rights.serverPermissions": "Server-Rechte bearbeiten...",
|
||||
"menu.rights.channelPermissions": "Channel-Rechte bearbeiten...",
|
||||
"menu.rights.overview": "Rechteübersicht...",
|
||||
"menu.rights.myRights": "Eigene Rechte anzeigen",
|
||||
"menu.extras": "Extras",
|
||||
"menu.help": "Hilfe",
|
||||
"menu.extras.identities": "Identitäten",
|
||||
"menu.extras.contacts": "Kontakte",
|
||||
"menu.extras.collectedUrls": "Gesammelte URLs",
|
||||
"menu.extras.fileTransfers": "Dateitransfers",
|
||||
"menu.extras.inviteFriend": "Freund einladen",
|
||||
"menu.extras.offlineMessages": "Offline Nachrichten",
|
||||
"menu.extras.whisperLists": "Whisperlisten",
|
||||
"menu.extras.whisperHistory": "Whisper Verlauf",
|
||||
"menu.extras.clientLog": "Client Protokoll",
|
||||
"menu.extras.banList": "Bannliste",
|
||||
"menu.extras.complaintList": "Beschwerdeliste",
|
||||
"menu.extras.offlineMessages": "Offline Nachrichten",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery Login",
|
||||
"menu.extras.serverLog": "Server Protokoll",
|
||||
"menu.extras.startRecording": "Aufnahme starten",
|
||||
@@ -80,6 +85,111 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"connect.newTab": "In neuem Tab",
|
||||
"connect.cancel": "Abbrechen",
|
||||
|
||||
"collectedUrls.title": "Gesammelte URLs",
|
||||
"collectedUrls.search": "Suchen:",
|
||||
"collectedUrls.url": "URL",
|
||||
"collectedUrls.count": "Anzahl",
|
||||
"collectedUrls.lastSeen": "Zuletzt erwähnt",
|
||||
"collectedUrls.mentionedBy": "Erwähnt von",
|
||||
"collectedUrls.clearList": "Liste löschen",
|
||||
|
||||
"inviteFriend.title": "Freund einladen",
|
||||
"inviteFriend.type": "Art der Einladung",
|
||||
"inviteFriend.includeChannel": "Aktuellen Channel einfügen",
|
||||
"inviteFriend.link": "Link",
|
||||
"inviteFriend.addPermissionKey": "Berechtigungsschlüssel hinzufügen",
|
||||
"inviteFriend.copyToClipboard": "In Zwischenablage kopieren",
|
||||
"inviteFriend.copied": "Kopiert!",
|
||||
|
||||
"clientLog.title": "Client Protokoll",
|
||||
"clientLog.level.critical": "Kritisch",
|
||||
"clientLog.level.error": "Fehler",
|
||||
"clientLog.level.warning": "Warnungen",
|
||||
"clientLog.level.info": "Info",
|
||||
"clientLog.level.debug": "Debug",
|
||||
"clientLog.search": "Suchen:",
|
||||
"clientLog.filter": "Filter:",
|
||||
"clientLog.caseSensitive": "Groß-/Kleinschreibung",
|
||||
"clientLog.mark": "Markieren",
|
||||
|
||||
"whisperHistory.title": "Whisper Verlauf - {server}",
|
||||
"whisperHistory.empty": "Kein Whisper-Verlauf vorhanden.",
|
||||
"whisperHistory.started": "Whispern an: {targets}",
|
||||
"whisperHistory.stopped": "Whispern beendet",
|
||||
"whisperHistory.clear": "Löschen",
|
||||
"whisperHistory.options": "Optionen",
|
||||
|
||||
"whisperLists.title": "Whisperlisten",
|
||||
"whisperLists.namePlaceholder": "Name der Liste",
|
||||
"whisperLists.saveCurrent": "Aktuelle Auswahl speichern",
|
||||
"whisperLists.itemDetail": "{channels} Channel, {clients} Clients",
|
||||
"whisperLists.activate": "Aktivieren",
|
||||
"whisperLists.delete": "Löschen",
|
||||
"whisperLists.empty": "Keine Whisperlisten gespeichert. Wähle Whisper-Ziele aus und speichere sie hier als Liste.",
|
||||
|
||||
"identities.title": "Identitäten",
|
||||
"identities.activate": "Aktivieren",
|
||||
"identities.add": "Neue Identität",
|
||||
"identities.delete": "Löschen",
|
||||
"identities.newName": "Neue Identität",
|
||||
"identities.generated": "Erstellt",
|
||||
"identities.pending": "Wird bei der nächsten Verbindung erstellt",
|
||||
"identities.listLabel": "Lokale Identitäten",
|
||||
"identities.name": "Identität Name:",
|
||||
"identities.phoneticNickname": "Phonetischer Nickname:",
|
||||
"identities.uniqueId": "Eindeutige ID:",
|
||||
"identities.unknown": "Unbekannt",
|
||||
"identities.setDefault": "Standard",
|
||||
"identities.isDefault": "Aktuell als Standard verwendet",
|
||||
"identities.export": "Exportieren",
|
||||
"identities.import": "Importieren",
|
||||
|
||||
"connectionInfo.clientTitle": "Verbindungsinformationen - {name}",
|
||||
"connectionInfo.serverTitle": "Serververbindungsinformationen",
|
||||
"connectionInfo.loading": "Wird geladen…",
|
||||
"connectionInfo.unavailable": "Keine Antwort vom Server (fehlende Berechtigung?).",
|
||||
"connectionInfo.ping": "Ping:",
|
||||
"connectionInfo.connectedSince": "Verbunden seit:",
|
||||
"connectionInfo.ip": "IP-Adresse:",
|
||||
"connectionInfo.packetLoss": "Paketverlust:",
|
||||
"connectionInfo.packetsSent": "Pakete gesendet:",
|
||||
"connectionInfo.packetsReceived": "Pakete empfangen:",
|
||||
"connectionInfo.bytesSent": "Daten gesendet:",
|
||||
"connectionInfo.bytesReceived": "Daten empfangen:",
|
||||
"connectionInfo.bandwidthSent": "Bandbreite gesendet:",
|
||||
"connectionInfo.bandwidthReceived": "Bandbreite empfangen:",
|
||||
|
||||
"menu.self.recordingProfile": "Aufnahmeprofil",
|
||||
"menu.self.playbackProfile": "Wiedergabeprofil",
|
||||
"menu.self.hotkeyProfile": "Hotkeyprofil",
|
||||
"menu.self.soundPack": "Sound Pack",
|
||||
"menu.self.setAway": "Abwesend setzen",
|
||||
"menu.self.enableMic": "Mikrofon aktivieren",
|
||||
"menu.self.disableMic": "Mikrofon ausschalten",
|
||||
"menu.self.muteOutput": "Lautsprecher/Kopfhörer ausschalten",
|
||||
"menu.self.unmuteOutput": "Lautsprecher/Kopfhörer einschalten",
|
||||
"menu.self.changeNickname": "Nickname ändern",
|
||||
"menu.self.requestTalkPower": "Talk Power anfordern",
|
||||
"menu.self.setAvatar": "Avatar setzen",
|
||||
"menu.self.setPhoneticNickname": "Phonetischen Nicknamen setzen",
|
||||
"menu.self.connectionInfo": "Verbindungsinformationen",
|
||||
|
||||
"contacts.title": "Kontakte",
|
||||
"contacts.addOnlineClient": "Online-Client auswählen...",
|
||||
"contacts.add": "Hinzufügen",
|
||||
"contacts.remove": "Entfernen",
|
||||
"contacts.empty": "Noch keine Kontakte.",
|
||||
"contacts.customName": "Benutzerdefinierter Name:",
|
||||
"contacts.category.acquaintance": "Bekannter",
|
||||
"contacts.category.blocked": "Blockiert",
|
||||
"contacts.category.friend": "Freund",
|
||||
"contacts.phoneticName": "Phonetischer Name:",
|
||||
"contacts.show": "Anzeige",
|
||||
"contacts.ignore": "Ignorieren",
|
||||
"contacts.unignore": "Nicht mehr ignorieren",
|
||||
"contacts.whisper": "Whispern",
|
||||
"contacts.preferences": "Voreinstellungen",
|
||||
|
||||
"favorites.title": "🔖 myTeamSpeak Favoriten",
|
||||
"favorites.synced": "Synchronisierte Favoriten",
|
||||
"favorites.notLoggedIn": "Nicht angemeldet",
|
||||
@@ -181,6 +291,7 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"tree.channelCommander": "Channel Commander",
|
||||
"tree.away": "Abwesend",
|
||||
"tree.micMuted": "Mikrofon stummgeschaltet",
|
||||
"tree.noTalkPower": "Keine Redeerlaubnis in diesem Channel",
|
||||
"tree.soundMuted": "Ton stummgeschaltet (deafened)",
|
||||
|
||||
"chat.server": "Server",
|
||||
@@ -209,17 +320,163 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"poke.pokedYou": "hat dich angestupst",
|
||||
"poke.dismiss": "Schließen",
|
||||
|
||||
"kick.title": "Kicken:",
|
||||
"kick.reasonPlaceholder": "Grund (optional)...",
|
||||
"kick.confirm": "Kicken",
|
||||
"kick.cancel": "Abbrechen",
|
||||
|
||||
"ban.title": "Bannen:",
|
||||
"ban.reasonPlaceholder": "Grund (optional)...",
|
||||
"ban.duration": "Dauer:",
|
||||
"ban.durationPermanent": "Permanent",
|
||||
"ban.duration1h": "1 Stunde",
|
||||
"ban.duration1d": "1 Tag",
|
||||
"ban.duration1w": "1 Woche",
|
||||
"ban.confirm": "Bannen",
|
||||
"ban.cancel": "Abbrechen",
|
||||
|
||||
"serverEdit.title": "Virtuellen Server editieren",
|
||||
"serverEdit.tab.host": "Host",
|
||||
"serverEdit.tab.misc": "Verschiedenes",
|
||||
"serverEdit.tab.transmission": "Übertragung",
|
||||
"serverEdit.tab.antiflood": "Anti-Flood",
|
||||
"serverEdit.tab.security": "Sicherheit",
|
||||
"serverEdit.tab.log": "Protokoll",
|
||||
"serverEdit.name": "Servername:",
|
||||
"serverEdit.welcomeMessage": "Willkommensnachricht:",
|
||||
"serverEdit.clearPassword": "Serverpasswort entfernen",
|
||||
"serverEdit.newPassword": "Neues Serverpasswort:",
|
||||
"serverEdit.hostmessage": "Hostnachricht:",
|
||||
"serverEdit.hostmessageMode": "Anzeigemodus:",
|
||||
"serverEdit.hostmessageMode.none": "Nicht anzeigen",
|
||||
"serverEdit.hostmessageMode.log": "Im Protokoll anzeigen",
|
||||
"serverEdit.hostmessageMode.modal": "Als Dialog anzeigen",
|
||||
"serverEdit.hostmessageMode.modalquit": "Als Dialog anzeigen und trennen",
|
||||
"serverEdit.hostbannerUrl": "Host-Banner URL:",
|
||||
"serverEdit.hostbannerGfxUrl": "Host-Banner Bild-URL:",
|
||||
"serverEdit.hostbannerGfxInterval": "Banner-Aktualisierung (Sekunden):",
|
||||
"serverEdit.hostbannerMode": "Banner-Anpassung:",
|
||||
"serverEdit.hostbannerMode.noadjust": "Nicht anpassen",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "Anpassen (Seitenverhältnis ignorieren)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "Anpassen (Seitenverhältnis beibehalten)",
|
||||
"serverEdit.hostbuttonTooltip": "Host-Button Tooltip:",
|
||||
"serverEdit.hostbuttonUrl": "Host-Button URL:",
|
||||
"serverEdit.hostbuttonGfxUrl": "Host-Button Bild-URL:",
|
||||
"serverEdit.maxClients": "Maximale Clientanzahl:",
|
||||
"serverEdit.nickname": "Server-Nickname:",
|
||||
"serverEdit.phoneticName": "Phonetischer Name:",
|
||||
"serverEdit.codecEncryptionMode": "Sprachverschlüsselung:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "Pro Channel konfigurierbar",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "Global deaktiviert",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "Global aktiviert",
|
||||
"serverEdit.unchanged": "Unverändert lassen",
|
||||
"serverEdit.save": "Speichern",
|
||||
"serverEdit.cancel": "Abbrechen",
|
||||
|
||||
"serverProtocolLog.title": "Server Protokoll",
|
||||
"serverProtocolLog.empty": "Keine Protokolleinträge vorhanden.",
|
||||
"banList.title": "Bannliste",
|
||||
"banList.empty": "Keine Bans vorhanden.",
|
||||
"banList.name": "Name",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "Erstellt",
|
||||
"banList.duration": "Dauer",
|
||||
"banList.invoker": "Von",
|
||||
"banList.reason": "Grund",
|
||||
"banList.permanent": "Permanent",
|
||||
"banList.delete": "Löschen",
|
||||
"banList.deleteAll": "Alle löschen",
|
||||
"complainList.title": "Beschwerdeliste",
|
||||
"complainList.empty": "Keine Beschwerden vorhanden.",
|
||||
"complainList.target": "Ziel",
|
||||
"complainList.from": "Von",
|
||||
"complainList.message": "Nachricht",
|
||||
"complainList.timestamp": "Zeitpunkt",
|
||||
"offlineMessages.title": "Offline Nachrichten",
|
||||
"offlineMessages.empty": "Keine Nachrichten vorhanden.",
|
||||
"offlineMessages.subject": "Betreff",
|
||||
"offlineMessages.from": "Von",
|
||||
"offlineMessages.timestamp": "Zeitpunkt",
|
||||
"offlineMessages.targetUid": "Ziel-UID",
|
||||
"offlineMessages.message": "Nachricht",
|
||||
"offlineMessages.send": "Senden",
|
||||
"offlineMessages.new": "Neue Nachricht",
|
||||
"offlineMessages.markRead": "Als gelesen markieren",
|
||||
"offlineMessages.backToList": "Zurück zur Liste",
|
||||
"dialog.cancel": "Abbrechen",
|
||||
|
||||
"groupAssign.channelTitle": "Channel-Gruppe zuweisen",
|
||||
"groupAssign.serverTitle": "Server-Gruppe zuweisen",
|
||||
"groupAssign.empty": "Keine Gruppen vorhanden.",
|
||||
"groupAssign.clickToRemove": "Klicken zum Entfernen",
|
||||
|
||||
"serverQueryLogin.username": "Benutzername",
|
||||
"serverQueryLogin.password": "Passwort",
|
||||
"serverQueryLogin.login": "Anmelden",
|
||||
|
||||
"permissionOverview.title": "Eigene Rechte",
|
||||
"permissionOverview.empty": "Keine Rechte gefunden.",
|
||||
"permissionOverview.name": "Recht",
|
||||
"permissionOverview.value": "Wert",
|
||||
"permissionOverview.negated": "Negiert",
|
||||
"permissionOverview.skip": "Skip",
|
||||
|
||||
"permsEditor.title": "Rechte",
|
||||
"permsEditor.tab.server": "Server Gruppen",
|
||||
"permsEditor.tab.client": "Client Rechte",
|
||||
"permsEditor.tab.channel": "Channel Rechte",
|
||||
"permsEditor.tab.channelgroup": "Channel Gruppen",
|
||||
"permsEditor.tab.channelclient": "Channel Client Rechte",
|
||||
"permsEditor.clientDbId": "Eindeutige Client-DB-ID:",
|
||||
"permsEditor.load": "Laden",
|
||||
"permsEditor.pickOnlineClient": "Oder Online-Client wählen...",
|
||||
"permsEditor.pickTarget": "Bitte links eine Gruppe/einen Channel wählen bzw. eine Client-ID eingeben.",
|
||||
"permsEditor.addPermission": "Hinzufügen",
|
||||
"permsEditor.searchPermission": "Recht suchen...",
|
||||
|
||||
"dialog.ok": "OK",
|
||||
"channelContext.files": "Dateien...",
|
||||
"fileBrowser.title": "Dateitransfers",
|
||||
"fileBrowser.up": "Nach oben",
|
||||
"fileBrowser.refresh": "Aktualisieren",
|
||||
"fileBrowser.newFolder": "Neuer Ordner",
|
||||
"fileBrowser.upload": "Hochladen",
|
||||
"fileBrowser.folderName": "Ordnername",
|
||||
"fileBrowser.empty": "Dieser Ordner ist leer.",
|
||||
"fileBrowser.name": "Name",
|
||||
"fileBrowser.size": "Größe",
|
||||
"fileBrowser.modified": "Geändert",
|
||||
"fileBrowser.download": "Herunterladen",
|
||||
"fileBrowser.rename": "Umbenennen",
|
||||
"fileBrowser.delete": "Löschen",
|
||||
"fileBrowser.deleteConfirm": "Wirklich löschen?",
|
||||
"fileBrowser.uploading": "Wird hochgeladen...",
|
||||
"fileBrowser.downloading": "Wird heruntergeladen...",
|
||||
|
||||
"serverContext.icons": "Server-Icons...",
|
||||
"serverIcons.title": "Server-Icons verwalten",
|
||||
"serverIcons.upload": "Icon hochladen",
|
||||
"serverIcons.iconId": "Icon-ID",
|
||||
"serverIcons.empty": "Keine Icons vorhanden.",
|
||||
|
||||
"clientContext.privateChat": "Privater Chat",
|
||||
"clientContext.poke": "Anstupsen",
|
||||
"clientContext.copyName": "Namen kopieren",
|
||||
"clientContext.connectionInfo": "Verbindungsinformationen anzeigen",
|
||||
"clientContext.addWhisperTarget": "Als Whisper-Ziel hinzufügen",
|
||||
"clientContext.removeWhisperTarget": "Als Whisper-Ziel entfernen",
|
||||
"clientContext.assignChannelGroup": "Channel-Gruppe zuweisen",
|
||||
"clientContext.assignServerGroup": "Server-Gruppe zuweisen",
|
||||
"clientContext.kickChannel": "Aus dem Channel kicken",
|
||||
"clientContext.kick": "Vom Server kicken",
|
||||
"clientContext.ban": "Bannen",
|
||||
"clientContext.notSupported": "Im Web-Client noch nicht unterstützt",
|
||||
|
||||
"serverContext.connectionInfo": "Serververbindungsinformationen",
|
||||
"serverContext.copyAddress": "Serveradresse kopieren",
|
||||
"serverContext.addFavorite": "Zu Favoriten hinzufügen",
|
||||
"serverContext.disconnect": "Verbindung trennen",
|
||||
|
||||
"connectError.dismiss": "Schließen",
|
||||
"dialog.close": "Schließen",
|
||||
|
||||
@@ -264,19 +521,24 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"menu.favorites.manage": "Manage bookmarks",
|
||||
"menu.self": "Self",
|
||||
"menu.rights": "Permissions",
|
||||
"menu.rights.serverGroups": "Edit server groups...",
|
||||
"menu.rights.channelGroups": "Edit channel groups...",
|
||||
"menu.rights.serverPermissions": "Edit server permissions...",
|
||||
"menu.rights.channelPermissions": "Edit channel permissions...",
|
||||
"menu.rights.overview": "Permission overview...",
|
||||
"menu.rights.myRights": "Show my permissions",
|
||||
"menu.extras": "Tools",
|
||||
"menu.help": "Help",
|
||||
"menu.extras.identities": "Identities",
|
||||
"menu.extras.contacts": "Contacts",
|
||||
"menu.extras.collectedUrls": "Collected URLs",
|
||||
"menu.extras.fileTransfers": "File Transfers",
|
||||
"menu.extras.inviteFriend": "Invite a friend",
|
||||
"menu.extras.offlineMessages": "Offline Messages",
|
||||
"menu.extras.whisperLists": "Whisper Lists",
|
||||
"menu.extras.whisperHistory": "Whisper History",
|
||||
"menu.extras.clientLog": "Client Log",
|
||||
"menu.extras.banList": "Ban List",
|
||||
"menu.extras.complaintList": "Complaint List",
|
||||
"menu.extras.offlineMessages": "Offline Messages",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery Login",
|
||||
"menu.extras.serverLog": "Server Log",
|
||||
"menu.extras.startRecording": "Start Recording",
|
||||
@@ -324,6 +586,111 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"connect.newTab": "In new tab",
|
||||
"connect.cancel": "Cancel",
|
||||
|
||||
"collectedUrls.title": "Collected URLs",
|
||||
"collectedUrls.search": "Search:",
|
||||
"collectedUrls.url": "URL",
|
||||
"collectedUrls.count": "Count",
|
||||
"collectedUrls.lastSeen": "Last mentioned",
|
||||
"collectedUrls.mentionedBy": "Mentioned by",
|
||||
"collectedUrls.clearList": "Clear list",
|
||||
|
||||
"inviteFriend.title": "Invite a friend",
|
||||
"inviteFriend.type": "Invitation type",
|
||||
"inviteFriend.includeChannel": "Insert current channel",
|
||||
"inviteFriend.link": "Link",
|
||||
"inviteFriend.addPermissionKey": "Add permission key",
|
||||
"inviteFriend.copyToClipboard": "Copy to clipboard",
|
||||
"inviteFriend.copied": "Copied!",
|
||||
|
||||
"clientLog.title": "Client Log",
|
||||
"clientLog.level.critical": "Critical",
|
||||
"clientLog.level.error": "Errors",
|
||||
"clientLog.level.warning": "Warnings",
|
||||
"clientLog.level.info": "Info",
|
||||
"clientLog.level.debug": "Debug",
|
||||
"clientLog.search": "Search:",
|
||||
"clientLog.filter": "Filter:",
|
||||
"clientLog.caseSensitive": "Case sensitive",
|
||||
"clientLog.mark": "Mark",
|
||||
|
||||
"whisperHistory.title": "Whisper History - {server}",
|
||||
"whisperHistory.empty": "No whisper history yet.",
|
||||
"whisperHistory.started": "Whispering to: {targets}",
|
||||
"whisperHistory.stopped": "Stopped whispering",
|
||||
"whisperHistory.clear": "Clear",
|
||||
"whisperHistory.options": "Options",
|
||||
|
||||
"whisperLists.title": "Whisper Lists",
|
||||
"whisperLists.namePlaceholder": "List name",
|
||||
"whisperLists.saveCurrent": "Save current selection",
|
||||
"whisperLists.itemDetail": "{channels} channels, {clients} clients",
|
||||
"whisperLists.activate": "Activate",
|
||||
"whisperLists.delete": "Delete",
|
||||
"whisperLists.empty": "No whisper lists saved yet. Select whisper targets and save them here as a list.",
|
||||
|
||||
"identities.title": "Identities",
|
||||
"identities.activate": "Activate",
|
||||
"identities.add": "New Identity",
|
||||
"identities.delete": "Delete",
|
||||
"identities.newName": "New Identity",
|
||||
"identities.generated": "Generated",
|
||||
"identities.pending": "Will be generated on next connection",
|
||||
"identities.listLabel": "Local Identities",
|
||||
"identities.name": "Identity Name:",
|
||||
"identities.phoneticNickname": "Phonetic Nickname:",
|
||||
"identities.uniqueId": "Unique ID:",
|
||||
"identities.unknown": "Unknown",
|
||||
"identities.setDefault": "Set as Default",
|
||||
"identities.isDefault": "Currently used as default",
|
||||
"identities.export": "Export",
|
||||
"identities.import": "Import",
|
||||
|
||||
"connectionInfo.clientTitle": "Connection Info - {name}",
|
||||
"connectionInfo.serverTitle": "Server Connection Info",
|
||||
"connectionInfo.loading": "Loading…",
|
||||
"connectionInfo.unavailable": "No response from the server (missing permission?).",
|
||||
"connectionInfo.ping": "Ping:",
|
||||
"connectionInfo.connectedSince": "Connected since:",
|
||||
"connectionInfo.ip": "IP address:",
|
||||
"connectionInfo.packetLoss": "Packet loss:",
|
||||
"connectionInfo.packetsSent": "Packets sent:",
|
||||
"connectionInfo.packetsReceived": "Packets received:",
|
||||
"connectionInfo.bytesSent": "Data sent:",
|
||||
"connectionInfo.bytesReceived": "Data received:",
|
||||
"connectionInfo.bandwidthSent": "Bandwidth sent:",
|
||||
"connectionInfo.bandwidthReceived": "Bandwidth received:",
|
||||
|
||||
"menu.self.recordingProfile": "Recording Profile",
|
||||
"menu.self.playbackProfile": "Playback Profile",
|
||||
"menu.self.hotkeyProfile": "Hotkey Profile",
|
||||
"menu.self.soundPack": "Sound Pack",
|
||||
"menu.self.setAway": "Set Away",
|
||||
"menu.self.enableMic": "Enable Microphone",
|
||||
"menu.self.disableMic": "Disable Microphone",
|
||||
"menu.self.muteOutput": "Mute Speakers/Headphones",
|
||||
"menu.self.unmuteOutput": "Unmute Speakers/Headphones",
|
||||
"menu.self.changeNickname": "Change Nickname",
|
||||
"menu.self.requestTalkPower": "Request Talk Power",
|
||||
"menu.self.setAvatar": "Set Avatar",
|
||||
"menu.self.setPhoneticNickname": "Set Phonetic Nickname",
|
||||
"menu.self.connectionInfo": "Connection Info",
|
||||
|
||||
"contacts.title": "Contacts",
|
||||
"contacts.addOnlineClient": "Select an online client...",
|
||||
"contacts.add": "Add",
|
||||
"contacts.remove": "Remove",
|
||||
"contacts.empty": "No contacts yet.",
|
||||
"contacts.customName": "Custom Name:",
|
||||
"contacts.category.acquaintance": "Acquaintance",
|
||||
"contacts.category.blocked": "Blocked",
|
||||
"contacts.category.friend": "Friend",
|
||||
"contacts.phoneticName": "Phonetic Name:",
|
||||
"contacts.show": "Show",
|
||||
"contacts.ignore": "Ignore",
|
||||
"contacts.unignore": "Unignore",
|
||||
"contacts.whisper": "Whisper",
|
||||
"contacts.preferences": "Preferences",
|
||||
|
||||
"favorites.title": "🔖 myTeamSpeak Bookmarks",
|
||||
"favorites.synced": "Synced Bookmarks",
|
||||
"favorites.notLoggedIn": "Not logged in",
|
||||
@@ -425,6 +792,7 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"tree.channelCommander": "Channel commander",
|
||||
"tree.away": "Away",
|
||||
"tree.micMuted": "Microphone muted",
|
||||
"tree.noTalkPower": "No talk power in this channel",
|
||||
"tree.soundMuted": "Sound muted (deafened)",
|
||||
|
||||
"chat.server": "Server",
|
||||
@@ -453,17 +821,163 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"poke.pokedYou": "poked you",
|
||||
"poke.dismiss": "Dismiss",
|
||||
|
||||
"kick.title": "Kick:",
|
||||
"kick.reasonPlaceholder": "Reason (optional)...",
|
||||
"kick.confirm": "Kick",
|
||||
"kick.cancel": "Cancel",
|
||||
|
||||
"ban.title": "Ban:",
|
||||
"ban.reasonPlaceholder": "Reason (optional)...",
|
||||
"ban.duration": "Duration:",
|
||||
"ban.durationPermanent": "Permanent",
|
||||
"ban.duration1h": "1 hour",
|
||||
"ban.duration1d": "1 day",
|
||||
"ban.duration1w": "1 week",
|
||||
"ban.confirm": "Ban",
|
||||
"ban.cancel": "Cancel",
|
||||
|
||||
"serverEdit.title": "Edit Virtual Server",
|
||||
"serverEdit.tab.host": "Host",
|
||||
"serverEdit.tab.misc": "Misc",
|
||||
"serverEdit.tab.transmission": "Transmission",
|
||||
"serverEdit.tab.antiflood": "Anti-Flood",
|
||||
"serverEdit.tab.security": "Security",
|
||||
"serverEdit.tab.log": "Log",
|
||||
"serverEdit.name": "Server name:",
|
||||
"serverEdit.welcomeMessage": "Welcome message:",
|
||||
"serverEdit.clearPassword": "Remove server password",
|
||||
"serverEdit.newPassword": "New server password:",
|
||||
"serverEdit.hostmessage": "Host message:",
|
||||
"serverEdit.hostmessageMode": "Display mode:",
|
||||
"serverEdit.hostmessageMode.none": "Don't display",
|
||||
"serverEdit.hostmessageMode.log": "Display in log",
|
||||
"serverEdit.hostmessageMode.modal": "Display as dialog",
|
||||
"serverEdit.hostmessageMode.modalquit": "Display as dialog and disconnect",
|
||||
"serverEdit.hostbannerUrl": "Host banner URL:",
|
||||
"serverEdit.hostbannerGfxUrl": "Host banner image URL:",
|
||||
"serverEdit.hostbannerGfxInterval": "Banner refresh (seconds):",
|
||||
"serverEdit.hostbannerMode": "Banner scaling:",
|
||||
"serverEdit.hostbannerMode.noadjust": "Don't adjust",
|
||||
"serverEdit.hostbannerMode.adjustignoreaspect": "Adjust (ignore aspect ratio)",
|
||||
"serverEdit.hostbannerMode.adjustkeepaspect": "Adjust (keep aspect ratio)",
|
||||
"serverEdit.hostbuttonTooltip": "Host button tooltip:",
|
||||
"serverEdit.hostbuttonUrl": "Host button URL:",
|
||||
"serverEdit.hostbuttonGfxUrl": "Host button image URL:",
|
||||
"serverEdit.maxClients": "Max clients:",
|
||||
"serverEdit.nickname": "Server nickname:",
|
||||
"serverEdit.phoneticName": "Phonetic name:",
|
||||
"serverEdit.codecEncryptionMode": "Voice encryption:",
|
||||
"serverEdit.codecEncryptionMode.perchannel": "Configurable per channel",
|
||||
"serverEdit.codecEncryptionMode.forcedoff": "Globally disabled",
|
||||
"serverEdit.codecEncryptionMode.forcedon": "Globally enabled",
|
||||
"serverEdit.unchanged": "Leave unchanged",
|
||||
"serverEdit.save": "Save",
|
||||
"serverEdit.cancel": "Cancel",
|
||||
|
||||
"serverProtocolLog.title": "Server Log",
|
||||
"serverProtocolLog.empty": "No log entries.",
|
||||
"banList.title": "Ban List",
|
||||
"banList.empty": "No bans found.",
|
||||
"banList.name": "Name",
|
||||
"banList.ip": "IP",
|
||||
"banList.created": "Created",
|
||||
"banList.duration": "Duration",
|
||||
"banList.invoker": "By",
|
||||
"banList.reason": "Reason",
|
||||
"banList.permanent": "Permanent",
|
||||
"banList.delete": "Delete",
|
||||
"banList.deleteAll": "Delete all",
|
||||
"complainList.title": "Complaint List",
|
||||
"complainList.empty": "No complaints found.",
|
||||
"complainList.target": "Target",
|
||||
"complainList.from": "From",
|
||||
"complainList.message": "Message",
|
||||
"complainList.timestamp": "Timestamp",
|
||||
"offlineMessages.title": "Offline Messages",
|
||||
"offlineMessages.empty": "No messages found.",
|
||||
"offlineMessages.subject": "Subject",
|
||||
"offlineMessages.from": "From",
|
||||
"offlineMessages.timestamp": "Timestamp",
|
||||
"offlineMessages.targetUid": "Target UID",
|
||||
"offlineMessages.message": "Message",
|
||||
"offlineMessages.send": "Send",
|
||||
"offlineMessages.new": "New message",
|
||||
"offlineMessages.markRead": "Mark as read",
|
||||
"offlineMessages.backToList": "Back to list",
|
||||
"dialog.cancel": "Cancel",
|
||||
|
||||
"groupAssign.channelTitle": "Assign Channel Group",
|
||||
"groupAssign.serverTitle": "Assign Server Group",
|
||||
"groupAssign.empty": "No groups found.",
|
||||
"groupAssign.clickToRemove": "Click to remove",
|
||||
|
||||
"serverQueryLogin.username": "Username",
|
||||
"serverQueryLogin.password": "Password",
|
||||
"serverQueryLogin.login": "Login",
|
||||
|
||||
"permissionOverview.title": "My Permissions",
|
||||
"permissionOverview.empty": "No permissions found.",
|
||||
"permissionOverview.name": "Permission",
|
||||
"permissionOverview.value": "Value",
|
||||
"permissionOverview.negated": "Negated",
|
||||
"permissionOverview.skip": "Skip",
|
||||
|
||||
"permsEditor.title": "Permissions",
|
||||
"permsEditor.tab.server": "Server Groups",
|
||||
"permsEditor.tab.client": "Client Permissions",
|
||||
"permsEditor.tab.channel": "Channel Permissions",
|
||||
"permsEditor.tab.channelgroup": "Channel Groups",
|
||||
"permsEditor.tab.channelclient": "Channel Client Permissions",
|
||||
"permsEditor.clientDbId": "Unique client DB ID:",
|
||||
"permsEditor.load": "Load",
|
||||
"permsEditor.pickOnlineClient": "Or pick an online client...",
|
||||
"permsEditor.pickTarget": "Pick a group/channel on the left, or enter a client ID.",
|
||||
"permsEditor.addPermission": "Add",
|
||||
"permsEditor.searchPermission": "Search permission...",
|
||||
|
||||
"dialog.ok": "OK",
|
||||
"channelContext.files": "Files...",
|
||||
"fileBrowser.title": "File Transfers",
|
||||
"fileBrowser.up": "Up",
|
||||
"fileBrowser.refresh": "Refresh",
|
||||
"fileBrowser.newFolder": "New Folder",
|
||||
"fileBrowser.upload": "Upload",
|
||||
"fileBrowser.folderName": "Folder name",
|
||||
"fileBrowser.empty": "This folder is empty.",
|
||||
"fileBrowser.name": "Name",
|
||||
"fileBrowser.size": "Size",
|
||||
"fileBrowser.modified": "Modified",
|
||||
"fileBrowser.download": "Download",
|
||||
"fileBrowser.rename": "Rename",
|
||||
"fileBrowser.delete": "Delete",
|
||||
"fileBrowser.deleteConfirm": "Really delete?",
|
||||
"fileBrowser.uploading": "Uploading...",
|
||||
"fileBrowser.downloading": "Downloading...",
|
||||
|
||||
"serverContext.icons": "Server Icons...",
|
||||
"serverIcons.title": "Manage Server Icons",
|
||||
"serverIcons.upload": "Upload Icon",
|
||||
"serverIcons.iconId": "Icon ID",
|
||||
"serverIcons.empty": "No icons found.",
|
||||
|
||||
"clientContext.privateChat": "Private chat",
|
||||
"clientContext.poke": "Poke",
|
||||
"clientContext.copyName": "Copy name",
|
||||
"clientContext.connectionInfo": "Show connection info",
|
||||
"clientContext.addWhisperTarget": "Add as whisper target",
|
||||
"clientContext.removeWhisperTarget": "Remove as whisper target",
|
||||
"clientContext.assignChannelGroup": "Assign channel group",
|
||||
"clientContext.assignServerGroup": "Assign server group",
|
||||
"clientContext.kickChannel": "Kick from channel",
|
||||
"clientContext.kick": "Kick from server",
|
||||
"clientContext.ban": "Ban",
|
||||
"clientContext.notSupported": "Not yet supported in the web client",
|
||||
|
||||
"serverContext.connectionInfo": "Server Connection Info",
|
||||
"serverContext.copyAddress": "Copy server address",
|
||||
"serverContext.addFavorite": "Add to favorites",
|
||||
"serverContext.disconnect": "Disconnect",
|
||||
|
||||
"connectError.dismiss": "Dismiss",
|
||||
"dialog.close": "Close",
|
||||
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eaf3f8;background:#071018;font-synthesis:none;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% 3%,#0b2d3c 0,transparent 28%),#071018;color:#eaf3f8}.landing{overflow:hidden}.shell{width:min(1160px,calc(100% - 48px));margin:auto}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{display:flex;align-items:center;gap:10px;color:#f5fbff;text-decoration:none;font:700 21px Inter,"Segoe UI",sans-serif}.brand img{width:35px;height:35px;border-radius:9px}.brand span span{color:#33c8ff}.nav nav{display:flex;gap:34px}.nav nav a,.nav-github{color:#9fb2bd;text-decoration:none;font-size:14px}.nav a:hover{color:white}.nav-github{padding:9px 14px;border:1px solid #ffffff20;border-radius:9px}.hero{min-height:680px;display:grid;grid-template-columns:48% 52%;align-items:center;padding-top:60px;padding-bottom:70px}.eyebrow,.kicker{font:600 12px Inter,"Segoe UI",sans-serif;letter-spacing:.14em;color:#3bd1ff}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow span{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 12px #34d399}.hero h1{font:700 clamp(52px,6vw,78px)/.98 Inter,"Segoe UI",sans-serif;letter-spacing:-.055em;margin:22px 0}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#28c5ff,#79e0ff);background-clip:text;color:transparent}.hero-copy>p{max-width:560px;color:#9eb1bd;font-size:18px;line-height:1.7}.actions{display:flex;gap:12px;align-items:center;margin-top:32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 20px;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px}.primary{background:#20bbed;color:#00141d;box-shadow:0 8px 30px #11b8eb2d}.primary:hover{background:#61d7fa}.secondary{color:#e7f1f6;border:1px solid #ffffff25;background:#ffffff08}.demo-note{font-size:12px!important;color:#708792!important}.demo-note span{color:#35d393}.hero-visual{position:relative;padding-left:34px}.glow{position:absolute;width:440px;height:300px;background:#17bce633;filter:blur(80px);inset:70px 0 0 80px}.app-frame{position:relative;z-index:1;background:#111d26;border:1px solid #5ddcff38;border-radius:14px;padding:8px;box-shadow:0 36px 80px #0008;transform:perspective(1200px) rotateY(-4deg) rotateX(2deg)}.frame-bar{height:34px;display:flex;align-items:center;gap:6px;padding:0 7px;color:#68808c;font-size:10px}.frame-bar i{width:7px;height:7px;border-radius:50%;background:#344752}.frame-bar span{margin-left:8px}.app-frame img{width:100%;display:block;border-radius:7px}.signal-card{position:absolute;z-index:2;right:-15px;bottom:-35px;display:flex;align-items:center;gap:11px;padding:13px 15px;background:#101f29e8;border:1px solid #35d49a55;border-radius:12px;box-shadow:0 15px 40px #0007}.signal-card .signal{color:#40dda2;font-size:23px}.signal-card div{display:flex;flex-direction:column}.signal-card strong{font-size:12px}.signal-card small{font-size:9px;color:#78909c}.signal-card b{width:7px;height:7px;border-radius:50%;background:#3bd49e}.trust{height:90px;border-top:1px solid #ffffff10;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;color:#6c808b}.trust span{font-size:11px;text-transform:uppercase;letter-spacing:.15em}.trust strong{font:600 15px Inter,"Segoe UI",sans-serif;color:#8da0aa}.section{padding-top:118px;padding-bottom:118px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:52px}.section-head h2,.privacy h2,.showcase h2,.install h2{font:600 clamp(36px,4vw,52px)/1.08 Inter,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:13px 0 0}.section-head>p{max-width:420px;color:#8398a4;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-grid article{min-height:220px;padding:28px;border:1px solid #ffffff10;background:linear-gradient(145deg,#0d1922,#09141c);border-radius:14px}.icon{display:grid;place-items:center;width:42px;height:42px;background:#16bcea12;border:1px solid #2acaf72e;border-radius:10px}.icon svg{width:22px;fill:none;stroke:#32c9f4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.feature-grid h3{font:600 18px Inter,"Segoe UI",sans-serif;margin:24px 0 10px}.feature-grid p,.privacy p,.showcase p,.install p{color:#8196a2;line-height:1.7}.privacy{padding:105px 0;background:linear-gradient(110deg,#07131b,#0a222c);border-block:1px solid #ffffff0c}.privacy-inner{display:flex;justify-content:space-between;align-items:center}.privacy-copy{max-width:620px}.icon.large{width:50px;height:50px;margin-bottom:25px}.privacy ul{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;list-style:none;color:#b5c5cd}.privacy li:before{content:"✓";color:#35d4a0;margin-right:9px}.privacy-card{width:300px;height:330px;border:1px solid #32c9f42c;border-radius:50% 50% 16px 16px;display:flex;flex-direction:column;align-items:cenLine truncated
|
||||
@media(max-width:900px){.nav nav{display:none}.hero{grid-template-columns:1fr;padding-top:85px}.hero-visual{margin-top:60px;padding-left:0}.feature-grid{grid-template-columns:1fr 1fr}.trust{display:grid;grid-template-columns:repeat(3,1fr);height:auto;padding-block:24px;gap:18px}.trust span{grid-column:1/-1}.privacy-inner{gap:40px}.privacy-card{width:240px;height:280px}.flow{display:grid;grid-template-columns:1fr 1fr;gap:14px}.flow-wrap{display:block}.flow-arrow{display:none}.showcase{grid-template-columns:1fr}.screens{margin-top:20px}.footer-inner{flex-wrap:wrap;gap:20px}}
|
||||
@media(max-width:600px){.shell{width:min(100% - 30px,1160px)}.nav{height:68px}.nav-github{font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.hero{min-height:auto;padding-top:68px}.hero h1{font-size:48px}.hero-copy>p{font-size:16px}.actions{align-items:stretch;flex-direction:column}.hero-visual{margin-top:45px}.signal-card{right:5px;bottom:-40px}.trust{margin-top:80px}.feature-grid{grid-template-columns:1fr}.section{padding-block:85px}.section-head{display:block}.privacy-inner{display:block}.privacy ul{grid-template-columns:1fr}.privacy-card{margin:55px auto 0}.flow{grid-template-columns:1fr}.showcase{gap:25px}.screens{height:270px}.screens img{width:86%}.command code{font-size:11px}.footer-inner{display:block;text-align:center}.footer-inner .brand{justify-content:center}.footer-inner>div{justify-content:center;margin-top:20px}}
|
||||
|
||||
/* Visual depth and product personality */
|
||||
.landing{position:relative;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:72px 72px}.landing:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071018 0,transparent 18%,transparent 82%,#071018 100%);pointer-events:none}.ambient{position:absolute;border-radius:50%;filter:blur(90px);opacity:.24;pointer-events:none;animation:drift 12s ease-in-out infinite alternate}.ambient-one{width:420px;height:420px;background:#04bde7;right:-180px;top:780px}.ambient-two{width:360px;height:360px;background:#4567ff;left:-220px;top:1900px;animation-delay:-5s}@keyframes drift{to{transform:translate3d(0,90px,0) scale(1.15)}}.shell{position:relative;z-index:1}.hero-stats{display:flex;gap:28px;margin-top:30px}.hero-stats span{display:flex;flex-direction:column;color:#5e7783;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.hero-stats strong{color:#cce2eb;font-size:13px;letter-spacing:0;margin-bottom:4px}.signal-card b{box-shadow:0 0 0 0 #3bd49e;animation:pulse 2s infinite}@keyframes pulse{70%{box-shadow:0 0 0 8px #3bd49e00}}.voice-waves{position:absolute;z-index:2;left:4px;bottom:26px;height:54px;display:flex;align-items:center;gap:4px;padding:10px 12px;background:#07131bd9;border:1px solid #36caf52d;border-radius:10px;backdrop-filter:blur(12px)}.voice-waves i,.mini-wave i{display:block;width:3px;border-radius:3px;background:linear-gradient(#4ee3ff,#23c991);animation:wave 1.25s ease-in-out infinite}.voice-waves i:nth-child(3n){animation-delay:-.7s}.voice-waves i:nth-child(2n){animation-delay:-.35s}@keyframes wave{0%,100%{height:8px;opacity:.45}50%{height:34px;opacity:1}}.feature-grid{grid-template-columns:repeat(12,1fr)}.feature-grid article{grid-column:span 4;min-height:235px;position:relative;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.feature-grid article:hover{transform:translateY(-5px);border-color:#35cdf34a;background:linear-gradient(145deg,#10232d,#09141c)}.feature-grid .feature-1,.feature-grid .feature-5{grid-column:span 7}.feature-grid .feature-2,.feature-grid .feature-6{grid-column:span 5}.card-index{position:absolute;right:20px;top:17px;color:#ffffff12;font:700 34px Inter,sans-serif}.feature-1:after,.feature-5:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#21c9ee17;right:-50px;bottom:-90px}.mini-wave{position:absolute;right:38px;bottom:45px;height:56px;display:flex;align-items:center;gap:5px}.mini-wave i{width:4px;animation-duration:1.6s}.mini-wave i:nth-child(odd){animation-delay:-.8s}
|
||||
@media(max-width:900px){.feature-grid{grid-template-columns:1fr 1fr}.feature-grid article,.feature-grid .feature-1,.feature-grid .feature-2,.feature-grid .feature-5,.feature-grid .feature-6{grid-column:auto}}
|
||||
@media(max-width:600px){.landing{background-size:48px 48px}.feature-grid{grid-template-columns:1fr}.mini-wave{opacity:.35}.hero-stats{gap:14px;justify-content:space-between}.voice-waves{left:10px;bottom:-25px}}
|
||||
@media(prefers-reduced-motion:reduce){.ambient,.signal-card b,.voice-waves i,.mini-wave i{animation:none}}
|
||||
|
||||
/* Motion system */
|
||||
.hero-copy{animation:hero-in .85s cubic-bezier(.2,.75,.25,1) both}.hero-visual{animation:visual-in 1s .12s cubic-bezier(.2,.75,.25,1) both}.app-frame{animation:float-frame 6s 1.2s ease-in-out infinite}.nav{animation:nav-in .7s ease-out both}@keyframes hero-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}@keyframes visual-in{from{opacity:0;transform:translateX(50px) scale(.96)}to{opacity:1;transform:none}}@keyframes nav-in{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}@keyframes float-frame{0%,100%{transform:perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0)}50%{transform:perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-10px)}}.button.primary{position:relative;overflow:hidden}.button.primary:after{content:"";position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 42%,#ffffff7d 50%,transparent 58%);transform:translateX(-90%);animation:cta-shine 4.5s 2s ease-in-out infinite}@keyframes cta-shine{0%,68%{transform:translateX(-90%)}88%,100%{transform:translateX(90%)}}.reveal{opacity:0;transform:translateY(42px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.75,.25,1)}.reveal.is-visible{opacity:1;transform:none}.feature-grid article{transition-delay:calc(var(--card-order,0) * 70ms)}.flow-wrap{opacity:0;transform:translateY(20px);transition:opacity .55s var(--delay) ease,transform .55s var(--delay) ease}.is-visible .flow-wrap{opacity:1;transform:none}.flow-arrow{overflow:visible}.flow-arrow em{position:absolute;width:6px;height:6px;border-radius:50%;background:#62e4ff;box-shadow:0 0 12px #36d8ff;left:0;top:calc(50% - 3px);animation:data-packet 1.8s linear infinite}@keyframes data-packet{to{transform:translateX(38px)}}.privacy-card:before{content:"";position:absolute;inset:8%;border-radius:50%;border:1px dashed #45d8fa24;animation:orbit 16s linear infinite}.privacy-card:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#45d8fa;top:15%;left:26%;box-shadow:0 0 16px #45d8fa}@keyframes orbit{to{transform:rotate(360deg)}}.screens img:first-child{animation:screen-dark 6s ease-in-out infinite}.screens img:last-child{animation:screen-light 6s ease-in-out infinite}@keyframes screen-dark{0%,100%{transform:translateY(0) rotate(.2deg)}50%{transform:translateY(-8px) rotate(-.5deg)}}@keyframes screen-light{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(7px) rotate(.3deg)}}
|
||||
@media(prefers-reduced-motion:reduce){.hero-copy,.hero-visual,.app-frame,.nav,.button.primary:after,.flow-arrow em,.privacy-card:before,.screens img{animation:none}.reveal,.flow-wrap{opacity:1;transform:none;transition:none}}
|
||||
|
||||
/* Refined architecture stream and self-hosting orbit */
|
||||
.flow-arrow{height:26px;display:flex;align-items:center;justify-content:center;overflow:hidden}.flow-arrow i{height:2px;top:12px;background:linear-gradient(90deg,#173a47 0%,#2acafa 35%,#9cecff 50%,#2acafa 65%,#173a47 100%);background-size:220% 100%;animation:stream-line 2.2s linear infinite}.flow-arrow b{font-size:22px;line-height:1;color:#7de5ff;background:#071018;padding:0 2px;transform:translateX(13px)}.flow-arrow em{display:none}@keyframes stream-line{to{background-position:-220% 0}}.privacy-card{border-radius:50%;width:330px;height:330px;border-color:#39d4f050;background:radial-gradient(circle,#16c8f51d 0,#0a1d2766 50%,transparent 72%);box-shadow:inset 0 0 50px #22c6ed12,0 0 60px #16c8f50d}.privacy-card:before,.privacy-card:after{display:none}.orbit{position:absolute;border-radius:50%;border:1px solid #55dcf85c;pointer-events:none}.orbit i{position:absolute;width:9px;height:9px;border-radius:50%;background:#70e5ff;box-shadow:0 0 14px #42dafa}.orbit-outer{inset:-18px;border-style:dashed;animation:orbit 18s linear infinite}.orbit-outer i{top:18%;right:5%}.orbit-inner{inset:24px;border-color:#45d2ed27;animation:orbit 11s linear infinite reverse}.orbit-inner i{width:6px;height:6px;bottom:10%;left:16%;background:#45dda6;box-shadow:0 0 12px #45dda6}.privacy-card>span,.privacy-card>strong,.privacy-card>small{position:relative;z-index:2}
|
||||
@media(max-width:900px){.privacy-card{width:260px;height:260px}.orbit-outer{inset:-12px}}
|
||||
@media(prefers-reduced-motion:reduce){.flow-arrow i,.orbit{animation:none}}
|
||||
|
||||
/* Clean architecture connectors */
|
||||
.flow-wrap:not(:last-child){flex:1.08}.flow-wrap:last-child{flex:.92}.flow-arrow{position:relative;width:54px;min-width:54px;height:22px;margin:0 8px;overflow:visible;background:none}.flow-arrow i{position:absolute;left:0;right:5px;top:10px;width:auto;height:1px;background:#2ecdf65c;animation:none}.flow-arrow:after{content:"";position:absolute;right:4px;top:7px;width:6px;height:6px;border-top:1px solid #69e1ff;border-right:1px solid #69e1ff;transform:rotate(45deg)}.flow-arrow:before{content:"";position:absolute;z-index:2;left:2px;top:8px;width:16px;height:5px;border-radius:99px;background:linear-gradient(90deg,transparent,#81e9ff,transparent);filter:drop-shadow(0 0 5px #38d8ff);animation:connector-pulse 2.4s ease-in-out infinite}@keyframes connector-pulse{0%{transform:translateX(0);opacity:0}15%{opacity:1}75%{opacity:1}100%{transform:translateX(31px);opacity:0}}.flow-arrow b{display:none}
|
||||
@media(max-width:900px){.flow-wrap:not(:last-child),.flow-wrap:last-child{flex:auto}.flow-arrow{display:none}}
|
||||
@media(prefers-reduced-motion:reduce){.flow-arrow:before{animation:none;opacity:.7;transform:translateX(16px)}}
|
||||
|
||||
/* Staggered feature-card entrance */
|
||||
.feature-grid{perspective:1000px}.feature-grid article{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);transform-origin:center bottom}.feature-grid article:nth-child(1){--card-delay:80ms}.feature-grid article:nth-child(2){--card-delay:160ms}.feature-grid article:nth-child(3){--card-delay:240ms}.feature-grid article:nth-child(4){--card-delay:320ms}.feature-grid article:nth-child(5){--card-delay:400ms}.feature-grid article:nth-child(6){--card-delay:480ms}.is-visible .feature-grid article{animation:card-arrive .72s var(--card-delay) cubic-bezier(.16,.82,.26,1) both}@keyframes card-arrive{0%{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);border-color:#ffffff08}65%{opacity:1;transform:translateY(-4px) scale(1.008) rotateX(0);border-color:#38d2fa32}100%{opacity:1;transform:none;border-color:#ffffff10}}.feature-grid article .icon{opacity:0;transform:scale(.65) rotate(-10deg)}.is-visible .feature-grid article .icon{animation:icon-pop .48s calc(var(--card-delay) + 280ms) cubic-bezier(.2,1.4,.35,1) both}@keyframes icon-pop{to{opacity:1;transform:none}}.feature-grid article .card-index{opacity:0;transform:translateX(14px)}.is-visible .feature-grid article .card-index{animation:index-in .45s calc(var(--card-delay) + 220ms) ease-out both}@keyframes index-in{to{opacity:1;transform:none}}.feature-grid article:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,#4cdcff0b 48%,transparent 66%);transform:translateX(-100%);pointer-events:none}.is-visible .feature-grid article:before{animation:card-sheen .85s calc(var(--card-delay) + 180ms) ease-out both}@keyframes card-sheen{to{transform:translateX(100%)}}.is-visible .feature-grid article:hover{transform:translateY(-6px) scale(1.008);border-color:#35cdf34a;box-shadow:0 18px 45px #0003,0 0 0 1px #38d5fb0a}
|
||||
@media(prefers-reduced-motion:reduce){.feature-grid article,.feature-grid article .icon,.feature-grid article .card-index{opacity:1;transform:none}.is-visible .feature-grid article,.is-visible .feature-grid article .icon,.is-visible .feature-grid article .card-index,.is-visible .feature-grid article:before{animation:none}}
|
||||
|
||||
/* Language switch */
|
||||
.nav-actions{display:flex;align-items:center;gap:10px}.language-switch{display:flex;align-items:center;padding:3px;border:1px solid #ffffff18;border-radius:9px;background:#06101899}.language-switch button{min-width:32px;padding:6px 7px;border:0;border-radius:6px;background:transparent;color:#68808c;font:700 10px Inter,"Segoe UI",sans-serif;letter-spacing:.06em;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.language-switch button:hover{color:#d7e8ef}.language-switch button.active{background:#1ec4f21c;color:#58dcff;box-shadow:inset 0 0 0 1px #35d5ff2c}.language-switch button:focus-visible{outline:2px solid #42d8ff;outline-offset:2px}
|
||||
@media(max-width:600px){.nav-actions{gap:6px}.language-switch button{min-width:28px;padding-inline:5px}.nav-github{padding-inline:10px;font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.nav-github span{font-size:13px}}
|
||||
|
||||
.hero-actions{flex-wrap:wrap}.hero-actions .button{padding-inline:17px}.button.tertiary{padding-inline:4px;color:#7f96a2;background:transparent}.button.tertiary:hover{color:#d9e9ef}
|
||||
@media(max-width:600px){.hero-actions .button.tertiary{padding:10px 4px}}
|
||||
|
||||
/* Project status */
|
||||
.status{border-top:1px solid #ffffff0d}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.status-grid article{position:relative;min-height:220px;padding:28px;background:linear-gradient(145deg,#0d1922,#09141c);border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.status-grid article:after{content:"";position:absolute;width:130px;height:130px;right:-65px;bottom:-70px;border-radius:50%;background:#27c9f20c}.status-grid small{color:#6f8793;font-size:10px;text-transform:uppercase;letter-spacing:.13em}.status-grid h3{margin:28px 0 10px;font-size:19px}.status-grid p{margin:0;color:#8196a2;line-height:1.7}.status-dot{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:#38d49b;box-shadow:0 0 12px #38d49b}.status-1{background:#3acbf4;box-shadow:0 0 12px #3acbf4}.status-2{background:#8d78ff;box-shadow:0 0 12px #8d78ff}.status-link{display:inline-block;margin-top:24px;color:#70dfff}.is-visible .status-grid article{animation:status-in .65s both}.is-visible .status-grid article:nth-child(2){animation-delay:100ms}.is-visible .status-grid article:nth-child(3){animation-delay:200ms}@keyframes status-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
|
||||
|
||||
/* Interactive product tour */
|
||||
.product-tour{border-top:1px solid #ffffff0d}.tour-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.75fr);gap:22px;align-items:stretch}.tour-screen{position:relative;align-self:start;padding:8px;background:#0d1922;border:1px solid #35cdf32a;border-radius:15px;box-shadow:0 30px 70px #0007}.tour-screen>img{display:block;width:100%;border-radius:9px}.hotspot{position:absolute;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #a6f0ff;background:#0b1b25e8;color:#b8f3ff;border-radius:50%;font:700 11px Inter,sans-serif;cursor:pointer;box-shadow:0 0 0 7px #28c9f51a,0 0 20px #22cef56b;transition:transform .2s ease,background .2s ease}.hotspot:hover,.hotspot.active{transform:scale(1.14);background:#2ac9f5;color:#04141b}.hotspot-tree{left:13%;top:31%}.hotspot-chat{left:58%;top:43%}.hotspot-voice{left:47%;bottom:13%}.hotspot-whisper{left:27%;top:54%}.hotspot:not(.active){animation:hotspot-pulse 2.6s ease-in-out infinite}@keyframes hotspot-pulse{50%{box-shadow:0 0 0 11px #28c9f505,0 0 26px #22cef580}}.tour-caption{position:absolute;display:flex;gap:13px;left:22px;right:22px;bottom:18px;padding:15px 18px;border:1px solid #ffffff17;background:#07131be8;border-radius:11px;backdrop-filter:blur(14px);box-shadow:0 12px 35px #0006}.tour-caption>span{color:#38d4fb;font:700 11px Inter,sans-serif}.tour-caption strong{font-size:14px}.tour-caption p{margin:4px 0 0;color:#7f97a3;font-size:11px;line-height:1.45}.tour-tabs{display:flex;flex-direction:column;gap:9px}.tour-tabs button{display:flex;flex:1;gap:14px;align-items:flex-start;padding:19px;text-align:left;color:#8ca0aa;background:#09141c;border:1px solid #ffffff0d;border-radius:12px;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}.tour-tabs button:hover{transform:translateX(-3px);border-color:#38d4fa2c}.tour-tabs button.active{background:linear-gradient(120deg,#102732,#0b1922);border-color:#38d4fa4a}.tour-tabs button>span{color:#35d1fa;font:700 10px Inter,sans-serif}.tour-tabs button div{display:flex;flex-direction:column;gap:7px}.tour-tabs strong{color:#dce9ef;font-size:14px}.tour-tabs small{color:#718792;line-height:1.45}
|
||||
|
||||
/* Installation steps and copy feedback */
|
||||
.install{padding-top:110px}.install-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(850px,100%);margin:38px auto 18px;text-align:left}.install-steps article{display:flex;gap:14px;padding:18px;background:#0b171f;border:1px solid #ffffff10;border-radius:12px}.install-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.install-steps article div{display:flex;flex-direction:column;gap:6px}.install-steps strong{font-size:13px}.install-steps small{color:#718792;line-height:1.45}.command button{min-width:34px;white-space:nowrap}.command button.copied{color:#43d9a3;font:700 11px Inter,sans-serif}
|
||||
|
||||
/* FAQ */
|
||||
.faq{padding-top:40px}.faq-list{width:min(850px,100%);margin:auto;border-top:1px solid #ffffff13}.faq-list details{border-bottom:1px solid #ffffff13}.faq-list summary{display:flex;align-items:center;gap:18px;padding:23px 4px;color:#dce9ef;font-weight:600;cursor:pointer;list-style:none}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary span{color:#35cef7;font:700 10px Inter,sans-serif}.faq-list summary i{margin-left:auto;color:#5fdcff;font-style:normal;font-size:22px;transition:transform .25s ease}.faq-list details[open] summary i{transform:rotate(45deg)}.faq-list details p{margin:0;padding:0 50px 24px;color:#8095a0;line-height:1.7}.faq-list details[open] p{animation:faq-in .3s ease-out both}@keyframes faq-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
|
||||
|
||||
@media(max-width:900px){.status-grid{grid-template-columns:1fr}.status-grid article{min-height:auto}.tour-layout{grid-template-columns:1fr}.tour-tabs{display:grid;grid-template-columns:1fr 1fr}.tour-tabs button{min-height:115px}.install-steps{grid-template-columns:1fr}}
|
||||
@media(max-width:600px){.tour-screen{padding:4px}.hotspot{width:28px;height:28px;box-shadow:0 0 0 5px #28c9f51a}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin:5px 0 0;padding:13px}.tour-tabs{grid-template-columns:1fr}.tour-tabs button{min-height:auto}.install-steps{margin-top:28px}.faq{padding-top:20px}.faq-list summary{font-size:14px}.faq-list details p{padding-left:33px;padding-right:8px}.command{gap:10px}}
|
||||
@media(prefers-reduced-motion:reduce){.is-visible .status-grid article,.hotspot:not(.active),.faq-list details[open] p{animation:none}}
|
||||
|
||||
/* Wide current-client preview */
|
||||
.product-tour{width:min(1380px,calc(100% - 48px))}.product-tour .section-head{width:min(1160px,100%);margin-left:auto;margin-right:auto}.tour-layout{grid-template-columns:minmax(0,3.2fr) minmax(250px,.8fr);gap:18px}.tour-screen{padding:8px}.tour-image{position:relative;overflow:hidden;border-radius:9px}.tour-image>img{display:block;width:100%;height:auto}.hotspot-tree{left:11%;top:31%}.hotspot-chat{left:55%;top:82%}.hotspot-voice{left:18%;top:4.5%}.hotspot-whisper{left:19%;top:18%}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin-top:8px;min-height:73px}.tour-tabs button{padding:17px}.tour-tabs small{font-size:11px}
|
||||
@media(max-width:900px){.product-tour{width:min(100% - 48px,1160px)}.tour-layout{grid-template-columns:1fr}.tour-tabs button{padding:19px}}
|
||||
@media(max-width:600px){.product-tour{width:min(100% - 30px,1160px)}.hotspot{width:26px;height:26px}.hotspot-tree{left:10%;top:29%}.hotspot-chat{left:54%;top:80%}.hotspot-voice{left:18%;top:3%}.hotspot-whisper{left:19%;top:18%}.tour-caption{margin-top:5px}}
|
||||
|
||||
/* Desktop and real mobile client composition */
|
||||
.showcase .screens{height:510px}.screens .screen-desktop{width:86%;right:0;left:auto;top:42px;bottom:auto;z-index:1;border-color:#44d5fa33;box-shadow:0 28px 65px #000a}.phone-frame{position:absolute;z-index:3;left:0;bottom:0;width:27%;padding:8px 6px 7px;background:#09131a;border:1px solid #55dcfa50;border-radius:19px;box-shadow:0 28px 60px #000b,0 0 35px #25caf512;animation:phone-float 6s ease-in-out infinite}.phone-frame:before{content:"";position:absolute;inset:-1px;border-radius:19px;background:linear-gradient(145deg,#72e7ff55,transparent 25%,transparent 75%,#22c7ed22);pointer-events:none}.phone-frame>span{display:block;width:34%;height:4px;margin:0 auto 7px;border-radius:99px;background:#233943}.screens .phone-frame img,.screens .phone-frame img:last-child{position:relative;inset:auto;width:100%;display:block;border:0;border-radius:11px;box-shadow:none;animation:none}.screens .screen-desktop:first-child{animation:screen-dark 6s ease-in-out infinite}@keyframes phone-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(-.3deg)}}
|
||||
@media(max-width:900px){.showcase .screens{height:520px;max-width:760px;width:100%;margin-inline:auto}.screens .screen-desktop{width:86%}.phone-frame{width:27%}}
|
||||
@media(max-width:600px){.showcase .screens{height:390px}.screens .screen-desktop{width:88%;top:38px}.phone-frame{left:7px;width:34%;padding:6px 4px 5px;border-radius:14px}.phone-frame:before{border-radius:14px}.phone-frame>span{height:3px;margin-bottom:5px}.screens .phone-frame img{border-radius:8px}}
|
||||
@media(prefers-reduced-motion:reduce){.phone-frame{animation:none}}
|
||||
|
||||
/* Device-aware phone hardware */
|
||||
.phone-frame{padding:7px 6px 12px;background:linear-gradient(145deg,#25323a,#050a0e 28%,#020507 72%,#18242b);border:1px solid #65808c;box-shadow:0 30px 65px #000c,0 0 36px #25caf516,inset 0 0 0 1px #ffffff0c}.phone-frame:after{content:"";position:absolute;inset:3px;border:1px solid #000;border-radius:inherit;pointer-events:none}.phone-sensor{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;height:14px}.phone-sensor span,.phone-sensor b{display:block}.phone-button{position:absolute;z-index:0;width:3px;background:linear-gradient(#70818a,#1b272d);border:1px solid #10171b;box-shadow:0 1px 2px #000}.phone-button-left{left:-4px}.phone-button-right{right:-4px}.phone-home{position:absolute;z-index:4;left:50%;bottom:4px;transform:translateX(-50%);height:3px;border-radius:99px;background:#b8c5ca80}.phone-android{border-radius:17px}.phone-android:before,.phone-android:after{border-radius:17px}.phone-android .phone-sensor span{width:7px;height:7px;border-radius:50%;background:#020405;box-shadow:inset 0 0 0 2px #142933,0 0 0 1px #000}.phone-android .phone-sensor span:after{content:"";display:block;width:2px;height:2px;margin:2px;border-radius:50%;background:#2f86a9}.phone-android .phone-sensor b{display:none}.phone-android .phone-button-left{display:none}.phone-android .phone-button-right{top:56px;height:42px;border-radius:0 3px 3px 0}.phone-android .phone-home{width:24%}.phone-android img{border-radius:10px!important}.phone-iphone{padding:7px 7px 13px;border-radius:27px;border-color:#83939b}.phone-iphone:before,.phone-iphone:after{border-radius:27px}.phone-iphone .phone-sensor{height:17px}.phone-iphone .phone-sensor span{position:relative;width:43px;height:12px;border-radius:99px;background:#010203;box-shadow:inset 0 1px 2px #000}.phone-iphone .phone-sensor span:after{content:"";position:absolute;right:5px;top:4px;width:4px;height:4px;border-radius:50%;background:#071b2b;box-shadow:inset 0 0 0 1px #173c52}.phone-iphone .phone-sensor b{display:none}.phone-iphone .phone-button-left{top:58px;height:34px;border-radius:3px 0 0 3px;box-shadow:0 42px 0 #26353d,0 72px 0 #26353d}.phone-iphone .phone-button-right{top:72px;height:48px;border-radius:0 3px 3px 0}.phone-iphone .phone-home{width:34%;background:#e1e8ebaa}.phone-iphone img{border-radius:19px!important}
|
||||
@media(max-width:600px){.phone-frame{padding:5px 4px 10px}.phone-sensor{height:10px}.phone-android .phone-sensor span{width:5px;height:5px}.phone-android .phone-sensor span:after{width:1px;height:1px;margin:2px}.phone-android .phone-button-right{top:40px;height:30px}.phone-iphone{padding:5px 5px 11px;border-radius:19px}.phone-iphone:before,.phone-iphone:after{border-radius:19px}.phone-iphone .phone-sensor{height:12px}.phone-iphone .phone-sensor span{width:30px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:3px;height:3px}.phone-iphone .phone-button-left{top:42px;height:24px;box-shadow:0 30px 0 #26353d,0 51px 0 #26353d}.phone-iphone .phone-button-right{top:50px;height:34px}.phone-iphone img{border-radius:13px!important}}
|
||||
|
||||
/* Refined edge-to-edge iPhone */
|
||||
.phone-iphone{width:28%;padding:5px;background:linear-gradient(145deg,#55585b,#17191b 18%,#050607 55%,#2f3234);border:1px solid #777b7e;border-radius:24px;box-shadow:0 30px 60px #000b,0 0 0 1px #000,inset 0 0 0 1px #ffffff18}.phone-iphone:before{inset:1px;border-radius:23px;background:linear-gradient(120deg,#ffffff1f,transparent 18%,transparent 78%,#ffffff0d)}.phone-iphone:after{inset:4px;border-color:#020303;border-radius:20px}.phone-iphone .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-iphone .phone-sensor span{width:38px;height:11px;background:#010101;box-shadow:0 1px 3px #000,inset 0 0 0 1px #151719}.phone-iphone .phone-sensor span:after{right:5px;top:4px;width:3px;height:3px;background:#0b2134}.phone-iphone .phone-button{width:2px;background:#3c3f42;border-color:#151719;box-shadow:none}.phone-iphone .phone-button-left{left:-3px;top:58px;height:27px;box-shadow:0 36px 0 #3c3f42,0 65px 0 #3c3f42}.phone-iphone .phone-button-right{right:-3px;top:74px;height:40px}.phone-iphone .phone-home{bottom:9px;width:31%;height:3px;background:#eef2f3d9;filter:drop-shadow(0 1px 1px #000)}.screens .phone-iphone img{border-radius:19px!important}
|
||||
@media(max-width:600px){.phone-iphone{left:7px;width:35%;padding:4px;border-radius:18px}.phone-iphone:before{border-radius:17px}.phone-iphone:after{inset:3px;border-radius:15px}.phone-iphone .phone-sensor{top:7px}.phone-iphone .phone-sensor span{width:27px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:2px;height:2px}.phone-iphone .phone-button-left{top:42px;height:19px;box-shadow:0 26px 0 #3c3f42,0 47px 0 #3c3f42}.phone-iphone .phone-button-right{top:51px;height:29px}.phone-iphone .phone-home{bottom:6px;height:2px}.screens .phone-iphone img{border-radius:14px!important}}
|
||||
|
||||
/* Edge-to-edge Android display overlays */
|
||||
.phone-android{padding:5px}.phone-android .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-android .phone-sensor span{width:8px;height:8px;background:#020405;box-shadow:0 0 0 1px #000,0 1px 3px #000,inset 0 0 0 2px #142933}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:3px;background:#338db2}.phone-android .phone-home{z-index:6;bottom:9px;width:28%;height:3px;background:#d6e1e599;filter:drop-shadow(0 1px 1px #000)}.screens .phone-android img{border-radius:12px!important}
|
||||
@media(max-width:600px){.phone-android{padding:4px}.phone-android .phone-sensor{top:7px}.phone-android .phone-sensor span{width:6px;height:6px}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:2px}.phone-android .phone-home{bottom:6px;height:2px}.screens .phone-android img{border-radius:9px!important}}
|
||||
|
||||
/* Animated three-step connection */
|
||||
.quick-connect{border-bottom:1px solid #ffffff0d}.connect-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:34px;align-items:stretch}.connect-steps{display:flex;flex-direction:column;gap:10px}.connect-steps article{display:flex;align-items:center;gap:18px;flex:1;padding:20px 22px;background:#0a161e;border:1px solid #ffffff0f;border-radius:12px}.connect-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.connect-steps article div{display:flex;flex-direction:column;gap:6px}.connect-steps strong{font-size:14px}.connect-steps small{color:#718792;line-height:1.5}.connect-demo{position:relative;padding:24px;background:linear-gradient(145deg,#0e1e28,#071119);border:1px solid #42d8fa35;border-radius:16px;box-shadow:0 28px 70px #0007;overflow:hidden}.connect-demo:after{content:"";position:absolute;width:260px;height:260px;right:-120px;bottom:-150px;border-radius:50%;background:#25cdf617}.demo-window-bar{display:flex;align-items:center;gap:6px;margin:-6px 0 24px;color:#607884;font-size:10px}.demo-window-bar i{width:7px;height:7px;border-radius:50%;background:#314650}.demo-window-bar span{margin-left:7px}.connect-demo label{position:relative;z-index:1;display:block;margin-top:13px}.connect-demo label small{display:block;margin-bottom:7px;color:#718995;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.fake-input{height:48px;display:flex;align-items:center;padding:0 14px;background:#050b10;border:1px solid #ffffff15;border-radius:9px;color:#c9d8df;font:500 13px ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden}.typed-server{display:block;width:0;white-space:nowrap;overflow:hidden}.is-visible .typed-server{animation:type-server 9s 1s steps(19,end) infinite}.fake-input b{width:1px;height:19px;background:#48d7fa;animation:input-caret .75s step-end infinite}.connect-demo>button{position:relative;z-index:1;width:100%;height:46px;margin-top:17px;border:0;border-radius:9px;background:#26c6f3;color:#04141b;font-weight:800;cursor:pointer}.connect-demo>button span{margin-left:12px}.is-visible .connect-demo>button{animation:connect-button 9s 1s infinite}.connect-progress{position:relative;z-index:1;height:22px;display:flex;align-items:center;justify-content:center;margin-top:14px;color:#78909b;font-size:11px}.connect-progress i{width:6px;height:6px;margin-right:8px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}.connect-progress span{position:absolute}.progress-connected{color:#53dda9;opacity:0}.is-visible .progress-connecting{animation:connecting-text 9s 1s infinite}.is-visible .progress-connected{animation:connected-text 9s 1s infinite}@keyframes type-server{0%,8%{width:0}34%,78%{width:19ch}88%,100%{width:0}}@keyframes input-caret{50%{opacity:0}}@keyframes connect-button{0%,38%{box-shadow:none;transform:none}43%{box-shadow:0 0 0 5px #29cbf21c;transform:translateY(1px)}48%,100%{box-shadow:none;transform:none}}@keyframes connecting-text{0%,48%{opacity:1}53%,100%{opacity:0}}@keyframes connected-text{0%,50%{opacity:0}55%,82%{opacity:1}88%,100%{opacity:0}}
|
||||
|
||||
/* Live public GitHub stats */
|
||||
.github-live{padding:90px 0;background:linear-gradient(110deg,#07131b,#0a202a);border-block:1px solid #ffffff0d}.github-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}.github-copy h2{font:600 clamp(32px,3.5vw,46px)/1.08 Inter,sans-serif;letter-spacing:-.04em;margin:13px 0}.github-copy p{color:#8196a2;line-height:1.7}.github-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.github-metrics article{min-height:155px;display:flex;flex-direction:column;justify-content:center;padding:22px;background:#08141c;border:1px solid #ffffff10;border-radius:13px}.github-metrics article>span{color:#35d0f8;font-size:16px}.github-metrics strong{margin:12px 0 6px;color:#e4f0f5;font-size:23px}.github-metrics small{color:#718792;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
|
||||
|
||||
/* Install method switcher */
|
||||
.install-tabs{width:min(700px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:24px auto 8px;padding:5px;background:#050b10;border:1px solid #ffffff12;border-radius:11px}.install-tabs button{padding:10px 8px;border:0;border-radius:7px;background:transparent;color:#708792;font:700 11px Inter,sans-serif;cursor:pointer}.install-tabs button:hover{color:#d5e6ed}.install-tabs button.active{color:#53d9fb;background:#1bc8f216;box-shadow:inset 0 0 0 1px #3ed7fa2a}.command code{white-space:pre-wrap;overflow-wrap:anywhere}
|
||||
|
||||
/* Browser compatibility */
|
||||
.browser-check{border-top:1px solid #ffffff0d}.browser-table{border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.browser-table article{display:grid;grid-template-columns:44px 1fr 160px 1.4fr;align-items:center;gap:16px;min-height:78px;padding:14px 20px;background:#0a151d;border-bottom:1px solid #ffffff0d}.browser-table article:last-child{border-bottom:0}.browser-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#061117;font-weight:900;background:linear-gradient(145deg,#38d5fa,#38da9c)}.browser-1{background:linear-gradient(145deg,#f5c84d,#ec6a42)}.browser-2{background:linear-gradient(145deg,#9272ff,#4a9df5)}.browser-3{background:linear-gradient(145deg,#55dafa,#4c7fff)}.browser-table strong{font-size:14px}.browser-table b{justify-self:start;padding:6px 9px;border-radius:99px;background:#35d29b12;color:#53dca8;font-size:10px}.browser-table article:last-child b{background:#f2b84a12;color:#efc469}.browser-table small{color:#718792;line-height:1.45}
|
||||
|
||||
@media(max-width:900px){.connect-layout,.github-inner{grid-template-columns:1fr}.github-inner{gap:35px}.github-metrics{grid-template-columns:repeat(3,1fr)}.browser-table article{grid-template-columns:44px 1fr 130px}.browser-table small{grid-column:2/-1}}
|
||||
@media(max-width:600px){.connect-layout{gap:18px}.connect-demo{padding:18px}.github-live{padding:70px 0}.github-metrics{grid-template-columns:1fr}.github-metrics article{min-height:110px}.install-tabs{grid-template-columns:1fr 1fr}.browser-table article{grid-template-columns:38px 1fr;gap:10px;padding:16px}.browser-table b{grid-column:2}.browser-table small{grid-column:2}}
|
||||
@media(prefers-reduced-motion:reduce){.typed-server{width:19ch}.is-visible .typed-server,.fake-input b,.is-visible .connect-demo>button,.is-visible .progress-connecting,.is-visible .progress-connected{animation:none}.progress-connecting{display:none}.progress-connected{opacity:1}}
|
||||
|
||||
/* Keep the animated connection indicator beside its label. */
|
||||
.connect-progress>i{display:none}
|
||||
.connect-progress span{display:flex;align-items:center;gap:8px}
|
||||
.progress-connecting:before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}
|
||||
|
||||
/* Open-source community callout */
|
||||
.community{position:relative;padding:100px 0;background:linear-gradient(135deg,#07131b 0%,#09232d 52%,#07131b 100%);border-block:1px solid #ffffff0d;overflow:hidden}.community:before{content:"";position:absolute;inset:-50% auto auto 55%;width:520px;height:520px;border-radius:50%;background:#27cff611;filter:blur(3px)}.community-inner{position:relative}.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:42px}.community-grid>a{position:relative;min-height:245px;display:flex;flex-direction:column;justify-content:space-between;padding:26px;color:inherit;text-decoration:none;background:#07131bd9;border:1px solid #ffffff11;border-radius:14px;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.community-grid>a:after{content:"";position:absolute;right:-60px;bottom:-80px;width:170px;height:170px;border-radius:50%;background:#27cff60b;transition:transform .35s ease,background .35s ease}.community-grid>a:hover{transform:translateY(-6px);border-color:#39d4f84a;background:#091a23}.community-grid>a:hover:after{transform:scale(1.2);background:#27cff616}.community-icon{position:relative;z-index:1;display:grid;place-items:center;width:43px;height:43px;margin-bottom:34px;border-radius:11px;color:#42d5f8;background:#24c8f012;border:1px solid #30d2f836;font:800 17px Inter,sans-serif}.community-idea{color:#efc66d;background:#efc66d10;border-color:#efc66d32}.community-code{width:52px;color:#65dea9;background:#42d99c10;border-color:#42d99c32;font-size:13px}.community-grid a div{position:relative;z-index:1}.community-grid strong{font-size:18px;color:#e1edf2}.community-grid p{min-height:66px;margin:12px 0 22px;color:#748b96;font-size:13px;line-height:1.65}.community-grid small{color:#3bcff3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.community-grid small b{margin-left:5px}.community-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:28px 0 0;color:#657d88;font-size:11px}.community-note span{color:#3bd5a2;font-size:8px;box-shadow:0 0 12px #3bd5a2}.connect-demo>button:focus-visible,.community-grid>a:focus-visible{outline:2px solid #45d8fa;outline-offset:3px}
|
||||
|
||||
@media(max-width:800px){.community-grid{grid-template-columns:1fr}.community-grid>a{min-height:190px}.community-grid p{min-height:auto}}
|
||||
@media(max-width:600px){.community{padding:72px 0}.community-grid{margin-top:28px}.community-note{align-items:flex-start;text-align:left}}
|
||||
|
||||
/* Floating navigation and scroll-aware section state */
|
||||
.nav{position:sticky;z-index:50;top:12px;height:64px;margin-top:12px;padding:0 16px;border:1px solid #ffffff17;border-radius:14px;background:#07131bd9;box-shadow:0 15px 45px #0005,inset 0 1px #ffffff08;backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%)}.nav .brand img{transition:transform .3s ease,box-shadow .3s ease}.nav .brand:hover img{transform:rotate(-5deg) scale(1.06);box-shadow:0 0 22px #31cdf535}.nav nav{height:100%;align-items:center}.nav nav a{position:relative;display:flex;height:100%;align-items:center;transition:color .22s ease}.nav nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:-1px;height:2px;border-radius:99px;background:#3bd3fa;box-shadow:0 0 12px #3bd3fa;transition:left .25s ease,right .25s ease}.nav nav a:hover:after,.nav nav a.active:after{left:0;right:0}.nav nav a.active{color:#e9f8fe}.nav-github{transition:color .22s ease,border-color .22s ease,background .22s ease,transform .22s ease}.nav-github:hover{transform:translateY(-1px);border-color:#3bd2f74a;background:#26c9f20c}
|
||||
|
||||
/* Staggered motion for the newer landing-page sections */
|
||||
.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .6s cubic-bezier(.2,.75,.25,1),border-color .25s ease,background .25s ease}.is-visible .connect-steps article,.is-visible .github-metrics article,.is-visible .browser-table article,.is-visible .community-grid>a{opacity:1;transform:none}.is-visible .connect-steps article:nth-child(2),.is-visible .github-metrics article:nth-child(2),.is-visible .browser-table article:nth-child(2),.is-visible .community-grid>a:nth-child(2){transition-delay:90ms}.is-visible .connect-steps article:nth-child(3),.is-visible .github-metrics article:nth-child(3),.is-visible .browser-table article:nth-child(3),.is-visible .community-grid>a:nth-child(3){transition-delay:180ms}.is-visible .browser-table article:nth-child(4){transition-delay:270ms}.github-metrics article>span{transform-origin:center;transition:transform .3s ease}.github-metrics article:hover>span{transform:rotate(-8deg) scale(1.22)}.github-metrics article{transition-property:opacity,transform,border-color,background}.github-metrics article:hover{border-color:#39d4f83c;background:#0a1a23}.browser-table article{transition-property:opacity,transform,background}.browser-table article:hover{background:#0c1b24}.browser-logo{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease}.browser-table article:hover .browser-logo{transform:rotate(-7deg) scale(1.09);box-shadow:0 0 22px #39d6f425}.community.is-visible:before{animation:community-glow 8s ease-in-out infinite}.community-note span{animation:community-pulse 2.1s ease-in-out infinite}@keyframes community-glow{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-35px,24px) scale(1.08)}}@keyframes community-pulse{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
|
||||
|
||||
@media(max-width:900px){.nav{top:8px;margin-top:8px}}
|
||||
@media(max-width:600px){.nav{height:58px;padding:0 10px;border-radius:12px}.nav .brand{font-size:18px}.nav .brand img{width:31px;height:31px}}
|
||||
@media(prefers-reduced-motion:reduce){.nav .brand img,.nav nav a:after,.nav-github,.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a,.github-metrics article>span,.browser-logo,.community.is-visible:before,.community-note span{animation:none;transition:none}.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:1;transform:none}}
|
||||
|
||||
body{overflow-x:hidden}.landing{overflow:visible}.is-visible .community-grid>a:hover{transform:translateY(-6px)}
|
||||
|
||||
/* Keep the floating header clean and fit the expanded section navigation. */
|
||||
.landing{background-image:linear-gradient(90deg,#ffffff05 1px,transparent 1px)}.nav nav{gap:19px}.nav nav a{font-size:12px;white-space:nowrap}
|
||||
@media(max-width:1080px){.nav nav{gap:12px}.nav nav a{font-size:11px}.nav{padding-inline:13px}.nav .brand{font-size:19px}.nav-actions{gap:6px}.nav-github{padding-inline:10px}}
|
||||
|
||||
/* Compact mobile navigation */
|
||||
.menu-toggle,.mobile-nav{display:none}.menu-toggle{position:relative;width:38px;height:38px;padding:0;border:1px solid #ffffff19;border-radius:9px;background:#08141c;color:#dcecf3;cursor:pointer}.menu-toggle i{position:absolute;left:10px;width:16px;height:1px;border-radius:2px;background:currentColor;transition:transform .25s ease,top .25s ease,opacity .2s ease}.menu-toggle i:nth-child(1){top:12px}.menu-toggle i:nth-child(2){top:18px}.menu-toggle i:nth-child(3){top:24px}.menu-toggle.active i:nth-child(1){top:18px;transform:rotate(45deg)}.menu-toggle.active i:nth-child(2){opacity:0}.menu-toggle.active i:nth-child(3){top:18px;transform:rotate(-45deg)}
|
||||
@media(max-width:900px){.menu-toggle{display:block}.nav{isolation:isolate}.mobile-nav{position:absolute;z-index:-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;left:0;right:0;top:calc(100% - 6px);padding:20px 14px 14px;border:1px solid #ffffff17;border-top:0;border-radius:0 0 14px 14px;background:#07131bf2;box-shadow:0 25px 50px #0008;backdrop-filter:blur(20px);opacity:0;visibility:hidden;transform:translateY(-12px) scale(.985);transform-origin:top;transition:opacity .24s ease,transform .28s cubic-bezier(.2,.8,.2,1),visibility .24s}.mobile-nav.open{opacity:1;visibility:visible;transform:none}.mobile-nav a{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 13px;border:1px solid transparent;border-radius:9px;color:#8ba1ac;text-decoration:none;font-size:13px;background:#ffffff03;transition:color .2s ease,border-color .2s ease,background .2s ease}.mobile-nav a span{color:#34cef6;font:700 9px Inter,sans-serif}.mobile-nav a:hover,.mobile-nav a.active{color:#e5f3f8;border-color:#36d1f72c;background:#28c8f50a}.mobile-nav .mobile-client{grid-column:1/-1;justify-content:center;margin-top:3px;color:#04141b;background:#25c7f3;font-weight:800}.mobile-nav .mobile-client:hover{color:#04141b;background:#61d7fa}.mobile-client b{margin-left:auto}}
|
||||
@media(max-width:600px){.nav-github{display:none}.mobile-nav{grid-template-columns:1fr}.mobile-nav .mobile-client{grid-column:auto}.menu-toggle{width:36px;height:36px}}
|
||||
|
||||
/* GitHub release timeline */
|
||||
.releases{border-bottom:1px solid #ffffff0d}.release-list{display:grid;gap:10px}.release-list>a,.release-empty{display:grid;grid-template-columns:145px minmax(0,1fr) 28px;gap:25px;align-items:center;min-height:126px;padding:22px 25px;color:inherit;text-decoration:none;background:linear-gradient(110deg,#0a161e,#08131b);border:1px solid #ffffff10;border-radius:13px;transition:transform .25s ease,border-color .25s ease,background .25s ease}.release-list>a:hover,.release-empty:hover{transform:translateX(5px);border-color:#38d3f83c;background:linear-gradient(110deg,#0c1d27,#091720)}.release-meta{display:flex;flex-direction:column;gap:13px;padding-right:22px;border-right:1px solid #ffffff0d}.release-meta span{align-self:flex-start;padding:5px 8px;border-radius:99px;color:#42d8fa;background:#27caf312;font:800 9px Inter,sans-serif;text-transform:uppercase;letter-spacing:.08em}.release-meta time{color:#637b87;font-size:10px}.release-list>a>div:nth-child(2){min-width:0}.release-list small{display:block;margin-bottom:7px;color:#36cef5;font:700 10px Inter,sans-serif}.release-list strong{display:block;color:#dceaf0;font-size:16px}.release-list p,.release-empty p{max-width:760px;margin:8px 0 0;color:#738a95;font-size:12px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.release-list>a>b,.release-empty>b{color:#42d5f8;font-size:17px;transition:transform .2s ease}.release-list>a:hover>b,.release-empty:hover>b{transform:translate(3px,-3px)}.release-empty{grid-template-columns:50px 1fr 28px}.release-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:#3bd3f8;background:#25c8f111;border:1px solid #36d1f72b}.release-empty strong{font-size:16px}.release-all{display:inline-block;margin-top:23px;color:#67dcfb}
|
||||
.release-list>a{opacity:0;transform:translateY(18px)}.is-visible .release-list>a{animation:release-in .55s cubic-bezier(.2,.8,.2,1) both}.is-visible .release-list>a:nth-child(2){animation-delay:90ms}.is-visible .release-list>a:nth-child(3){animation-delay:180ms}@keyframes release-in{to{opacity:1;transform:none}}
|
||||
@media(max-width:700px){.release-list>a,.release-empty{grid-template-columns:1fr 24px;gap:14px;padding:19px}.release-meta{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:0 0 12px;border-right:0;border-bottom:1px solid #ffffff0d}.release-list p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.release-empty>span{display:none}}
|
||||
@media(prefers-reduced-motion:reduce){.menu-toggle i,.mobile-nav,.release-list>a,.release-empty,.release-list>a>b,.release-empty>b{animation:none!important;transition:none}.release-list>a{opacity:1;transform:none}}
|
||||
@@ -0,0 +1,238 @@
|
||||
import { StrictMode, useEffect, useState, type ReactNode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./landing.css";
|
||||
|
||||
const github = "https://github.com/Moepchi/webspeak3";
|
||||
const demo = "https://demo.webspeak3.de/";
|
||||
const client = "https://client.webspeak3.de/";
|
||||
|
||||
type Lang = "de" | "en";
|
||||
type PhoneStyle = "android" | "iphone";
|
||||
|
||||
function detectPhoneStyle(): PhoneStyle {
|
||||
const device = `${navigator.userAgent} ${navigator.platform}`.toLowerCase();
|
||||
return /iphone|ipad|ipod|macintosh|mac os/.test(device) ? "iphone" : "android";
|
||||
}
|
||||
|
||||
const copy = {
|
||||
de: {
|
||||
nav: ["Features", "Status", "Architektur", "Einblick", "Installation", "Community"], client: "Client öffnen", hero: ["Direkt im Browser.", "Dein vertrauter Voice-Client, neu gedacht fürs Web. Ohne Installation, ohne Cloud-Zwang – einfach Tab öffnen und verbinden."],
|
||||
demo: "Live Demo starten", github: "Auf GitHub ansehen", demoNote: "Die Demo nutzt simulierte Daten – ganz ohne echten Server.", built: "Gebaut mit",
|
||||
featureKicker: "ALLES, WAS DU BRAUCHST", featureTitle: "Voice-Chat ohne Kompromisse.", featureIntro: "Die Funktionen, die du von einem Desktop-Client erwartest – in einer modernen, offenen Web-App.",
|
||||
stepsKicker: "SO EINFACH GEHT'S", stepsTitle: "Server eingeben. Verbunden.", stepsText: "WebSpeak3 ist nicht an einen bestimmten Server gebunden. Öffne den Client, gib eine beliebige erreichbare Adresse ein und leg los.", steps: [["01", "Client öffnen", "Keine Installation und kein Konto nötig."], ["02", "Serveradresse eingeben", "Zum Beispiel voice.teamspeak.com."], ["03", "Direkt verbinden", "Voice, Chat und Channels stehen sofort bereit."]], connecting: "Verbindung wird hergestellt", connected: "Verbunden", nickname: "Nickname", connectNow: "Verbinden",
|
||||
features: [["voice", "Voice ohne Umwege", "Opus-Audio mit geringer Latenz, Sprachaktivierung, Gerätewahl und anpassbarer Empfindlichkeit."],["chat", "Chat, der alles bündelt", "Channel-, Server- und private Chats in übersichtlichen Tabs – inklusive Server-Events."],["tree", "Live Channel Tree", "Channels, Nutzer, Status, Länderflaggen und Wechsel in Echtzeit – vertraut, aber fürs Web gedacht."],["whisper", "Gezieltes Whispern", "Sprich mit einzelnen Clients oder ganzen Channels, ohne deinen aktuellen Raum zu stören."],["docker", "Self-hosted by design", "Ein Container für Web-App, Gateway und Connector. Deine Instanz, deine Regeln – mit freier Serverwahl."],["mobile", "Unterwegs verbunden", "Eine echte responsive Oberfläche für schmale Displays – nicht nur Desktop in klein."]] as const,
|
||||
privacyKicker: "PRIVATSPHÄRE EINGEBAUT", privacyTitle: ["Dein Web-Client.", "Freie Serverwahl."], privacyText: "Du hostest nur WebSpeak3 und sein Gateway selbst. Von dort verbindest du dich mit jedem erreichbaren TeamSpeak-Server – egal, wo er läuft oder wem er gehört.", privacyList: ["WebSpeak3 vollständig selbst hostbar", "Freie Wahl des TeamSpeak-Servers", "Am Zielserver ist keine Änderung nötig"], control: ["Kontrolle über", "deinen Client"],
|
||||
architectureKicker: "UNTER DER HAUBE", architectureTitle: "Vom Tab zu jedem Server.", architectureText: "Dein selbst gehostetes Gateway übersetzt WebSocket-Nachrichten in das echte TeamSpeak-Protokoll und verbindet dich mit dem gewünschten Server.",
|
||||
screenKicker: "FÜR JEDEN BILDSCHIRM", screenTitle: ["Desktop-Komfort.", "Mobile Freiheit."], screenText: "Dark oder Light, großer Monitor oder Smartphone: WebSpeak3 passt sich an, ohne Kernfunktionen zu verstecken.",
|
||||
statusKicker: "OFFEN ENTWICKELT", statusTitle: "Beta, aber schon ziemlich gesprächig.", statusText: "WebSpeak3 ist ein aktiver Prototyp. Diese Übersicht zeigt transparent, was heute bereits funktioniert und wo noch Feinschliff folgt.", statusLabels: ["Verfügbar", "In Arbeit", "Als Nächstes"], statusCards: [["Voice, Chat & Channel Tree", "Echte TS3/TS6-Verbindungen, Opus-Audio, Whisper, Chats und Live-Status."], ["Browser-Kompatibilität", "Audioausgabe und Mikrofonverhalten werden für weitere Browser und Geräte verfeinert."], ["Mehr Komfort", "Weitere Desktop-Client-Details, stabilere Randfälle und Community-Feedback."]], roadmap: "Roadmap und Issues ansehen",
|
||||
githubKicker: "LIVE VON GITHUB", githubTitle: "Offen entwickelt. Öffentlich nachvollziehbar.", githubText: "Aktuelle Projektdaten direkt aus dem öffentlichen Repository.", githubLabels: ["GitHub Stars", "Aktueller Release", "Zuletzt aktualisiert"], githubFallback: "Beta", releaseKicker: "WAS NEU IST", releaseTitle: "Die letzten Updates.", releaseText: "Releases und Änderungen direkt aus GitHub – automatisch aktuell.", releaseAction: "Alle Releases", releaseEmpty: "Noch keine veröffentlichten Release-Notizen. Die aktuelle Entwicklung kannst du auf GitHub verfolgen.", releaseFallback: "Aktuelle Entwicklung",
|
||||
tourKicker: "LIVE ERKUNDEN", tourTitle: "Der Client, erklärt im Kontext.", tourText: "Wähle einen Bereich und sieh direkt, wo die wichtigsten Funktionen im WebSpeak3-Client sitzen.", tourItems: [["tree", "Channel Tree", "Channels, Nutzer und Status wechseln in Echtzeit."], ["chat", "Chat & Events", "Server-, Channel- und Direktnachrichten bleiben übersichtlich getrennt."], ["voice", "Voice Controls", "Mikrofon, Lautsprecher, Aktivierung und Pegel immer griffbereit."], ["whisper", "Whisper", "Gezielt einzelne Nutzer oder komplette Channels ansprechen."]],
|
||||
installKicker: "IN MINUTEN STARTKLAR", installTitle: "Dein WebSpeak3. Jeder Server.", installText: "Hoste den Browser-Client selbst und verbinde dich anschließend mit jedem erreichbaren TeamSpeak-Server.", installSteps: [["01", "WebSpeak3 starten", "Passende Installationsart auswählen."], ["02", "Browser öffnen", "WebSpeak3 lokal oder über deine Domain aufrufen."], ["03", "Server frei wählen", "Beliebige TS-Adresse und deinen Nickname eingeben – fertig."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Entwicklung"], installGuide: "Installationsanleitung", copyCommand: "Befehl kopieren", copied: "Kopiert!",
|
||||
browserKicker: "BROWSER-CHECK", browserTitle: "Bereit für deinen Browser.", browserText: "WebSpeak3 nutzt moderne Web-Audio-APIs. Die Kernfunktionen laufen browserübergreifend; einzelne Gerätefunktionen können abweichen.", browserRows: [["Edge", "Voll unterstützt", "Empfohlen unter Windows"], ["Chrome / Chromium", "Voll unterstützt", "Desktop und Android"], ["Firefox", "Unterstützt", "Audioausgabe kann je nach System abweichen"], ["Safari", "Experimentell", "Web-Audio-Verhalten wird weiter verfeinert"]],
|
||||
communityKicker: "GEMEINSAM BESSER", communityTitle: "Dein Feedback formt WebSpeak3.", communityText: "WebSpeak3 entsteht offen auf GitHub. Melde Probleme, teile Ideen oder hilf direkt bei der Entwicklung.", communityCards: [["bug", "Fehler melden", "Etwas funktioniert nicht wie erwartet? Beschreibe das Problem und deine Umgebung.", "Bug erstellen"], ["idea", "Idee vorschlagen", "Dir fehlt eine Funktion oder du hast eine bessere Lösung im Kopf? Lass sie uns wissen.", "Idee teilen"], ["code", "Mitentwickeln", "Code, Tests, Dokumentation und Übersetzungen sind ausdrücklich willkommen.", "Repository öffnen"]], communityNote: "Offen, transparent und direkt mit den Menschen, die WebSpeak3 nutzen.",
|
||||
faqKicker: "GUT ZU WISSEN", faqTitle: "Fragen, bevor du loslegst.", faqs: [["Bin ich an einen bestimmten TeamSpeak-Server gebunden?", "Nein. Du kannst jede erreichbare TS3- oder TS6-Serveradresse eingeben – unabhängig davon, wer den Server hostet oder wo er läuft."], ["Was muss ich selbst hosten?", "Nur WebSpeak3 mit Gateway und Connector. Der TeamSpeak-Server kann dein eigener, der eines Freundes oder ein beliebiger anderer erreichbarer Server sein."], ["Wo laufen meine Sprachdaten?", "Sie laufen über deine WebSpeak3-Instanz direkt zum ausgewählten TeamSpeak-Server – ohne eine zentrale WebSpeak3-Cloud."], ["Welche Browser werden unterstützt?", "Moderne Chromium- und Firefox-Browser sind das Hauptziel. Einzelne Audiofunktionen können je nach Browser und Gerät abweichen."], ["Benötigt WebSpeak3 Zugriff auf mein Mikrofon?", "Erst wenn du das Mikrofon aktivierst. Dann fragt der Browser wie üblich nach deiner Erlaubnis."], ["Ist das Projekt produktionsreif?", "WebSpeak3 ist aktuell als Beta beziehungsweise Prototyp gekennzeichnet. Teste deine gewünschte Umgebung daher vor einem breiten Einsatz."], ["Kann ich mithelfen?", "Ja. Fehlerberichte, Ideen und Beiträge sind über das öffentliche GitHub-Repository willkommen."]],
|
||||
disclaimer: "Ein unabhängiges Open-Source-Projekt. Nicht mit TeamSpeak Systems GmbH verbunden.", imageAlt: "WebSpeak3 Client im Dark Mode",
|
||||
},
|
||||
en: {
|
||||
nav: ["Features", "Status", "Architecture", "Explore", "Installation", "Community"], client: "Open client", hero: ["Right in your browser.", "The voice client you know, reimagined for the web. No installation, no cloud lock-in — just open a tab and connect."],
|
||||
demo: "Launch live demo", github: "View on GitHub", demoNote: "The demo uses simulated data — no real server required.", built: "Built with",
|
||||
featureKicker: "EVERYTHING YOU NEED", featureTitle: "Voice chat without compromise.", featureIntro: "Everything you expect from a desktop client — inside a modern, open web app.",
|
||||
stepsKicker: "THAT SIMPLE", stepsTitle: "Enter a server. Connected.", stepsText: "WebSpeak3 is not tied to a particular server. Open the client, enter any reachable address and get started.", steps: [["01", "Open the client", "No installation or account required."], ["02", "Enter a server address", "For example voice.teamspeak.com."], ["03", "Connect directly", "Voice, chat and channels are ready right away."]], connecting: "Establishing connection", connected: "Connected", nickname: "Nickname", connectNow: "Connect",
|
||||
features: [["voice", "Voice without detours", "Low-latency Opus audio, voice activation, device selection and adjustable sensitivity."],["chat", "Chat that brings it together", "Channel, server and private chats in clear tabs — including live server events."],["tree", "Live channel tree", "Channels, users, status icons, country flags and switching in real time — familiar, built for the web."],["whisper", "Targeted whisper", "Talk to individual clients or entire channels without interrupting your current room."],["docker", "Self-hosted by design", "One container for the web app, gateway and connector. Your instance, your rules — with free choice of server."],["mobile", "Connected on the go", "A truly responsive interface for narrow screens — not merely a shrunken desktop UI."]] as const,
|
||||
privacyKicker: "PRIVACY BUILT IN", privacyTitle: ["Your web client.", "Your choice of server."], privacyText: "You only self-host WebSpeak3 and its gateway. From there, connect to any reachable TeamSpeak server — no matter where it runs or who hosts it.", privacyList: ["WebSpeak3 is fully self-hostable", "Free choice of TeamSpeak server", "No changes required on the target server"], control: ["Control over", "your client"],
|
||||
architectureKicker: "UNDER THE HOOD", architectureTitle: "From your tab to any server.", architectureText: "Your self-hosted gateway translates WebSocket messages into the real TeamSpeak protocol and connects you to the server you choose.",
|
||||
screenKicker: "FOR EVERY SCREEN", screenTitle: ["Desktop comfort.", "Mobile freedom."], screenText: "Dark or light, large display or smartphone: WebSpeak3 adapts without hiding core functionality.",
|
||||
statusKicker: "BUILT IN THE OPEN", statusTitle: "Beta, but already quite talkative.", statusText: "WebSpeak3 is an active prototype. This overview is transparent about what works today and where refinement is still underway.", statusLabels: ["Available", "In progress", "Up next"], statusCards: [["Voice, chat & channel tree", "Real TS3/TS6 connections, Opus audio, whisper, chats and live status."], ["Browser compatibility", "Audio output and microphone behavior are being refined across more browsers and devices."], ["More polish", "More desktop-client details, resilient edge cases and community feedback."]], roadmap: "View roadmap and issues",
|
||||
githubKicker: "LIVE FROM GITHUB", githubTitle: "Built in the open. Publicly traceable.", githubText: "Current project data directly from the public repository.", githubLabels: ["GitHub stars", "Current release", "Last updated"], githubFallback: "Beta", releaseKicker: "WHAT'S NEW", releaseTitle: "The latest updates.", releaseText: "Releases and changes straight from GitHub — always current.", releaseAction: "All releases", releaseEmpty: "No published release notes yet. Follow the current development on GitHub.", releaseFallback: "Current development",
|
||||
tourKicker: "EXPLORE IT LIVE", tourTitle: "The client, explained in context.", tourText: "Choose an area to see exactly where WebSpeak3 keeps its most important features.", tourItems: [["tree", "Channel tree", "Channels, users and status update in real time."], ["chat", "Chat & events", "Server, channel and direct messages stay clearly separated."], ["voice", "Voice controls", "Microphone, speakers, activation and levels remain within reach."], ["whisper", "Whisper", "Talk directly to individual users or complete channels."]],
|
||||
installKicker: "READY IN MINUTES", installTitle: "Your WebSpeak3. Any server.", installText: "Self-host the browser client, then connect to any reachable TeamSpeak server.", installSteps: [["01", "Start WebSpeak3", "Choose the installation method that fits."], ["02", "Open your browser", "Visit WebSpeak3 locally or through your domain."], ["03", "Choose any server", "Enter any TS address and your nickname — done."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Development"], installGuide: "Installation guide", copyCommand: "Copy command", copied: "Copied!",
|
||||
browserKicker: "BROWSER CHECK", browserTitle: "Ready for your browser.", browserText: "WebSpeak3 uses modern Web Audio APIs. Core features work across browsers; individual device features may vary.", browserRows: [["Edge", "Fully supported", "Recommended on Windows"], ["Chrome / Chromium", "Fully supported", "Desktop and Android"], ["Firefox", "Supported", "Audio output may vary by system"], ["Safari", "Experimental", "Web Audio behavior is still being refined"]],
|
||||
communityKicker: "BETTER TOGETHER", communityTitle: "Your feedback shapes WebSpeak3.", communityText: "WebSpeak3 is built openly on GitHub. Report problems, share ideas or contribute directly to development.", communityCards: [["bug", "Report a bug", "Something does not work as expected? Describe the issue and your environment.", "Create bug report"], ["idea", "Suggest an idea", "Missing a feature or have a better solution in mind? Let us know.", "Share an idea"], ["code", "Contribute", "Code, tests, documentation and translations are all welcome.", "Open repository"]], communityNote: "Open, transparent and directly shaped by the people who use WebSpeak3.",
|
||||
faqKicker: "GOOD TO KNOW", faqTitle: "Questions before you start.", faqs: [["Am I tied to a specific TeamSpeak server?", "No. Enter any reachable TS3 or TS6 server address, regardless of where it runs or who hosts it."], ["What do I need to self-host?", "Only WebSpeak3 with its gateway and connector. The TeamSpeak server can be yours, a friend's, or any other reachable server."], ["Where does my voice data go?", "It travels through your WebSpeak3 instance directly to the selected TeamSpeak server — without a central WebSpeak3 cloud."], ["Which browsers are supported?", "Modern Chromium and Firefox browsers are the main targets. Individual audio features may vary by browser and device."], ["Does WebSpeak3 need microphone access?", "Only when you enable the microphone. Your browser will then ask for permission as usual."], ["Is the project production-ready?", "WebSpeak3 is currently marked as a beta/prototype. Test your intended environment before rolling it out broadly."], ["Can I contribute?", "Yes. Bug reports, ideas and contributions are welcome through the public GitHub repository."]],
|
||||
disclaimer: "An independent open-source project. Not affiliated with TeamSpeak Systems GmbH.", imageAlt: "WebSpeak3 client in dark mode",
|
||||
},
|
||||
} as const;
|
||||
|
||||
function Icon({ name }: { name: string }) {
|
||||
const paths: Record<string, ReactNode> = {
|
||||
voice: <><path d="M12 3a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Z"/><path d="M5 10.5a7 7 0 0 0 14 0M12 17.5V22M8.5 22h7"/></>,
|
||||
chat: <><path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z"/><path d="M8 9h8M8 13h5"/></>,
|
||||
tree: <><path d="M5 4v16M5 8h6M5 16h6"/><rect x="11" y="5" width="8" height="6" rx="2"/><rect x="11" y="13" width="8" height="6" rx="2"/></>,
|
||||
whisper: <><path d="M4 13a8 8 0 0 1 8-8M4 18A13 13 0 0 1 17 5"/><path d="M14 13a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12 15v6"/></>,
|
||||
docker: <><path d="M3 11h18c0 6-3 9-9 9s-9-3-9-9Z"/><path d="M7 11V7h4v4M11 11V5h4v6M15 11V7h4v4"/></>,
|
||||
mobile: <><rect x="6" y="2" width="12" height="20" rx="3"/><path d="M10 5h4M11 19h2"/></>,
|
||||
lock: <><rect x="4" y="10" width="16" height="11" rx="3"/><path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3"/></>,
|
||||
};
|
||||
return <svg viewBox="0 0 24 24" aria-hidden="true">{paths[name]}</svg>;
|
||||
}
|
||||
|
||||
const installCommands = [
|
||||
"docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest",
|
||||
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up -d",
|
||||
"caddy reverse-proxy --from webspeak3.example.com --to localhost:8080",
|
||||
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up --build",
|
||||
] as const;
|
||||
|
||||
type GitHubStats = { stars: number | null; release: string | null; updated: string | null };
|
||||
type GitHubRelease = { id: number; tag: string; title: string; body: string; date: string; url: string };
|
||||
|
||||
function Landing() {
|
||||
const [lang, setLang] = useState<Lang>(() => {
|
||||
const saved = localStorage.getItem("webspeak3:landing-language");
|
||||
if (saved === "de" || saved === "en") return saved;
|
||||
return navigator.language.toLowerCase().startsWith("de") ? "de" : "en";
|
||||
});
|
||||
const t = copy[lang];
|
||||
const [activeTour, setActiveTour] = useState(0);
|
||||
const [copied, setCopied] = useState(false);
|
||||
const [phoneStyle] = useState<PhoneStyle>(detectPhoneStyle);
|
||||
const [installMethod, setInstallMethod] = useState(0);
|
||||
const [activeNav, setActiveNav] = useState("");
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
const [githubStats, setGithubStats] = useState<GitHubStats>({ stars: null, release: null, updated: null });
|
||||
const [releases, setReleases] = useState<GitHubRelease[]>([]);
|
||||
|
||||
const copyInstallCommand = () => {
|
||||
navigator.clipboard?.writeText(installCommands[installMethod]);
|
||||
setCopied(true);
|
||||
window.setTimeout(() => setCopied(false), 1800);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
localStorage.setItem("webspeak3:landing-language", lang);
|
||||
document.documentElement.lang = lang;
|
||||
document.title = lang === "de"
|
||||
? "WebSpeak3 – TeamSpeak 3 im Browser | Open Source"
|
||||
: "WebSpeak3 – TeamSpeak 3 in Your Browser | Open Source";
|
||||
}, [lang]);
|
||||
|
||||
useEffect(() => {
|
||||
const controller = new AbortController();
|
||||
Promise.all([
|
||||
fetch("https://api.github.com/repos/Moepchi/webspeak3", { signal: controller.signal }).then(response => response.ok ? response.json() : null),
|
||||
fetch("https://api.github.com/repos/Moepchi/webspeak3/releases?per_page=3", { signal: controller.signal }).then(response => response.ok ? response.json() : []),
|
||||
]).then(([repo, releaseData]) => {
|
||||
const items = Array.isArray(releaseData) ? releaseData : [];
|
||||
setGithubStats({
|
||||
stars: typeof repo?.stargazers_count === "number" ? repo.stargazers_count : null,
|
||||
release: typeof items[0]?.tag_name === "string" ? items[0].tag_name : null,
|
||||
updated: typeof repo?.pushed_at === "string" ? repo.pushed_at : null,
|
||||
});
|
||||
setReleases(items.map((release: any) => ({
|
||||
id: Number(release.id),
|
||||
tag: String(release.tag_name ?? "Beta"),
|
||||
title: String(release.name || release.tag_name || "WebSpeak3"),
|
||||
body: String(release.body || "").replace(/[#>*_`[\]]/g, "").replace(/\r?\n+/g, " ").trim(),
|
||||
date: String(release.published_at || release.created_at || ""),
|
||||
url: String(release.html_url || `${github}/releases`),
|
||||
})));
|
||||
}).catch(() => undefined);
|
||||
return () => controller.abort();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const closeOnEscape = (event: KeyboardEvent) => event.key === "Escape" && setMobileMenuOpen(false);
|
||||
window.addEventListener("keydown", closeOnEscape);
|
||||
return () => window.removeEventListener("keydown", closeOnEscape);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const elements = document.querySelectorAll<HTMLElement>(".reveal");
|
||||
const observer = new IntersectionObserver(
|
||||
entries => entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add("is-visible");
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
}),
|
||||
{ threshold: 0.14 },
|
||||
);
|
||||
elements.forEach(element => observer.observe(element));
|
||||
return () => observer.disconnect();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const sections = ["features", "status", "architecture", "tour", "install", "community"]
|
||||
.map(id => document.getElementById(id))
|
||||
.filter((section): section is HTMLElement => section !== null);
|
||||
const updateActiveSection = () => {
|
||||
const marker = window.innerHeight * 0.34;
|
||||
let current = "";
|
||||
sections.forEach(section => {
|
||||
if (section.getBoundingClientRect().top <= marker) current = section.id;
|
||||
});
|
||||
setActiveNav(current);
|
||||
};
|
||||
updateActiveSection();
|
||||
window.addEventListener("scroll", updateActiveSection, { passive: true });
|
||||
window.addEventListener("resize", updateActiveSection);
|
||||
return () => {
|
||||
window.removeEventListener("scroll", updateActiveSection);
|
||||
window.removeEventListener("resize", updateActiveSection);
|
||||
};
|
||||
}, []);
|
||||
|
||||
return <div className="landing">
|
||||
<div className="ambient ambient-one"></div><div className="ambient ambient-two"></div>
|
||||
<header className="nav shell">
|
||||
<a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a>
|
||||
<nav aria-label={lang === "de" ? "Hauptnavigation" : "Main navigation"}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => setActiveNav(id)}>{t.nav[index]}</a>)}</nav>
|
||||
<div className="nav-actions"><div className="language-switch" role="group" aria-label={lang === "de" ? "Sprache wählen" : "Choose language"}><button className={lang === "de" ? "active" : ""} onClick={() => { setLang("de"); setMobileMenuOpen(false); }} aria-pressed={lang === "de"}>DE</button><button className={lang === "en" ? "active" : ""} onClick={() => { setLang("en"); setMobileMenuOpen(false); }} aria-pressed={lang === "en"}>EN</button></div><a className="nav-github" href={github} target="_blank" rel="noreferrer">GitHub <span>↗</span></a><button className={`menu-toggle ${mobileMenuOpen ? "active" : ""}`} type="button" aria-label={lang === "de" ? "Navigation öffnen" : "Open navigation"} aria-expanded={mobileMenuOpen} aria-controls="mobile-navigation" onClick={() => setMobileMenuOpen(open => !open)}><i></i><i></i><i></i></button></div>
|
||||
<div className={`mobile-nav ${mobileMenuOpen ? "open" : ""}`} id="mobile-navigation" aria-hidden={!mobileMenuOpen}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => { setActiveNav(id); setMobileMenuOpen(false); }}><span>0{index + 1}</span>{t.nav[index]}</a>)}<a className="mobile-client" href={client}>{t.client}<b>→</b></a></div>
|
||||
</header>
|
||||
|
||||
<main id="top">
|
||||
<section className="hero shell">
|
||||
<div className="hero-copy">
|
||||
<div className="eyebrow"><span></span> Open Source · Self-hosted · Beta</div>
|
||||
<h1>TeamSpeak 3.<br/><em>{t.hero[0]}</em></h1>
|
||||
<p>{t.hero[1]}</p>
|
||||
<div className="actions hero-actions"><a className="button primary" href={client}>{t.client} <span>→</span></a><a className="button secondary" href={demo}>{t.demo}</a><a className="button tertiary" href={github} target="_blank" rel="noreferrer">{t.github} ↗</a></div>
|
||||
<p className="demo-note"><span>●</span> {t.demoNote}</p>
|
||||
<div className="hero-stats"><span><strong>< 30 ms</strong> Voice latency</span><span><strong>100%</strong> self-hosted</span><span><strong>MIT</strong> open source</span></div>
|
||||
</div>
|
||||
<div className="hero-visual">
|
||||
<div className="glow"></div>
|
||||
<div className="app-frame"><div className="frame-bar"><i></i><i></i><i></i><span>WebSpeak3 · Demo Server</span></div><img src="../screenshots/webspeak_dark.png" alt={t.imageAlt}/></div>
|
||||
<div className="signal-card"><span className="signal">▥</span><div><strong>Voice connected</strong><small>Opus · 48 kHz · 24 ms</small></div><b></b></div>
|
||||
<div className="voice-waves" aria-hidden="true">{[1,2,3,4,5,6,7,8,9,10,11,12].map(n=><i key={n}></i>)}</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="trust shell reveal"><span>{t.built}</span>{["React","TypeScript","Vite","Node.js","Rust","Docker"].map(x=><strong key={x}>{x}</strong>)}</section>
|
||||
|
||||
<section className="section shell quick-connect reveal"><div className="section-head"><div><span className="kicker">{t.stepsKicker}</span><h2>{t.stepsTitle}</h2></div><p>{t.stepsText}</p></div><div className="connect-layout"><div className="connect-steps">{t.steps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="connect-demo"><div className="demo-window-bar"><i></i><i></i><i></i><span>WebSpeak3</span></div><label><small>TeamSpeak Server</small><div className="fake-input"><span className="typed-server">voice.teamspeak.com</span><b></b></div></label><label><small>{t.nickname}</small><div className="fake-input"><span>WebSpeak User</span></div></label><button onClick={() => window.location.assign(client)} aria-label={t.client}>{t.connectNow}<span>→</span></button><div className="connect-progress"><i></i><span className="progress-connecting">{t.connecting}…</span><span className="progress-connected">✓ {t.connected} · voice.teamspeak.com</span></div></div></div></section>
|
||||
|
||||
<section className="section shell reveal" id="features">
|
||||
<div className="section-head"><div><span className="kicker">{t.featureKicker}</span><h2>{t.featureTitle}</h2></div><p>{t.featureIntro}</p></div>
|
||||
<div className="feature-grid">{t.features.map(([icon,title,description],index)=><article className={`feature-${index + 1}`} key={icon}><span className="card-index">0{index + 1}</span><div className="icon"><Icon name={icon}/></div><h3>{title}</h3><p>{description}</p>{index === 0 && <div className="mini-wave" aria-hidden="true">{[1,2,3,4,5,6,7,8,9].map(n=><i key={n}></i>)}</div>}</article>)}</div>
|
||||
</section>
|
||||
|
||||
<section className="privacy reveal"><div className="shell privacy-inner"><div className="privacy-copy"><div className="icon large"><Icon name="lock"/></div><span className="kicker">{t.privacyKicker}</span><h2>{t.privacyTitle[0]}<br/>{t.privacyTitle[1]}</h2><p>{t.privacyText}</p><ul>{t.privacyList.map(item => <li key={item}>{item}</li>)}</ul></div><div className="privacy-card"><div className="orbit orbit-outer"><i></i></div><div className="orbit orbit-inner"><i></i></div><span>SELF-HOSTED</span><strong>100%</strong><small>{t.control[0]}<br/>{t.control[1]}</small></div></div></section>
|
||||
|
||||
<section className="section shell status reveal" id="status"><div className="section-head"><div><span className="kicker">{t.statusKicker}</span><h2>{t.statusTitle}</h2></div><p>{t.statusText}</p></div><div className="status-grid">{t.statusCards.map(([title, description], index) => <article key={title}><span className={`status-dot status-${index}`}></span><small>{t.statusLabels[index]}</small><h3>{title}</h3><p>{description}</p></article>)}</div><a className="text-link status-link" href={`${github}/issues`} target="_blank" rel="noreferrer">{t.roadmap} <span>↗</span></a></section>
|
||||
|
||||
<section className="github-live reveal"><div className="shell github-inner"><div className="github-copy"><span className="kicker">{t.githubKicker}</span><h2>{t.githubTitle}</h2><p>{t.githubText}</p><a className="text-link" href={github} target="_blank" rel="noreferrer">github.com/Moepchi/webspeak3 ↗</a></div><div className="github-metrics"><article><span>★</span><strong>{githubStats.stars === null ? "—" : githubStats.stars.toLocaleString(lang === "de" ? "de-DE" : "en-US")}</strong><small>{t.githubLabels[0]}</small></article><article><span>↗</span><strong>{githubStats.release ?? t.githubFallback}</strong><small>{t.githubLabels[1]}</small></article><article><span>↻</span><strong>{githubStats.updated ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(githubStats.updated)) : "—"}</strong><small>{t.githubLabels[2]}</small></article></div></div></section>
|
||||
|
||||
<section className="section shell releases reveal"><div className="section-head"><div><span className="kicker">{t.releaseKicker}</span><h2>{t.releaseTitle}</h2></div><p>{t.releaseText}</p></div>{releases.length > 0 ? <div className="release-list">{releases.map((release, index) => <a href={release.url} target="_blank" rel="noreferrer" key={release.id}><div className="release-meta"><span>{index === 0 ? "Latest" : `0${index + 1}`}</span><time dateTime={release.date}>{release.date ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(release.date)) : "GitHub"}</time></div><div><small>{release.tag}</small><strong>{release.title}</strong><p>{release.body || t.releaseFallback}</p></div><b>↗</b></a>)}</div> : <a className="release-empty" href={`${github}/commits/main`} target="_blank" rel="noreferrer"><span>↻</span><div><strong>{t.releaseFallback}</strong><p>{t.releaseEmpty}</p></div><b>↗</b></a>}<a className="text-link release-all" href={`${github}/releases`} target="_blank" rel="noreferrer">{t.releaseAction} <span>↗</span></a></section>
|
||||
|
||||
<section className="section shell architecture reveal" id="architecture"><div className="section-head centered"><div><span className="kicker">{t.architectureKicker}</span><h2>{t.architectureTitle}</h2></div><p>{t.architectureText}</p></div><div className="flow">{[["Browser","React + Web Audio"],["Gateway","WebSocket · Node.js"],["Rust Connector","tsclientlib + Opus"],["TeamSpeak Server","TS3 / TS6 Protocol"]].map((x,i)=><div className="flow-wrap" style={{"--delay": `${i * 120}ms`} as React.CSSProperties} key={x[0]}><div className="flow-node"><span>0{i+1}</span><strong>{x[0]}</strong><small>{x[1]}</small></div>{i<3&&<div className="flow-arrow" aria-hidden="true"><i></i></div>}</div>)}</div></section>
|
||||
|
||||
<section className="section shell showcase reveal"><div className="showcase-copy"><span className="kicker">{t.screenKicker}</span><h2>{t.screenTitle[0]}<br/>{t.screenTitle[1]}</h2><p>{t.screenText}</p><div className="theme-pills"><span>☾ Dark Mode</span><span>☀ Light Mode</span><span>⌁ Responsive</span></div></div><div className="screens"><img className="screen-desktop" src="../screenshots/webspeak_current.png" alt="WebSpeak3 Desktop Client"/><div className={`phone-frame phone-${phoneStyle}`} data-device-frame={phoneStyle}><i className="phone-button phone-button-left" aria-hidden="true"></i><i className="phone-button phone-button-right" aria-hidden="true"></i><div className="phone-sensor" aria-hidden="true"><span></span><b></b></div><img src="../screenshots/webspeak_mobile.png" alt="WebSpeak3 Mobile Client"/><div className="phone-home" aria-hidden="true"></div></div></div></section>
|
||||
|
||||
<section className="section shell product-tour reveal" id="tour"><div className="section-head"><div><span className="kicker">{t.tourKicker}</span><h2>{t.tourTitle}</h2></div><p>{t.tourText}</p></div><div className="tour-layout"><div className="tour-screen"><div className="tour-image"><img src="../screenshots/webspeak_current.png" alt={t.imageAlt}/>{t.tourItems.map((item, index) => <button key={item[0]} className={`hotspot hotspot-${item[0]} ${activeTour === index ? "active" : ""}`} onClick={() => setActiveTour(index)} aria-label={item[1]} aria-pressed={activeTour === index}><span>{index + 1}</span></button>)}</div><div className="tour-caption"><span>0{activeTour + 1}</span><div><strong>{t.tourItems[activeTour][1]}</strong><p>{t.tourItems[activeTour][2]}</p></div></div></div><div className="tour-tabs">{t.tourItems.map((item, index) => <button key={item[0]} className={activeTour === index ? "active" : ""} onClick={() => setActiveTour(index)}><span>0{index + 1}</span><div><strong>{item[1]}</strong><small>{item[2]}</small></div></button>)}</div></div></section>
|
||||
|
||||
<section className="install shell reveal" id="install"><span className="kicker">{t.installKicker}</span><h2>{t.installTitle}</h2><p>{t.installText}</p><div className="install-steps">{t.installSteps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="install-tabs" role="tablist">{t.installTabs.map((label, index) => <button key={label} role="tab" aria-selected={installMethod === index} className={installMethod === index ? "active" : ""} onClick={() => { setInstallMethod(index); setCopied(false); }}>{label}</button>)}</div><div className="command"><code><i>$</i> {installCommands[installMethod]}</code><button className={copied ? "copied" : ""} onClick={copyInstallCommand} aria-label={t.copyCommand}>{copied ? `✓ ${t.copied}` : "⧉"}</button></div><div className="actions centered-actions"><a className="button primary" href={`${github}#-installation`} target="_blank" rel="noreferrer">{t.installGuide} <span>→</span></a><a className="text-link" href="https://hub.docker.com/r/moepchi/webspeak3" target="_blank" rel="noreferrer">Docker Hub ↗</a></div></section>
|
||||
|
||||
<section className="section shell browser-check reveal"><div className="section-head"><div><span className="kicker">{t.browserKicker}</span><h2>{t.browserTitle}</h2></div><p>{t.browserText}</p></div><div className="browser-table">{t.browserRows.map(([browserName, status, note], index) => <article key={browserName}><span className={`browser-logo browser-${index}`}>{browserName.slice(0, 1)}</span><strong>{browserName}</strong><b>{status}</b><small>{note}</small></article>)}</div></section>
|
||||
|
||||
<section className="community reveal" id="community"><div className="shell community-inner"><div className="section-head"><div><span className="kicker">{t.communityKicker}</span><h2>{t.communityTitle}</h2></div><p>{t.communityText}</p></div><div className="community-grid">{t.communityCards.map(([kind, title, description, action], index) => { const href = index === 0 ? `${github}/issues/new?labels=bug` : index === 1 ? `${github}/issues/new?labels=enhancement` : github; return <a href={href} target="_blank" rel="noreferrer" key={kind}><span className={`community-icon community-${kind}`}>{kind === "bug" ? "!" : kind === "idea" ? "✦" : "‹/›"}</span><div><strong>{title}</strong><p>{description}</p><small>{action} <b>↗</b></small></div></a>; })}</div><p className="community-note"><span>●</span>{t.communityNote}</p></div></section>
|
||||
|
||||
<section className="section shell faq reveal"><div className="section-head centered"><div><span className="kicker">{t.faqKicker}</span><h2>{t.faqTitle}</h2></div></div><div className="faq-list">{t.faqs.map(([question, answer], index) => <details key={question} open={index === 0}><summary><span>0{index + 1}</span>{question}<i>+</i></summary><p>{answer}</p></details>)}</div></section>
|
||||
</main>
|
||||
|
||||
<footer><div className="shell footer-inner"><a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a><p>{t.disclaimer}</p><div><a href={`${github}/blob/main/LICENSE`}>MIT License</a><a href={github}>GitHub</a><a href={`${github}/issues`}>Issues</a></div></div></footer>
|
||||
</div>;
|
||||
}
|
||||
|
||||
createRoot(document.getElementById("landing-root")!).render(<StrictMode><Landing /></StrictMode>);
|
||||
@@ -134,6 +134,11 @@ export class MicCapture {
|
||||
this.silence.connect(this.context.destination);
|
||||
}
|
||||
|
||||
/** The raw mic input node, e.g. to additionally route it into a recorder. */
|
||||
getSourceNode(): AudioNode | null {
|
||||
return this.source;
|
||||
}
|
||||
|
||||
/** Routes the raw mic signal to `destination` too, so you can hear yourself (a mic test), until disabled again. */
|
||||
setMonitoring(enabled: boolean, destination: AudioNode): void {
|
||||
if (!this.source) return;
|
||||
@@ -166,6 +171,45 @@ export class MicCapture {
|
||||
}
|
||||
}
|
||||
|
||||
function writeAsciiString(view: DataView, offset: number, text: string): void {
|
||||
for (let i = 0; i < text.length; i++) view.setUint8(offset + i, text.charCodeAt(i));
|
||||
}
|
||||
|
||||
/** Encodes raw stereo float samples (range -1..1) as an uncompressed 16-bit PCM WAV file. */
|
||||
export function encodeWavStereo(left: Float32Array, right: Float32Array, sampleRate: number): Blob {
|
||||
const numChannels = 2;
|
||||
const bytesPerSample = 2;
|
||||
const blockAlign = numChannels * bytesPerSample;
|
||||
const dataSize = left.length * blockAlign;
|
||||
const buffer = new ArrayBuffer(44 + dataSize);
|
||||
const view = new DataView(buffer);
|
||||
|
||||
writeAsciiString(view, 0, "RIFF");
|
||||
view.setUint32(4, 36 + dataSize, true);
|
||||
writeAsciiString(view, 8, "WAVE");
|
||||
writeAsciiString(view, 12, "fmt ");
|
||||
view.setUint32(16, 16, true);
|
||||
view.setUint16(20, 1, true); // PCM
|
||||
view.setUint16(22, numChannels, true);
|
||||
view.setUint32(24, sampleRate, true);
|
||||
view.setUint32(28, sampleRate * blockAlign, true);
|
||||
view.setUint16(32, blockAlign, true);
|
||||
view.setUint16(34, 16, true);
|
||||
writeAsciiString(view, 36, "data");
|
||||
view.setUint32(40, dataSize, true);
|
||||
|
||||
let offset = 44;
|
||||
for (let i = 0; i < left.length; i++) {
|
||||
const l = Math.max(-1, Math.min(1, left[i]));
|
||||
const r = Math.max(-1, Math.min(1, right[i]));
|
||||
view.setInt16(offset, l < 0 ? l * 0x8000 : l * 0x7fff, true);
|
||||
view.setInt16(offset + 2, r < 0 ? r * 0x8000 : r * 0x7fff, true);
|
||||
offset += blockAlign;
|
||||
}
|
||||
|
||||
return new Blob([buffer], { type: "audio/wav" });
|
||||
}
|
||||
|
||||
/** Output ("audiooutput") devices available for playback, e.g. for a device picker. */
|
||||
export async function listAudioOutputDevices(): Promise<MediaDeviceInfo[]> {
|
||||
if (!navigator.mediaDevices) return [];
|
||||
|
||||
+31
-2
@@ -1,10 +1,39 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { defineConfig, type Plugin } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { resolve } from 'node:path'
|
||||
|
||||
function landingSlashRedirect(): Plugin {
|
||||
const redirect = (server: { middlewares: { use: (handler: (req: { url?: string }, res: { statusCode: number; setHeader: (name: string, value: string) => void; end: () => void }, next: () => void) => void) => void } }) => {
|
||||
server.middlewares.use((req, res, next) => {
|
||||
if (req.url === '/landing') {
|
||||
res.statusCode = 302
|
||||
res.setHeader('Location', '/landing/')
|
||||
res.end()
|
||||
return
|
||||
}
|
||||
next()
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
name: 'landing-slash-redirect',
|
||||
configureServer: redirect,
|
||||
configurePreviewServer: redirect,
|
||||
}
|
||||
}
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [landingSlashRedirect(), react()],
|
||||
// Set by the GitHub Pages workflow to the repo subpath (e.g. /webspeak3/);
|
||||
// the normal Docker build serves from the domain root and leaves this unset.
|
||||
base: process.env.VITE_BASE_PATH || '/',
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
app: resolve(__dirname, 'index.html'),
|
||||
landing: resolve(__dirname, 'landing/index.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user