@xcanwin/manyoyo 5.7.7 → 5.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/manyoyo.js +1 -1
- package/lib/web/frontend/app.js +13 -9
- package/package.json +1 -1
package/bin/manyoyo.js
CHANGED
|
@@ -857,7 +857,7 @@ function updateManyoyo() {
|
|
|
857
857
|
|
|
858
858
|
console.log(`${CYAN}🔄 当前版本: ${currentVersion}${NC}`);
|
|
859
859
|
console.log(`${CYAN}🔄 正在更新 ${MANYOYO_NAME} 到最新版本...${NC}`);
|
|
860
|
-
runCmd('npm', ['update', '-g', '@xcanwin/manyoyo'], { stdio: 'inherit' });
|
|
860
|
+
runCmd('npm', ['update', '-g', '@xcanwin/manyoyo', '--prefer-online'], { stdio: 'inherit' });
|
|
861
861
|
|
|
862
862
|
// 升级后获取新版本
|
|
863
863
|
let newVersion = 'unknown';
|
package/lib/web/frontend/app.js
CHANGED
|
@@ -2493,17 +2493,19 @@
|
|
|
2493
2493
|
return count + containerGroup.sessions.length;
|
|
2494
2494
|
}, 0)} AGENT`,
|
|
2495
2495
|
formatDateTime(directoryGroup.updatedAt) || '暂无更新'
|
|
2496
|
-
]
|
|
2497
|
-
onClick: function () {
|
|
2498
|
-
setSidebarDirectoryExpanded(directoryGroup.path, !directoryExpanded);
|
|
2499
|
-
renderSessions();
|
|
2500
|
-
}
|
|
2496
|
+
]
|
|
2501
2497
|
});
|
|
2502
2498
|
group.appendChild(groupHead);
|
|
2503
2499
|
|
|
2504
2500
|
const containerStack = document.createElement('div');
|
|
2505
2501
|
containerStack.className = 'container-stack workbench-group-body';
|
|
2506
2502
|
containerStack.hidden = !directoryExpanded;
|
|
2503
|
+
groupHead.addEventListener('click', function () {
|
|
2504
|
+
const nextExpanded = containerStack.hidden;
|
|
2505
|
+
setSidebarDirectoryExpanded(directoryGroup.path, nextExpanded);
|
|
2506
|
+
groupHead.setAttribute('aria-expanded', nextExpanded ? 'true' : 'false');
|
|
2507
|
+
containerStack.hidden = !nextExpanded;
|
|
2508
|
+
});
|
|
2507
2509
|
|
|
2508
2510
|
directoryGroup.containers.forEach(function (containerGroup) {
|
|
2509
2511
|
const containerExpanded = isContainerExpanded(containerGroup);
|
|
@@ -2516,10 +2518,6 @@
|
|
|
2516
2518
|
containerHead.className = 'container-card-head';
|
|
2517
2519
|
|
|
2518
2520
|
const containerToggle = createContainerToggle(containerGroup, containerExpanded);
|
|
2519
|
-
containerToggle.addEventListener('click', function () {
|
|
2520
|
-
setSidebarContainerExpanded(containerGroup.containerName, !containerExpanded);
|
|
2521
|
-
renderSessions();
|
|
2522
|
-
});
|
|
2523
2521
|
|
|
2524
2522
|
const addAgentBtn = document.createElement('button');
|
|
2525
2523
|
addAgentBtn.type = 'button';
|
|
@@ -2535,6 +2533,12 @@
|
|
|
2535
2533
|
const agentList = document.createElement('div');
|
|
2536
2534
|
agentList.className = 'agent-list container-card-body';
|
|
2537
2535
|
agentList.hidden = !containerExpanded;
|
|
2536
|
+
containerToggle.addEventListener('click', function () {
|
|
2537
|
+
const nextExpanded = agentList.hidden;
|
|
2538
|
+
setSidebarContainerExpanded(containerGroup.containerName, nextExpanded);
|
|
2539
|
+
containerToggle.setAttribute('aria-expanded', nextExpanded ? 'true' : 'false');
|
|
2540
|
+
agentList.hidden = !nextExpanded;
|
|
2541
|
+
});
|
|
2538
2542
|
agentList.appendChild(addAgentBtn);
|
|
2539
2543
|
containerGroup.sessions.forEach(function (session) {
|
|
2540
2544
|
const row = createAgentRow(session, itemIndex);
|