调整代码结构
This commit is contained in:
@@ -23,10 +23,10 @@ import {
|
||||
ClientState
|
||||
} from './types';
|
||||
import { SshSuspendService } from '../services/ssh-suspend.service';
|
||||
import { SftpService } from '../services/sftp.service';
|
||||
import { SftpService } from '../sftp/sftp.service';
|
||||
import { cleanupClientConnection } from './utils';
|
||||
import { clientStates } from './state';
|
||||
import { temporaryLogStorageService } from '../services/temporary-log-storage.service';
|
||||
import { temporaryLogStorageService } from '../ssh-suspend/temporary-log-storage.service';
|
||||
|
||||
// Handlers
|
||||
import { handleRdpProxyConnection } from './handlers/rdp.handler';
|
||||
|
||||
@@ -4,7 +4,7 @@ import { AuthenticatedWebSocket, ClientState } from '../types';
|
||||
import { clientStates, sftpService, statusMonitorService, auditLogService, notificationService } from '../state';
|
||||
import * as SshService from '../../services/ssh.service';
|
||||
import { cleanupClientConnection } from '../utils';
|
||||
import { temporaryLogStorageService } from '../../services/temporary-log-storage.service';
|
||||
import { temporaryLogStorageService } from '../../ssh-suspend/temporary-log-storage.service';
|
||||
import { startDockerStatusPolling } from './docker.handler';
|
||||
import WebSocket from 'ws';
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ClientState } from './types';
|
||||
import { SftpService } from '../services/sftp.service';
|
||||
import { SftpService } from '../sftp/sftp.service';
|
||||
import { StatusMonitorService } from '../services/status-monitor.service';
|
||||
import { AuditLogService } from '../services/audit.service';
|
||||
import { NotificationService } from '../services/notification.service';
|
||||
import { DockerService } from '../services/docker.service';
|
||||
import { DockerService } from '../docker/docker.service';
|
||||
import { settingsService } from '../services/settings.service'; // 添加导入
|
||||
|
||||
// 存储所有活动客户端的状态 (key: sessionId)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PortInfo, ClientState } from './types';
|
||||
import { SftpService } from '../services/sftp.service';
|
||||
import { SftpService } from '../sftp/sftp.service';
|
||||
import { StatusMonitorService } from '../services/status-monitor.service';
|
||||
import { clientStates, sftpService, statusMonitorService } from './state';
|
||||
import { sshSuspendService } from '../services/ssh-suspend.service';
|
||||
|
||||
Reference in New Issue
Block a user