fix(connect): 连接提示使用 URL 中的设备 IP,去掉写死的 10.0.0.119
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,7 +40,7 @@ export default function ConnectionPlaceholder() {
|
|||||||
<>
|
<>
|
||||||
<p className="text-[15px] text-white/80 mb-2">{text.ipMissingTitle}</p>
|
<p className="text-[15px] text-white/80 mb-2">{text.ipMissingTitle}</p>
|
||||||
<p className="text-[13px] text-white/45 text-center max-w-xs">{text.ipMissingDesc}</p>
|
<p className="text-[13px] text-white/45 text-center max-w-xs">{text.ipMissingDesc}</p>
|
||||||
<p className="text-[13px] text-[#00FFF6]/80 mt-3 font-mono">?ip=10.0.0.119</p>
|
<p className="text-[13px] text-[#00FFF6]/80 mt-3 font-mono">?ip=</p>
|
||||||
</>
|
</>
|
||||||
) : isConnecting ? (
|
) : isConnecting ? (
|
||||||
<>
|
<>
|
||||||
@@ -53,7 +53,7 @@ export default function ConnectionPlaceholder() {
|
|||||||
<p className="text-[13px] text-white/45 text-center max-w-xs">
|
<p className="text-[13px] text-white/45 text-center max-w-xs">
|
||||||
{error && !isLikelyNetworkFetchError(error) ? error : text.failedDesc}
|
{error && !isLikelyNetworkFetchError(error) ? error : text.failedDesc}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-[12px] text-white/30 mt-3 text-center max-w-xs">{text.failedHint}</p>
|
<p className="text-[12px] text-white/30 mt-3 text-center max-w-xs">{fmt(text.failedHint, { ip })}</p>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<BottomNav />
|
<BottomNav />
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"connecting": "Verbindung zu {ip}…",
|
"connecting": "Verbindung zu {ip}…",
|
||||||
"failedTitle": "Verbindung fehlgeschlagen",
|
"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.",
|
"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": {
|
"home": {
|
||||||
"audioSet": "Audioeinstellung",
|
"audioSet": "Audioeinstellung",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"connecting": "Connecting to {ip}…",
|
"connecting": "Connecting to {ip}…",
|
||||||
"failedTitle": "Connection failed",
|
"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.",
|
"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": {
|
"home": {
|
||||||
"audioSet": "Audio setting",
|
"audioSet": "Audio setting",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"connecting": "Conectando a {ip}…",
|
"connecting": "Conectando a {ip}…",
|
||||||
"failedTitle": "Error de conexión",
|
"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.",
|
"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": {
|
"home": {
|
||||||
"audioSet": "Configuración de audio",
|
"audioSet": "Configuración de audio",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"connecting": "Connexion à {ip}…",
|
"connecting": "Connexion à {ip}…",
|
||||||
"failedTitle": "Échec de la connexion",
|
"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.",
|
"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": {
|
"home": {
|
||||||
"audioSet": "Réglage audio",
|
"audioSet": "Réglage audio",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"connecting": "正在連線 {ip}…",
|
"connecting": "正在連線 {ip}…",
|
||||||
"failedTitle": "連線失敗",
|
"failedTitle": "連線失敗",
|
||||||
"failedDesc": "無法連接裝置。請確認本頁與裝置在同一網絡,並檢查裝置 IP 是否正確。",
|
"failedDesc": "無法連接裝置。請確認本頁與裝置在同一網絡,並檢查裝置 IP 是否正確。",
|
||||||
"failedHint": "透過網址列指定裝置,例如 ?ip=10.0.0.119"
|
"failedHint": "透過網址列指定裝置,例如 ?ip={ip}"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"audioSet": "音訊設定",
|
"audioSet": "音訊設定",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"connecting": "正在连接 {ip}…",
|
"connecting": "正在连接 {ip}…",
|
||||||
"failedTitle": "连接失败",
|
"failedTitle": "连接失败",
|
||||||
"failedDesc": "无法连接设备。请确认本页与设备在同一网络,并检查设备 IP 是否正确。",
|
"failedDesc": "无法连接设备。请确认本页与设备在同一网络,并检查设备 IP 是否正确。",
|
||||||
"failedHint": "通过地址栏指定设备,例如 ?ip=10.0.0.119"
|
"failedHint": "通过地址栏指定设备,例如 ?ip={ip}"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"audioSet": "音频设置",
|
"audioSet": "音频设置",
|
||||||
|
|||||||
Reference in New Issue
Block a user