From 51a9024d7d084dcdf24513eef3b14aded97bb752 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Mon, 24 Aug 2026 16:07:12 +0800 Subject: [PATCH] fix(web): support Docker access over HTTP --- .../DesktopRendererErrorBoundary.tsx | 10 ++++-- .../src/hooks/useWorkspaceSyncLifecycle.ts | 3 +- apps/web/src/lib/api.ts | 6 ++-- apps/web/src/lib/client-id.test.mjs | 32 +++++++++++++++++++ apps/web/src/lib/client-id.ts | 27 ++++++++++++++++ apps/web/src/lib/local-mirror.ts | 9 +++--- apps/web/src/lib/note-print.ts | 3 +- apps/web/src/lib/sync-queue.ts | 3 +- 8 files changed, 79 insertions(+), 14 deletions(-) create mode 100644 apps/web/src/lib/client-id.test.mjs create mode 100644 apps/web/src/lib/client-id.ts diff --git a/apps/web/src/components/DesktopRendererErrorBoundary.tsx b/apps/web/src/components/DesktopRendererErrorBoundary.tsx index dd174fd8..a386be0c 100644 --- a/apps/web/src/components/DesktopRendererErrorBoundary.tsx +++ b/apps/web/src/components/DesktopRendererErrorBoundary.tsx @@ -63,9 +63,13 @@ export class DesktopRendererErrorBoundary extends React.Component<{ children: Re
!

{zh ? "EdgeEver 页面出现异常" : "EdgeEver encountered a page error"}

- {zh - ? "问题已经记录到这台设备。你可以重新加载继续使用,并在提交前检查脱敏后的 GitHub Issue。" - : "The problem was recorded on this device. You can reload to continue and review the redacted GitHub Issue before submitting it."} + {desktop + ? (zh + ? "问题已经记录到这台设备。你可以重新加载继续使用,并在提交前检查脱敏后的 GitHub Issue。" + : "The problem was recorded on this device. You can reload to continue and review the redacted GitHub Issue before submitting it.") + : (zh + ? "你可以重新加载继续使用。如果问题仍然出现,请检查浏览器控制台,并在提交 GitHub Issue 前移除敏感信息。" + : "Reload to continue. If the problem persists, check the browser console and remove sensitive information before submitting a GitHub Issue.")}