mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Web: smaller review fixes (A10-A19, S10, S11, lint)
- A10: drop labels of unimplemented shortcuts, localize "Ctrl", never fire shortcuts (Ctrl+D!) while typing in a field - A11: in-memory localStorage stand-in when storage is blocked instead of a blank page - A12: invite link falls back to selecting the text without clipboard API - A13: AEC3 script honors BASE_URL, failed loads are retried - A14: shared downloadBlob helper, object URLs revoked with a delay - A15: remaining hardcoded German/English strings moved to the locales - A16: broken soundpack files show an error instead of failing silently - A17: connect buttons no longer pass the click event as overrides - A18: design base persisted from the resolved theme - A19: no audio send() while the socket is still connecting - S10: privilege keys are no longer persisted in localStorage - S11: share links can carry the token in the fragment (#token=) - oxlint: 0 warnings 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
034be9cc77
commit
eba1e1af92
12 files changed
+182
-98
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { useT } from "../../i18n";
|
||||
|
||||
export type ConnectionTabItem = {
|
||||
id: string;
|
||||
@@ -39,11 +40,12 @@ export function GreenteaSpeakChrome({
|
||||
: []);
|
||||
|
||||
const hasTabs = resolvedTabs.length > 0;
|
||||
const t = useT();
|
||||
|
||||
return (
|
||||
<>
|
||||
{hasTabs ? (
|
||||
<div className="gts-connection-tabs" role="tablist" aria-label="Server-Verbindungen">
|
||||
<div className="gts-connection-tabs" role="tablist" aria-label={t("tabs.connections")}>
|
||||
{resolvedTabs.map((tab) => {
|
||||
const isActive = tab.id === (activeTabId ?? resolvedTabs[0]?.id);
|
||||
return (
|
||||
@@ -62,8 +64,8 @@ export function GreenteaSpeakChrome({
|
||||
<button
|
||||
type="button"
|
||||
className="gts-connection-tab-close"
|
||||
title="Verbindung trennen"
|
||||
aria-label={`Tab schließen: ${tab.label}`}
|
||||
title={t("tabs.disconnect")}
|
||||
aria-label={t("tabs.closeTab", { label: tab.label })}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onCloseTab(tab.id);
|
||||
|
||||
Reference in new issue
Block a user