MCPcopy Create free account

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

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

↓ 2 callersFunctionapplyGitUpdate
(ctx context.Context, repoURL, branch string, restartServices bool, dryRun bool, allowDirty bool)
internal/api/system_update.go:54
↓ 2 callersFunctionapplyRegcodeUpdate
(updated: Regcode)
webui/src/app/(main)/admin/regcodes/page.tsx:409
↓ 2 callersFunctionauditCategoryForRole
(role int)
internal/api/ticket_handlers.go:601
↓ 2 callersMethodauditEntry
(r *http.Request, uid int64, username, action, category string, targetUID int64, detail map[string]any)
internal/api/audit_handlers.go:27
↓ 2 callersFunctionauditLogUnixQuery
(r *http.Request, names ...string)
internal/api/audit_handlers.go:128
↓ 2 callersMethodauditWithUser
auditWithUser 用于登录等尚无会话上下文但已知用户身份的路径。 避免因为 AuthPublic 接口中 current(r) 返回零值导致审计日志 uid=0 / username=""。
internal/api/audit_handlers.go:23
↓ 2 callersMethodauthAndSelect
(ctx context.Context, conn net.Conn, args ...string)
internal/redis/redis.go:211
↓ 2 callersMethodbangumiHeaders
()
internal/api/bangumi_client.go:54
↓ 2 callersFunctionbangumiToMedia
(item map[string]any)
internal/api/bangumi_client.go:96
↓ 2 callersMethodbatchBoundEmbyUserUIDsFromPayload
(w http.ResponseWriter, payload map[string]any, maxExplicit, maxSelectedAll int, tooManyMessage string)
internal/api/batch_user_handlers.go:382
↓ 2 callersMethodbatchDeleteRegcodes
(codes: string[])
webui/src/lib/api.ts:2083
↓ 2 callersFunctionboundedInviteExpiry
(candidate, inviterExpiredAt int64)
internal/api/invite_handlers.go:435
↓ 2 callersFunctionbuildHttpErrorMessage
( status: number, endpoint: string, method: string, backendMessage?: string, )
webui/src/lib/api-request.ts:176
↓ 2 callersFunctionchdir
(t *testing.T, dir string)
internal/config/config_test.go:232
↓ 2 callersMethodcheckInventory
(data: InventoryCheckRequest, signal?: AbortSignal)
webui/src/lib/api.ts:749
↓ 2 callersMethodcleanupExpiredBindCodes
(now int64)
internal/api/telegram_bind_status.go:143
↓ 2 callersMethodcleanupInvalidUsers
(minDays: number = 7, dryRun: boolean = false, confirm?: string)
webui/src/lib/api.ts:1693
↓ 2 callersMethodcleanupUnusedUploadAssets
(maxAge time.Duration)
internal/api/admin_jobs.go:261
↓ 2 callersMethodclearAllUserEmails
(opts: { dryRun?: boolean; confirm?: string } = {})
webui/src/lib/api.ts:1714
↓ 2 callersFunctionclearBgTransitionTimer
()
webui/src/app/(main)/layout.tsx:99
↓ 2 callersMethodclearRegisterBindFailure
(code string)
internal/api/telegram_bind_status.go:115
↓ 2 callersMethodclearSessionCookie
(w http.ResponseWriter)
internal/api/app.go:1105
↓ 2 callersMethodclearStalePendingEmbyUsers
(opts: { dryRun?: boolean } = {})
webui/src/lib/api.ts:1774
↓ 2 callersFunctionclearToastTimers
(toastId: string)
webui/src/hooks/use-toast.ts:58
↓ 2 callersFunctioncloneInt64Slice
(values []int64)
internal/config/config.go:1389
↓ 2 callersFunctioncloneIntSlice
(values []int)
internal/config/config.go:1398
↓ 2 callersFunctioncloneStringSlice
(values []string)
internal/config/config.go:1342
↓ 2 callersFunctioncodeGrantsEmbyRegistration
(source string, codeType int)
internal/api/code_use_handlers.go:201
↓ 2 callersFunctioncodePreview
(source string, codeType int, days int, inviter string)
internal/api/code_use_handlers.go:205
↓ 2 callersMethodcollectCascadeUIDs
(root int64, depth int)
internal/api/business.go:1019
↓ 2 callersMethodconfigBackupContent
(name string)
internal/api/config_admin.go:619
↓ 2 callersFunctionconfigBackupInfo
(path string)
internal/api/config_admin.go:835
↓ 2 callersFunctionconfigurePostgresDB
(db *sql.DB, maxOpen, maxIdle int)
internal/store/store.go:843
↓ 2 callersFunctionconfiguredAdminMatchSets
(uidSet map[int64]bool, nameSet map[string]bool, uid int64, username string)
internal/api/configured_admins.go:38
↓ 2 callersMethodconfiguredAdminUIDSet
()
internal/api/configured_admins.go:46
↓ 2 callersMethodconfiguredAdminUsernameSet
()
internal/api/configured_admins.go:56
↓ 2 callersMethodconsumePasswordChangeEmailCode
consumePasswordChangeEmailCode 在强制邮箱验证时校验改密所需的邮箱验证码。 未强制时直接放行(向后兼容直接改密)。强制时要求 verification_id + email_code 命中一条属于本人(uid)、用途匹配的验证记录。返回 true 表示通过。
internal/api/email_handlers.go:45
↓ 2 callersFunctioncontrastForeground
(hex: string)
webui/src/lib/theme-custom.ts:97
↓ 2 callersFunctioncopyToClipboard
(text: string)
webui/src/app/(main)/settings/apikey/page.tsx:188
↓ 2 callersFunctioncountActive
(users []store.User)
internal/api/handlers.go:2952
↓ 2 callersFunctioncreateBackup
()
webui/src/app/(main)/admin/database/page.tsx:170
↓ 2 callersMethodcreateBindCode
(w http.ResponseWriter, uid int64, scene string)
internal/api/handlers.go:538
↓ 2 callersFunctiondatabaseDriverLabel
(driver string)
internal/api/database_admin.go:47
↓ 2 callersFunctiondatabasePostgresErrorMessage
(prefix string, err error)
internal/api/database_admin.go:331
↓ 2 callersFunctiondefaultConfigPath
()
internal/config/config.go:579
↓ 2 callersMethoddeleteDeveloperJSCallback
(token string)
internal/api/telegram_js_interactions.go:66
↓ 2 callersFunctiondescribeError
( err: Error | ApiResponse<unknown>, options: AsyncHandlerOptions<unknown>, defaultMsg: string, )
webui/src/hooks/use-async-handler.ts:86
↓ 2 callersFunctiondeveloperJSAnnouncementSnapshot
(an store.Announcement)
internal/api/telegram_js_commands.go:873
↓ 2 callersFunctiondeveloperJSInviteSnapshot
(c store.InviteCode)
internal/api/telegram_js_commands.go:838
↓ 2 callersMethoddeveloperJSListAnnouncements
developerJSListAnnouncements returns visible announcement snapshots for any user.
internal/api/telegram_js_commands.go:978
↓ 2 callersMethoddeveloperJSListInviteCodes
developerJSListInviteCodes returns masked invite code snapshots. Admins see all codes; non-admin users only receive codes they own.
internal/api/telegram_js_commands.go:932
↓ 2 callersMethoddeveloperJSListRegcodes
developerJSListRegcodes returns masked registration code snapshots. Admin-only.
internal/api/telegram_js_commands.go:917
↓ 2 callersFunctiondeveloperJSPresetFromPayload
(payload map[string]any, base store.DeveloperJSPreset)
internal/api/developer_handlers.go:201
↓ 2 callersFunctiondeveloperJSRegcodeSnapshot
(c store.RegCode)
internal/api/telegram_js_commands.go:819
↓ 2 callersMethoddeveloperJSSetUserRole
(vm *goja.Runtime, actor *store.User, opts developerJSRunOptions, logs *[]string, uidValue goja.Value, roleVal
internal/api/telegram_js_commands.go:1187
↓ 2 callersMethoddeveloperJSSystemStats
(user *store.User)
internal/api/telegram_js_commands.go:1573
↓ 2 callersFunctiondeveloperJSTimerAPI
(vm *goja.Runtime, logs *[]string, name string)
internal/api/telegram_js_commands.go:1982
↓ 2 callersFunctiondeveloperJSWaiterKey
(chatID, fromID int64)
internal/api/telegram_js_interactions.go:46
↓ 2 callersFunctiondismiss
()
webui/src/hooks/use-toast.ts:171
↓ 2 callersFunctiondoJSONRequest
(req *http.Request, dst any)
internal/api/http_json_client.go:125
↓ 2 callersFunctiondoLoopbackJSON
doLoopbackJSON 模拟“同机内部直连”:RemoteAddr 设为回环、无任何反代转发头。 用于 bind-confirm 这类只接受本机内部调用的端点(取代旧的共享密钥头)。
internal/api/app_test.go:5405
↓ 2 callersFunctiondownloadText
(filename: string, content: string, type: string)
webui/src/app/(main)/admin/regcodes/page.tsx:611
↓ 2 callersFunctionembyAccessExpired
(u store.User)
internal/api/emby.go:425
↓ 2 callersMethodembyCheckInventory
(ctx context.Context, payload map[string]any)
internal/api/emby_inventory.go:98
↓ 2 callersMethodembyIsAdmin
(ctx context.Context, embyID string)
internal/api/emby.go:99
↓ 2 callersFunctionembyItemDTO
(item map[string]any)
internal/api/emby_inventory.go:211
↓ 2 callersMethodembyOverview
(ctx context.Context)
internal/api/handlers.go:1445
↓ 2 callersMethodembySearchItems
(ctx context.Context, searchTerm string, includeTypes []string, year int, limit int)
internal/api/emby_inventory.go:13
↓ 2 callersMethodembyUpdatePolicy
(ctx context.Context, userID string, update func(map[string]any))
internal/api/emby.go:326
↓ 2 callersMethodembyUserByName
(ctx context.Context, username string)
internal/api/emby.go:220
↓ 2 callersFunctionemptyForm
()
webui/src/app/(main)/admin/announcements/page.tsx:81
↓ 2 callersFunctionexportSelected
(format: "json" | "txt")
webui/src/app/(main)/admin/regcodes/page.tsx:623
↓ 2 callersFunctionformatDuration
(total: number | undefined, units: { second: string; minute: string; hour: string; day: string })
webui/src/app/(main)/admin/logs/page.tsx:31
↓ 2 callersFunctionformatMessage
(template: string, params?: MessageParams)
webui/src/lib/i18n.tsx:111
↓ 2 callersFunctionformatTime
(seconds: number | undefined, unknown: string)
webui/src/app/(main)/admin/logs/page.tsx:26
↓ 2 callersFunctionformatTime
(unix: number)
webui/src/app/(main)/admin/bangumi/page.tsx:19
↓ 2 callersFunctionformatUnix
( seconds: number | null | undefined, locale: string, permanent: string, )
webui/src/components/admin/emby-device-audit-panel.tsx:66
↓ 2 callersFunctionformatUnix
(seconds: number | null | undefined, locale: string, permanent: string)
webui/src/app/(main)/admin/invite/page.tsx:97
↓ 2 callersFunctiongenerateInviteCode
(format string, algorithm string, days, index int)
internal/api/business.go:673
↓ 2 callersMethodgetBangumiMe
(ctx context.Context, token string)
internal/api/bangumi_client.go:148
↓ 2 callersMethodgetBindCode
()
webui/src/lib/api.ts:383
↓ 2 callersMethodgetDeveloperJSDocs
()
webui/src/lib/api.ts:1842
↓ 2 callersMethodgetEmbyRegisterStatus
(requestId: string, statusToken: string)
webui/src/lib/api.ts:460
↓ 2 callersMethodgetMyRequests
(signal?: AbortSignal)
webui/src/lib/api.ts:764
↓ 2 callersMethodgetRegcodes
(page = 1, params: { type?: string; status?: string; source?: string; search?: string; sort?: string; order?:
webui/src/lib/api.ts:2058
↓ 2 callersMethodgetRegisterAvailability
()
webui/src/lib/api.ts:456
↓ 2 callersMethodgetRegisterBindCodeStatus
(code: string, signal?: AbortSignal)
webui/src/lib/api.ts:395
↓ 2 callersFunctiongetRoleBadge
(role: number)
webui/src/app/(main)/admin/users/page.tsx:1842
↓ 2 callersMethodgetRuntimeStatus
()
webui/src/lib/api.ts:1222
↓ 2 callersFunctiongetSourceBadge
(code: Regcode)
webui/src/app/(main)/admin/regcodes/page.tsx:657
↓ 2 callersFunctiongetStatusBadge
(code: Regcode)
webui/src/app/(main)/admin/regcodes/page.tsx:648
↓ 2 callersMethodgetSystemInfo
()
webui/src/lib/api.ts:247
↓ 2 callersMethodgetSystemStats
()
webui/src/lib/api.ts:1218
↓ 2 callersMethodgetUserAvatar
(uid: number)
webui/src/lib/api.ts:1966
↓ 2 callersMethodgetUserBackground
(uid: number)
webui/src/lib/api.ts:1910
↓ 2 callersMethodgetUsers
(params: AdminUserListParams = {}, signal?: AbortSignal)
webui/src/lib/api.ts:799
↓ 2 callersFunctionhandle
(data: BindCodeStatusData)
webui/src/hooks/use-bind-code-status.ts:97
↓ 2 callersFunctionhandleActivateDeveloperMode
()
webui/src/app/(main)/dashboard/page.tsx:745
↓ 2 callersFunctionhandleAddType
()
webui/src/app/(main)/admin/tickets/page.tsx:83
↓ 2 callersMethodhandleBatchToggleEmby
handleBatchToggleEmby 批量单独启停 Emby 账号,不改动 Web 账号状态——与 handleAdminToggleEmby 的单用户版同源,守卫一致:受保护账号跳过;未绑定 Emby 跳过 (计入 skipped_no_emby);启用方向必须满足 embyShouldEn
internal/api/batch_user_handlers.go:278
← previousnext →701–800 of 2,686, ranked by callers