mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 09:52:50 +08:00
Rename project from TS Web Client to WebSpeak3
Rebrands the app as an independent project, adds a trademark disclaimer to the README, and migrates localStorage keys with a compatibility shim so existing favorites/settings survive the rename. The TeamSpeak protocol bridge itself (Ts3Connection, ts-connector binary) is untouched.
This commit is contained in:
1 parent
0b7d2b7346
commit
a77172b55a
8 files changed
+48
-19
No files matched your search
@@ -28,6 +28,8 @@ RUN npm run build
|
|||||||
|
|
||||||
# --- Runtime ----------------------------------------------------------------
|
# --- Runtime ----------------------------------------------------------------
|
||||||
FROM node:22-bookworm-slim AS runtime
|
FROM node:22-bookworm-slim AS runtime
|
||||||
|
LABEL org.opencontainers.image.title="WebSpeak3"
|
||||||
|
LABEL org.opencontainers.image.description="Self-hosted web client for TeamSpeak 3 servers"
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY gateway/package*.json ./
|
COPY gateway/package*.json ./
|
||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# TS Web Client
|
# WebSpeak3
|
||||||
|
|
||||||
Browser-based client for TeamSpeak servers — same idea as the native
|
A browser-based web client for TeamSpeak 3 servers — same idea as the native
|
||||||
installable client, but running in a web browser. The TeamSpeak server side
|
installable client, but running in a web browser. The TeamSpeak server side
|
||||||
stays exactly as-is (a regular TS server); only the client is being
|
stays exactly as-is (a regular TS server); only the client is being
|
||||||
reimagined.
|
reimagined.
|
||||||
@@ -51,3 +51,16 @@ See [INSTALL.md](INSTALL.md).
|
|||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
The vast majority of this project's code was written by [Claude Code](https://claude.com/claude-code) (Anthropic's Claude), working iteratively with the repo owner one feature at a time.
|
The vast majority of this project's code was written by [Claude Code](https://claude.com/claude-code) (Anthropic's Claude), working iteratively with the repo owner one feature at a time.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Legal / Disclaimer
|
||||||
|
|
||||||
|
**WebSpeak3** is an independent, open-source, self-hosted project and is
|
||||||
|
**not** affiliated with, associated with, authorized by, endorsed by, or in
|
||||||
|
any way officially connected with TeamSpeak Systems GmbH.
|
||||||
|
|
||||||
|
"TeamSpeak", "TS3", and related logos or names are registered trademarks of
|
||||||
|
TeamSpeak Systems GmbH. All product and company names are trademarks™ or
|
||||||
|
registered® trademarks of their respective holders. Use of them does not
|
||||||
|
imply any affiliation with or endorsement by them.
|
||||||
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
ts-web-client:
|
webspeak3:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Port publishing is deployment-specific (depends on what's free on the
|
# Port publishing is deployment-specific (depends on what's free on the
|
||||||
# host) - set it in a local, gitignored docker-compose.override.yml, e.g.:
|
# host) - set it in a local, gitignored docker-compose.override.yml, e.g.:
|
||||||
#
|
#
|
||||||
# services:
|
# services:
|
||||||
# ts-web-client:
|
# webspeak3:
|
||||||
# ports:
|
# ports:
|
||||||
# - "8080:8080"
|
# - "8080:8080"
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "ts-web-gateway",
|
"name": "webspeak3-gateway",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Gateway server: bridges browser (WebSocket) clients to a native TeamSpeak server",
|
"description": "WebSpeak3 gateway server: bridges browser (WebSocket) clients to a native TeamSpeak server",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsx watch src/index.ts",
|
"dev": "tsx watch src/index.ts",
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const server = createServer((req, res) => {
|
|||||||
const wss = new WebSocketServer({ server, path: "/ws" });
|
const wss = new WebSocketServer({ server, path: "/ws" });
|
||||||
|
|
||||||
server.listen(PORT, () => {
|
server.listen(PORT, () => {
|
||||||
console.log(`Gateway listening on http://localhost:${PORT} (WebSocket at /ws)`);
|
console.log(`WebSpeak3 gateway listening on http://localhost:${PORT} (WebSocket at /ws)`);
|
||||||
});
|
});
|
||||||
|
|
||||||
wss.on("connection", (socket: WebSocket) => {
|
wss.on("connection", (socket: WebSocket) => {
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>web</title>
|
<title>WebSpeak3</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "web",
|
"name": "webspeak3-web",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
+24
-10
@@ -17,14 +17,28 @@ const GATEWAY_URL = import.meta.env.DEV
|
|||||||
? "ws://localhost:8080"
|
? "ws://localhost:8080"
|
||||||
: `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`;
|
: `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`;
|
||||||
|
|
||||||
const LAST_HOST_KEY = "ts-web-client:last-host";
|
// One-time migration from the pre-rename "ts-web-client:*" localStorage
|
||||||
const LAST_NICKNAME_KEY = "ts-web-client:last-nickname";
|
// namespace so existing users don't lose their favorites/preferences.
|
||||||
const FAVORITES_KEY = "ts-web-client:favorites";
|
(function migrateLegacyStorageKeys() {
|
||||||
const INPUT_DEVICE_KEY = "ts-web-client:input-device";
|
const oldPrefix = "ts-web-client:";
|
||||||
const PLAYBACK_VOLUME_KEY = "ts-web-client:playback-volume";
|
const newPrefix = "webspeak3:";
|
||||||
const NOISE_SUPPRESSION_KEY = "ts-web-client:noise-suppression";
|
for (const oldKey of Object.keys(localStorage).filter((k) => k.startsWith(oldPrefix))) {
|
||||||
const ECHO_CANCELLATION_KEY = "ts-web-client:echo-cancellation";
|
const newKey = newPrefix + oldKey.slice(oldPrefix.length);
|
||||||
const VAD_HANGOVER_KEY = "ts-web-client:vad-hangover";
|
if (localStorage.getItem(newKey) === null) {
|
||||||
|
localStorage.setItem(newKey, localStorage.getItem(oldKey)!);
|
||||||
|
}
|
||||||
|
localStorage.removeItem(oldKey);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
const LAST_HOST_KEY = "webspeak3:last-host";
|
||||||
|
const LAST_NICKNAME_KEY = "webspeak3:last-nickname";
|
||||||
|
const FAVORITES_KEY = "webspeak3:favorites";
|
||||||
|
const INPUT_DEVICE_KEY = "webspeak3:input-device";
|
||||||
|
const PLAYBACK_VOLUME_KEY = "webspeak3:playback-volume";
|
||||||
|
const NOISE_SUPPRESSION_KEY = "webspeak3:noise-suppression";
|
||||||
|
const ECHO_CANCELLATION_KEY = "webspeak3:echo-cancellation";
|
||||||
|
const VAD_HANGOVER_KEY = "webspeak3:vad-hangover";
|
||||||
|
|
||||||
function loadBoolPref(key: string, fallback: boolean): boolean {
|
function loadBoolPref(key: string, fallback: boolean): boolean {
|
||||||
const raw = localStorage.getItem(key);
|
const raw = localStorage.getItem(key);
|
||||||
@@ -56,7 +70,7 @@ function loadFavorites(): Favorite[] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const AWAY_PRESETS_KEY = "ts-web-client:away-presets";
|
const AWAY_PRESETS_KEY = "webspeak3:away-presets";
|
||||||
|
|
||||||
function loadAwayPresets(): string[] {
|
function loadAwayPresets(): string[] {
|
||||||
try {
|
try {
|
||||||
@@ -2033,7 +2047,7 @@ function App() {
|
|||||||
>
|
>
|
||||||
{theme === "dark" ? "☀️" : "🌙"}
|
{theme === "dark" ? "☀️" : "🌙"}
|
||||||
</button>
|
</button>
|
||||||
<span className="ts-app-title">TS Web Client</span>
|
<span className="ts-app-title">WebSpeak3</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user