|
|
@@ -3136,7 +3136,7 @@ def generate_html(data: List[Dict[str, Any]], stats: Dict[str, Any],
|
|
|
|
|
|
<!-- 右侧栏:搜索词列表 -->
|
|
|
<div class="right-sidebar" id="rightSidebar">
|
|
|
- <div class="sidebar-header">相关搜索词</div>
|
|
|
+ <div class="sidebar-header">搜索query</div>
|
|
|
<div class="sidebar-content" id="rightSidebarContent"></div>
|
|
|
</div>
|
|
|
|
|
|
@@ -3497,11 +3497,6 @@ def generate_html(data: List[Dict[str, Any]], stats: Dict[str, Any],
|
|
|
onclick="selectFeature(${{featureIdx}})"
|
|
|
id="feature-left-${{featureIdx}}">
|
|
|
<div class="feature-name">🎯 ${{featureName}}</div>
|
|
|
- <div class="feature-meta-small">
|
|
|
- 相似度: ${{similarity.toFixed(2)}} · ${{dimension}}
|
|
|
- </div>
|
|
|
- ${{sourcePath ? `<div class="feature-source">${{sourcePath}}</div>` : ''}}
|
|
|
- <div class="feature-stats">${{groups.length}}个base_word</div>
|
|
|
</div>
|
|
|
`;
|
|
|
}});
|
|
|
@@ -3595,7 +3590,6 @@ def generate_html(data: List[Dict[str, Any]], stats: Dict[str, Any],
|
|
|
<div class="cascade-item-meta">
|
|
|
相似度: ${{baseSimilarity.toFixed(2)}} · ${{searches.length}}个搜索词
|
|
|
</div>
|
|
|
- ${{relatedWordNames ? `<div style="font-size:10px;color:#92400e;margin-top:4px;">相关: ${{relatedWordNames}}</div>` : ''}}
|
|
|
</div>
|
|
|
`;
|
|
|
}});
|
|
|
@@ -3674,14 +3668,6 @@ def generate_html(data: List[Dict[str, Any]], stats: Dict[str, Any],
|
|
|
<div style="font-size:11px;color:#6b7280;margin-top:4px;">
|
|
|
组合词: ${{sourceWord}} → [${{score.toFixed(2)}}]
|
|
|
</div>
|
|
|
- <div style="font-size:12px;margin-top:6px;display:flex;align-items:center;gap:8px;">
|
|
|
- <span style="color:#7c3aed;font-weight:600;">
|
|
|
- 综合评分: ${{comprehensiveScore.toFixed(3)}}
|
|
|
- </span>
|
|
|
- <span style="color:#059669;font-weight:600;">
|
|
|
- M/N: ${{matchM}}/${{totalN}}
|
|
|
- </span>
|
|
|
- </div>
|
|
|
${{evalBadges ? `<div style="margin-top:4px;">${{evalBadges}}</div>` : ''}}
|
|
|
${{reasoning ? `
|
|
|
<div class="search-word-reasoning">
|
|
|
@@ -3894,13 +3880,13 @@ def generate_html(data: List[Dict[str, Any]], stats: Dict[str, Any],
|
|
|
</div>
|
|
|
|
|
|
<!-- 解构按钮(仅当有解构数据时显示) -->
|
|
|
- ${{hasDeconstruction ? `
|
|
|
+ ` + (hasDeconstruction ? `
|
|
|
<button class="deconstruction-toggle-btn"
|
|
|
onclick="event.stopPropagation(); openDeconstructionModal('${{noteId}}', '${{title.replace(/'/g, "\\'")}}')"
|
|
|
style="width:100%;padding:10px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;border-top:1px solid #e5e7eb;cursor:pointer;font-size:13px;font-weight:600;transition:all 0.3s;display:flex;align-items:center;justify-content:center;gap:6px;">
|
|
|
🎯 查看解构
|
|
|
</button>
|
|
|
- ` : ''}}
|
|
|
+ ` : '') + `
|
|
|
</div>
|
|
|
`;
|
|
|
}});
|