调整代码结构

This commit is contained in:
Baobhan Sith
2025-06-01 15:35:42 +08:00
parent 33422a215c
commit 27fa1caa1f
39 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -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';
+2 -2
View File
@@ -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 -1
View File
@@ -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';