MCPcopy Create free account

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

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

↓ 1,215 callersMethodlog
* 日志输出
js/chatbot/utils/katex-cache-persistence.js:290
↓ 246 callersMethodget
* 获取缓存项
js/chatbot/utils/katex-cache.js:38
↓ 220 callersFunctionsetTimeout
* 设置延迟定时器 * @param {Function} fn - 回调函数 * @param {number} delay - 延迟时间(毫秒) * @returns {number} 定时器 ID
js/utils/performance-helpers.js:252
↓ 173 callersFunctionshowNotification
* 在屏幕右上角显示一个通知消息。 * 通知可以有不同的类型(info, success, warning, error),并会在指定时间后自动消失。 * 用户也可以手动点击关闭按钮来关闭通知。 * * @param {string} message
js/ui/ui-notifications.js:27
↓ 141 callersMethodset
* 设置缓存项
js/chatbot/utils/katex-cache.js:60
↓ 139 callersMethodparse
* 解析 LLM 响应,提取决策信息 * @param {string} response - LLM 的原始响应 * @returns {Object} 解析后的决策对象
js/chatbot/react/json-parser.js:17
↓ 128 callersFunctionaddProgressLog
(text)
js/ui/ui-processing.js:402
↓ 119 callersFunctionfetch
(request, env, ctx)
workers/pb-ocr-proxy/src/index.js:10
↓ 70 callersFunction$
(id)
js/ui/ui_embedding_config.js:456
↓ 64 callersFunction$
(id)
js/chatbot/ui/embedding-config-ui.js:283
↓ 62 callersMethodcall
* 调用LLM API(非流式) * @param {string} systemPrompt - 系统提示词 * @param {Array} conversationHistory - 对话历史 [{role, content}, ...] * @param {st
js/chatbot/core/llm-caller.js:24
↓ 46 callersFunctionjsonResponse
(data, status, request, env)
workers/pb-ocr-proxy/src/index.js:667
↓ 42 callersFunctionjsonResponse
(res, data, status = 200, origin = '*')
local-proxy/server.js:55
↓ 42 callersMethodshowNotification
* 显示通知
js/ui/prompt-pool-ui.js:1546
↓ 37 callersFunctionU
(e,t)
js/lib/jszip.min.js:13
↓ 37 callersFunctiononProgress
(current, total, message)
js/process/main.js:171
↓ 35 callersMethodon
* 添加事件监听器
js/chatbot/react/engine.js:54
↓ 31 callersFunctionvalidateUUID
(uuid)
server/src/utils/validation.js:109
↓ 29 callersMethodclear
* 清空缓存
js/chatbot/utils/katex-cache.js:79
↓ 27 callersMethodcreate
(mode)
js/storage/storage-adapter.js:352
↓ 27 callersFunctionloadSettings
* 加载设置项(带默认值) * @returns {Object} 设置对象
js/storage/storage.js:212
↓ 26 callersFunctionA
(e,t)
js/lib/jszip.min.js:13
↓ 25 callersFunction_norm
(v)
js/history/history.js:1333
↓ 24 callersFunctionupdateChatbotUI
* 更新聊天机器人界面的核心函数。 * * 主要逻辑: * 1. **显隐控制**:根据 `isChatbotOpen` 控制 modal 和 fab。 * 2. **宽度/全屏管理**:根据 `isChatbotFullscreen` 和 `forceChatbotWidthRes
js/chatbot/ui/chatbot-ui.js:149
↓ 23 callersMethodcreateTextRun
(text, context = {})
js/history/exporter/history_exporter_docx.js:1111
↓ 23 callersFunctionescapeAttr
(str)
js/history/history.js:1512
↓ 23 callersMethodresolve
* 统一查询接口(多源回退) * @param {Object} reference - 文献信息 {title, authors, year, journal} * @returns {Promise<Object|null>} 包含DOI的完整元数据
js/processing/reference-doi-resolver.js:1198
↓ 23 callersMethodwrapWith
* 用标签包裹内容 * @param {string} tag - 标签名 * @param {string} content - 内容 * @returns {string} 包裹后的 XML
js/history/exporter/docx_mathml_converter_enhanced.js:453
↓ 22 callersMethodconvertChildren
* 转换子节点列表 * @param {NodeList} nodeList - 子节点列表 * @returns {string} 转换后的 OMML
js/history/exporter/docx_mathml_converter_enhanced.js:57
↓ 22 callersFunctiongenerateUUID
* 生成一个简单的 UUID * @returns {string}
js/storage/storage.js:446
↓ 22 callersFunctionloadModelConfig
* 加载某个模型的配置 * @param {string} model * @returns {Object|null}
js/storage/storage.js:942
↓ 21 callersMethodconvertNode
* 转换单个节点 * @param {Node} node - DOM 节点 * @returns {string} 转换后的 OMML
js/history/exporter/docx_mathml_converter_enhanced.js:75
↓ 21 callersMethodfetchAPI
(endpoint, options = {})
js/storage/storage-adapter.js:74
↓ 21 callersFunctionloadAllCustomSourceSites
* 加载所有自定义源站配置。 * 会在首次加载时尝试迁移旧配置 (如果 migrateLegacyCustomConfig 还未被有效执行过)。 * @returns {Object} 以源站 ID 为键,源站配置为值的对象,如果出错则返回空对象。
js/storage/storage.js:1194
↓ 21 callersFunctionloadModelKeys
* 加载某个模型的key列表 (返回对象数组, 带兼容性处理) * @param {string} model * @returns {Array<Object>} [{ id, value, remark, status, order }, ...]
js/storage/storage.js:980
↓ 20 callersFunctioncacheBumpEpoch
(ns)
server/src/utils/cache.js:127
↓ 20 callersMethodisAuthenticated
()
js/storage/storage-adapter.js:60
↓ 19 callersFunctionN
(e,t)
js/lib/jszip.min.js:13
↓ 19 callersFunctionP
(e,t)
js/lib/jszip.min.js:13
↓ 19 callersFunctionaddStepHtml
* 添加步骤HTML
js/chatbot/ui/chatbot-tooltrace-ui.js:334
↓ 19 callersMethodwrapWith
(tag, content)
js/history/exporter/history_exporter_docx.js:1706
↓ 19 callersMethodwrapWith
* 用标签包裹内容 * @param {string} tag - 标签名 * @param {string} content - 内容 * @returns {string} 包裹后的 XML
js/history/exporter/docx_mathml_converter.js:139
↓ 18 callersFunctionpad
(num)
js/history/exporter/history_exporter_docx.js:1888
↓ 17 callersMethodemit
* 发送事件
js/chatbot/react/engine.js:61
↓ 17 callersFunctionshowToast
* 显示一个短暂的浮动提示消息 (Toast)。 * Toast 用于向用户反馈操作结果,如"已复制到剪贴板"。 * 如果页面上不存在 ID 为 `chatbot-toast` 的元素,则会创建一个。 * Toast 会在显示约2秒后自动淡出消失。 * * @param {str
js/chatbot/utils/chatbot-utils.js:23
↓ 16 callersFunctionextractTextFromUserContent
(userContent)
js/chatbot/core/message-sender.js:1642
↓ 16 callersFunctionjsonResponse
* 返回 JSON 响应
workers/academic-search-proxy/src/index.js:621
↓ 15 callersMethodcreateParagraphFromRuns
(runs, options = {})
js/history/exporter/history_exporter_docx.js:955
↓ 15 callersFunctionescapeHtml
(text)
js/chatbot/utils/markdown-katex-render-cached.js:53
↓ 15 callersFunctionescapeHtml
(text)
js/chatbot/utils/markdown-katex-render.js:30
↓ 15 callersMethodescapeHtml
* HTML 转义
js/history/history_pdf_compare.js:2349
↓ 15 callersFunctionhideContextMenu
* 隐藏上下文菜单并重置相关状态
js/annotations/annotation_logic.js:317
↓ 15 callersFunctionn
(e,t,r,n,i,s)
js/lib/jszip.min.js:13
↓ 15 callersFunctionrenderHistoryList
* 从 IndexedDB 加载所有历史记录,并将其渲染到历史记录面板的列表中。 * * 主要步骤: * 1. 获取用于显示历史列表的 DOM 元素 (`#historyList`)。 * 2. 调用 `getAllResultsFromDB()` 从 Ind
js/history/history.js:469
↓ 14 callersFunctionL
(e,t)
js/lib/jszip.min.js:13
↓ 14 callersMethodconvertChildren
(nodeList)
js/history/exporter/history_exporter_docx.js:1628
↓ 14 callersMethodconvertChildren
* 转换子节点列表 * @param {NodeList} nodeList - 子节点列表 * @returns {string} 转换后的 OMML
js/history/exporter/docx_mathml_converter.js:50
↓ 14 callersFunctionescapeHtml
* Escape HTML special characters * @param {string} text - Text to escape * @returns {string} Escaped text
js/processing/markdown_processor_enhanced.js:630
↓ 14 callersFunctionescapeHtml
(str)
js/history/history.js:1499
↓ 14 callersMethodget
* 获取向量 * @param {string} id
js/chatbot/agents/vector-store.js:154
↓ 14 callersMethodrender
* 渲染整个 Key 池 UI 到指定的容器元素中。 * 此方法会先清空容器,然后逐步构建并添加以下区域: * - 按钮操作区:包含"全部测试"、"导出配置"、"导入配置"以及"添加新 Key"的触发按钮。 * - 添加新 Key 输入区(初始隐藏):提供文本
js/ui/key-manager-ui.js:90
↓ 14 callersFunctionsaveCurrentSettings
* 保存当前所有用户设置到 localStorage。 * 从UI元素读取各项配置值,构建设置对象,然后调用 `saveSettings` (来自 storage.js)。
js/app.js:1668
↓ 14 callersFunctionsetVal
(id, v)
js/chatbot/ui/semantic-groups-ui.js:116
↓ 14 callersFunctionupdateProcessButtonState
(pdfFiles, isProcessing)
js/ui/ui-processing.js:125
↓ 13 callersFunctionel
(id)
js/ui/glossary-ui.js:4
↓ 13 callersFunctiongetHighlightColor
* 将颜色转换为更浅的荧光版本 * @param {string} color - 原始颜色 * @returns {string} - 转换后的荧光浅色
js/annotations/annotation_highlighter.js:1204
↓ 12 callersFunctionescapeHtml
(str)
js/ui/glossary-ui.js:5
↓ 12 callersFunctionescapeHtml
(text)
admin/modules/stats.js:105
↓ 12 callersFunctionestimateTokens
* 估算文本的token数量(简化版) * @param {string} text - 要估算的文本 * @returns {number} 估算的token数
js/chatbot/core/streaming-multi-hop.js:11
↓ 12 callersFunctionflushBatchBuffer
* 刷新批量缓冲区
js/chatbot/ui/chatbot-tooltrace-ui.js:451
↓ 12 callersFunctionhide
(el)
js/index.js:369
↓ 12 callersFunctionloadGlossarySets
* 加载所有术语库集合(同步接口 - 优先使用缓存) * 推荐使用 loadGlossarySetsAsync
js/storage/storage.js:577
↓ 12 callersMethodloadSettings
* 加载保存的设置
js/ui/prompt-pool-ui.js:41
↓ 12 callersFunctionsafeEscapeHtmlForModel
* XSS 防护:安全地转义 HTML(优先使用 ChatbotUtils,降级到本地实现) * @param {string} str - 需要转义的字符串 * @returns {string} 转义后的安全字符串
js/chatbot/ui/chatbot-model-selector-ui.js:16
↓ 12 callersFunctionsetModelSearchCache
(key, items)
js/ui/ui-model-search.js:178
↓ 12 callersMethodupdateUI
* 更新UI显示
js/ui/prompt-pool-ui.js:1134
↓ 11 callersMethodcreateParagraph
(element, options = {})
js/history/exporter/history_exporter_docx.js:942
↓ 11 callersFunctiondebug
* 记录调试信息
js/processing/markdown_processor_ast.js:102
↓ 11 callersFunctionescapeHtml
(str)
js/history/history_exporter.js:1457
↓ 11 callersFunctiongetCellGeometry
* 获取节点的几何信息 * @param {Element} cell - mxCell 元素 * @returns {Object|null} {x, y, width, height} 或 null
js/chatbot/utils/drawio-layout-optimizer.js:53
↓ 11 callersMethodgetCurrentDocId
* 获取当前文档ID
js/chatbot/agents/bm25-search.js:555
↓ 11 callersFunctionopenDB
()
js/storage/storage.js:295
↓ 10 callersMethodgetCurrentConfig
* 获取当前选择的 OCR 引擎配置 * @returns {Object} 配置对象
js/ui/ocr-settings.js:476
↓ 10 callersFunctiongetSystemConfigValue
(key)
server/src/utils/configCenter.js:23
↓ 10 callersMethodinit
* 初始化
js/ui/ocr-settings.js:50
↓ 10 callersFunctionj
(e)
js/lib/jszip.min.js:13
↓ 10 callersMethodloadReferences
* 加载文档的参考文献
js/storage/reference-storage.js:132
↓ 10 callersFunctionp
(e,t)
js/lib/jszip.min.js:13
↓ 10 callersMethodregister
* 注册新工具
js/chatbot/react/tool-registry.js:416
↓ 10 callersFunctionrenderEntriesList
* 渲染条目列表(分页)
js/ui/glossary-editor-enhanced.js:221
↓ 10 callersFunctionrenderToolbar
* 渲染工具栏 * @param {Object} set - 术语库对象
js/ui/glossary-editor-enhanced.js:98
↓ 10 callersFunctionsanitizeFileName
(name)
js/history/history.js:1978
↓ 10 callersMethodsaveConfig
* 保存配置到localStorage
js/chatbot/agents/rerank-client.js:44
↓ 10 callersMethodsearch
* 搜索 * @param {string} query - 查询文本 * @param {number} topK - 返回top K结果 * @param {number} threshold - 最低分数阈值(可选) * @returns {Ar
js/chatbot/agents/bm25-search.js:209
↓ 9 callersFunctionR
(e,t)
js/lib/jszip.min.js:13
↓ 9 callersMethod_normalizeText
(v)
js/process/mineru-structured-translation.js:998
↓ 9 callersMethodemit
(event, data)
js/processing/react_engine.js:53
↓ 9 callersFunctionescapeXml
* XML 特殊字符转义
js/chatbot/utils/drawio-lite-parser.js:514
↓ 9 callersFunctionf
(n)
js/lib/jszip.min.js:13
↓ 9 callersFunctionfetchWithRetry
(url, options = {}, { retries = 2, timeoutMs } = {})
server/src/routes/ocr.js:119
next →1–100 of 2,373, ranked by callers