From 0bab1bb968bc9e6bb6ec7b3ea65b2c7916f9273a Mon Sep 17 00:00:00 2001 From: fucheng Date: Sun, 20 Sep 2026 10:46:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(connect):=20=E8=BF=9E=E6=8E=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BD=BF=E7=94=A8=20URL=20=E4=B8=AD=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=20IP=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=86=99=E6=AD=BB?= =?UTF-8?q?=E7=9A=84=2010.0.0.119?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- client/src/components/ConnectionPlaceholder.tsx | 4 ++-- client/src/locales/data-de.json | 2 +- client/src/locales/data-en.json | 2 +- client/src/locales/data-es.json | 2 +- client/src/locales/data-fr.json | 2 +- client/src/locales/data-zh-HK.json | 2 +- client/src/locales/data-zh.json | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/components/ConnectionPlaceholder.tsx b/client/src/components/ConnectionPlaceholder.tsx index 7aca7b9..2732345 100644 --- a/client/src/components/ConnectionPlaceholder.tsx +++ b/client/src/components/ConnectionPlaceholder.tsx @@ -40,7 +40,7 @@ export default function ConnectionPlaceholder() { <>

{text.ipMissingTitle}

{text.ipMissingDesc}

-

?ip=10.0.0.119

+

?ip=

) : isConnecting ? ( <> @@ -53,7 +53,7 @@ export default function ConnectionPlaceholder() {

{error && !isLikelyNetworkFetchError(error) ? error : text.failedDesc}

-

{text.failedHint}

+

{fmt(text.failedHint, { ip })}

)} diff --git a/client/src/locales/data-de.json b/client/src/locales/data-de.json index 3e10010..c0a479a 100644 --- a/client/src/locales/data-de.json +++ b/client/src/locales/data-de.json @@ -5,7 +5,7 @@ "connecting": "Verbindung zu {ip}…", "failedTitle": "Verbindung fehlgeschlagen", "failedDesc": "Das Gerät ist nicht erreichbar. Stellen Sie sicher, dass diese Seite und das Gerät im selben Netzwerk sind und die IP stimmt.", - "failedHint": "Geben Sie das Gerät in der URL an, z.B. ?ip=10.0.0.119" + "failedHint": "Geben Sie das Gerät in der URL an, z.B. ?ip={ip}" }, "home": { "audioSet": "Audioeinstellung", diff --git a/client/src/locales/data-en.json b/client/src/locales/data-en.json index 034d2f2..edba42f 100644 --- a/client/src/locales/data-en.json +++ b/client/src/locales/data-en.json @@ -5,7 +5,7 @@ "connecting": "Connecting to {ip}…", "failedTitle": "Connection failed", "failedDesc": "Can't reach the device. Make sure this page and the device are on the same network, and that the IP is correct.", - "failedHint": "Specify the device in the URL, e.g. ?ip=10.0.0.119" + "failedHint": "Specify the device in the URL, e.g. ?ip={ip}" }, "home": { "audioSet": "Audio setting", diff --git a/client/src/locales/data-es.json b/client/src/locales/data-es.json index c1b2abc..7fd1a53 100644 --- a/client/src/locales/data-es.json +++ b/client/src/locales/data-es.json @@ -5,7 +5,7 @@ "connecting": "Conectando a {ip}…", "failedTitle": "Error de conexión", "failedDesc": "No se puede alcanzar el dispositivo. Compruebe que esta página y el dispositivo estén en la misma red y que la IP sea correcta.", - "failedHint": "Especifique el dispositivo en la URL, ej. ?ip=10.0.0.119" + "failedHint": "Especifique el dispositivo en la URL, ej. ?ip={ip}" }, "home": { "audioSet": "Configuración de audio", diff --git a/client/src/locales/data-fr.json b/client/src/locales/data-fr.json index 0f2cd10..5665630 100644 --- a/client/src/locales/data-fr.json +++ b/client/src/locales/data-fr.json @@ -5,7 +5,7 @@ "connecting": "Connexion à {ip}…", "failedTitle": "Échec de la connexion", "failedDesc": "Impossible d'atteindre l'appareil. Vérifiez que cette page et l'appareil sont sur le même réseau, et que l'IP est correcte.", - "failedHint": "Spécifiez l'appareil dans l'URL, par ex. ?ip=10.0.0.119" + "failedHint": "Spécifiez l'appareil dans l'URL, par ex. ?ip={ip}" }, "home": { "audioSet": "Réglage audio", diff --git a/client/src/locales/data-zh-HK.json b/client/src/locales/data-zh-HK.json index 1c23a7a..cb0a393 100644 --- a/client/src/locales/data-zh-HK.json +++ b/client/src/locales/data-zh-HK.json @@ -5,7 +5,7 @@ "connecting": "正在連線 {ip}…", "failedTitle": "連線失敗", "failedDesc": "無法連接裝置。請確認本頁與裝置在同一網絡,並檢查裝置 IP 是否正確。", - "failedHint": "透過網址列指定裝置,例如 ?ip=10.0.0.119" + "failedHint": "透過網址列指定裝置,例如 ?ip={ip}" }, "home": { "audioSet": "音訊設定", diff --git a/client/src/locales/data-zh.json b/client/src/locales/data-zh.json index c52a9b9..a63a1d4 100644 --- a/client/src/locales/data-zh.json +++ b/client/src/locales/data-zh.json @@ -5,7 +5,7 @@ "connecting": "正在连接 {ip}…", "failedTitle": "连接失败", "failedDesc": "无法连接设备。请确认本页与设备在同一网络,并检查设备 IP 是否正确。", - "failedHint": "通过地址栏指定设备,例如 ?ip=10.0.0.119" + "failedHint": "通过地址栏指定设备,例如 ?ip={ip}" }, "home": { "audioSet": "音频设置",