feat(webui): complete remote pairing and connection recovery

This commit is contained in:
Xubin Ren committed 2026-10-02 11:36:34 +08:00
1 parent 11889c018e
commit 192ca6e49e
52 files changed
+7313 -675

No files matched your search

+121 -18
View File
@@ -1,5 +1,96 @@
{
"remote": {
"activeForgetWarning": "Tất cả thẻ đang dùng kết nối này sẽ bị ngắt. Nội dung chưa lưu có thể bị mất.",
"saved": "Đã lưu",
"pair": {
"expiringDevice": "Quyền truy cập hết hạn vào {{date}}.",
"expiredDevice": "Quyền truy cập đã hết hạn. Hãy ghép nối lại máy chủ trước khi kết nối lại.",
"introHint": "Chạy một lệnh trong terminal máy chủ để kết nối.",
"copiedTitle": "Đã sao chép lệnh",
"afterCopyHint": "Dán và chạy trong terminal máy chủ. Sau khi cấp quyền, mở liên kết được trả về trên máy tính này.",
"copyAgain": "Sao chép lại",
"otherWays": "Cách khác",
"helpTitle": "Yêu cầu và trợ giúp",
"validityHint": "Lệnh hết hạn sau 10 phút. Kiểm tra quyền truy cập trước khi cấp quyền.",
"linkDescription": "Chạy lệnh trên máy chủ, rồi quay lại bằng liên kết trong terminal.",
"preparing": "Đang chuẩn bị kết nối…",
"linkRunHint": "Dán lệnh vào terminal đám mây và cấp quyền cho máy tính này. Lệnh có hiệu lực trong 10 phút.",
"showCommand": "Xem lệnh",
"checkingLink": "Đang kiểm tra liên kết…",
"returnTitle": "2. Quay lại nanobot",
"returnHint": "Sau khi cấp quyền, mở liên kết trong terminal trên máy tính này. Thông tin kết nối sẽ được điền tự động.",
"pasteInstead": "Dùng mã kết nối",
"confirmLinkDescription": "Chỉ tiếp tục nếu liên kết hoặc mã đến từ terminal máy chủ đáng tin cậy của chính bạn.",
"route": "Đường truyền mạng…",
"direct": "Kết nối trực tiếp",
"savedRoute": "Đường truyền đã lưu",
"routeDescription": "Dành cho VPN hoặc tuyến SSH đặc biệt đã có.",
"routeHint": "Dùng lại đường truyền của kết nối SSH đã lưu tới cùng máy chủ, không sao chép khóa hay thông tin đăng nhập.",
"title": "Kết nối không cần cấu hình SSH",
"description": "Chạy một lệnh trong bảng điều khiển máy chủ, rồi dán mã kết nối vào đây.",
"steps": {
"run": "Sao chép lệnh ghép nối vào terminal máy chủ.",
"paste": "Dán mã do máy chủ cung cấp.",
"connect": "Xác nhận máy chủ và mở nanobot."
},
"requirements": "Dành cho máy chủ Linux đã cài nanobot. SSH vẫn phải truy cập được; không cần máy chủ trung gian hay WebUI công khai.",
"useSSH": "Dùng cấu hình SSH có sẵn",
"start": "Lấy lệnh ghép nối",
"runTitle": "1. Chạy trên máy chủ",
"runHint": "Mở terminal của bảng điều khiển đám mây, dán lệnh và làm theo hướng dẫn. Máy chủ cũng cần phiên bản nanobot hỗ trợ tính năng này.",
"command": "Lệnh ghép nối",
"copy": "Sao chép lệnh",
"copied": "Đã sao chép",
"copyFailed": "Không thể sao chép. Hãy chọn và sao chép lệnh ở trên.",
"code": "Mã kết nối",
"codeHint": "Dùng mã bắt đầu bằng nbpc1. trong terminal. Mã chỉ dùng được với yêu cầu cục bộ này.",
"expired": "Yêu cầu đã hết hạn. Hãy tạo lệnh mới. Nếu đã cấp quyền trên máy chủ, hãy dùng lệnh thu hồi được hiển thị ở đó.",
"restart": "Lấy lệnh mới",
"review": "Kiểm tra kết nối",
"confirmTitle": "Mở nanobot này?",
"confirmDescription": "Chỉ tiếp tục với mã được sao chép từ terminal máy chủ đáng tin cậy của chính bạn.",
"access": "Máy tính này sẽ có toàn quyền truy cập trò chuyện, cài đặt và công cụ đã bật của nanobot này.",
"expiry": "Quyền thiết bị hết hạn vào {{date}}. Phạm vi mở cổng SSH và nanobot hiện có không thay đổi.",
"security": "Chi tiết và thu hồi quyền",
"fingerprint": "Máy chủ SSH phải khớp với dấu vân tay từ bảng điều khiển này:",
"revoke": "Để thu hồi kết nối mới, chạy lệnh này trên máy chủ và đóng các phiên từ xa đang mở:",
"retryHint": "Đã lưu ghép nối. Bạn có thể thử lại mà không chạy lại lệnh trên máy chủ. Ghép nối không vượt qua việc chặn SSH của mạng hoặc VPN.",
"forgetHint": "Quên chỉ xóa kết nối khỏi danh sách, không thu hồi quyền trên máy chủ. Để thu hồi, chạy trên máy chủ:"
},
"setup": {
"progress": "Thiết lập kết nối",
"server": "Máy chủ",
"nanobot": "nanobot",
"signedIn": "Đã kết nối SSH",
"changeServer": "Đổi",
"chooseNanobot": "Bạn muốn mở nanobot nào?",
"yourNanobot": "nanobot của bạn",
"serviceAccount": "Chạy bằng tài khoản {{user}}. Sử dụng quyền sudo hiện có của tài khoản này.",
"notFound": "Không tìm thấy cấu hình nanobot",
"notFoundHint": "Kiểm tra nanobot đã được cài và đang chạy. Với Docker hoặc cài đặt tùy chỉnh, hãy hỏi người triển khai về đường dẫn và tài khoản dịch vụ.",
"limitedSearch": "Đã kiểm tra cấu hình của bạn và các dịch vụ hệ thống nanobot. Cài đặt khác có thể cần chỉ định đường dẫn.",
"manualLocation": "Chỉ định vị trí khác",
"keyHint": "Đường dẫn tệp khóa SSH riêng trên máy này, không phải nội dung khóa hay khóa API. Chưa hỗ trợ đăng nhập SSH chỉ bằng mật khẩu.",
"locationHint": "Đường dẫn và tài khoản trên máy chủ. Không cài đặt hay thay đổi quyền.",
"sshSettings": "Thiết lập đăng nhập SSH",
"checking": "Đang đăng nhập và tìm nanobot…",
"opening": "Đang mở nanobot hiện có…",
"openNanobot": "Mở nanobot",
"chooseFile": "Chọn tệp: {{field}}",
"pickingFile": "Chọn tệp trong hộp thoại hệ thống…"
},
"searchHosts": "Tìm máy chủ…",
"noMatchingHosts": "Không có máy chủ phù hợp",
"commandHint": "Nhập người_dùng@máy_chủ hoặc chọn máy SSH. Chúng tôi sẽ dùng thiết lập hiện có để đăng nhập, rồi tìm nanobot.",
"commandImported": "Đã điền các tùy chọn SSH. Bạn có thể xem lại trong Tùy chọn kết nối.",
"hostPlaceholder": "Host alias or user@server",
"addressHint": "Your existing SSH username, key and port are used automatically.",
"manualAddress": "No matching alias. You can connect with the address above.",
"connectionOptions": "Connection options",
"editDescription": "Save your changes here, then connect when you’re ready.",
"save": "Save changes",
"saving": "Saving…",
"connect": "Connect",
"localShort": "Local",
"disconnectTitle": "Disconnect from {{name}}?",
"disconnectDescription": "This closes the server view and shared SSH connection. Unsaved work may be lost, and other tabs using this connection will disconnect. nanobot keeps running on the server.",
@@ -11,19 +102,11 @@
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"sshHostsHint": "Choose a saved SSH host. Its username, key and port are inherited; no servers are contacted until you connect.",
"refreshHosts": "Refresh SSH hosts",
"searchHosts": "Search SSH hosts",
"useHost": "Use {{host}}",
"loadingHosts": "Reading SSH config…",
"noHosts": "No named hosts found. You can enter an SSH address below.",
"noMatchingHosts": "No matching hosts.",
"partialHosts": "Some entries couldn't be listed. You can still enter an alias or address manually.",
"otherConfig": "Use another SSH config file",
"configToRead": "SSH config file to read",
"readConfig": "Read hosts",
"discoveryError": "Couldn't read SSH hosts. Retry or enter an address manually.",
"portPlaceholder": "Use SSH config (normally 22)",
"portPlaceholder": "From SSH config",
"loading": "Loading connections…",
"retry": "Retry",
"unavailable": "Open this page from a locally running nanobot to connect to servers over SSH.",
@@ -39,20 +122,17 @@
"current": "Currently using",
"remote": "Remote",
"returnLocal": "Back to local nanobot",
"add": "Connect to remote nanobot…",
"addTitle": "Connect to remote nanobot",
"addDescription": "Connect to a nanobot that's already running on your server.",
"add": "Add server",
"addTitle": "Connect to a server",
"addDescription": "Connect to an existing nanobot. Chats and settings stay on the server.",
"host": "SSH address",
"name": "Name (optional)",
"namePlaceholder": "Team server",
"keyHint": "Uses your system's SSH keys. Model keys and conversations stay on the server.",
"advanced": "Advanced",
"sshPort": "SSH port",
"ssh_config": "SSH config file (optional)",
"identity_file": "Private key path (optional)",
"config_path": "Server's nanobot config path",
"runtime_user": "nanobot service account (optional)",
"saveConnect": "Save & connect",
"connecting": "Connecting…",
"opening": "Opening your server…",
"frameTitle": "nanobot on {{name}}",
@@ -65,6 +145,28 @@
"forgetTitle": "Forget {{name}}?",
"forgetDescription": "Only this saved connection will be removed. nanobot, its keys and conversations on the server will stay untouched.",
"errors": {
"disconnected": "Kết nối dùng chung này đã đóng. Bạn có thể kết nối lại khi sẵn sàng.",
"instance_changed": "Kết nối đến máy chủ này đã thay đổi. Kết nối lại sẽ tải lại giao diện; bản nháp chưa gửi có thể bị mất.",
"pair_authorization_rejected": "Máy chủ không còn chấp nhận khóa của thiết bị này. Quyền truy cập có thể đã bị thu hồi hoặc hết hạn. Hãy ghép nối lại từ bảng điều khiển máy chủ.",
"pair_route_mismatch": "Choose an SSH connection that resolves to this same server.",
"pair_route_unsupported": "This saved route uses a jump host. Use the existing SSH connection instead.",
"pair_invalid": "This code is invalid or belongs to another request. Copy it again from your server terminal.",
"pair_expired": "This pairing request expired. Generate a new command.",
"pair_authorization_expired": "This device authorization expired. Pair the server again.",
"pair_used": "This request was already used. Generate a new one.",
"pair_limit": "Close unused pairing windows and try again.",
"pair_managed": "Pair again to change the server or credentials.",
"ssh_connection_closed": "Kết nối SSH đóng trong khi thiết lập. Chưa thể kết luận là lỗi khóa. Kiểm tra VPN/proxy hoặc dùng thiết lập SSH hoạt động trong terminal.",
"ssh_refused": "Máy chủ từ chối SSH. Kiểm tra cổng và dịch vụ SSH.",
"ssh_host_not_found": "Không phân giải được tên máy chủ. Kiểm tra địa chỉ hoặc chọn máy từ cấu hình SSH.",
"ssh_too_many_keys": "SSH thử quá nhiều khóa. Chỉ định khóa đúng và IdentitiesOnly yes trong cấu hình SSH.",
"duplicate_instance": "Nanobot này đã được kết nối qua một địa chỉ SSH khác. Hãy dùng kết nối hiện có trong menu Chuyển máy chủ.",
"ssh_agent_refused": "SSH agent từ chối sử dụng khóa. Hãy mở khóa hoặc chấp thuận trong trình quản lý khóa rồi thử lại. Nếu chỉ kết nối được từ terminal, hãy khởi động lại nanobot từ terminal đó.",
"ssh_key_permissions": "SSH từ chối quyền của tệp khóa riêng. Hãy giới hạn quyền truy cập cho tài khoản của bạn rồi thử lại.",
"ssh_config_invalid": "OpenSSH không đọc được thiết lập kết nối. Hãy kiểm tra cấu hình SSH đã chọn trong terminal.",
"ssh_forwarding_denied": "Đã đăng nhập SSH nhưng máy chủ chặn chuyển tiếp cổng. Hãy nhờ quản trị viên cho phép chuyển tiếp đến cổng loopback của nanobot.",
"probe_failed": "Đã đăng nhập SSH nhưng không chạy được bước kiểm tra nanobot. Hãy xác nhận tài khoản này chạy được lệnh Python không tương tác.",
"invalid_ssh_command": "Dùng bí danh, người_dùng@máy_chủ hoặc ssh với -p, -i, -F và -l. Đặt đường dẫn có dấu cách trong dấu nháy. Các tùy chọn khác cần đặt trong cấu hình SSH; không hỗ trợ lệnh từ xa.",
"view_limit": "Three server views are already kept open. Disconnect one in Manage connections before opening another.",
"view_load_failed": "The server view is taking too long to load. Retry; your current view is unchanged.",
"same_instance": "This is the nanobot you are already using. No remote connection is needed.",
@@ -79,10 +181,11 @@
"host_key_unknown": "This server hasn't been verified by SSH on this machine yet. Verify its host fingerprint with your administrator before connecting.",
"host_key_changed": "The server's SSH identity has changed. Connection blocked. Confirm this change with your administrator; don't bypass the warning.",
"local_file_not_found": "The SSH config or private key file couldn't be found on this machine.",
"file_picker_unavailable": "Không thể mở hộp thoại chọn tệp. Bạn có thể dán đường dẫn tệp cục bộ.",
"runtime_user_denied": "SSH signed in, but cannot read as that service account without a password. Check the account with your server administrator.",
"python_unavailable": "The server needs python3 to locate its existing nanobot configuration.",
"config_not_found": "nanobot's config wasn't found. Set its server-side path in Advanced.",
"config_permission": "This SSH user can't read nanobot's config. Set the nanobot service account in Advanced.",
"config_not_found": "nanobot's config wasn't found. Set its server-side path in Connection options.",
"config_permission": "This SSH user can't read nanobot's config. Set the nanobot service account in Connection options.",
"config_invalid": "Couldn't read the server's nanobot configuration.",
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
@@ -92,7 +195,7 @@
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
"remote_unreachable": "SSH connected, but the nanobot WebUI isn't responding. Check that it's running.",
"profile_store_invalid": "Saved connections couldn't be read. They haven't been overwritten.",
"invalid_profile": "Check the address, port and Advanced fields.",
"invalid_profile": "Check the address, port and Connection options fields.",
"profile_not_found": "This saved server no longer exists. Refresh the list.",
"profile_limit": "You can save up to 20 servers.",
"connection_limit": "Disconnect an existing server before opening another connection.",