MCPcopy Create free account

hub / github.com/Feather-2/Burner-X / functions

Functions2,373 in github.com/Feather-2/Burner-X

↓ 5 callersFunctionensureGroups
()
js/chatbot/agents/semantic-tools.js:7
↓ 5 callersFunctionescapeHtml
* HTML 转义
js/processing/markdown_processor_ast.js:54
↓ 5 callersFunctionescapeHtml
* HTML 转义函数
js/processing/markdown_text_fix.js:205
↓ 5 callersMethodestimate
* 估算文本的token数量(粗略估算) * 中文1字≈1.5token,英文1字≈0.25token
js/chatbot/react/token-budget.js:26
↓ 5 callersFunctionfolderExists
(folderId)
js/history/history.js:691
↓ 5 callersFunctiongetApiError
* 统一从 API 响应中提取错误信息,便于调试和用户提示。 * * 主要逻辑: * 1. 尝试读取响应体文本。 * 2. 尝试将响应体文本解析为 JSON 对象。 * 3. 从 JSON 对象中提取常见的错误信息字段 (如 `error.message`, `message`,
js/api/api.js:27
↓ 5 callersFunctiongetInputValue
(id)
admin/admin-enhanced.js:794
↓ 5 callersFunctiongetInputValue
(id)
admin/modules/system.js:5
↓ 5 callersFunctionguessMimeType
(ext, isText)
js/history/history.js:2107
↓ 5 callersMethodhandlePromptAction
* 处理提示词操作
js/ui/prompt-pool-ui.js:1328
↓ 5 callersFunctionisBackendMode
* 判断是否为后端模式 * @returns {boolean}
js/chatbot/core/chat-history-manager.js:13
↓ 5 callersFunctionisBackendMode
* 判断是否为后端模式
js/storage/reference-storage.js:13
↓ 5 callersFunctionloadFolderAssignments
()
js/history/history.js:635
↓ 5 callersFunctionloadGlossaryEntries
* 加载翻译备择库条目列表。 * @returns {Array<Object>} 条目数组:[{ id, term, translation, caseSensitive, wholeWord, enabled }]
js/storage/storage.js:474
↓ 5 callersMethodloadMemoryIndex
* 加载内存索引(加速检索)
js/chatbot/agents/vector-store.js:170
↓ 5 callersMethodloadModelKeys
(provider)
js/storage/storage-adapter.js:121
↓ 5 callersFunctionloadSourceSites
()
admin/admin-enhanced.js:800
↓ 5 callersFunctionloadUserFolders
()
js/history/history.js:613
↓ 5 callersFunctionnl
admin/admin-enhanced.js:973
↓ 5 callersFunctionnl
admin/modules/system.js:30
↓ 5 callersMethodnormalizeFormulaText
(text)
js/history/exporter/history_exporter_docx.js:1418
↓ 5 callersFunctionpad
js/history/history.js:1958
↓ 5 callersMethodprocessFormulasInElement
* 异步渲染元素中的所有公式 * @param {HTMLElement} rootElement - 要处理的根元素 * @param {Object} options - 选项 * @param {Function} onProgress -
js/processing/formula_post_processor_async.js:255
↓ 5 callersFunctionrefreshCustomSourceSiteInfo
({ autoSelect = false, persistSelection = true } = {})
js/ui/ui-key-manager-modal.js:179
↓ 5 callersFunctionregisterModelSearchIntegration
({ key, selectEl, buttonEl, title = '选择模型', placeholder = '搜索模型..
js/ui/ui-model-search.js:186
↓ 5 callersMethodrenderPage
* 渲染指定页面(双PDF)
js/history/history_pdf_compare.js:954
↓ 5 callersFunctionrenderTocList
* 主要的TOC渲染函数 - 增强版
js/ui/toc_logic_enhanced.js:536
↓ 5 callersMethodrenderVisibleSegments
* 渲染当前可见的页面(视口+缓冲区)
js/history/history_pdf_compare.js:698
↓ 5 callersFunctionresolveRecordFolder
(recordId, assignmentsOverride)
js/history/history.js:681
↓ 5 callersFunctionsanitizeFileName
(name)
js/history/history_exporter.js:1443
↓ 5 callersFunctionsanitizePath
(path)
js/history/history.js:1982
↓ 5 callersFunctionsaveCurrentSet
* 保存当前术语库
js/ui/glossary-editor-enhanced.js:737
↓ 5 callersFunctionsaveCustomSourceSite
* 保存单个自定义源站的配置 (新增或更新)。 * @param {Object} sourceSiteConfig - 要保存的源站配置对象,必须包含 'id' 属性。
js/storage/storage.js:1226
↓ 5 callersFunctionsaveFolderAssignments
(assignments)
js/history/history.js:649
↓ 5 callersFunctionsaveModelKeys
* 保存某个模型的key列表 (支持对象数组) * @param {string} model * @param {Array<Object>} keysArray - [{ id, value, remark, status, order }, ...]
js/storage/storage.js:958
↓ 5 callersFunctionshowToast
(message, type = 'info', duration = 3000)
admin/admin-enhanced.js:27
↓ 5 callersFunctionsyncBatchModeControls
* 根据当前已选择的文件数量同步批量模式相关控件的状态。 * * @param {number} fileCount - 当前列表中的文件数量。
js/app.js:834
↓ 5 callersFunctiontogglePanel
(elementId, shouldShow, renderer)
js/ui/ui-key-manager-modal.js:312
↓ 5 callersFunctiontruncateForCard
(input, maxLength)
js/history/exporter/history_exporter_docx.js:1811
↓ 5 callersFunctiontruncateForCard
* 截断文本用于卡片显示 * @param {string} input - 输入文本 * @param {number} maxLength - 最大长度 * @returns {string} 截断后的文本
js/history/exporter/docx_helpers.js:163
↓ 5 callersMethodupdateBulkBar
()
js/ui/prompt-pool-ui.js:1274
↓ 5 callersMethodupdateHealthOverview
* 更新健康状态概览
js/ui/prompt-pool-ui.js:767
↓ 5 callersMethodupdateKeyStatus
* 更新具有指定 ID 的 Key 对象的状态,并相应地刷新其在 UI 中的状态指示器。 * 此方法旨在实现更细粒度的 UI 更新:当 Key 状态改变时, * 它会尝试只更新该 Key 对应条目中的状态指示器部分,而不是重新渲染整个列表,以提高性能。 * 如果找
js/ui/key-manager-ui.js:535
↓ 5 callersMethodupdatePromptItem
* 更新提示词项目
js/process/prompt-pool.js:900
↓ 5 callersMethodwrapText
* 文本换行算法(支持中英文混排间距) * @param {CanvasRenderingContext2D} ctx - Canvas 上下文 * @param {string} text - 文本内容 * @param {number} maxWidth - 最大宽度 *
js/history/modules/TextFitting.js:509
↓ 4 callersFunctionG
(e)
js/lib/jszip.min.js:13
↓ 4 callersFunctionY
(e,t,r,n,i,s)
js/lib/jszip.min.js:13
↓ 4 callersFunctionZ
(e,t)
js/lib/jszip.min.js:13
↓ 4 callersFunction_allModulesReady
* 检查所有在 `EXPECTED_UI_MODULES` 中定义的预期 UI 模块是否都已注册并标记为就绪。 * 它遍历 `EXPECTED_UI_MODULES` 数组,并检查 `window.ui.moduleStatus` 中对应模块的状态。 * * @returns {bool
js/index.js:121
↓ 4 callersFunction_applyDisplayConfigToElements
* Applies the current display configuration to the DOM elements. * Overrides highlights and annotations to be hidden if in 'chunk-compare' mode.
js/ui/dock/dock_logic.js:320
↓ 4 callersMethod_calculatePercentile
* 计算百分位数 * @param {number[]} arr - 数值数组 * @param {number} percentile - 百分位 (0-1),如 0.70 表示 70% 分位数 * @returns {number} 百分位数值 * @private
js/history/modules/TextFitting.js:248
↓ 4 callersFunction_executePendingInitializations
* 执行所有通过 `window.ui.onReady` 排队的待处理初始化回调函数。 * 此函数仅在以下所有条件都满足时才会实际执行回调: * - DOM 已加载完成 (`_domReady` 为 `true`)。 * - 所有预期的 UI 模块都已注册 (`_allModules
js/index.js:198
↓ 4 callersMethod_isWordBoundary
* 检查是否为单词边界
js/process/glossary-matcher.js:54
↓ 4 callersMethodaddStep
(stepNum, type, content)
js/ui/react_visualization.js:113
↓ 4 callersFunctionanalyzeFormula
(tex, displayHint)
js/chatbot/utils/markdown-katex-render-cached.js:67
↓ 4 callersFunctionanalyzeFormula
(tex, displayHint)
js/chatbot/utils/markdown-katex-render.js:44
↓ 4 callersFunctionapplyPartialCrossBlockHighlight
(element, annotation, color, note, start, end, position, totalCount, isCrossBlock = true, contentIdentifier =
js/annotations/annotation_highlighter.js:1628
↓ 4 callersFunctionapplyRatioToAll
()
js/history/history_detail_show_tab.js:797
↓ 4 callersFunctionbindScrollForSavePosition
()
js/history/history_detail_globals.js:257
↓ 4 callersMethodblobToBase64
* Blob 转 Base64 * @param {Blob} blob * @returns {Promise<string>}
js/process/ocr-adapters/base-adapter.js:27
↓ 4 callersMethodbuildDefaultGeneratorSystemPrompt
()
js/ui/prompt-pool-ui.js:271
↓ 4 callersMethodbuildDefaultGeneratorUserPrompt
()
js/ui/prompt-pool-ui.js:291
↓ 4 callersFunctionbuildFallback
(tex, displayMode, error)
js/chatbot/utils/markdown-katex-render-cached.js:81
↓ 4 callersFunctionbuildFallback
(tex, displayMode, error)
js/chatbot/utils/markdown-katex-render.js:58
↓ 4 callersFunctionbuildGlossaryInstruction
* 构建注入系统提示词的术语指引段落。 * 仅对当前分块/表格生效,控制模型按指定译法统一翻译。 * @param {Array<{term:string, translation:string}>} matches * @param {string} targetLangName -
js/process/glossary-core.js:278
↓ 4 callersMethodbuildHeaders
* 构建请求头 * @param {boolean} isJsonContent - 是否为 JSON 内容(需要 Content-Type) * @returns {Object} headers
js/process/ocr-adapters/doc2x-adapter.js:74
↓ 4 callersFunctionbuildProxyUrl
* 构建代理 URL(只对需要的服务使用代理)
js/processing/reference-doi-resolver.js:112
↓ 4 callersFunctionc
(e)
js/lib/jszip.min.js:13
↓ 4 callersFunctioncalcOffset
(endNode, endOffset)
js/annotations/annotation_logic.js:1017
↓ 4 callersMethodcloseEditModal
* 关闭编辑模态框
js/ui/prompt-pool-ui.js:1436
↓ 4 callersFunctioncloseHistoryClearModal
()
js/history/history.js:230
↓ 4 callersFunctioncloseMobileSidebar
* 关闭移动端侧边栏
js/ui/sidebar-integration.js:204
↓ 4 callersFunctioncontainsTableSyntax
(src)
js/history/history_detail_show_tab.js:501
↓ 4 callersMethodconvert
(mathEl)
js/history/exporter/history_exporter_docx.js:1607
↓ 4 callersMethodconvertBlock
(node, context)
js/history/exporter/history_exporter_docx.js:575
↓ 4 callersMethodconvertChildren
(nodeList, context = {})
js/history/exporter/history_exporter_docx.js:680
↓ 4 callersMethodcreatePlaceholder
* 创建公式占位符
js/chatbot/utils/katex-progressive-render.js:98
↓ 4 callersFunctioncreatePopupActionButton
(btnTitle, svgIcon, onClickAction)
js/chatbot/renderers/chatbot-mermaid-renderer.js:163
↓ 4 callersFunctiond
(t,e)
js/lib/jszip.min.js:13
↓ 4 callersMethoddelay
* 延迟 * @param {number} ms - 毫秒 * @returns {Promise<void>}
js/process/ocr-manager.js:266
↓ 4 callersMethodenqueueRequest
* 将请求入队(在任务开始前调用)。仅记录待开始的请求,便于失败时迁移。 * @param {string} promptId * @param {{requestId:string, model?:string, meta?:Object}} request
js/process/prompt-pool.js:727
↓ 4 callersFunctionescapeHtml
* HTML 转义
js/ui/glossary-editor-enhanced.js:774
↓ 4 callersFunctionescapeHtml
* Escape HTML entities for safe fallback rendering. * @param {string} text * @returns {string}
js/processing/markdown_processor.js:108
↓ 4 callersFunctionestimateTokenUsage
* 估算Token使用量 * @param {Array} groups - 意群列表 * @param {string} granularity - 粒度 * @returns {number} 估算的token数
js/chatbot/core/smart-granularity-selector.js:172
↓ 4 callersFunctionformatLog
* 格式化日志消息
server/src/utils/logger.js:22
↓ 4 callersFunctionformatStars
* 格式化 stars 数量显示 * @param {number} stars - stars 数量 * @returns {string} 格式化后的字符串(如 "5.5k")
js/utils/github-stars.js:64
↓ 4 callersMethodgetAllPrompts
* 获取所有提示词
js/process/prompt-pool.js:964
↓ 4 callersFunctiongetCurrentDocContent
* 获取当前文档的内容信息 * @returns {object} 文档内容对象
js/chatbot/core/content-processor.js:11
↓ 4 callersMethodgetFormulaFallbackText
(element, mathEl)
js/history/exporter/history_exporter_docx.js:1402
↓ 4 callersFunctiongetGlossaryMatchesForText
* 在文本中查找命中的术语条目。 * 使用高效的 Trie 树多模式匹配算法(O(L+m) 复杂度) * @param {string} text * @returns {Array<{term:string, translation:string}>}
js/process/glossary-core.js:70
↓ 4 callersMethodgetMemoryUsage
* 获取内存使用量
js/ui/chunk_compare_performance_tester.js:369
↓ 4 callersFunctiongetQueryParam
* 从当前页面的 URL 中获取指定查询参数的值。 * @param {string} name - 要获取的查询参数的名称。 * @returns {string|null} 查询参数的值,如果不存在则返回 null。
js/history/history_detail_globals.js:355
↓ 4 callersFunctiongetResultFromDB
(id)
js/storage/storage.js:339
↓ 4 callersFunctionh
(e,t)
js/lib/jszip.min.js:13
↓ 4 callersFunctionhasBackendSupport
* 检测是否有后端支持
js/storage/glossary-storage.js:58
↓ 4 callersFunctioni
(e)
js/lib/jszip.min.js:13
↓ 4 callersMethodindexChunks
* 为chunks建立BM25索引
js/chatbot/agents/bm25-search.js:402
↓ 4 callersFunctionisInsideFormula
(node)
js/annotations/annotation_highlighter.js:575
↓ 4 callersMethodload
* 从 localStorage 加载缓存
js/chatbot/utils/katex-cache-persistence.js:79
↓ 4 callersFunctionlooksLikeParagraph
* 检测内容是否像段落(而非单个公式)
js/processing/markdown_processor_ast.js:69
← previousnext →201–300 of 2,373, ranked by callers