feat: 添加连续IP范围批量添加连接的功能

Refs #28
This commit is contained in:
Baobhan Sith
2025-05-11 16:04:55 +08:00
parent d7bee11383
commit 2fae89a0ac
4 changed files with 324 additions and 121 deletions
+19 -3
View File
@@ -153,8 +153,10 @@
"errorRequiredFields": "Please fill in all required fields.",
"errorPasswordRequired": "Password is required for password authentication.",
"errorPrivateKeyRequired": "Private key is required for key authentication.",
"errorSshKeyRequired": "An SSH key must be selected for key authentication.",
"errorPasswordRequiredOnSwitch": "Password is required when switching to password authentication.",
"errorPrivateKeyRequiredOnSwitch": "Private key is required when switching to key authentication.",
"errorSshKeyRequiredOnSwitch": "An SSH key must be selected when switching to key authentication.",
"errorVncPasswordRequired": "VNC password is required.",
"errorPort": "Port must be between 1 and 65535.",
"errorAdd": "Failed to add connection: {error}",
@@ -166,9 +168,9 @@
"proxy": "Proxy:",
"noProxy": "No Proxy",
"tags": "Tags:",
"notes": "Notes:",
"notes": "Notes:",
"notesPlaceholder": "Enter connection notes...",
"connectionType": "Connection Type:",
"connectionType": "Connection Type:",
"typeSsh": "SSH",
"typeRdp": "RDP",
"typeVnc": "VNC",
@@ -180,7 +182,21 @@
"sshKey": "SSH Key",
"privateKeyDirect": "Private Key Content",
"keyUpdateNoteDirect": "Leave private key and passphrase blank to keep the existing key when editing.",
"keyUpdateNoteSelected": "Select another key or use direct input to change the key when editing."
"keyUpdateNoteSelected": "Select another key or use direct input to change the key when editing.",
"hostTooltip": "Supports IP range for batch add (e.g., 192.168.1.10~192.168.1.15, add mode only)",
"errorInvalidIpRangeFormat": "IP range format should be start_ip~end_ip",
"errorInvalidIpFormat": "Invalid start or end IP address format",
"errorIpRangeNotSameSubnet": "IP range must be within the same C-class subnet (e.g., 1.2.3.x ~ 1.2.3.y)",
"errorInvalidIpSuffix": "The last part of the IP address must be a number between 0-255",
"errorIpRangeStartAfterEnd": "The start IP of the range cannot be greater than the end IP",
"errorIpRangeEmpty": "IP range cannot be empty.",
"errorSshKeyRequiredForBatch": "When batch adding SSH (key auth) connections, an SSH key must be selected.",
"errorPasswordRequiredForBatchSSH": "When batch adding SSH (password auth) connections, a password must be provided.",
"errorPasswordRequiredForBatchRDP": "When batch adding RDP connections, a password must be provided.",
"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."
},
"test": {
"success": "Connection test successful!",