fix: fix translate mismatching text
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
2396
src/locales/cs.json
2396
src/locales/cs.json
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user