MCPcopy Create free account

hub / github.com/Gridea-Pro/gridea-pro / functions

Functions1,756 in github.com/Gridea-Pro/gridea-pro

↓ 1 callersFunctiongetThemeConfigHandler
(s *service.ThemeService)
backend/internal/mcp/tool_config.go:33
↓ 1 callersFunctiongetThemeConfigTool
()
backend/internal/mcp/tool_config.go:29
↓ 1 callersFunctiongitBlobSHA
gitBlobSHA 计算 git blob 的 SHA1(与 GitHub API 一致)
backend/internal/service/cdn_upload_service.go:357
↓ 1 callersFunctionhandleArticleSettingClick
()
frontend/src/views/articles/editor/composables/useArticleActions.ts:123
↓ 1 callersMethodhandleInfixNodes
(e)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersMethodhandleSourceFolderChange
(newPath string)
backend/internal/app/app.go:139
↓ 1 callersFunctionhlMatch
Wrap `len` chars at `idx` in <mark>, escape the rest.
frontend/public/default-files/themes/flavor-theme/assets/scripts/search.js:201
↓ 1 callersFunctionhtmlEscape
(b []byte)
backend/internal/utils/markdown_katex.go:361
↓ 1 callersFunctionincludeFile
(p, options)
backend/internal/render/ejs.min.js:203
↓ 1 callersFunctioninit
()
frontend/public/default-files/themes/letters-theme/assets/js/search.js:37
↓ 1 callersFunctioninitServices
(appDir string)
backend/internal/mcp/server.go:76
↓ 1 callersFunctioninitializeApp
()
frontend/src/main.ts:22
↓ 1 callersMethodinjectBody
injectBody 在 <body> 之后与 </body> 之前注入用户自定义代码(如 GTM、客服挂件等)
backend/internal/engine/html_postprocessor.go:412
↓ 1 callersMethodinjectConsoleBadge
injectConsoleBadge 在 </body> 前注入控制台徽标脚本,打开 DevTools 即可看到 Gridea Pro 品牌标识。
backend/internal/engine/html_postprocessor.go:79
↓ 1 callersMethodinjectGenerator
injectGenerator 插入 <meta name="generator">,标识 Gridea Pro 渲染。 优先插到 <title> 之前(紧邻 charset/viewport 等元信息的位置);无 <title> 时 兜底插到 </head> 前。
backend/internal/engine/html_postprocessor.go:114
↓ 1 callersMethodinjectPwa
injectPwa 在 </head> 前插入 PWA 相关标签
backend/internal/engine/html_postprocessor.go:497
↓ 1 callersMethodinjectSeo
injectSeo 在 </head> 前插入 SEO 相关标签
backend/internal/engine/html_postprocessor.go:136
↓ 1 callersFunctioninlineLess
(content string, baseDir string, visited map[string]bool)
backend/internal/engine/asset_manager.go:33
↓ 1 callersFunctioninstallAndRelaunch
installAndRelaunch Windows / Linux 下的原地替换 Windows: 下载的是 .exe(便携版),直接用 selfupdate.Apply 替换当前 exe Linux: 下载的是 AppImage 或单二进制,同上 selfupdate 负责:写 tm
backend/internal/facade/update_installer_other.go:24
↓ 1 callersFunctionisDataUrl
(path: string)
frontend/src/composables/useImageUrl.ts:36
↓ 1 callersFunctionisExternalUrl
(path: string)
frontend/src/composables/useImageUrl.ts:29
↓ 1 callersFunctionisInsideRoundedRect
isInsideRoundedRect 判断点 (px, py) 是否在圆角矩形内
backend/internal/engine/icon_generator.go:227
↓ 1 callersFunctionisResourceDir
isDir checks if a path is a directory Note: duplicated from theme_watcher.go/data_watcher.go but since those are being deleted, we keep it here.
backend/internal/service/resource_watcher.go:166
↓ 1 callersFunctionisRetryableErr
isRetryableErr 粗略判定"值得重试的网络错误"。 - net.Error.Timeout() / Temporary() - connection reset / broken pipe / no such host / EOF 等字符串兜底 - HTTP/2 stream cance
backend/internal/deploy/httpretry.go:133
↓ 1 callersFunctionisRetryableStatus
(code int, allow []int)
backend/internal/deploy/httpretry.go:119
↓ 1 callersFunctionisTransientSHAErr
isTransientSHAErr 判定一次 GET SHA 的错误是否值得重试。 - 网络层瞬时错误(reset / EOF / timeout) - HTTP/2 stream cancel / INTERNAL_ERROR(GitHub secondary rate limit 常用信号) -
backend/internal/service/cdn_upload_service.go:332
↓ 1 callersFunctionisZhLang
(lang string)
backend/internal/service/oauth_html.go:108
↓ 1 callersFunctionkt
(e,t)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersFunctionlaunchDetached
(path string)
backend/internal/facade/update_installer_other.go:55
↓ 1 callersMethodlessCachePath
lessCachePath 返回 LESS 编译结果的缓存路径(OS 标准缓存目录,按站点隔离)
backend/internal/engine/asset_manager.go:272
↓ 1 callersFunctionlistCategoriesHandler
(s *service.CategoryService)
backend/internal/mcp/tool_others.go:156
↓ 1 callersFunctionlistCategoriesTool
--- Categories ---
backend/internal/mcp/tool_others.go:152
↓ 1 callersFunctionlistCommentsHandler
(s *service.CommentService)
backend/internal/mcp/tool_comment.go:20
↓ 1 callersFunctionlistCommentsTool
()
backend/internal/mcp/tool_comment.go:12
↓ 1 callersFunctionlistLinksHandler
(s *service.LinkService)
backend/internal/mcp/tool_link_menu.go:20
↓ 1 callersFunctionlistLinksTool
--- Link Tools ---
backend/internal/mcp/tool_link_menu.go:16
↓ 1 callersFunctionlistMemosHandler
(s *service.MemoService)
backend/internal/mcp/tool_memo.go:19
↓ 1 callersFunctionlistMemosTool
()
backend/internal/mcp/tool_memo.go:15
↓ 1 callersFunctionlistMenusHandler
(s *service.MenuService)
backend/internal/mcp/tool_link_menu.go:180
↓ 1 callersFunctionlistMenusTool
--- Menu Tools ---
backend/internal/mcp/tool_link_menu.go:176
↓ 1 callersFunctionlistPostsHandler
(s *service.PostService)
backend/internal/mcp/tool_post.go:22
↓ 1 callersFunctionlistPostsTool
List Posts
backend/internal/mcp/tool_post.go:18
↓ 1 callersFunctionlistTagsHandler
(s *service.TagService)
backend/internal/mcp/tool_others.go:19
↓ 1 callersFunctionlistTagsTool
--- Tags ---
backend/internal/mcp/tool_others.go:15
↓ 1 callersFunctionlistThemesHandler
(s *service.ThemeService)
backend/internal/mcp/tool_config.go:19
↓ 1 callersFunctionlistThemesTool
--- Theme Tools ---
backend/internal/mcp/tool_config.go:15
↓ 1 callersMethodloadBaseTemplate
loadBaseTemplate 加载 includes 目录下的所有模板作为基础
backend/internal/render/go_renderer.go:150
↓ 1 callersMethodloadConfigIfNeeded
()
backend/internal/repository/theme_repo.go:61
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/ai_setting_repo.go:34
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/pwa_setting_repo.go:25
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/comment_repo.go:25
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/setting_repo.go:29
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/ai_usage_repo.go:61
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/seo_setting_repo.go:25
↓ 1 callersMethodloadIfNeeded
()
backend/internal/repository/cdn_setting_repo.go:25
↓ 1 callersFunctionloadManifest
(manifestPath string)
backend/internal/service/scaffold_service.go:37
↓ 1 callersMethodloadThemeCustomConfig
loadThemeCustomConfig 加载主题自定义配置
backend/internal/engine/data_builder.go:326
↓ 1 callersMethodloadUserConfig
loadUserConfig 读取用户已保存的主题自定义配置 路径:{appDir}/config/config.json 中的 customConfig 字段
backend/internal/engine/theme_config_service.go:121
↓ 1 callersFunctionlr
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersFunctionmarkAllAsRead
()
frontend/src/stores/comment.ts:34
↓ 1 callersFunctionmaxLessSourceMtime
maxLessSourceMtime 返回 stylesDir 下所有 .less 文件及 extraFiles 中最大 mtime
backend/internal/engine/asset_manager.go:249
↓ 1 callersMethodmigrateUnderscoreIdToId
migrateUnderscoreIdToId 将旧版 JSON 配置文件中的 "_id" key 迁移为 "id" 该方法必须在任何 Repository.List() 调用之前执行,因为 Repository 使用懒加载
backend/internal/service/data_migrator.go:88
↓ 1 callersFunctionmin
(a, b int)
backend/internal/comment/waline_provider.go:358
↓ 1 callersFunctionmkVisiblePost
(title string)
backend/internal/engine/page_renderer_test.go:24
↓ 1 callersFunctionnewKatexHTMLRenderer
()
backend/internal/utils/markdown_katex.go:255
↓ 1 callersFunctionnewNetlifyHTTPClient
(proxyURL string)
backend/internal/deploy/netlify_deployer.go:38
↓ 1 callersFunctionnewVercelHTTPClient
newVercelHTTPClient 创建支持代理的 HTTP client,支持 HTTP/HTTPS/SOCKS 协议
backend/internal/deploy/vercel_deployer.go:36
↓ 1 callersFunctionnewWhitelistFacade
─── 下载 URL 前缀白名单(#52 / PR #80) ─────────────────────────────────────
backend/internal/facade/update_facade_test.go:284
↓ 1 callersFunctionnoCacheMiddleware
noCacheMiddleware 禁用浏览器缓存,确保主题切换/配置修改后立即加载最新资源
backend/internal/service/preview_service.go:242
↓ 1 callersFunctionnormalSavePost
()
frontend/src/views/articles/editor/composables/useArticleActions.ts:107
↓ 1 callersFunctionnormalizeNumbers
normalizeNumbers 递归遗历 JSON 反序列化得到的数据结构 将 float64 整数(如 5.0)转回 int,避免 pongo2 输出 "5.000000"
backend/internal/render/jinja2_renderer.go:313
↓ 1 callersMethodnotifyDeployResult
notifyDeployResult 部署结束后发系统通知中心通知。 用户在偏好里关闭后跳过;通知发送失败不影响主流程。 用独立的 context.Background() 读设置,避免部署 ctx 已超时/取消导致读不到。
backend/internal/service/deploy_service.go:261
↓ 1 callersFunctionopenActive
()
frontend/public/default-files/themes/flavor-theme/assets/scripts/search.js:245
↓ 1 callersFunctionopenInTerminal
openInTerminal 在系统终端中打开指定目录(跨平台)
backend/pkg/boot/boot.go:124
↓ 1 callersFunctionp
(e)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersMethodparseAtom
(e)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersMethodparseColorGroup
(e)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersMethodparseGroupOfType
(e,t,r)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersFunctionparseMemoCreatedAt
parseMemoCreatedAt 解析前端传入的发布时间字符串。 空串或无法识别的格式返回零值,CreateMemo 会据此回退到当前时间。
backend/internal/facade/memo_facade.go:13
↓ 1 callersMethodparseRegexGroup
(e,t)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersMethodparseSymbol
()
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersMethodparseUrlGroup
(e)
backend/internal/utils/katexjs/katex.min.js:1
↓ 1 callersFunctionparseValineTime
(t string)
backend/internal/comment/valine_provider.go:227
↓ 1 callersFunctionparseWalineTime
parseWalineTime converts various time formats to time.Time
backend/internal/comment/waline_provider.go:105
↓ 1 callersFunctionpreviewPost
(content: string)
frontend/src/views/articles/editor/composables/useEditorHelper.ts:144
↓ 1 callersFunctionprimaryCredField
primaryCredField 返回该平台的主 Token 字段名(OAuth 授权后存储的字段)
backend/internal/service/oauth_service.go:343
↓ 1 callersFunctionprocessArrayConfigItem
( configValue: unknown[], configItem: ThemeConfigItem, currentThemeConfig: ThemeConfigItem[] )
frontend/src/helpers/utils.ts:21
↓ 1 callersFunctionq
(e)
frontend/public/default-files/themes/amore/assets/lib/Valine.min.js:12
↓ 1 callersFunctionq
(e)
frontend/public/default-files/themes/amore-jinja2/assets/lib/Valine.min.js:12
↓ 1 callersFunctionrandomPick
Pick n random items from arr (Fisher-Yates on a shallow copy).
frontend/public/default-files/themes/flavor-theme/assets/scripts/search.js:275
↓ 1 callersFunctionrandomString
(n int)
backend/internal/service/cdn_upload_service.go:127
↓ 1 callersMethodreadEngineFromConfig
readEngineFromConfig 从 config.json 读取 engine 字段
backend/internal/render/factory.go:72
↓ 1 callersMethodrecordBuiltInUsage
recordBuiltInUsage 在调用成功后增加内置 Key 计数
backend/internal/service/ai_service.go:138
↓ 1 callersMethodregisterEvents
(ctx context.Context)
backend/internal/app/app.go:106
↓ 1 callersMethodregisterPrompts
()
backend/internal/mcp/prompts.go:10
↓ 1 callersMethodregisterResources
()
backend/internal/mcp/resources.go:11
↓ 1 callersFunctionregisterSiteReloadEvent
registerSiteReloadEvent 注册站点重新加载事件监听器。 实际的并发保护(串行化 + 合并)在 engine.RenderAll 内部,这里只负责转发事件。
backend/internal/facade/renderer_facade.go:36
↓ 1 callersMethodregisterTools
()
backend/internal/mcp/server.go:127
↓ 1 callersMethodrelPath
relPath 返回规范化的相对路径(使用 / 分隔,跨平台可读) 路径不在 buildDir 内时返回 false
backend/internal/engine/manifest.go:63
↓ 1 callersMethodrenderAllImpl
renderAllImpl 实际的渲染实现,由 RenderAll 在持有 renderMu 时调用
backend/internal/engine/engine.go:188
← previousnext →901–1,000 of 1,756, ranked by callers