From deabfbff3cab158966a13a81932918783421e61a Mon Sep 17 00:00:00 2001 From: Moepchi Date: Sat, 3 Oct 2026 01:54:31 +0000 Subject: [PATCH] feat: server banner can be turned off; document what the browser stores Review S12: the banner loads from a host the server admin picks, which sees the viewer's IP. It's now a switch under Options -> Application and is requested without a referrer. Proxying it through the gateway would make the gateway fetch arbitrary URLs, so that's left out. Review S10: identities and favorite passwords stay in localStorage (the native client keeps them in plain settings files too; favorite passwords are already optional). The README now says so. Also labels the dialogs' close buttons for screen readers. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- README.md | 6 ++- web/src/App.tsx | 88 +++++++++++++++++++++++++------------- web/src/locales/de.json | 2 + web/src/locales/en.json | 2 + web/src/locales/fa.json | 2 + web/src/locales/zh-CN.json | 2 + 6 files changed, 71 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 47a31f7..725a637 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ not need to be installed on the same machine, modified, or operated by you. |---|---| | 🔌 **Real TeamSpeak protocol** | Connects to actual TS3/TS6, TeaSpeak, and GreenTeaSpeak servers over a WebSocket gateway — the server stays exactly as-is | | 🎙️ **Low-latency voice** | Opus-encoded voice with voice activation ("Sprachaktivierung") and adjustable sensitivity | +| 🎵 **Tab audio** | Mix a browser tab's sound (music, a video) into your voice, without the echo canceller eating it | | 🤫 **Whisper** | Target your voice at specific channels or clients instead of your whole current channel | | 🔊 **Custom audio output picker** | Route playback to any output device — works even in browsers without `AudioContext.setSinkId` | | 💬 **Full text chat** | Channel, server-wide, and private (1:1) chat, each in its own tab — Shift+Enter for a newline | @@ -81,7 +82,8 @@ not need to be installed on the same machine, modified, or operated by you. | 🌍 **Localized UI** | Interface available in German, English, Simplified Chinese, and Persian (Beta), detected automatically or switchable in Options | | 🌗 **Dark / light theme** | Clean, modern UI that adapts to your preference | | 🔁 **Multi-join (server tabs)** | Several connections in parallel — one tab per server, like GreenTeaSpeak 2. Audio stays on the active tab | -| 🔁 **Seamless reconnect** | Switch or add connections mid-session without tearing down unrelated tabs | +| 🔁 **Seamless reconnect** | Switch or add connections mid-session without tearing down unrelated tabs; dropped connections come back on their own, with the channel tree intact | +| ⌨️ **Keyboard basics** | Tab through the tree (Enter joins, context-menu key opens the menu), focus-trapped dialogs, labelled toolbar buttons | | 🍵 **GreenTeaSpeak support** | Connects to real GreenTeaSpeak servers (not just TS3/TS6/TeaSpeak), plus an optional GTS-styled UI chrome (dark panels, gold menu bar, connection-tab strip) alongside the default look | | 🖥️ **Screen streaming to/from TS6** | **ALPHA · UNSTABLE** Share your screen to native TeamSpeak 6 clients and watch theirs. Built on TS6's undocumented Stream/Call protocol — expect it to break; see [Roadmap](ROADMAP.md) | @@ -209,6 +211,8 @@ All optional; add them under `environment:` in your compose override next to `PO > **Trust model:** the gateway speaks the TeamSpeak protocol on the user's behalf, so whoever runs it necessarily handles their identity key, server/channel passwords and privilege keys (they're kept out of process listings, but the operator can still see them). Only use gateways you trust, and serve them over HTTPS/WSS (`TLS_CERT`/`TLS_KEY` or a TLS-terminating proxy) - plain HTTP exposes all of that on the wire. File uploads are limited to 24 MiB, downloads to 25 MiB. +> **Stored in the browser:** identities (including their private keys), favorites with any passwords you typed into them, and settings live in the browser's `localStorage`, unencrypted - the same way the native client keeps them in its settings files. Anyone with access to your browser profile can read them; leave favorite password fields empty on shared machines and export identities you care about. Server banners load directly from the host the server admin configured; turn them off under Options → Application if you don't want that host to see your IP. +
🛠️ Manual installation (without Docker) diff --git a/web/src/App.tsx b/web/src/App.tsx index e95bf52..1d7f25b 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -490,6 +490,9 @@ function loadFavorites(): Favorite[] { } const AWAY_PRESETS_KEY = "webspeak3:away-presets"; +/** "off" hides the server banner: it loads from whatever host the server + * admin picked, which then sees the viewer's IP (review S12). */ +const SERVER_BANNER_KEY = "webspeak3:server-banner"; const DISCONNECT_MESSAGE_KEY = "webspeak3:disconnect-message"; const COLLECTED_URLS_KEY = "webspeak3:collected-urls"; @@ -1552,7 +1555,7 @@ function ConnectDialog({ ) : (
{t("connect.title")} -
@@ -1958,7 +1961,7 @@ function StreamSettingsDialog({ {t("publish.dialog.title")} - @@ -2418,7 +2421,7 @@ function FeedbackDialog({ onClose }: { onClose: () => void }) {
e.stopPropagation()}>
{t("feedback.dialog.title")} -
@@ -2582,7 +2585,7 @@ function FavoritesDialog({
e.stopPropagation()}>
{t("favorites.title")} -
@@ -2757,7 +2760,7 @@ function CollectedUrlsDialog({
e.stopPropagation()}>
{t("collectedUrls.title")} -
@@ -2824,7 +2827,7 @@ function InviteFriendDialog({
e.stopPropagation()}>
{t("inviteFriend.title")} -
@@ -2918,7 +2921,7 @@ function ClientLogDialog({ entries, onClose }: { entries: ClientLogEntry[]; onCl
e.stopPropagation()}>
{t("clientLog.title")} -
@@ -3006,7 +3009,7 @@ function BanListDialog({
e.stopPropagation()}>
{t("banList.title")} -
@@ -3087,7 +3090,7 @@ function ComplainListDialog({
e.stopPropagation()}>
{t("complainList.title")} -
@@ -3183,7 +3186,7 @@ function OfflineMessagesDialog({
e.stopPropagation()}>
{t("offlineMessages.title")} -
@@ -3306,7 +3309,7 @@ function GroupAssignDialog({ {kind === "channel" ? t("groupAssign.channelTitle") : t("groupAssign.serverTitle")} - {clientName} -
@@ -3374,7 +3377,7 @@ function MoveClientDialog({ {t("moveClient.title")} - {clientName} -
@@ -3490,7 +3493,7 @@ function FileBrowserDialog({ {t("fileBrowser.title")} - {channelName} -
@@ -3754,7 +3757,7 @@ function ServerIconsDialog({
e.stopPropagation()}>
{t("serverIcons.title")} -
@@ -3973,7 +3976,7 @@ function PermissionsEditorDialog({
e.stopPropagation()}>
{t("permsEditor.title")} -
@@ -4235,7 +4238,7 @@ function PermissionOverviewDialog({
e.stopPropagation()}>
{t("permissionOverview.title")} -
@@ -4315,7 +4318,7 @@ function ServerProtocolLogDialog({
e.stopPropagation()}>
{t("serverProtocolLog.title")} -
@@ -4365,7 +4368,7 @@ function WhisperHistoryDialog({
e.stopPropagation()}>
{t("whisperHistory.title", { server: serverName })} -
@@ -4427,7 +4430,7 @@ function WhisperListsDialog({
e.stopPropagation()}>
{t("whisperLists.title")} -
@@ -4500,7 +4503,7 @@ function ClientConnectionInfoDialog({
e.stopPropagation()}>
{t("connectionInfo.clientTitle", { name: clientName })} -
@@ -4572,7 +4575,7 @@ function ServerConnectionInfoDialog({
e.stopPropagation()}>
{t("connectionInfo.serverTitle")} -
@@ -4711,7 +4714,7 @@ function IdentitiesDialog({
e.stopPropagation()}>
{t("identities.title")} -
@@ -4888,7 +4891,7 @@ function ContactsDialog({
e.stopPropagation()}>
{t("contacts.title")} -
@@ -5017,7 +5020,7 @@ function AwayDialog({
e.stopPropagation()}>
{t("away.dialog.title")} -
@@ -5325,7 +5328,13 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) { ); } -function AnwendungPanel() { +function AnwendungPanel({ + showServerBanner, + onShowServerBannerChange, +}: { + showServerBanner: boolean; + onShowServerBannerChange: (on: boolean) => void; +}) { const t = useT(); const { langPref, setLangPref } = useLanguage(); return ( @@ -5347,6 +5356,11 @@ function AnwendungPanel() { {t("app.language.helpTranslate")}

+ +

{t("app.serverBanner.hint")}

); } @@ -6136,6 +6150,8 @@ function OptionsDialog({ customThemes, onSaveCustomTheme, onDeleteCustomTheme, + showServerBanner, + onShowServerBannerChange, }: { section: string; onSectionChange: (id: string) => void; @@ -6146,6 +6162,8 @@ function OptionsDialog({ customThemes: CustomTheme[]; onSaveCustomTheme: (theme: CustomTheme) => void; onDeleteCustomTheme: (id: string) => void; + showServerBanner: boolean; + onShowServerBannerChange: (on: boolean) => void; }) { const t = useT(); const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0]; @@ -6155,7 +6173,7 @@ function OptionsDialog({
e.stopPropagation()}>
{t("options.title")} -
@@ -6174,7 +6192,7 @@ function OptionsDialog({
{active.id === "anwendung" ? ( - + ) : active.id === "wiedergabe" ? ( ) : active.id === "aufnahme" ? ( @@ -6294,7 +6312,7 @@ function ServerEditDialog({
e.stopPropagation()}>
{t("serverEdit.title")} -
@@ -6524,6 +6542,7 @@ function AppInner() { const [serverLicense, setServerLicense] = useState(""); const [serverLicenseId, setServerLicenseId] = useState(0); const [serverBannerUrl, setServerBannerUrl] = useState(""); + const [showServerBanner, setShowServerBanner] = useState(() => localStorage.getItem(SERVER_BANNER_KEY) !== "off"); const [serverWelcomeMessage, setServerWelcomeMessage] = useState(""); const [serverEditOpen, setServerEditOpen] = useState(false); const [serverProtocolLogOpen, setServerProtocolLogOpen] = useState(false); @@ -10779,6 +10798,15 @@ function AppInner() { customThemes={customThemes} onSaveCustomTheme={handleSaveCustomTheme} onDeleteCustomTheme={handleDeleteCustomTheme} + showServerBanner={showServerBanner} + onShowServerBannerChange={(on) => { + setShowServerBanner(on); + try { + localStorage.setItem(SERVER_BANNER_KEY, on ? "on" : "off"); + } catch { + /* private mode: setting just doesn't persist */ + } + }} audio={{ outputDevices, outputDeviceId, @@ -11440,9 +11468,9 @@ function AppInner() {
- {connected && serverBannerUrl && ( + {connected && serverBannerUrl && showServerBanner && (
- +
)} {connected && ( diff --git a/web/src/locales/de.json b/web/src/locales/de.json index 764ffe9..7a32005 100644 --- a/web/src/locales/de.json +++ b/web/src/locales/de.json @@ -338,6 +338,8 @@ "app.language.zh-CN": "简体中文", "app.language.fa": "فارسی (بتا)", "app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? Hilf mit auf Weblate →", + "app.serverBanner": "Server-Banner anzeigen", + "app.serverBanner.hint": "Das Banner lädt direkt von der Adresse, die der Serverbetreiber eingetragen hat. Dieser Host sieht dabei deine IP-Adresse.", "playback.title": "Wiedergabe", "playback.subtitle": "Ändern der Wiedergabeeinstellungen", "playback.profile": "Profile", diff --git a/web/src/locales/en.json b/web/src/locales/en.json index 0f40bd4..e99e551 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -338,6 +338,8 @@ "app.language.zh-CN": "简体中文", "app.language.fa": "فارسی (بتا)", "app.language.helpTranslate": "Missing your language or spotted a wrong translation? Help out on Weblate →", + "app.serverBanner": "Show server banners", + "app.serverBanner.hint": "The banner loads straight from the address the server admin set, and that host sees your IP address.", "playback.title": "Playback", "playback.subtitle": "Change your playback settings", "playback.profile": "Profile", diff --git a/web/src/locales/fa.json b/web/src/locales/fa.json index 6df7177..25929c9 100644 --- a/web/src/locales/fa.json +++ b/web/src/locales/fa.json @@ -338,6 +338,8 @@ "app.language.zh-CN": "简体中文", "app.language.fa": "فارسی (بتا)", "app.language.helpTranslate": "زبان شما موجود نیست یا ترجمه‌ای اشتباه دیدید؟ در Weblate کمک کنید →", + "app.serverBanner": "نمایش بنر سرور", + "app.serverBanner.hint": "بنر مستقیماً از نشانی‌ای بارگیری می‌شود که مدیر سرور تعیین کرده است و آن میزبان نشانی IP شما را می‌بیند.", "playback.title": "پخش", "playback.subtitle": "تنظیمات پخش را تغییر بده", "playback.profile": "پروفایل", diff --git a/web/src/locales/zh-CN.json b/web/src/locales/zh-CN.json index 08c6012..b6b7623 100644 --- a/web/src/locales/zh-CN.json +++ b/web/src/locales/zh-CN.json @@ -241,6 +241,8 @@ "app.language.zh-CN": "简体中文", "app.language.fa": "فارسی (بتا)", "app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →", + "app.serverBanner": "显示服务器横幅", + "app.serverBanner.hint": "横幅直接从服务器管理员设置的地址加载,该主机会看到你的 IP 地址。", "playback.title": "播放", "playback.subtitle": "更改播放设置", "playback.profile": "配置",