MCPcopy
hub / github.com/sansan0/TrendRadar / renderModuleNav

Function renderModuleNav

docs/assets/script.js:754–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

752
753// 渲染模块导航栏
754function renderModuleNav() {
755 const nav = document.getElementById('module-nav');
756 if (!nav) return;
757
758 nav.innerHTML = MODULE_DEFS.map(mod => `
759 <button onclick="scrollToModuleInEditor('${mod.key}')"
760 class="module-nav-btn text-[10px] px-2 py-1 rounded ${mod.editable ? 'bg-blue-100 text-blue-700 hover:bg-blue-200' : 'bg-gray-100 text-gray-500 hover:bg-gray-200'} transition-colors"
761 title="跳转到模块 ${mod.id}">
762 ${mod.id}
763 </button>
764 `).join('');
765}
766
767// 切换组名编辑状态
768window.toggleGroupNameEdit = function(btn) {

Callers 1

renderModulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected