MCPcopy Create free account

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

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

↓ 2 callersMethodbuildApiConfig
* 构建API配置
js/chatbot/core/llm-caller.js:94
↓ 2 callersMethodbuildBatchTranslationPrompt
* 构建批量翻译提示词 * @param {Object} batch - 批次数据 * @param {string} targetLang - 目标语言 * @param {string} baseSystemPrompt - 基础系统提示词(来自提示词池或默认)
js/process/mineru-structured-translation.js:116
↓ 2 callersFunctionbuildContentTypesXml
(mediaExtensions)
js/history/exporter/history_exporter_docx.js:1897
↓ 2 callersFunctionbuildDocumentRelsXml
(relationships)
js/history/exporter/history_exporter_docx.js:2125
↓ 2 callersFunctionbuildExportPayload
(tab, data)
js/history/history_exporter.js:407
↓ 2 callersFunctionbuildExportStyles
(options = {})
js/history/history_exporter.js:908
↓ 2 callersFunctionbuildFileIdentifier
(file)
js/app.js:983
↓ 2 callersMethodbuildHeaders
* 构建请求头 * @returns {Object} headers
js/process/ocr-adapters/mineru-adapter.js:65
↓ 2 callersFunctionbuildIndex
(forceRebuild)
js/chatbot/ui/embedding-config-ui.js:772
↓ 2 callersFunctionbuildInstructionBlock
(content)
js/process/translation.js:62
↓ 2 callersFunctionbuildMainContent
(payload, options = {})
js/history/history_exporter.js:787
↓ 2 callersFunctionbuildMarkdownSectionHtml
(title, markdown, images)
js/history/history_exporter.js:465
↓ 2 callersMethodbuildMessages
* 构建消息列表
js/chatbot/core/llm-caller.js:151
↓ 2 callersFunctionbuildNormalized
(s)
js/annotations/annotation_highlighter.js:1390
↓ 2 callersFunctionbuildPredefinedApiConfig
* 为预定义的翻译模型构建 API 请求配置。 * 此函数接收一个基础的 API 配置对象 (`apiConfig`) 和 API 密钥 (`key`), * 然后根据模型名称(从 `apiConfig.modelName` 中提取并转换为小写)来设置特定的认证头部。 * * 主要逻
js/process/translation.js:23
↓ 2 callersFunctionbuildSnippetText
(text)
js/history/history.js:1472
↓ 2 callersFunctionbuildTocHtml
* 构建TOC HTML - 增强版
js/ui/toc_logic_enhanced.js:727
↓ 2 callersFunctionbuildVectorIndex
()
js/chatbot/core/semantic-groups-manager.js:530
↓ 2 callersFunctioncacheGet
(key)
server/src/utils/cache.js:39
↓ 2 callersFunctioncacheGetEpoch
(ns)
server/src/utils/cache.js:114
↓ 2 callersFunctioncacheSet
(key, value, ttlMs = 30000)
server/src/utils/cache.js:65
↓ 2 callersMethodcalculateBM25Score
* 计算BM25分数 * BM25(D,Q) = Σ IDF(q) * (f(q,D) * (k1 + 1)) / (f(q,D) + k1 * (1 - b + b * |D| / avgdl))
js/chatbot/agents/bm25-search.js:174
↓ 2 callersMethodcalculateGlobalScale
* 批量计算最优缩放(全局一致性) * * 实现策略: * 1. 计算每个段落的最优缩放 * 2. 使用众数作为全局缩放 * 3. 统一所有段落的缩放 * * @param {Array<Object>} items - content_list.json
js/utils/text-fitting.js:297
↓ 2 callersMethodcalculateOptimalScale
* 为单个段落计算最优缩放因子 * * @param {string} text - 翻译后的文本 * @param {Object} bbox - 边界框 [x0, y0, x1, y1] * @param {number} originalFontSize - 原始字体大
js/utils/text-fitting.js:57
↓ 2 callersMethodcallTranslationAPI
* 调用翻译 API * @param {string} systemPrompt * @param {string} userPrompt * @param {string} model * @param {string} apiKey * @param {
js/process/mineru-structured-translation.js:703
↓ 2 callersFunctioncheckIfTargetIsHighlighted
* 通用函数:检查指定目标是否已被高亮。 * @param {string} [annotationId=null] - 可选的批注ID。 * @param {string} contentIdentifier - 当前内容的标识符 ('ocr' 或 'translation')。 *
js/annotations/annotation_logic.js:154
↓ 2 callersFunctioncleanup
()
js/history/history_exporter.js:692
↓ 2 callersFunctioncleanup
()
server/src/routes/ocr.js:167
↓ 2 callersMethodclear
* 清空索引
js/chatbot/agents/bm25-search.js:367
↓ 2 callersFunctionclearChatHistory
* 清空当前文档的聊天历史 * @param {string} docId
js/chatbot/core/chat-history-manager.js:117
↓ 2 callersMethodclearFormulaElementsForPage
* 清理指定页的公式 DOM
js/history/history_pdf_compare.js:1780
↓ 2 callersMethodclearFormulaElementsForPageInWrapper
(pageNum, wrapper)
js/history/history_pdf_compare.js:1798
↓ 2 callersMethodclearTextInBbox
* 精确清除 bbox 内的原始文字(只清除文字,保留背景) * @param {CanvasRenderingContext2D} ctx - Canvas 上下文 * @param {number} pageNum - 页码(1-based) * @param {Object}
js/history/history_pdf_compare.js:217
↓ 2 callersFunctioncloseDialog
(result)
js/chatbot/core/semantic-groups-manager.js:104
↓ 2 callersFunctioncloseDockSettingsModal
()
js/ui/dock/dock_settings_modal.js:69
↓ 2 callersFunctioncloseLightbox
* 关闭灯箱
js/ui/lightbox.js:82
↓ 2 callersMethodcloseManager
* 关闭管理界面
js/ui/reference-manager-ui.js:292
↓ 2 callersFunctioncloseModal
()
js/ui/ui-processing.js:778
↓ 2 callersFunctioncollectExportConfig
(panel)
js/history/history.js:1670
↓ 2 callersMethodconvertInline
(nodes, context = {})
js/history/exporter/history_exporter_docx.js:1012
↓ 2 callersMethodconvertList
(listEl, ordered, context = {})
js/history/exporter/history_exporter_docx.js:849
↓ 2 callersMethodconvertTableCell
(cellEl, cellWidth, parentContext = {})
js/history/exporter/history_exporter_docx.js:907
↓ 2 callersMethodconvertTableRow
(tr, cellWidth, context = {})
js/history/exporter/history_exporter_docx.js:895
↓ 2 callersFunctioncosineSimilarity
* 计算两个向量的余弦相似度 * @param {number[]} vecA - 向量 A * @param {number[]} vecB - 向量 B * @returns {number} 余弦相似度 (0-1)
js/chatbot/agents/vector-worker.js:13
↓ 2 callersFunctioncreateConfigSelect
* 创建并返回一个包含标签(label)和下拉选择框(select)的完整配置项组件。 * 该组件用于提供一组预定义的选项供用户选择。 * * @param {string} id - 下拉选择框元素的 HTML `id` 属性,同时用于标签的 `for` 属性。 * @param
js/ui/ui-key-manager-modal.js:73
↓ 2 callersFunctioncreateGlossaryModal
(title)
js/ui/glossary-ui.js:329
↓ 2 callersMethodcreateImageRun
(imgEl, context = {})
js/history/exporter/history_exporter_docx.js:1199
↓ 2 callersMethodcreateInlineFormula
(element, isDisplay, context = {})
js/history/exporter/history_exporter_docx.js:1517
↓ 2 callersFunctioncreateLightboxDom
* 创建灯箱的 DOM 结构
js/ui/lightbox.js:15
↓ 2 callersFunctioncreateModalIfNeeded
()
js/chatbot/ui/semantic-groups-ui.js:13
↓ 2 callersFunctioncreateTextToken
* 创建文本 token
js/processing/annotation_plugin_ast.js:237
↓ 2 callersMethoddecodeJpeg
(bytes)
js/history/exporter/history_exporter_docx.js:1353
↓ 2 callersMethoddecodePng
(bytes)
js/history/exporter/history_exporter_docx.js:1342
↓ 2 callersMethoddelay
* 延迟函数
js/ui/chunk_compare_optimizer.js:952
↓ 2 callersMethoddelay
* 延迟函数 * @param {number} ms * @returns {Promise}
js/process/mineru-structured-translation.js:1024
↓ 2 callersFunctiondeleteAllEntriesForSetFromIDB
* 删除指定术语库的所有条目
js/storage/glossary-storage.js:222
↓ 2 callersFunctiondeleteAnnotationFromDB
* 根据 ID 从 IndexedDB 删除一个高亮/批注。 * @param {string} annotationId - 要删除的高亮/批注的 ID。 * @returns {Promise<void>}
js/storage/storage.js:1391
↓ 2 callersMethoddeletePromptItem
* 删除提示词项目
js/process/prompt-pool.js:939
↓ 2 callersFunctiondeleteResultFromDB
(id)
js/storage/storage.js:350
↓ 2 callersFunctiondeleteUserFolder
(folderId)
js/history/history.js:891
↓ 2 callersFunctiondetectDevicePerformance
* 设备性能检测 * - 基于 navigator.deviceMemory 与 navigator.hardwareConcurrency * - 返回 'high' | 'medium' | 'low'
js/chatbot/config/performance-config.js:12
↓ 2 callersFunctiondetectModels
* (IIFE内部核心函数) * 检测指定 API 端点支持的模型列表。 * 它会规范化 `apiEndpoint` (确保以 `/` 结尾,移除多余的 `v1/` 等), * 然后向构建好的 `/v1/models` URL 发送 GET 请求,并处理响应。
js/api/model-detector.js:715
↓ 2 callersFunctiondoExportAsPng
* 执行将指定消息元素导出为 PNG 图片的核心逻辑。 * 此函数在 `html2canvas` 加载完成后被 `exportMessageAsPng` 调用,或者直接被调用(如果库已加载)。 * 它会查找对应的消息 DOM 元素,如果找不到,则会尝试使用 `exportContentDir
js/chatbot/utils/chatbot-utils.js:99
↓ 2 callersMethoddrawTextInBox
* 在指定区域内绘制自适应大小的文字
js/history/history_pdf_compare.js:1402
↓ 2 callersMethoddrawTextWithFormulaInBoxAdaptive
* 绘制包含公式的文本(HTML + KaTeX)- 自适应字号版本 * @param {number} fontSize - 动态计算的字号
js/history/history_pdf_compare.js:1681
↓ 2 callersFunctionenhanceChunkNavigation
* 优化分块导航
js/ui/chunk_compare_integration.js:336
↓ 2 callersFunctionensureBuilders
()
js/process/prompt-pool-api.js:19
↓ 2 callersFunctionensureDataDir
* 确保数据目录存在
app/api/glossary/sets/route.ts:14
↓ 2 callersFunctionensureDataDir
()
server/src/routes/glossary.js:13
↓ 2 callersFunctionensureEmbeddingClientLoaded
()
js/ui/ui_embedding_config.js:10
↓ 2 callersFunctionensureFileExtension
(baseName, extension)
js/history/history.js:1986
↓ 2 callersFunctionensureFileExtension
(name, ext)
js/history/exporter/history_exporter_docx.js:2182
↓ 2 callersFunctionensureSemanticGroupsReady
* 包装 ensureSemanticGroupsReady,注入依赖
js/chatbot/core/chatbot-core.js:48
↓ 2 callersFunctionenterImmersiveMode
()
js/ui/immersive_layout_logic.js:219
↓ 2 callersFunctionescapeHtml
* 转义 HTML 特殊字符,防止 XSS 攻击 * @param {string} str - 需要转义的字符串 * @returns {string} 转义后的安全字符串
js/app.js:39
↓ 2 callersFunctionescapeHtml
(html)
js/annotations/custom_markdown_renderer.js:27
↓ 2 callersFunctionescapeHtml
* HTML 转义
js/processing/annotation_plugin_ast.js:280
↓ 2 callersFunctionescapeHtml
(text)
admin/modules/quotas.js:4
↓ 2 callersFunctionescapeHtml
(text)
admin/modules/system.js:9
↓ 2 callersFunctionescapeMarkdown
(str)
js/history/history_exporter.js:1483
↓ 2 callersFunctionescapeRegex
* 转义字符串中的正则表达式特殊字符。 * 当需要将一个普通字符串用作正则表达式的一部分进行精确匹配时, * 该字符串中可能包含的正则表达式特殊字符 (如 `.`、`*`、`+`、`?` 等) 需要被转义, * 以确保它们被解释为字面量字符而不是元字符。 * * 主要逻辑:
js/process/utils.js:66
↓ 2 callersMethodexecute
* 执行工具
js/chatbot/react/tool-registry.js:467
↓ 2 callersFunctionexitImmersiveMode
()
js/ui/immersive_layout_logic.js:395
↓ 2 callersMethodexportToBibTeX
* 导出文献数据(BibTeX格式)
js/storage/reference-storage.js:321
↓ 2 callersMethodexportToJSON
* 导出文献数据(JSON格式)
js/storage/reference-storage.js:369
↓ 2 callersFunctionextractFirstImage
(html)
js/history/history_detail_show_tab.js:457
↓ 2 callersFunctionextractHostFromUrl
(u)
server/src/utils/configCenter.js:45
↓ 2 callersFunctionextractPureText
(text)
js/annotations/annotation_highlighter.js:1597
↓ 2 callersFunctionextractRow
* 从文本开头提取一行表格(包含指定数量的管道符) * @returns {Object} { row: 提取的行(trim后), endIndex: 原始结束位置 }
js/processing/markdown_processor_ast.js:687
↓ 2 callersFunctionextractTextFromSection
* 从section提取文本
js/processing/content-list-to-chunks.js:146
↓ 2 callersFunctionextractTextIgnoringFormulas
(element)
js/annotations/annotation_highlighter.js:591
↓ 2 callersFunctionextractTitleFromMarkdown
(markdown)
js/history/exporter/history_exporter_docx.js:1766
↓ 2 callersFunctionextractTitleFromMarkdown
* 从 Markdown 中提取标题 * @param {string} markdown - Markdown 文本 * @returns {string} 提取的标题
js/history/exporter/docx_helpers.js:121
↓ 2 callersMethodextractTranslatableContent
* 提取可翻译内容 * @param {Array} contentList - content_list.json 数组 * @returns {Array} 可翻译内容数组
js/process/mineru-structured-translation.js:36
↓ 2 callersFunctionfetchPredefinedModels
* 获取预设模型的可用模型列表
js/chatbot/ui/chatbot-model-config-modal.js:674
↓ 2 callersFunctionfetchStarsFromAPI
* 从 GitHub API 获取 stars 数量 * @returns {Promise<number>} stars 数量
js/utils/github-stars.js:75
↓ 2 callersMethodfindElementAtPosition
* 在元素中查找指定位置的元素 * @param {HTMLElement} container - 容器元素 * @param {Object} position - 位置信息 * @returns {HTMLElement|null}
js/processing/reference-indexer.js:260
↓ 2 callersFunctionfindParentSubBlock
(node, debugPrefix = '')
js/annotations/annotation_logic.js:1353
↓ 2 callersFunctionfindSubBlockByTextOffset
(blockElement, textOffset)
js/annotations/annotation_logic.js:1338
↓ 2 callersFunctionflush
()
js/history/history_detail_show_tab.js:345
← previousnext →501–600 of 2,373, ranked by callers