MCPcopy Create free account

hub / github.com/Prejudice-Studio/Twilight / functions

Functions2,686 in github.com/Prejudice-Studio/Twilight

↓ 1 callersFunctionhandlePerPageChange
(value: number)
webui/src/app/(main)/admin/regcodes/page.tsx:681
↓ 1 callersFunctionhandlePreviewConfigRestore
(backup: ConfigBackup)
webui/src/app/(main)/admin/config/page.tsx:1473
↓ 1 callersMethodhandleRegcodeUsers
(w http.ResponseWriter, r *http.Request, params Params)
internal/api/regcode_handlers.go:317
↓ 1 callersMethodhandleRegisterEmby
(w http.ResponseWriter, r *http.Request, params Params)
internal/api/handlers.go:339
↓ 1 callersFunctionhandleReopen
(id: number)
webui/src/app/(main)/tickets/page.tsx:98
↓ 1 callersFunctionhandleSaveEdit
()
webui/src/app/(main)/admin/regcodes/page.tsx:413
↓ 1 callersMethodhandleSchedulerTerminate
(w http.ResponseWriter, r *http.Request, params Params)
internal/api/scheduler_handlers.go:83
↓ 1 callersFunctionhandleSearch
()
webui/src/app/(main)/media/page.tsx:117
↓ 1 callersFunctionhandleSearch
()
webui/src/app/(main)/admin/users/page.tsx:543
↓ 1 callersFunctionhandleSearch
()
webui/src/app/(main)/admin/audit-logs/page.tsx:259
↓ 1 callersFunctionhandleSearch
()
webui/src/app/(main)/admin/violations/page.tsx:114
↓ 1 callersFunctionhandleSelectMedia
(media: MediaItem)
webui/src/app/(main)/media/page.tsx:283
↓ 1 callersFunctionhandleSelectedClearEmbyGrant
()
webui/src/app/(main)/admin/users/page.tsx:1284
↓ 1 callersFunctionhandleSelectedDelete
()
webui/src/app/(main)/admin/users/page.tsx:1378
↓ 1 callersFunctionhandleSelectedLockEmbyUnbind
()
webui/src/app/(main)/admin/users/page.tsx:1259
↓ 1 callersFunctionhandleServerIconFile
(file?: File | null)
webui/src/app/(main)/admin/config/page.tsx:1341
↓ 1 callersFunctionhandleStatus
(data: RegisterBindCodeStatusMessage)
webui/src/app/(auth)/register/page.tsx:181
↓ 1 callersFunctionhandleSyncUser
(uid: number)
webui/src/app/(main)/admin/bangumi/page.tsx:123
↓ 1 callersFunctionhandleTrigger
(job: SchedulerJobItem)
webui/src/app/(main)/admin/scheduler/page.tsx:723
↓ 1 callersMethodhandleUpdateMediaRequestStatus
(w http.ResponseWriter, r *http.Request, params Params)
internal/api/media_request_handlers.go:184
↓ 1 callersFunctionhandleViewConfigBackup
(backup: ConfigBackup)
webui/src/app/(main)/admin/config/page.tsx:1456
↓ 1 callersFunctionhandleViewLogs
(u: BangumiUserInfo)
webui/src/app/(main)/admin/bangumi/page.tsx:156
↓ 1 callersFunctionhandleViewRecords
(u: BangumiUserInfo)
webui/src/app/(main)/admin/bangumi/page.tsx:140
↓ 1 callersFunctionhandler
(e: KeyboardEvent)
webui/src/app/(main)/admin/invite/sheet-mini.tsx:18
↓ 1 callersFunctionhasStrongAdminPassword
(password: string)
webui/src/app/(main)/admin/users/admin-users-helpers.ts:66
↓ 1 callersFunctionheaderTokenContains
(header, token string)
internal/api/websocket.go:70
↓ 1 callersFunctionheadersInitToRecord
(init?: HeadersInit)
webui/src/lib/api-request.ts:89
↓ 1 callersFunctionhexToRgb
(hex: string)
webui/src/components/theme-customizer.tsx:33
↓ 1 callersFunctionhighlight
(source: string)
webui/src/components/js-code-editor.tsx:54
↓ 1 callersFunctionhighlightText
(text: string)
webui/src/app/(main)/admin/config/page.tsx:579
↓ 1 callersFunctionhslToHex
(h: number, s: number, l: number)
webui/src/lib/theme-custom.ts:47
↓ 1 callersMethodimportEmbyUsers
(embyIds?: string[])
webui/src/lib/api.ts:1535
↓ 1 callersFunctioninitThemeCustom
()
webui/src/lib/theme-custom.ts:194
↓ 1 callersFunctioninspectBackup
(backup: DatabaseBackup)
webui/src/app/(main)/admin/database/page.tsx:188
↓ 1 callersMethodinspectDatabaseBackup
(name: string)
webui/src/lib/api.ts:1320
↓ 1 callersFunctionint64SliceFromAnyMap
(value any, key string)
internal/api/admin_extra.go:1038
↓ 1 callersFunctionint64sToAny
(values []int64)
internal/api/config_admin.go:1387
↓ 1 callersFunctionintSliceContains
(values []int, target int)
internal/api/emby_inventory.go:275
↓ 1 callersFunctionintervalUnits
(t: TFunc)
webui/src/app/(main)/admin/scheduler/page.tsx:148
↓ 1 callersFunctioninviteCodeRandomAlgorithmOptions
()
internal/api/config_admin.go:886
↓ 1 callersFunctioninviteCodeRandomPart
(algorithm string)
internal/api/business.go:694
↓ 1 callersMethodinviteDepthLocked
locked helpers — caller must hold s.mu (Lock or RLock).
internal/store/store.go:3552
↓ 1 callersMethodinviteDescendantCountLocked
(rootUID int64)
internal/store/store.go:3578
↓ 1 callersMethodinviteForest
()
internal/api/business.go:1296
↓ 1 callersMethodinviteRootLocked
(uid int64)
internal/store/store.go:3566
↓ 1 callersMethodinviteTreeFor
(user store.User)
internal/api/business.go:1224
↓ 1 callersMethodinviteTreeNode
(uid int64, depth int, seen map[int64]bool)
internal/api/business.go:1187
↓ 1 callersFunctionisAbortError
(err: unknown)
webui/src/hooks/use-async-resource.ts:8
↓ 1 callersMethodisAuth
()
webui/src/lib/api-request.ts:50
↓ 1 callersFunctionisBlockStart
(line: string)
webui/src/lib/safe-render.tsx:278
↓ 1 callersFunctionisBoundStatus
(data: BindCodeStatusData)
webui/src/hooks/use-bind-code-status.ts:41
↓ 1 callersMethodisDescendantLocked
(uid, ancestor int64)
internal/store/store.go:3588
↓ 1 callersFunctionisDestructiveAuditAction
(action string)
internal/api/audit_handlers.go:163
↓ 1 callersFunctionisKnownDelAccountVerb
isKnownDelAccountVerb 检查是否是 delAccount 的已知子命令。
internal/api/telegram_bot.go:733
↓ 1 callersFunctionisKnownErrCode
(code: string | undefined | null)
webui/src/lib/errcode.ts:616
↓ 1 callersFunctionisPlainObject
* login() 后端响应轻量校验。 * 之前 `(res.data.user || {}) as Partial<UserInfo>` 直接 spread —— 后端 * 偶发返回 null / 字符串 / 数组等异常 shape 时会静默生成一个全空 quickUser, * 用户体验是
webui/src/store/auth.ts:18
↓ 1 callersFunctionisPrefetchRequest
(r *http.Request)
internal/api/app.go:922
↓ 1 callersFunctionisRegCodeExpiredLocked
(r RegCode, now int64)
internal/store/store.go:3732
↓ 1 callersFunctionisSafeImageUrl
(raw: string)
webui/src/lib/safe-render.tsx:16
↓ 1 callersFunctionisSecurityAuditAction
(action string)
internal/api/audit_handlers.go:177
↓ 1 callersFunctionisSubpath
(root, target string)
internal/api/admin_jobs.go:387
↓ 1 callersFunctionjsonDepth
(value any, current, limit int)
internal/api/app.go:1274
↓ 1 callersFunctionjsonDepthExceeds
jsonDepthExceeds 在解码后做后置检查,发现深度超过 limit 立即返回 true。 按 map / slice 递归即可;其它叶子值(string / float64 / bool / nil)算 0 层。
internal/api/app.go:1270
↓ 1 callersMethodkickAllEmbySessions
()
webui/src/lib/api.ts:1521
↓ 1 callersMethodkickEmbyUserById
(embyId: string)
webui/src/lib/api.ts:1514
↓ 1 callersFunctionlevelVariant
(level: string)
webui/src/app/(main)/admin/logs/page.tsx:57
↓ 1 callersFunctionlimitStrings
(values []string, limit int)
internal/api/system_update.go:305
↓ 1 callersFunctionlistConfigBackups
(dir string)
internal/api/config_admin.go:804
↓ 1 callersMethodlistConfigBackups
()
webui/src/lib/api.ts:1251
↓ 1 callersMethodlistDatabaseBackups
()
webui/src/lib/api.ts:1316
↓ 1 callersMethodlistEmbyUsers
()
webui/src/lib/api.ts:1484
↓ 1 callersFunctionlistPresetsForField
(key: string)
webui/src/app/(main)/admin/config/page.tsx:304
↓ 1 callersMethodlistSchedulerJobs
()
webui/src/lib/api.ts:1418
↓ 1 callersFunctionliveAppliedConfigFields
liveAppliedConfigFields 返回本次 reload 中"实际值发生变化且立即对运行 时生效"的字段名(首字母 lower / TOML key 风格)。给出这一列表是为了让 admin/config/reload 的响应能区分三种状态: - reinitialized: 引发重建
internal/api/app.go:463
↓ 1 callersFunctionloadBaseline
loadBaseline 读取 scripts/docs_drift_baseline.txt:每行 "METHOD PATH", # 开头是注释。文件不存在等同于空 baseline(首次启用 lint 时是常态)。
scripts/check_docs_drift.go:175
↓ 1 callersFunctionloadDocsCorpus
(dir string)
scripts/check_docs_drift.go:268
↓ 1 callersFunctionloadMyRequests
()
webui/src/app/(main)/media/page.tsx:425
↓ 1 callersFunctionlocalInputToUnix
(value: string)
webui/src/app/(main)/admin/announcements/page.tsx:103
↓ 1 callersFunctionlocalizeDefault
(locale: TextLocale, value?: string)
webui/src/components/developer-js-docs-panel.tsx:889
↓ 1 callersFunctionlocalizedDescription
(locale: TextLocale, row: DeveloperJSDocEntry)
webui/src/components/developer-js-docs-panel.tsx:861
↓ 1 callersFunctionlocalizedExample
(locale: TextLocale, example: DeveloperJSDocs["examples"][number])
webui/src/components/developer-js-docs-panel.tsx:904
↓ 1 callersFunctionlocalizedParam
(locale: TextLocale, param: DocParam)
webui/src/components/developer-js-docs-panel.tsx:878
↓ 1 callersMethodlogin
(username: string, password: string)
webui/src/lib/api.ts:215
↓ 1 callersFunctionloginRedirectTarget
()
webui/src/app/(auth)/login/page.tsx:19
↓ 1 callersMethodlogout
()
webui/src/lib/api.ts:238
↓ 1 callersFunctionmaintenancePostgresDSNs
(dsn string)
internal/store/store.go:617
↓ 1 callersMethodmarkBangumiEpisode
(ctx context.Context, subjectID string, episode int, headers map[string]string)
internal/api/bangumi_sync_service.go:166
↓ 1 callersFunctionmarkConfirmed
()
webui/src/app/(auth)/register/page.tsx:168
↓ 1 callersFunctionmaskConfigSecrets
maskConfigSecrets 把 values 中所有非空 secret 字段替换为 secretMaskValue。 后端永不向管理端 UI 回传真实密钥明文——TOML GET 与 schema GET 必须同口径遮蔽, 否则 raw TOML 接口会成为绕过 schema 遮蔽、把全部密
internal/api/config_admin.go:51
↓ 1 callersMethodmatchBangumiSubject
(ctx context.Context, record store.PlaybackRecord, headers map[string]string)
internal/api/bangumi_sync_service.go:111
↓ 1 callersFunctionmatchPattern
(patternParts, requestParts []string)
internal/api/app.go:689
↓ 1 callersFunctionmatchRow
(row: DeveloperJSDocEntry, query: string)
webui/src/components/developer-js-docs-panel.tsx:923
↓ 1 callersFunctionmaxPasswordVerifyConcurrency
()
internal/api/password_verify.go:24
↓ 1 callersMethodmaybeAsyncPrunePGRuntimeLogs
maybeAsyncPrunePGRuntimeLogs 每 pgRuntimeLogPruneEvery 条 INSERT 触发一次 后台 prune;写入路径不再阻塞在 DELETE 上。pgRuntimeLogPruneGate 保证同一 时刻只有一个 prune goroutine 在跑,避
internal/store/runtime_log.go:96
↓ 1 callersFunctionmediaRequestInventoryIssue
(r MediaRequest)
internal/store/store.go:2641
↓ 1 callersFunctionmediaStatusMatches
(status, filter string)
internal/api/business.go:425
↓ 1 callersFunctionmediaStatusText
(status string)
internal/api/business.go:486
↓ 1 callersFunctionmergeBackgroundImage
mergeBackgroundImage 把新上传的背景 url 合并到现有 user.Background JSON 配置。 variant=light/dark 时只覆盖对应字段,保留另一面以及渐变 / 透明度等设置;其它 情况下回退为同时覆盖 light/dark,兼容旧客户端不带 type
internal/api/upload_handlers.go:301
↓ 1 callersFunctionmergeInto
(dst, src, path = "")
webui/add_keys.mjs:180
↓ 1 callersFunctionmergeProtectedAdminConfig
(submitted, existing string)
internal/api/config_admin.go:672
← previousnext →1,401–1,500 of 2,686, ranked by callers