fix: Fix build errors
This commit is contained in:
@@ -226,7 +226,7 @@ router.post(
|
|||||||
authType,
|
authType,
|
||||||
credentialId,
|
credentialId,
|
||||||
key,
|
key,
|
||||||
key_password,
|
keyPassword,
|
||||||
keyType,
|
keyType,
|
||||||
pin,
|
pin,
|
||||||
enableTerminal,
|
enableTerminal,
|
||||||
@@ -412,7 +412,7 @@ router.put(
|
|||||||
authType,
|
authType,
|
||||||
credentialId,
|
credentialId,
|
||||||
key,
|
key,
|
||||||
key_password,
|
keyPassword,
|
||||||
keyType,
|
keyType,
|
||||||
pin,
|
pin,
|
||||||
enableTerminal,
|
enableTerminal,
|
||||||
@@ -727,7 +727,7 @@ router.get(
|
|||||||
authType: resolvedHost.authType,
|
authType: resolvedHost.authType,
|
||||||
password: resolvedHost.password || null,
|
password: resolvedHost.password || null,
|
||||||
key: resolvedHost.key || null,
|
key: resolvedHost.key || null,
|
||||||
key_password: resolvedHost.key_password || null,
|
keyPassword: resolvedHost.key_password || null,
|
||||||
keyType: resolvedHost.keyType || null,
|
keyType: resolvedHost.keyType || null,
|
||||||
folder: resolvedHost.folder,
|
folder: resolvedHost.folder,
|
||||||
tags:
|
tags:
|
||||||
@@ -1433,7 +1433,7 @@ router.post(
|
|||||||
credentialId:
|
credentialId:
|
||||||
hostData.authType === "credential" ? hostData.credentialId : null,
|
hostData.authType === "credential" ? hostData.credentialId : null,
|
||||||
key: hostData.authType === "key" ? hostData.key : null,
|
key: hostData.authType === "key" ? hostData.key : null,
|
||||||
key_password:
|
keyPassword:
|
||||||
hostData.authType === "key"
|
hostData.authType === "key"
|
||||||
? hostData.keyPassword || hostData.key_password || null
|
? hostData.keyPassword || hostData.key_password || null
|
||||||
: null,
|
: null,
|
||||||
|
|||||||
@@ -674,7 +674,7 @@ wss.on("connection", async (ws: WebSocket, req) => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const connectConfig: ConnectConfig = {
|
const connectConfig: any = {
|
||||||
host: ip,
|
host: ip,
|
||||||
port,
|
port,
|
||||||
username,
|
username,
|
||||||
@@ -682,6 +682,8 @@ wss.on("connection", async (ws: WebSocket, req) => {
|
|||||||
keepaliveInterval: 30000,
|
keepaliveInterval: 30000,
|
||||||
keepaliveCountMax: 3,
|
keepaliveCountMax: 3,
|
||||||
readyTimeout: 60000,
|
readyTimeout: 60000,
|
||||||
|
tcpKeepAlive: true,
|
||||||
|
tcpKeepAliveInitialDelay: 30000,
|
||||||
env: {
|
env: {
|
||||||
TERM: "xterm-256color",
|
TERM: "xterm-256color",
|
||||||
LANG: "en_US.UTF-8",
|
LANG: "en_US.UTF-8",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
// CENTRAL TYPE DEFINITIONS
|
// CENTRAL TYPE DEFINITIONS
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// This file contains all shared interfaces and types used across the application
|
|
||||||
|
|
||||||
import type { Client } from "ssh2";
|
import type { Client } from "ssh2";
|
||||||
import type { Request } from "express";
|
import type { Request } from "express";
|
||||||
@@ -265,7 +264,7 @@ export interface TabContextTab {
|
|||||||
| "user_profile";
|
| "user_profile";
|
||||||
title: string;
|
title: string;
|
||||||
hostConfig?: SSHHost;
|
hostConfig?: SSHHost;
|
||||||
terminalRef?: React.RefObject<TerminalHandle>;
|
terminalRef?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user