feat(viewer): page désencombrée, réglages derrière une roue crantée
CI / Formatting, tests and builds (push) Successful in 2m52s

La page du spectateur ne montre plus que l'écran partagé et les actions
sur l'image (#92). La langue suit celle du navigateur, sans sélecteur
visible. Une roue crantée, sur la page du flux comme sur celle du code
court, ouvre un panneau: nom de l'appareil, langue (celle du navigateur
par défaut, ou une langue servie par l'hôte), thème, statistiques du
flux. Revenir à « celle du navigateur » efface le choix gardé.

Les statistiques sont masquées par défaut et ne sont plus relevées
tant qu'elles ne sont pas affichées. L'empreinte du certificat et
l'appareil de confiance passent dans le panneau; le badge « non
chiffré » reste dans la barre.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guillaume ASSIERandClaude Opus 5.5 committed 2026-10-30 20:11:34 +01:00
1 parent e6c7e833cc
commit 1abedf384f
16 files changed
+397 -141

No files matched your search

+44 -38
View File
@@ -1,14 +1,21 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { DeviceName } from './components/DeviceName';
import { ErrorPanel } from './components/ErrorPanel';
import { LanguagePicker } from './components/LanguagePicker';
import { Pairing } from './components/Pairing';
import { SettingsPanel } from './components/SettingsPanel';
import { StatsBar } from './components/StatsBar';
import { StatusBadge } from './components/StatusBadge';
import { VideoStage } from './components/VideoStage';
import { useI18n } from './i18n';
import { barsVisible, IDLE_DELAY_MS, isCompact, readPinned, savePinned } from './lib/controls';
import {
barsVisible,
IDLE_DELAY_MS,
isCompact,
readPinned,
readStatsShown,
savePinned,
saveStatsShown,
} from './lib/controls';
import { parseRoomLocation, signalingUrl } from './lib/room';
import {
nextRotation,
@@ -19,7 +26,6 @@ import {
saveRotation,
} from './lib/rotation';
import { type VideoStats, ViewerSession, type ViewerState } from './lib/session';
import { applyTheme, nextTheme, readTheme, saveTheme, type Theme } from './lib/theme';
import { isTrusted } from './lib/trust';
import { useActivity } from './lib/useActivity';
import type { SourceInfo } from './proto';
@@ -43,7 +49,8 @@ export function App() {
const [stats, setStats] = useState<VideoStats | null>(null);
const [attemptKey, setAttemptKey] = useState(0);
const [isFullscreen, setIsFullscreen] = useState(false);
const [theme, setTheme] = useState<Theme>(() => readTheme());
const [settingsOpen, setSettingsOpen] = useState(false);
const [statsShown, setStatsShown] = useState(() => readStatsShown());
const [rotation, setRotation] = useState<Rotation>(() => readRotation());
const [mirror, setMirror] = useState(() => readMirror());
const [pinned, setPinned] = useState(() => readPinned());
@@ -75,7 +82,7 @@ export function App() {
}, [location, byKey, attemptKey]);
useEffect(() => {
if (state.kind !== 'streaming') {
if (state.kind !== 'streaming' || !statsShown) {
setStats(null);
return;
}
@@ -89,7 +96,7 @@ export function App() {
cancelled = true;
clearInterval(timer);
};
}, [state.kind]);
}, [state.kind, statsShown]);
// The notice of a source switch stays briefly, then goes.
useEffect(() => {
@@ -114,15 +121,13 @@ export function App() {
}
}, []);
const cycleTheme = useCallback(() => {
setTheme((current) => {
const next = nextTheme(current);
applyTheme(next);
saveTheme(next);
return next;
});
const showStats = useCallback((shown: boolean) => {
saveStatsShown(shown);
setStatsShown(shown);
}, []);
const rename = useCallback((name: string) => sessionRef.current?.rename(name), []);
const rotate = useCallback(() => {
setRotation((current) => {
const next = nextRotation(current);
@@ -202,30 +207,12 @@ export function App() {
<header className='topbar' {...hold}>
<span className='brand'>{t('appName')}</span>
<StatusBadge state={state} />
{location.ok && location.value.fingerprint && (
<span className='badge' title={`${t('fingerprint')}: ${location.value.fingerprint}`}>
{location.value.fingerprint.slice(0, 11)}
</span>
)}
{live && isTrusted() && (
<span className='badge' title={t('trustedHint')}>
{t('trustedBadge')}
</span>
)}
{insecure && (
<span className='badge badge-warn' title={t('insecureHint')}>
{t('insecureBadge')}
</span>
)}
<button
type='button'
className='button button-ghost button-theme'
onClick={cycleTheme}
aria-label={t('themeButton', { current: t(`themes.${theme}`) })}
title={t('themeButton', { current: t(`themes.${theme}`) })}
>
{theme === 'dark' ? '☾' : theme === 'light' ? '☀' : '◐'}
</button>
<span className='spacer' />
{live && (
<button
type='button'
@@ -272,6 +259,16 @@ export function App() {
{isFullscreen ? '⤡' : '⤢'}
</button>
)}
<button
type='button'
className='button button-ghost'
onClick={() => setSettingsOpen(true)}
aria-haspopup='dialog'
aria-label={t('settings')}
title={t('settings')}
>
⚙
</button>
</header>
<main className='content'>
@@ -294,11 +291,20 @@ export function App() {
{state.kind === 'failed' && <ErrorPanel state={state} onRetry={retry} />}
</main>
<footer className='footer' {...hold}>
<StatsBar stats={stats} />
<DeviceName onRename={(name) => sessionRef.current?.rename(name)} />
<LanguagePicker />
</footer>
{statsShown && stats && (
<footer className='footer' {...hold}>
<StatsBar stats={stats} />
</footer>
)}
{settingsOpen && (
<SettingsPanel
onClose={() => setSettingsOpen(false)}
onRename={rename}
stats={{ shown: statsShown, onChange: showStats }}
fingerprint={location.ok ? location.value.fingerprint : null}
trusted={isTrusted()}
/>
)}
</div>
);
}
+4 -2
View File
@@ -6,6 +6,8 @@ import { NAME_MAX, readName, saveName, suggestedName } from '../lib/deviceName';
type Props = {
/** The name changed: the session tells the host. */
onRename: (name: string) => void;
/** Show the label instead of keeping it for screen readers. */
label?: boolean;
};
/**
@@ -13,7 +15,7 @@ type Props = {
* empty, it goes back to the suggestion. React shows it as text: markup typed
* here stays visible as typed.
*/
export function DeviceName({ onRename }: Props) {
export function DeviceName({ onRename, label = false }: Props) {
const { t } = useI18n();
const id = useId();
const suggestion = suggestedName(navigator.userAgent);
@@ -28,7 +30,7 @@ export function DeviceName({ onRename }: Props) {
return (
<span className='device-name'>
<label htmlFor={id} className='visually-hidden'>
<label htmlFor={id} className={label ? undefined : 'visually-hidden'}>
{t('deviceName')}
</label>
<input
@@ -1,27 +0,0 @@
import { useId } from 'react';
import { useI18n } from '../i18n';
/**
* Language picker (#21), among those the host serves. Each one shows in its
* own language: whoever cannot read the current language finds their own.
*/
export function LanguagePicker() {
const { t, language, languages, setLanguage } = useI18n();
const id = useId();
if (languages.length < 2) return null;
return (
<span className='language'>
<label htmlFor={id} className='visually-hidden'>
{t('language')}
</label>
<select id={id} value={language} onChange={(e) => setLanguage(e.target.value)}>
{languages.map((l) => (
<option key={l.code} value={l.code} lang={l.code}>
{l.name}
</option>
))}
</select>
</span>
);
}
+18 -5
View File
@@ -1,9 +1,8 @@
import { type FormEvent, useCallback, useEffect, useRef, useState } from 'react';
import { exchangeCode, qrDetector } from '../lib/pairing';
import { useI18n } from '../i18n';
import { exchangeCode, qrDetector } from '../lib/pairing';
import { isCompleteCode, normalizeCode, sessionFromScan } from '../lib/room';
import { LanguagePicker } from './LanguagePicker';
import { SettingsPanel } from './SettingsPanel';
/** A sample code, in the format the host shows: not a sentence. */
const SAMPLE_CODE = 'K7M 4PQ';
@@ -24,6 +23,7 @@ export function Pairing({ notice }: Props) {
const [busy, setBusy] = useState(false);
const [scanning, setScanning] = useState(false);
const [canScan] = useState(() => qrDetector() !== null);
const [settingsOpen, setSettingsOpen] = useState(false);
const submit = useCallback(
async (event: FormEvent) => {
@@ -60,7 +60,19 @@ export function Pairing({ notice }: Props) {
return (
<div className='app app-centered'>
<div className='panel pairing'>
<h1>{t('appName')}</h1>
<div className='pairing-header'>
<h1>{t('appName')}</h1>
<button
type='button'
className='button button-ghost'
onClick={() => setSettingsOpen(true)}
aria-haspopup='dialog'
aria-label={t('settings')}
title={t('settings')}
>
⚙
</button>
</div>
{notice && <p role='alert'>{notice}</p>}
<form onSubmit={submit} className='pairing-form'>
<label htmlFor='code'>{t('codeLabel')}</label>
@@ -93,8 +105,9 @@ export function Pairing({ notice }: Props) {
</button>
)}
{scanning && <Scanner onClose={() => setScanning(false)} onError={setError} />}
<LanguagePicker />
</div>
{/* The name is kept for the first connection; no session to tell yet. */}
{settingsOpen && <SettingsPanel onClose={() => setSettingsOpen(false)} onRename={() => {}} />}
</div>
);
}
@@ -0,0 +1,139 @@
import { useEffect, useId, useRef, useState } from 'react';
import { browserLanguage, useI18n } from '../i18n';
import { applyTheme, readTheme, saveTheme, THEMES, type Theme } from '../lib/theme';
import { DeviceName } from './DeviceName';
/** Value of the language select that follows the browser. */
const BROWSER = '';
type Props = {
onClose: () => void;
/** The name changed: the session tells the host. */
onRename: (name: string) => void;
/** The statistics strip, when there is a stream to measure. */
stats?: { shown: boolean; onChange: (shown: boolean) => void };
/** Certificate fingerprint from the link, to compare with the host's. */
fingerprint?: string | null;
/** The host trusts this device (#34). */
trusted?: boolean;
};
/**
* What this device can set (#92), behind the gear of the top bar: the page
* itself only shows the shared screen. Every choice is kept by the browser.
*/
export function SettingsPanel({ onClose, onRename, stats, fingerprint, trusted }: Props) {
const { t, languages, chosen, setLanguage } = useI18n();
const id = useId();
const [theme, setTheme] = useState<Theme>(() => readTheme());
const dialog = useRef<HTMLDivElement | null>(null);
// The focus enters the panel, and goes back where it was when it closes.
useEffect(() => {
const previous = document.activeElement as HTMLElement | null;
dialog.current?.querySelector<HTMLElement>('input, select, button')?.focus();
return () => previous?.focus?.();
}, []);
const changeTheme = (next: Theme) => {
applyTheme(next);
saveTheme(next);
setTheme(next);
};
const browser = languages.find((l) => l.code === browserLanguage(languages));
return (
<div
className='overlay'
onPointerDown={(e) => {
if (e.target === e.currentTarget) onClose();
}}
>
<div
ref={dialog}
className='settings-panel'
role='dialog'
aria-modal='true'
aria-labelledby={`${id}-title`}
onKeyDown={(e) => {
if (e.key === 'Escape') onClose();
}}
>
<div className='settings-header'>
<h2 id={`${id}-title`}>{t('settings')}</h2>
<button type='button' className='button button-ghost' onClick={onClose}>
{t('close')}
</button>
</div>
<div className='settings-field'>
<DeviceName onRename={onRename} label />
<span className='settings-help'>{t('deviceNameHelp')}</span>
</div>
{languages.length > 1 && (
<div className='settings-field'>
<label htmlFor={`${id}-language`}>{t('language')}</label>
<select
id={`${id}-language`}
value={chosen ?? BROWSER}
onChange={(e) => setLanguage(e.target.value === BROWSER ? null : e.target.value)}
>
<option value={BROWSER}>{t('languageBrowser', { name: browser?.name ?? '' })}</option>
{/* Each language in its own: whoever cannot read the current one finds theirs. */}
{languages.map((l) => (
<option key={l.code} value={l.code} lang={l.code}>
{l.name}
</option>
))}
</select>
</div>
)}
<div className='settings-field'>
<label htmlFor={`${id}-theme`}>{t('theme')}</label>
<select
id={`${id}-theme`}
value={theme}
onChange={(e) => changeTheme(e.target.value as Theme)}
>
{THEMES.map((th) => (
<option key={th} value={th}>
{t(`themes.${th}`)}
</option>
))}
</select>
</div>
{stats && (
<label className='settings-check'>
<input
type='checkbox'
checked={stats.shown}
onChange={(e) => stats.onChange(e.target.checked)}
/>
{t('showStats')}
</label>
)}
{(fingerprint || trusted) && (
<dl className='settings-info'>
{trusted && (
<div>
<dt>{t('trustedBadge')}</dt>
<dd>{t('trustedHint')}</dd>
</div>
)}
{fingerprint && (
<div>
<dt>{t('fingerprint')}</dt>
<dd className='mono'>{fingerprint}</dd>
</div>
)}
</dl>
)}
</div>
</div>
);
}
+43 -17
View File
@@ -24,7 +24,10 @@ type Context = {
t: Translate;
language: string;
languages: AvailableLanguage[];
setLanguage: (code: string) => void;
/** The language this device chose, `null` when it follows the browser. */
chosen: string | null;
/** A language served by the host, or `null` to follow the browser (#92). */
setLanguage: (code: string | null) => void;
};
const I18n = createContext<Context | null>(null);
@@ -47,26 +50,33 @@ export function I18nProvider({
children: ReactNode;
}) {
const [loaded, setLoaded] = useState(initial);
const [chosen, setChosen] = useState(() => chosenLanguage(languages));
const setLanguage = useCallback((code: string) => {
saveLanguage(code);
// The change takes effect on the next render: no reload, the session
// and the stream go on.
void loadCatalogs(code).then((catalogs) => {
if (catalogs.length === 0) return;
document.documentElement.lang = code;
setLoaded({ language: code, catalogs });
});
}, []);
const setLanguage = useCallback(
(choice: string | null) => {
saveLanguage(choice);
setChosen(choice);
const code = choice ?? browserLanguage(languages);
// The change takes effect on the next render: no reload, the session
// and the stream go on.
void loadCatalogs(code).then((catalogs) => {
if (catalogs.length === 0) return;
document.documentElement.lang = code;
setLoaded({ language: code, catalogs });
});
},
[languages],
);
const value = useMemo(
() => ({
t: createTranslator(loaded.language, 'viewer', loaded.catalogs),
language: loaded.language,
languages,
chosen,
setLanguage,
}),
[loaded, languages, setLanguage],
[loaded, languages, chosen, setLanguage],
);
return <I18n.Provider value={value}>{children}</I18n.Provider>;
}
@@ -100,10 +110,21 @@ export async function loadCatalogs(code: string): Promise<Catalog[]> {
/** The choice kept by the device, otherwise the browser language. */
export function initialLanguage(available: AvailableLanguage[]): string {
const codes = available.map((l) => l.code);
return chosenLanguage(available) ?? browserLanguage(available);
}
/** The language of the browser, among those the host serves. */
export function browserLanguage(available: AvailableLanguage[]): string {
return pickLanguage(
navigator.languages ?? [navigator.language],
available.map((l) => l.code),
);
}
/** The language this device chose, if the host still serves it. */
function chosenLanguage(available: AvailableLanguage[]): string | null {
const saved = readLanguage();
if (saved && codes.includes(saved)) return saved;
return pickLanguage(navigator.languages ?? [navigator.language], codes);
return saved && available.some((l) => l.code === saved) ? saved : null;
}
function readLanguage(): string | null {
@@ -115,9 +136,14 @@ function readLanguage(): string | null {
}
}
function saveLanguage(code: string): void {
function saveLanguage(code: string | null): void {
try {
window.localStorage.setItem(KEY, code);
if (code === null) {
window.localStorage.removeItem(KEY);
window.localStorage.removeItem(LEGACY_KEY);
} else {
window.localStorage.setItem(KEY, code);
}
} catch {
// Private browsing: the choice holds for the page only.
}
+16 -1
View File
@@ -1,6 +1,13 @@
import { describe, expect, it } from 'vitest';
import { barsVisible, isCompact, readPinned, savePinned } from './controls';
import {
barsVisible,
isCompact,
readPinned,
readStatsShown,
savePinned,
saveStatsShown,
} from './controls';
describe('bars that fade out (#31, #81)', () => {
const base = { compact: true, live: true, active: false, held: false };
@@ -49,4 +56,12 @@ describe('pinned controls', () => {
expect(storage.values.get('rustscreen.pinned-controls')).toBe('1');
expect(storage.values.has('rustscreen.controles-epingles')).toBe(false);
});
it('statistics are hidden until asked for, then kept (#92)', () => {
const storage = memory();
expect(readStatsShown(storage)).toBe(false);
saveStatsShown(true, storage);
expect(readStatsShown(storage)).toBe(true);
expect(readStatsShown(null)).toBe(false);
});
});
+22
View File
@@ -53,3 +53,25 @@ export function savePinned(
// Private browsing: the choice holds for the page only.
}
}
/** Show the statistics strip (#92): off by default, the picture comes first. */
const STATS_KEY = 'rustscreen.show-stats';
export function readStatsShown(storage: KeyValueStore | null = browserStorage()): boolean {
try {
return storage?.getItem(STATS_KEY) === '1';
} catch {
return false;
}
}
export function saveStatsShown(
shown: boolean,
storage: KeyValueStore | null = browserStorage(),
): void {
try {
storage?.setItem(STATS_KEY, shown ? '1' : '0');
} catch {
// Private browsing: the choice holds for the page only.
}
}
+2 -2
View File
@@ -7,7 +7,6 @@
* testable and avoids inconsistent states such as "connected without picture".
*/
import { PROTOCOL_VERSION } from '../proto';
import type {
ClientMessage,
DeviceInfo,
@@ -15,9 +14,10 @@ import type {
SourceInfo,
StreamSettings,
} from '../proto';
import type { Translate } from './i18n';
import { PROTOCOL_VERSION } from '../proto';
import { deviceId } from './device';
import { cleanName, readName, suggestedName } from './deviceName';
import type { Translate } from './i18n';
import { type WakeReason, watchLifecycle } from './lifecycle';
import { type DeviceKey, deviceKey, rememberTrust } from './trust';
+1 -7
View File
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest';
import type { KeyValueStore } from './storage';
import { nextTheme, readTheme, saveTheme } from './theme';
import { readTheme, saveTheme } from './theme';
function memory(): KeyValueStore {
const values = new Map<string, string>();
@@ -47,12 +47,6 @@ describe('theme (#28)', () => {
expect(() => saveTheme('light', denied)).not.toThrow();
});
it('cycles through the three values', () => {
expect(nextTheme('system')).toBe('light');
expect(nextTheme('light')).toBe('dark');
expect(nextTheme('dark')).toBe('system');
});
it('translates and rewrites a value stored before #83', () => {
for (const [legacy, theme] of [
['systeme', 'system'],
+3 -7
View File
@@ -11,7 +11,8 @@ import { browserStorage, type KeyValueStore } from './storage';
export type Theme = 'system' | 'light' | 'dark';
const KEY = 'rustscreen.theme';
const ORDER: readonly Theme[] = ['system', 'light', 'dark'];
/** The three themes, in the order the settings offer them. */
export const THEMES: readonly Theme[] = ['system', 'light', 'dark'];
/** Values stored before #83, under the same key. */
const LEGACY_VALUES: Readonly<Record<string, Theme>> = {
systeme: 'system',
@@ -22,7 +23,7 @@ const LEGACY_VALUES: Readonly<Record<string, Theme>> = {
export function readTheme(storage: KeyValueStore | null = browserStorage()): Theme {
try {
const raw = storage?.getItem(KEY);
if (raw && (ORDER as readonly string[]).includes(raw)) return raw as Theme;
if (raw && (THEMES as readonly string[]).includes(raw)) return raw as Theme;
const migrated = raw ? LEGACY_VALUES[raw] : undefined;
if (migrated) {
saveTheme(migrated, storage);
@@ -42,11 +43,6 @@ export function saveTheme(theme: Theme, storage: KeyValueStore | null = browserS
}
}
/** The next theme, for a single button that cycles through all three. */
export function nextTheme(theme: Theme): Theme {
return ORDER[(ORDER.indexOf(theme) + 1) % ORDER.length] ?? 'system';
}
/** Sets the theme on the root element: the style sheet does the rest. */
export function applyTheme(theme: Theme, root: HTMLElement = document.documentElement): void {
root.dataset.theme = theme;
+82 -22
View File
@@ -229,8 +229,8 @@ body {
cursor: pointer;
}
.topbar .button-theme {
margin-left: auto;
.spacer {
flex: 1;
}
.button-ghost {
@@ -256,42 +256,102 @@ body {
background: var(--surface);
}
/* Language picker (#21): discreet, at the end of the footer. */
/* Settings behind the gear (#92): the page shows the screen, nothing else. */
.overlay {
position: fixed;
inset: 0;
z-index: 10;
display: grid;
place-items: center;
padding: 1rem;
background: rgb(0 0 0 / 45%);
}
.settings-panel {
display: flex;
flex-direction: column;
gap: 1rem;
width: min(24rem, 100%);
max-height: 100%;
overflow: auto;
padding: 1.25rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
color: var(--fg);
}
.settings-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.settings-header h2 {
margin: 0;
font-size: 1.05rem;
}
.settings-field,
.device-name {
margin-left: auto;
padding-left: 1rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.device-name input {
width: 11rem;
max-width: 40vw;
padding: 0.25rem 0.4rem;
.settings-field label {
font-weight: 600;
}
.settings-field input,
.settings-field select {
padding: 0.45rem 0.55rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--fg);
font: inherit;
}
.settings-help {
color: var(--muted);
font-size: 0.82rem;
}
.language {
padding: 0 1rem;
.settings-check {
display: flex;
align-items: center;
gap: 0.5rem;
}
.language select {
padding: 0.25rem 0.4rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--fg);
font: inherit;
.settings-info {
display: flex;
flex-direction: column;
gap: 0.6rem;
margin: 0;
font-size: 0.82rem;
}
.pairing .language {
display: block;
margin-top: 1rem;
padding: 0;
.settings-info dt {
font-weight: 600;
}
.settings-info dd {
margin: 0.15rem 0 0;
color: var(--muted);
}
.mono {
font-family: ui-monospace, monospace;
overflow-wrap: anywhere;
}
.pairing-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}
.visually-hidden {
+4 -2
View File
@@ -47,8 +47,10 @@ Dans la liste des spectateurs, **Faire confiance** à la tablette: elle reviendr
simple adresse de l'ordinateur, à ce partage et aux suivants, sans QR code ni code. Les appareils de
confiance se retirent dans les **Réglages** (« Révoquer »), avec effet immédiat.
Le nom de la tablette se change dans le pied de page de sa page, ou en cliquant sur son nom dans la
liste des spectateurs; le nom donné sur l'ordinateur prime.
Le nom de la tablette se change sous la roue crantée ⚙ de sa page, ou en cliquant sur son nom dans
la liste des spectateurs; le nom donné sur l'ordinateur prime. La page de la tablette suit la langue
de son navigateur; la roue crantée permet d'en choisir une autre, de changer de thème et d'afficher
les statistiques du flux.
## 5. Changer d'écran en cours de route
+1 -1
View File
@@ -166,7 +166,7 @@ l'est pas, et l'appareil photo du téléphone fait mieux de toute façon.
il revient ensuite par `http://hôte:port/` sans QR code. « Révoquer » dans les réglages le
renvoie tout de suite.
- **Nom côté spectateur**: suggéré par l'appareil et le navigateur (`iPad Safari`), modifiable
dans le pied de page du viewer, gardé par le navigateur et transmis sans reconnexion.
sous la roue crantée du viewer (#92), gardé par le navigateur et transmis sans reconnexion.
- **Nom côté hôte**: un clic sur le nom dans la liste le renomme sur cet hôte; il prime, il est
gardé dans `settings.json` (`aliases`, par identifiant d'appareil), et « (il s'appelle …) » rend
le nom annoncé. Les deux côtés nettoient le nom de la même façon (`rs_proto::clean_name`), et
+9 -5
View File
@@ -40,11 +40,10 @@
"pin": "Keep the controls visible",
"unpin": "Hide the controls when unused",
"themes": {
"system": "like the device",
"light": "light",
"dark": "dark"
"system": "Like the device",
"light": "Light",
"dark": "Dark"
},
"themeButton": "Theme: {current}. Change",
"language": "Language",
"insecureBadge": "not encrypted",
"insecureHint": "The page and signalling travel unencrypted on the local network. The video stream itself is encrypted end to end (DTLS-SRTP).",
@@ -72,7 +71,12 @@
"network": "Connection lost after several attempts. Check that you are on the same network as the host. The connection resumes by itself when the network returns, or with the button below. If the host restarted, scan its QR code again: the address changes at every start.",
"unsupported": "This browser does not support WebRTC.",
"not_trusted": "The host no longer trusts this device. Scan the QR code it shows, or type its short code."
}
},
"settings": "Settings",
"close": "Close",
"languageBrowser": "The browser's ({name})",
"theme": "Theme",
"showStats": "Show statistics (resolution, frame rate, bitrate)"
},
"desktop": {
"title": "rustscreen",
+9 -5
View File
@@ -40,11 +40,10 @@
"pin": "Garder les contrôles affichés",
"unpin": "Effacer les contrôles quand on ne s’en sert pas",
"themes": {
"system": "comme l’appareil",
"light": "clair",
"dark": "sombre"
"system": "Comme l’appareil",
"light": "Clair",
"dark": "Sombre"
},
"themeButton": "Thème: {current}. Changer",
"language": "Langue",
"insecureBadge": "non chiffré",
"insecureHint": "La page et le signalement circulent en clair sur le réseau local. Le flux vidéo, lui, est chiffré de bout en bout (DTLS-SRTP).",
@@ -72,7 +71,12 @@
"network": "Connexion perdue après plusieurs tentatives. Vérifiez que vous êtes sur le même réseau que l’hôte. La connexion reprendra seule au retour du réseau, ou avec le bouton ci-dessous. Si l’hôte a redémarré, scannez à nouveau son QR code: l’adresse change à chaque démarrage.",
"unsupported": "Ce navigateur ne prend pas en charge WebRTC.",
"not_trusted": "L'hôte ne fait plus confiance à cet appareil. Scannez le QR code qu'il affiche, ou tapez son code court."
}
},
"settings": "Réglages",
"close": "Fermer",
"languageBrowser": "Celle du navigateur ({name})",
"theme": "Thème",
"showStats": "Afficher les statistiques (résolution, cadence, débit)"
},
"desktop": {
"title": "rustscreen",