+ {/* User и IP */}
+
+
+ {/* Метод аутентификации */}
+
+
+
+ {(["key", "password"] as const).map((method) => (
+
+ ))}
+
+
+
+ {/* SSH Key или Password */}
+ {config.authMethod === "key" ? (
+
+
+
+ ) : (
+
+
+ handleChange("password", e.target.value)}
+ required
+ style={inputBaseStyle}
+ onFocus={handleFocus}
+ onBlur={handleBlur}
+ placeholder="••••••••"
+ />
+
+ )}
+
+ {/* Дополнительные поля */}
+
+
+
+
+
+
+ {config.extraFields.length === 0 && (
+
+
+
+ Нет дополнительных параметров
+
+
+ )}
+
+ {config.extraFields.map((extra, fieldIndex) => (
+
+
+ handleExtraFieldChange(fieldIndex, "key", e.target.value)
+ }
+ style={inputBaseStyle}
+ onFocus={handleFocus}
+ onBlur={handleBlur}
+ placeholder="Параметр"
+ />
+
+ handleExtraFieldChange(fieldIndex, "value", e.target.value)
+ }
+ style={inputBaseStyle}
+ onFocus={handleFocus}
+ onBlur={handleBlur}
+ placeholder="Значение"
+ />
+
+
+ ))}
+
+
+ {/* Тип развертывания */}
+
+
+
+ {DEPLOY_OPTIONS.map((option) => (
+
+ ))}
+
+
+