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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-03 01:54:31 +00:00
1 parent 81107c659e
commit deabfbff3c
6 files changed
+71 -31

No files matched your search

+5 -1
View File
@@ -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 | | 🔌 **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 | | 🎙️ **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 | | 🤫 **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` | | 🔊 **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 | | 💬 **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 | | 🌍 **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 | | 🌗 **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 | | 🔁 **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 | | 🍵 **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** | <sub>**ALPHA · UNSTABLE**</sub> Share your screen to native TeamSpeak 6 clients and watch theirs. Built on TS6's undocumented Stream/Call protocol — expect it to break; see [Roadmap](ROADMAP.md) | | 🖥️ **Screen streaming to/from TS6** | <sub>**ALPHA · UNSTABLE**</sub> Share your screen to native TeamSpeak 6 clients and watch theirs. Built on TS6's undocumented Stream/Call protocol — expect it to break; see [Roadmap](ROADMAP.md) |
@@ -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. > **Trust model:** the gateway speaks the TeamSpeak protocol on the user's behalf, so whoever runs it necessarily handles their identity key, server/channel passwords and privilege keys (they're kept out of process listings, but the operator can still see them). Only use gateways you trust, and serve them over HTTPS/WSS (`TLS_CERT`/`TLS_KEY` or a TLS-terminating proxy) - plain HTTP exposes all of that on the wire. File uploads are limited to 24 MiB, downloads to 25 MiB.
> **Stored in the browser:** identities (including their private keys), favorites with any passwords you typed into them, and settings live in the browser's `localStorage`, unencrypted - the same way the native client keeps them in its settings files. Anyone with access to your browser profile can read them; leave favorite password fields empty on shared machines and export identities you care about. Server banners load directly from the host the server admin configured; turn them off under Options → Application if you don't want that host to see your IP.
<details> <details>
<summary><b>🛠️ Manual installation (without Docker)</b></summary> <summary><b>🛠️ Manual installation (without Docker)</b></summary>
+58 -30
View File
@@ -490,6 +490,9 @@ function loadFavorites(): Favorite[] {
} }
const AWAY_PRESETS_KEY = "webspeak3:away-presets"; 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 DISCONNECT_MESSAGE_KEY = "webspeak3:disconnect-message";
const COLLECTED_URLS_KEY = "webspeak3:collected-urls"; const COLLECTED_URLS_KEY = "webspeak3:collected-urls";
@@ -1552,7 +1555,7 @@ function ConnectDialog({
) : ( ) : (
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("connect.title")}</span> <span>{t("connect.title")}</span>
<button onClick={onCancel} title={t("dialog.close")}> <button onClick={onCancel} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -1958,7 +1961,7 @@ function StreamSettingsDialog({
<span> <span>
{t("publish.dialog.title")} <AlphaBadge /> {t("publish.dialog.title")} <AlphaBadge />
</span> </span>
<button onClick={onCancel} title={t("dialog.close")}> <button onClick={onCancel} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -2418,7 +2421,7 @@ function FeedbackDialog({ onClose }: { onClose: () => void }) {
<div className="ts-dialog ts-feedback-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-feedback-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("feedback.dialog.title")}</span> <span>{t("feedback.dialog.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -2582,7 +2585,7 @@ function FavoritesDialog({
<div className="ts-dialog ts-favorites-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-favorites-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("favorites.title")}</span> <span>{t("favorites.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -2757,7 +2760,7 @@ function CollectedUrlsDialog({
<div className="ts-dialog ts-collected-urls-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-collected-urls-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("collectedUrls.title")}</span> <span>{t("collectedUrls.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -2824,7 +2827,7 @@ function InviteFriendDialog({
<div className="ts-dialog ts-invite-friend-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-invite-friend-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("inviteFriend.title")}</span> <span>{t("inviteFriend.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -2918,7 +2921,7 @@ function ClientLogDialog({ entries, onClose }: { entries: ClientLogEntry[]; onCl
<div className="ts-dialog ts-client-log-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-client-log-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("clientLog.title")}</span> <span>{t("clientLog.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3006,7 +3009,7 @@ function BanListDialog({
<div className="ts-dialog ts-ban-list-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-ban-list-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("banList.title")}</span> <span>{t("banList.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3087,7 +3090,7 @@ function ComplainListDialog({
<div className="ts-dialog ts-complain-list-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-complain-list-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("complainList.title")}</span> <span>{t("complainList.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3183,7 +3186,7 @@ function OfflineMessagesDialog({
<div className="ts-dialog ts-offline-messages-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-offline-messages-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("offlineMessages.title")}</span> <span>{t("offlineMessages.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3306,7 +3309,7 @@ function GroupAssignDialog({
<span> <span>
{kind === "channel" ? t("groupAssign.channelTitle") : t("groupAssign.serverTitle")} - {clientName} {kind === "channel" ? t("groupAssign.channelTitle") : t("groupAssign.serverTitle")} - {clientName}
</span> </span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3374,7 +3377,7 @@ function MoveClientDialog({
<span> <span>
{t("moveClient.title")} - {clientName} {t("moveClient.title")} - {clientName}
</span> </span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3490,7 +3493,7 @@ function FileBrowserDialog({
<span> <span>
{t("fileBrowser.title")} - {channelName} {t("fileBrowser.title")} - {channelName}
</span> </span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3754,7 +3757,7 @@ function ServerIconsDialog({
<div className="ts-dialog ts-server-icons-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-server-icons-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("serverIcons.title")}</span> <span>{t("serverIcons.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -3973,7 +3976,7 @@ function PermissionsEditorDialog({
<div className="ts-dialog ts-perms-editor-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-perms-editor-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("permsEditor.title")}</span> <span>{t("permsEditor.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4235,7 +4238,7 @@ function PermissionOverviewDialog({
<div className="ts-dialog ts-permission-overview-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-permission-overview-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("permissionOverview.title")}</span> <span>{t("permissionOverview.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4315,7 +4318,7 @@ function ServerProtocolLogDialog({
<div className="ts-dialog ts-server-protocol-log-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-server-protocol-log-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("serverProtocolLog.title")}</span> <span>{t("serverProtocolLog.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4365,7 +4368,7 @@ function WhisperHistoryDialog({
<div className="ts-dialog ts-whisper-history-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-whisper-history-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("whisperHistory.title", { server: serverName })}</span> <span>{t("whisperHistory.title", { server: serverName })}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4427,7 +4430,7 @@ function WhisperListsDialog({
<div className="ts-dialog ts-whisper-lists-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-whisper-lists-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("whisperLists.title")}</span> <span>{t("whisperLists.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4500,7 +4503,7 @@ function ClientConnectionInfoDialog({
<div className="ts-dialog ts-connection-info-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-connection-info-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("connectionInfo.clientTitle", { name: clientName })}</span> <span>{t("connectionInfo.clientTitle", { name: clientName })}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4572,7 +4575,7 @@ function ServerConnectionInfoDialog({
<div className="ts-dialog ts-connection-info-dialog ts-server-conn-info" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-connection-info-dialog ts-server-conn-info" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("connectionInfo.serverTitle")}</span> <span>{t("connectionInfo.serverTitle")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4711,7 +4714,7 @@ function IdentitiesDialog({
<div className="ts-dialog ts-identities-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-identities-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("identities.title")}</span> <span>{t("identities.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -4888,7 +4891,7 @@ function ContactsDialog({
<div className="ts-dialog ts-contacts-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-contacts-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("contacts.title")}</span> <span>{t("contacts.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -5017,7 +5020,7 @@ function AwayDialog({
<div className="ts-dialog ts-away-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-away-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("away.dialog.title")}</span> <span>{t("away.dialog.title")}</span>
<button onClick={onCancel} title={t("dialog.close")}> <button onClick={onCancel} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -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 t = useT();
const { langPref, setLangPref } = useLanguage(); const { langPref, setLangPref } = useLanguage();
return ( return (
@@ -5347,6 +5356,11 @@ function AnwendungPanel() {
{t("app.language.helpTranslate")} {t("app.language.helpTranslate")}
</a> </a>
</p> </p>
<label className="ts-options-checkbox">
<input type="checkbox" checked={showServerBanner} onChange={(e) => onShowServerBannerChange(e.target.checked)} />
{t("app.serverBanner")}
</label>
<p className="ts-options-hint">{t("app.serverBanner.hint")}</p>
</> </>
); );
} }
@@ -6136,6 +6150,8 @@ function OptionsDialog({
customThemes, customThemes,
onSaveCustomTheme, onSaveCustomTheme,
onDeleteCustomTheme, onDeleteCustomTheme,
showServerBanner,
onShowServerBannerChange,
}: { }: {
section: string; section: string;
onSectionChange: (id: string) => void; onSectionChange: (id: string) => void;
@@ -6146,6 +6162,8 @@ function OptionsDialog({
customThemes: CustomTheme[]; customThemes: CustomTheme[];
onSaveCustomTheme: (theme: CustomTheme) => void; onSaveCustomTheme: (theme: CustomTheme) => void;
onDeleteCustomTheme: (id: string) => void; onDeleteCustomTheme: (id: string) => void;
showServerBanner: boolean;
onShowServerBannerChange: (on: boolean) => void;
}) { }) {
const t = useT(); const t = useT();
const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0]; const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0];
@@ -6155,7 +6173,7 @@ function OptionsDialog({
<div className="ts-dialog ts-options-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-options-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("options.title")}</span> <span>{t("options.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -6174,7 +6192,7 @@ function OptionsDialog({
</div> </div>
<div className="ts-options-content"> <div className="ts-options-content">
{active.id === "anwendung" ? ( {active.id === "anwendung" ? (
<AnwendungPanel /> <AnwendungPanel showServerBanner={showServerBanner} onShowServerBannerChange={onShowServerBannerChange} />
) : active.id === "wiedergabe" ? ( ) : active.id === "wiedergabe" ? (
<WiedergabePanel audio={audio} /> <WiedergabePanel audio={audio} />
) : active.id === "aufnahme" ? ( ) : active.id === "aufnahme" ? (
@@ -6294,7 +6312,7 @@ function ServerEditDialog({
<div className="ts-dialog ts-options-dialog" onClick={(e) => e.stopPropagation()}> <div className="ts-dialog ts-options-dialog" onClick={(e) => e.stopPropagation()}>
<div className="ts-dialog-titlebar"> <div className="ts-dialog-titlebar">
<span>{t("serverEdit.title")}</span> <span>{t("serverEdit.title")}</span>
<button onClick={onClose} title={t("dialog.close")}> <button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
✕ ✕
</button> </button>
</div> </div>
@@ -6524,6 +6542,7 @@ function AppInner() {
const [serverLicense, setServerLicense] = useState(""); const [serverLicense, setServerLicense] = useState("");
const [serverLicenseId, setServerLicenseId] = useState(0); const [serverLicenseId, setServerLicenseId] = useState(0);
const [serverBannerUrl, setServerBannerUrl] = useState(""); const [serverBannerUrl, setServerBannerUrl] = useState("");
const [showServerBanner, setShowServerBanner] = useState(() => localStorage.getItem(SERVER_BANNER_KEY) !== "off");
const [serverWelcomeMessage, setServerWelcomeMessage] = useState(""); const [serverWelcomeMessage, setServerWelcomeMessage] = useState("");
const [serverEditOpen, setServerEditOpen] = useState(false); const [serverEditOpen, setServerEditOpen] = useState(false);
const [serverProtocolLogOpen, setServerProtocolLogOpen] = useState(false); const [serverProtocolLogOpen, setServerProtocolLogOpen] = useState(false);
@@ -10779,6 +10798,15 @@ function AppInner() {
customThemes={customThemes} customThemes={customThemes}
onSaveCustomTheme={handleSaveCustomTheme} onSaveCustomTheme={handleSaveCustomTheme}
onDeleteCustomTheme={handleDeleteCustomTheme} 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={{ audio={{
outputDevices, outputDevices,
outputDeviceId, outputDeviceId,
@@ -11440,9 +11468,9 @@ function AppInner() {
<div className="ts-resize-handle-vertical" onMouseDown={startTreeResize} /> <div className="ts-resize-handle-vertical" onMouseDown={startTreeResize} />
<div className="ts-side-panel"> <div className="ts-side-panel">
{connected && serverBannerUrl && ( {connected && serverBannerUrl && showServerBanner && (
<div className="ts-banner-panel"> <div className="ts-banner-panel">
<img className="ts-server-banner" src={serverBannerUrl} alt="" /> <img className="ts-server-banner" src={serverBannerUrl} alt="" referrerPolicy="no-referrer" />
</div> </div>
)} )}
{connected && ( {connected && (
+2
View File
@@ -338,6 +338,8 @@
"app.language.zh-CN": "简体中文", "app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)", "app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? Hilf mit auf Weblate →", "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.title": "Wiedergabe",
"playback.subtitle": "Ändern der Wiedergabeeinstellungen", "playback.subtitle": "Ändern der Wiedergabeeinstellungen",
"playback.profile": "Profile", "playback.profile": "Profile",
+2
View File
@@ -338,6 +338,8 @@
"app.language.zh-CN": "简体中文", "app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)", "app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "Missing your language or spotted a wrong translation? Help out on Weblate →", "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.title": "Playback",
"playback.subtitle": "Change your playback settings", "playback.subtitle": "Change your playback settings",
"playback.profile": "Profile", "playback.profile": "Profile",
+2
View File
@@ -338,6 +338,8 @@
"app.language.zh-CN": "简体中文", "app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)", "app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "زبان شما موجود نیست یا ترجمه‌ای اشتباه دیدید؟ در Weblate کمک کنید →", "app.language.helpTranslate": "زبان شما موجود نیست یا ترجمه‌ای اشتباه دیدید؟ در Weblate کمک کنید →",
"app.serverBanner": "نمایش بنر سرور",
"app.serverBanner.hint": "بنر مستقیماً از نشانی‌ای بارگیری می‌شود که مدیر سرور تعیین کرده است و آن میزبان نشانی IP شما را می‌بیند.",
"playback.title": "پخش", "playback.title": "پخش",
"playback.subtitle": "تنظیمات پخش را تغییر بده", "playback.subtitle": "تنظیمات پخش را تغییر بده",
"playback.profile": "پروفایل", "playback.profile": "پروفایل",
+2
View File
@@ -241,6 +241,8 @@
"app.language.zh-CN": "简体中文", "app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)", "app.language.fa": "فارسی (بتا)",
"app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →", "app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →",
"app.serverBanner": "显示服务器横幅",
"app.serverBanner.hint": "横幅直接从服务器管理员设置的地址加载,该主机会看到你的 IP 地址。",
"playback.title": "播放", "playback.title": "播放",
"playback.subtitle": "更改播放设置", "playback.subtitle": "更改播放设置",
"playback.profile": "配置", "playback.profile": "配置",