mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-06-10 08:13:59 +02:00
Add files via upload
This commit is contained in:
@@ -16010,18 +16010,6 @@ tr.mcp-stats-tool-row[data-tool-name]:focus-visible {
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
.dashboard-feed-tab-badge {
|
||||
margin-left: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.dashboard-feed-tab.is-active .dashboard-feed-tab-badge {
|
||||
color: #0066ff;
|
||||
}
|
||||
|
||||
.dashboard-feed-tab:focus-visible {
|
||||
outline: 2px solid rgba(0, 102, 255, 0.45);
|
||||
outline-offset: 2px;
|
||||
|
||||
@@ -394,7 +394,6 @@ async function refreshDashboard() {
|
||||
renderRecentVulns(recentVulnsRes);
|
||||
dashboardState.lastProjectSummary = projectSummaryRes;
|
||||
renderRecentFacts(projectSummaryRes);
|
||||
updateDashboardFeedTabBadge(projectSummaryRes);
|
||||
|
||||
// External MCP 健康度(同时拿到 down 数喂给 alert banner / 推荐操作)
|
||||
var externalMcpDown = renderExternalMcpHealth(externalMcpStatsRes);
|
||||
@@ -1171,19 +1170,6 @@ function updateDashboardFeedViewAll(tab) {
|
||||
}
|
||||
}
|
||||
|
||||
function updateDashboardFeedTabBadge(summaryRes) {
|
||||
var badge = document.getElementById('dashboard-feed-tab-facts-badge');
|
||||
if (!badge) return;
|
||||
var facts = (summaryRes && Array.isArray(summaryRes.recent_facts)) ? summaryRes.recent_facts.length : 0;
|
||||
if (facts > 0) {
|
||||
badge.hidden = false;
|
||||
badge.textContent = '(' + facts + ')';
|
||||
} else {
|
||||
badge.hidden = true;
|
||||
badge.textContent = '';
|
||||
}
|
||||
}
|
||||
|
||||
function setRecentFactsLoading() {
|
||||
var wrap = document.getElementById('dashboard-recent-facts');
|
||||
var empty = document.getElementById('dashboard-recent-facts-empty');
|
||||
|
||||
Reference in New Issue
Block a user