Implement Executable File Detection & Terminal Integration + i18n Improvements #252

Merged
ZacharyZcR merged 63 commits from main into main 2025-09-18 02:58:14 +00:00
Showing only changes of commit 523f6412a7 - Show all commits
@@ -326,7 +326,14 @@ function FileManagerContent({ initialHost, onClose }: FileManagerModernProps) {
// 确保SSH连接有效
await ensureSSHConnection();
await createSSHFolder(sshSessionId, folderPath);
// API需要分离的path和folderName参数
await createSSHFolder(
sshSessionId,
currentPath,
defaultName,
currentHost?.id,
currentHost?.userId?.toString()
);
// 重新加载目录
await loadDirectory(currentPath);
@@ -361,7 +368,15 @@ function FileManagerContent({ initialHost, onClose }: FileManagerModernProps) {
// 确保SSH连接有效
await ensureSSHConnection();
await createSSHFile(sshSessionId, filePath, "");
// API需要分离的path、fileName和content参数
await createSSHFile(
sshSessionId,
currentPath,
defaultName,
"",
currentHost?.id,
currentHost?.userId?.toString()
);
// 重新加载目录
await loadDirectory(currentPath);