v1.0.1: 多拓扑管理、Web SSH终端、扫描进度修复、拓扑连线优化

- 修复扫描进度条不动的问题(分4阶段更新进度)
- 新增Web SSH远程终端(xterm.js + WebSocket)
- 新增多拓扑管理(创建/切换拓扑、全局设备池)
- 简化新建拓扑流程(仅需名称,创建后选择设备)
- 修复拓扑Builder设备去重(按IP去重)
- 修复启动时拓扑设备不加载到Builder的问题
- 优化MAC前缀匹配(避免歧义前缀导致错误连线)
- 拓扑连线改为无向(去除箭头)
- 设备详情面板加宽到600px
This commit is contained in:
Your Name
2026-04-26 13:25:19 +08:00
parent 6e1b010c17
commit 44f7fef1f8
17 changed files with 1940 additions and 54 deletions
+119 -1
View File
@@ -33,6 +33,24 @@ header h1 {
.controls {
display: flex;
gap: 10px;
align-items: center;
}
.topology-selector {
padding: 10px 15px;
border: none;
border-radius: 5px;
font-size: 14px;
background: rgba(255, 255, 255, 0.9);
color: #333;
min-width: 200px;
cursor: pointer;
transition: all 0.3s;
}
.topology-selector:hover {
background: white;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn {
@@ -171,7 +189,7 @@ header h1 {
}
.detail-panel {
width: 350px;
width: 600px;
background: white;
padding: 20px;
overflow-y: auto;
@@ -269,3 +287,103 @@ header h1 {
color: #FF9800;
font-weight: bold;
}
/* SSH终端样式 */
.terminal-modal-content {
width: 800px;
max-width: 90vw;
}
.terminal-container {
width: 100%;
height: 500px;
background: #1e1e1e;
border-radius: 5px;
overflow: hidden;
margin-top: 15px;
}
.terminal-status {
margin-top: 10px;
font-size: 12px;
color: #999;
text-align: right;
}
.terminal-status.connected {
color: #4CAF50;
}
/* 设备选择器样式 */
.select-devices-modal-content {
width: 600px;
max-width: 90vw;
}
.select-devices-toolbar {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.btn-sm {
padding: 6px 14px;
font-size: 13px;
}
.selected-count {
font-size: 13px;
color: #666;
}
.device-pool-list {
max-height: 400px;
overflow-y: auto;
}
.device-pool-item {
display: flex;
align-items: center;
padding: 10px;
margin-bottom: 8px;
background: #f9f9f9;
border-radius: 5px;
cursor: pointer;
transition: all 0.2s;
border-left: 3px solid #ddd;
}
.device-pool-item:hover {
background: #f0f0f0;
border-left-color: #667eea;
}
.device-pool-item.selected {
background: #e8f5e9;
border-left-color: #4CAF50;
}
.device-pool-item input[type="checkbox"] {
margin-right: 12px;
width: 18px;
height: 18px;
cursor: pointer;
}
.device-pool-item .device-info {
flex: 1;
}
.device-pool-item .device-ip {
font-weight: bold;
color: #667eea;
}
.device-pool-item .device-type {
font-size: 12px;
color: #666;
margin-top: 3px;
}