fix: fix translate mismatching text

This commit is contained in:
LukeGus
2025-12-30 23:40:51 -06:00
parent a28cd897ba
commit f9f81e9e91
3 changed files with 10 additions and 2400 deletions

View File

@@ -359,6 +359,7 @@ class SSHConnectionPool {
host: SSHHostWithCredentials, host: SSHHostWithCredentials,
): Promise<Client> { ): Promise<Client> {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
const config = buildSshConfig(host);
const client = new Client(); const client = new Client();
const timeout = setTimeout(() => { const timeout = setTimeout(() => {
client.end(); client.end();
@@ -401,7 +402,10 @@ class SSHConnectionPool {
sessionId, sessionId,
hostId: host.id, hostId: host.id,
userId: host.userId!, userId: host.userId!,
prompts, prompts: prompts.map((p) => ({
prompt: p.prompt,
echo: p.echo ?? false,
})),
totpPromptIndex, totpPromptIndex,
resolvedPassword: host.password, resolvedPassword: host.password,
totpAttempts: 0, totpAttempts: 0,
@@ -430,8 +434,6 @@ class SSHConnectionPool {
); );
try { try {
const config = buildSshConfig(host);
if ( if (
host.useSocks5 && host.useSocks5 &&
(host.socks5Host || (host.socks5Host ||
@@ -1948,7 +1950,10 @@ app.post("/metrics/start/:id", validateHostId, async (req, res) => {
sessionId, sessionId,
hostId: host.id, hostId: host.id,
userId: host.userId!, userId: host.userId!,
prompts, prompts: prompts.map((p) => ({
prompt: p.prompt,
echo: p.echo ?? false,
})),
totpPromptIndex, totpPromptIndex,
resolvedPassword: host.password, resolvedPassword: host.password,
totpAttempts: 0, totpAttempts: 0,

File diff suppressed because it is too large Load Diff

View File

@@ -1685,6 +1685,7 @@
"failedToFetchMetrics": "Failed to fetch server metrics", "failedToFetchMetrics": "Failed to fetch server metrics",
"failedToFetchHomeData": "Failed to fetch home data", "failedToFetchHomeData": "Failed to fetch home data",
"loadingMetrics": "Loading metrics...", "loadingMetrics": "Loading metrics...",
"connecting": "Connecting...",
"refreshing": "Refreshing...", "refreshing": "Refreshing...",
"serverOffline": "Server Offline", "serverOffline": "Server Offline",
"cannotFetchMetrics": "Cannot fetch metrics from offline server", "cannotFetchMetrics": "Cannot fetch metrics from offline server",