mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Push-to-talk with custom key/mouse button, Hotkeys options, standalone store
- Push-to-talk: configurable key or middle/side mouse button (tab must be focused), hold button in the toolbar, settings under Capture and the new Options -> Hotkeys page, which also lists the fixed shortcuts. - Design Store rejects uploads whose CSS is already in the store. - gateway/src/store-server.ts runs the store as its own process from the same image, so store deploys don't drop voice connections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
803cefd653
commit
603cedd907
11 files changed
+368
-18
No files matched your search
@@ -367,6 +367,13 @@ async function handleStoreSubmit(req: IncomingMessage, res: ServerResponse) {
|
||||
}
|
||||
|
||||
const themes = await loadStoreThemes();
|
||||
// Re-uploading an installed store theme unchanged would just duplicate it.
|
||||
const cssKey = normalizeCss(css).replace(/\s+/g, "");
|
||||
if (themes.some((t) => normalizeCss(t.css).replace(/\s+/g, "") === cssKey)) {
|
||||
res.writeHead(409, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "duplicate" }));
|
||||
return;
|
||||
}
|
||||
if (themes.length >= STORE_MAX_THEMES) {
|
||||
res.writeHead(507, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify({ error: "store_full" }));
|
||||
|
||||
Reference in new issue
Block a user