feat: 添加“脚本模式”

Refs #28
This commit is contained in:
Baobhan Sith
2025-05-11 17:34:26 +08:00
parent 2fae89a0ac
commit 4c634c6fde
4 changed files with 473 additions and 17 deletions
+25 -1
View File
@@ -196,7 +196,31 @@
"errorPasswordRequiredForBatchVNC": "When batch adding VNC connections, a VNC password must be provided.",
"errorBatchAddResult": "Batch add: {successCount} succeeded, {errorCount} failed. First error: {firstErrorEncountered}",
"successBatchAddResult": "Batch add successful: {successCount} connections created.",
"errorIpRangeNotAllowedInEditMode": "IP range is not supported in edit mode. Please use a single IP address."
"errorIpRangeNotAllowedInEditMode": "IP range is not supported in edit mode. Please use a single IP address.",
"scriptModeSubmitPlaceholder": "Script mode submission logic to be implemented.",
"scriptModeEmpty": "Script input cannot be empty.",
"scriptModeSubmitPending": "Processing script mode submission...",
"sectionScriptMode": "Script Mode",
"scriptModeInputLabel": "Connection Script (one per line)",
"scriptModePlaceholder": "Enter connection script, one connection configuration per line.",
"scriptModeFormatInfo": "Format: user@host:port [-type TYPE] [-name NAME] [-p PASSWORD] [-k KEY_NAME] [-tags TAG1 TAG2...] [-note NOTE_TEXT]",
"scriptErrorMissingHost": "Script line '{line}' is missing the 'user@host:port' part.",
"scriptErrorInvalidType": "Invalid type '{type}' in script line '{line}'. Valid types are SSH, RDP, VNC.",
"scriptErrorUnknownArg": "Unknown argument '{arg}' in script line '{line}'.",
"scriptErrorUnexpectedToken": "Unexpected token '{token}' in script line '{line}'.",
"scriptErrorInvalidUserHostPort": "Invalid format for '{part}' in script line '{line}'. Expected 'user@host' or 'user@host:port'.",
"scriptErrorInLine": "Error parsing script line: \"{line}\" - Error: {error}",
"scriptErrorMissingType": "Script line '{line}' is missing connection type or type is invalid.",
"scriptErrorInvalidUserHostFormat": "Invalid user@host format in script line '{line}'.",
"scriptErrorInvalidPort": "Invalid port '{port}' in script line '{line}'.",
"scriptErrorMissingPasswordForSsh": "Script line '{line}' (SSH password auth) is missing password (-p).",
"scriptErrorMissingKeyNameForSsh": "Script line '{line}' (SSH key auth) is missing key name (-k).",
"scriptErrorMissingPasswordForType": "Script line '{line}' (type {type}) is missing password (-p).",
"scriptErrorInternal": "Internal parsing error while processing script input.",
"scriptErrorTagNotFound": "Script processing error: Tag '{tagName}' not found.",
"scriptErrorSshKeyNotFound": "Script processing error: SSH Key '{keyName}' not found.",
"scriptErrorNothingToProcess": "No valid connection data to process.",
"scriptModeAddingConnections": "Adding {count} connections via script mode..."
},
"test": {
"success": "Connection test successful!",