feat(URL协议): 增强URL协议注册健壮性

- 新增check_url_protocol_status命令检测注册状态
- 新增unregister_url_protocol命令取消注册
- 改进register_url_protocol命令增加验证逻辑
- 前端增加状态检测、自动重试和操作日志功能
- 更新多语言翻译支持新功能
This commit is contained in:
Yukino_fox
2026-05-04 12:11:18 +08:00
parent 3e85c32c9c
commit a2ec923788
28 changed files with 3246 additions and 429 deletions
+73 -2
View File
@@ -128,7 +128,7 @@
"appearance": "Appearance",
"security": "Security",
"account": "Account",
"database": "Database Connection",
"database": "Cloud Sync",
"dataManagement": "Data Management",
"urlProtocol": "URL Protocol",
"about": "About"
@@ -255,6 +255,45 @@
"uploadSuccess": "Local data uploaded to remote",
"uploadFailed": "Upload failed"
},
"cloudSync": {
"title": "Cloud Sync",
"selectMethod": "Select Sync Method",
"selectMethodHint": "Choose a data sync method. The two methods are mutually exclusive. Switching will use the new sync channel.",
"postgresql": "Self-hosted PostgreSQL",
"postgresqlDesc": "Connect to your own PostgreSQL database for full data control. Ideal for users with their own server.",
"sectlCloud": "SECTL Cloud Sync",
"sectlCloudDesc": "Sync data via SECTL cloud platform. No self-hosted database needed, works out of the box.",
"loginRequired": "Please log in to SECTL Auth first",
"loginHint": "SECTL Cloud Sync requires a SECTL Auth account. Please go to the 'Account' tab to log in.",
"statusTitle": "Sync Status",
"configured": "Ready",
"notConfigured": "Not Ready",
"syncing": "Syncing...",
"lastSync": "Last synced",
"never": "Never synced",
"syncActions": "Sync Actions",
"syncDirection": "Sync Direction",
"bidirectional": "Bidirectional (Recommended) — Automatically merge local and cloud data",
"pushOnly": "Upload only — Overwrite cloud data with local data",
"pullOnly": "Download only — Overwrite local data with cloud data",
"startSync": "Start Sync",
"uploadToCloud": "Upload to Cloud",
"downloadFromCloud": "Download from Cloud",
"fullSync": "Bidirectional Sync",
"syncInProgress": "Sync is in progress, please wait",
"syncConfirm": "Confirm {{direction}}?",
"storageUsage": "Storage Usage",
"usedStorage": "Used",
"table": "Table",
"records": "Records",
"size": "Size",
"clickToLoadStats": "Click refresh to load stats",
"description": "SECTL Cloud Sync Guide",
"descriptionPoint1": "Sync data via SECTL cloud service. No self-hosted database needed. Data is isolated by SECTL Auth account.",
"descriptionPoint2": "Based on KV storage architecture. Each data table is stored as a key-value pair for efficient read/write.",
"descriptionPoint3": "Supports bidirectional, upload-only, and download-only modes for different scenarios.",
"descriptionPoint4": "Data is transmitted over HTTPS with OAuth 2.0 authentication for security."
},
"data": {
"title": "Data Management",
"settlement": "Settlement",
@@ -301,7 +340,39 @@
"register": "Register URL Protocol",
"registered": "URL protocol registered",
"registerFailed": "Registration failed",
"installerRequired": "Requires installed SecScore, may not work in development mode."
"installerRequired": "Requires installed SecScore, may not work in development mode.",
"checkStatus": "Check Status",
"reRegister": "Re-register",
"unregister": "Unregister",
"unregistered": "URL protocol unregistered",
"unregisterFailed": "Failed to unregister",
"statusRegistered": "Registered",
"statusNotRegistered": "Not Registered",
"statusCheckFailed": "Status check failed",
"retrying": "Retrying ({{current}}/{{max}})",
"retryFailed": "Max retries reached, registration failed",
"retrySuccess": "Retry #{{n}} succeeded",
"operationLog": "Operation Log",
"logRegisterStart": "Starting URL protocol registration...",
"logRegisterVerify": "Registration command executed, verifying...",
"logRegisterSuccess": "Registration verified successfully",
"logRegisterFailed": "Registration verification failed",
"logUnregisterStart": "Unregistering...",
"logUnregisterSuccess": "Unregistered successfully",
"logUnregisterFailed": "Unregister failed",
"logMaxRetries": "Max retries (7) reached"
},
"elevation": {
"title": "Administrator Privileges",
"description": "Check if the application is running with administrator/root privileges. Some features (like port listening, system-level operations) require elevated privileges.",
"elevated": "Elevated",
"notElevated": "Not Elevated",
"request": "Request Admin Privileges",
"requestSuccess": "Admin privileges requested, application will restart",
"requestFailed": "Failed to request admin privileges",
"windowsHint": "Windows: A UAC prompt will appear. After confirmation, the app will restart as administrator.",
"macosHint": "macOS: A system authentication dialog will appear. Enter admin password to restart the app.",
"linuxHint": "Linux: Uses pkexec to request root privileges. Enter password to restart the app."
},
"mcp": {
"title": "MCP Service",