MCPcopy Create free account

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

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

↓ 1 callersMethodtelegramDispatchRegistry
(ctx context.Context, command string, c telegramCommandCtx, privateChat bool)
internal/api/telegram_commands.go:234
↓ 1 callersFunctiontelegramExpiryTimeLabel
(ts int64)
internal/api/telegram_inline.go:883
↓ 1 callersMethodtelegramGetChatAdministrators
(ctx context.Context, chatID string)
internal/api/telegram.go:240
↓ 1 callersMethodtelegramGrantRegisterDays
(action string)
internal/api/telegram_inline.go:765
↓ 1 callersFunctiontelegramGrantRegisterDaysLabel
(days int)
internal/api/telegram_inline.go:789
↓ 1 callersMethodtelegramGroupPrompt
()
internal/api/telegram_bot.go:1039
↓ 1 callersMethodtelegramGroupUserPanelPlaceholders
(ctx context.Context, chatID int64, u store.User, template string)
internal/api/telegram_inline.go:526
↓ 1 callersMethodtelegramHandleAdmin
(ctx context.Context, chatID, telegramID int64)
internal/api/telegram_bot.go:798
↓ 1 callersMethodtelegramHandleBanEmby
telegramHandleBanEmby 单独禁用指定用户的 Emby 账号,不影响 Web 账号(可选理由)。 用法:/banemby <用户名/UID/关键词> [理由]
internal/api/telegram_bot.go:895
↓ 1 callersMethodtelegramHandleBanWeb
telegramHandleBanWeb 禁用指定用户的 Web 账号(可选理由)。 用法:/banweb <用户名/UID/关键词> [理由]
internal/api/telegram_bot.go:846
↓ 1 callersMethodtelegramHandleBroadcast
telegramHandleBroadcast 向所有启用了 Telegram 通知的用户广播消息。
internal/api/telegram_commands.go:211
↓ 1 callersMethodtelegramHandleDelAccount
telegramHandleDelAccount 用户通过 Telegram 删除自己的账号,支持多因素验证。 禁止群聊使用(已在 dispatch 层通过 private=true 强制私聊)。 验证优先级: 1. 已绑定已验证邮箱 → 必须使用邮箱验证码 2. 已绑定 Emby → 需要 Web
internal/api/telegram_bot.go:579
↓ 1 callersMethodtelegramHandleDeveloperJSCallback
(ctx context.Context, callback map[string]any)
internal/api/telegram_js_interactions.go:89
↓ 1 callersMethodtelegramHandleEmby
(ctx context.Context, chatID, telegramID int64)
internal/api/telegram_bot.go:445
↓ 1 callersMethodtelegramHandleFind
(ctx context.Context, chatID, telegramID int64, query string)
internal/api/telegram_bot.go:827
↓ 1 callersMethodtelegramHandleGroupUser
(ctx context.Context, chatID, telegramID int64, fields []string, message map[string]any)
internal/api/telegram_bot.go:953
↓ 1 callersMethodtelegramHandleMe
(ctx context.Context, chatID, telegramID int64)
internal/api/telegram_bot.go:437
↓ 1 callersMethodtelegramHandleNotice
telegramDispatchRegistry 在 dispatcher 中统一执行注册表里命令的 gating, 命中并调用成功返回 true;未命中(特殊命令或自定义命令)返回 false 让上层继续 switch。 gating 顺序:private → admin。任何一关失败都直接发统一
internal/api/telegram_commands.go:191
↓ 1 callersMethodtelegramHandlePlayInfo
(ctx context.Context, chatID, telegramID int64)
internal/api/telegram_bot.go:479
↓ 1 callersMethodtelegramHandleResetPassword
(ctx context.Context, chatID, telegramID int64)
internal/api/telegram_bot.go:511
↓ 1 callersMethodtelegramHandleStats
(ctx context.Context, chatID, telegramID int64)
internal/api/telegram_bot.go:768
↓ 1 callersMethodtelegramHandleUserInfo
(ctx context.Context, chatID, telegramID int64, query string)
internal/api/telegram_bot.go:806
↓ 1 callersMethodtelegramHelpText
(admin bool)
internal/api/telegram_bot.go:1053
↓ 1 callersFunctiontelegramIsAnonymousGroupMessage
(message map[string]any)
internal/api/telegram_inline.go:36
↓ 1 callersMethodtelegramKickTargets
()
internal/api/telegram.go:334
↓ 1 callersFunctiontelegramLocalEmbyBindingStatusLabel
(u store.User)
internal/api/telegram_inline.go:849
↓ 1 callersFunctiontelegramLocalEmbyLabel
(u store.User)
internal/api/telegram_inline.go:836
↓ 1 callersMethodtelegramMembershipCheckConcurrency
(total int)
internal/api/admin_jobs.go:158
↓ 1 callersMethodtelegramMembershipMissing
(ctx context.Context, telegramID int64, strict bool)
internal/api/telegram.go:257
↓ 1 callersMethodtelegramMembershipMissingForScheduler
(ctx context.Context, telegramID int64, chats []string)
internal/api/admin_jobs.go:223
↓ 1 callersFunctiontelegramPanelTemplateNeedsRemote
(template string)
internal/api/telegram_inline.go:630
↓ 1 callersFunctiontelegramPanelTemplateNeedsTelegramIdentity
(template string)
internal/api/telegram_inline.go:626
↓ 1 callersMethodtelegramPanelUsername
(ctx context.Context, chatID int64, u store.User, template string)
internal/api/telegram_inline.go:601
↓ 1 callersFunctiontelegramParseActivityTime
(raw string)
internal/api/telegram_inline.go:904
↓ 1 callersFunctiontelegramRenderPanelTemplate
(template string, values map[string]string)
internal/api/telegram_inline.go:518
↓ 1 callersMethodtelegramRequirePrivate
(ctx context.Context, chatID int64, private bool)
internal/api/telegram_bot.go:986
↓ 1 callersMethodtelegramResolveGroupUserTarget
(fields []string, message map[string]any)
internal/api/telegram_inline.go:48
↓ 1 callersMethodtelegramResolveJSCustomCommand
(script string)
internal/api/telegram_js_commands.go:96
↓ 1 callersMethodtelegramSendGroupAdminAuth
(ctx context.Context, chatID, commandMessageID int64, fields []string, message map[string]any)
internal/api/telegram_inline.go:72
↓ 1 callersMethodtelegramSendGroupUserPanel
(ctx context.Context, chatID, commandMessageID int64, target store.User, requireAuth bool)
internal/api/telegram_inline.go:86
↓ 1 callersMethodtelegramStartText
()
internal/api/telegram_bot.go:1019
↓ 1 callersFunctiontelegramTelegramBindingLabel
(u store.User)
internal/api/telegram_inline.go:826
↓ 1 callersFunctiontelegramTimeLabel
(t time.Time)
internal/api/telegram_inline.go:955
↓ 1 callersFunctiontelegramUnixNumberTime
(value float64)
internal/api/telegram_inline.go:940
↓ 1 callersFunctiontelegramUserMatches
(u store.User, query string)
internal/api/telegram_bot.go:1125
↓ 1 callersMethodterminateSchedulerJob
(jobId: string)
webui/src/lib/api.ts:2008
↓ 1 callersFunctiontestBot
()
webui/src/app/(main)/admin/telegram/page.tsx:79
↓ 1 callersMethodtestBotConnectivity
(target?: string)
webui/src/lib/api.ts:1796
↓ 1 callersMethodtestEmbyConnectivity
()
webui/src/lib/api.ts:1475
↓ 1 callersMethodticketImageSrc
(url?: string | null)
webui/src/lib/api.ts:2544
↓ 1 callersFunctionticketImageURL
(ticketID int64, filename string)
internal/api/ticket_handlers.go:543
↓ 1 callersFunctiontimeRangeBounds
(value: string)
webui/src/app/(main)/admin/audit-logs/page.tsx:83
↓ 1 callersFunctiontoCommandRows
(value: unknown)
webui/src/components/admin/config-section-editor.tsx:97
↓ 1 callersFunctiontoCommandRows
(value: unknown)
webui/src/app/(main)/admin/config/page.tsx:394
↓ 1 callersFunctiontoggleCollapse
(uid: number)
webui/src/app/(main)/admin/invite/page.tsx:308
↓ 1 callersFunctiontogglePinned
(ann: Announcement)
webui/src/app/(main)/admin/announcements/page.tsx:247
↓ 1 callersFunctiontoggleSection
(key: string)
webui/src/app/(main)/admin/config/page.tsx:1222
↓ 1 callersFunctiontoggleSelect
(id: number, checked: boolean)
webui/src/app/(main)/admin/telegram-rebind-requests/page.tsx:87
↓ 1 callersFunctiontoggleSelectAll
(checked: boolean)
webui/src/app/(main)/admin/regcodes/page.tsx:547
↓ 1 callersMethodtoggleTicketNotify
(id: number, enabled: boolean)
webui/src/lib/api.ts:2518
↓ 1 callersFunctiontoggleUserDetails
(uid: number)
webui/src/app/(main)/admin/users/page.tsx:306
↓ 1 callersFunctiontoggleVisible
(ann: Announcement)
webui/src/app/(main)/admin/announcements/page.tsx:229
↓ 1 callersFunctiontomlScalarIsEmpty
tomlScalarIsEmpty 判断 TOML 标量赋值的值部分是否为"空"(空串 "" / ” 或纯空白)。 用于 maskTOMLSecrets 跳过未配置的 secret 字段。
internal/api/config_admin.go:168
↓ 1 callersMethodtriggerBangumiSync
()
webui/src/lib/api.ts:344
↓ 1 callersMethodtriggerSchedulerJob
( jobId: string, params?: Record<string, unknown>, )
webui/src/lib/api.ts:1422
↓ 1 callersMethodunbindEmbyAccount
()
webui/src/lib/api.ts:505
↓ 1 callersMethodunbindTelegram
()
webui/src/lib/api.ts:475
↓ 1 callersFunctionunescapeTomlString
unescapeTomlString keeps legacy comma-list parsing compatible with TOML string escapes.
internal/config/config.go:1484
↓ 1 callersFunctionunixToLocalInput
(unix: number)
webui/src/app/(main)/admin/announcements/page.tsx:96
↓ 1 callersMethodupdateBangumiCollection
(ctx context.Context, subjectID string, token string, collectType int, epStatus int, rate int)
internal/api/bangumi_client.go:204
↓ 1 callersMethodupdateBangumiCollection
(subjectId: string, type: number, epStatus: number, rate?: number)
webui/src/lib/api.ts:337
↓ 1 callersFunctionupdateChannel
(channel: "r" | "g" | "b", nextValue: string)
webui/src/components/theme-customizer.tsx:69
↓ 1 callersMethodupdateConfigToml
(content: string)
webui/src/lib/api.ts:1242
↓ 1 callersMethodupdateDeveloperJSPreset
(id: number, payload: { name?: string; description?: string; code?: string })
webui/src/lib/api.ts:1857
↓ 1 callersMethodupdateFilteredUsers
(filterValue any, include func(store.User) (bool, string), update func(*store.User))
internal/api/admin_extra.go:949
↓ 1 callersMethodupdateFromGit
(payload: { repo_url: string; branch?: string; restart_services?: boolean; dry_run?: boolean;
webui/src/lib/api.ts:1367
↓ 1 callersFunctionupdateItem
(idx: number, val: string)
webui/src/app/(main)/admin/config/page.tsx:325
↓ 1 callersMethodupdateMe
(data: { email?: string; username?: string; bgm_mode?: boolean; bgm_token?: string })
webui/src/lib/api.ts:285
↓ 1 callersMethodupdateMediaRequest
* 管理员更新求片状态。第一个参数现在是 require_key(全局唯一),避免 * Bangumi/TMDB 两表数值 id 撞车把操作打到错的求片。
webui/src/lib/api.ts:2267
↓ 1 callersMethodupdateMyApiKey
( keyId: number, payload: { name: string; enabled: boolean; allow_query: boolean;
webui/src/lib/api.ts:2037
↓ 1 callersMethodupdateUser
(uid: number, data: Partial<UserUpdateData>)
webui/src/lib/api.ts:817
↓ 1 callersMethodupdateUserBackground
(payload: { lightBg: string; darkBg: string; lightBgImage: string; darkBgImage: string; li
webui/src/lib/api.ts:1925
↓ 1 callersMethoduploadAuthBackground
(file: File)
webui/src/lib/api.ts:1996
↓ 1 callersMethoduploadAvatar
(file: File)
webui/src/lib/api.ts:1974
↓ 1 callersMethoduploadBackgroundImage
(file: File, type: 'light' | 'dark')
webui/src/lib/api.ts:1954
↓ 1 callersFunctionuploadKindAliases
(kind string)
internal/api/admin_jobs.go:372
↓ 1 callersMethoduploadServerIcon
(file: File)
webui/src/lib/api.ts:1984
↓ 1 callersMethoduploadTicketImage
(ticketId: number, file: File)
webui/src/lib/api.ts:2526
↓ 1 callersFunctionuseAsyncHandler
()
webui/src/hooks/use-async-handler.ts:111
↓ 1 callersFunctionvalidEmailPurpose
(p string)
internal/api/email_verify_service.go:32
↓ 1 callersFunctionvalidRegcodeTargetTelegramUsername
(username string)
internal/api/regcode_handlers.go:262
↓ 1 callersFunctionvalidTicketStatus
---- 校验工具 ----
internal/api/ticket_handlers.go:610
↓ 1 callersFunctionvalidateAccountStep
()
webui/src/app/(auth)/register/page.tsx:255
↓ 1 callersFunctionvalidateEmbyUsername
(username: string)
webui/src/lib/validators.ts:53
↓ 1 callersFunctionvalidateUserPayload
(raw: unknown)
webui/src/store/auth.ts:22
↓ 1 callersFunctionvalidateUsername
(username: string)
webui/src/lib/validators.ts:29
↓ 1 callersMethodwaitAfter
(ctx context.Context, after int64, limit int)
internal/api/runtime_logs.go:150
↓ 1 callersFunctionwarnIfIconOnlyMissingLabel
* warnIfIconOnlyMissingLabel 在 dev 期检测 size="icon" 但既无 aria-label * 也无 aria-labelledby 的 Button——纯图标按钮屏幕阅读器只能朗读"按钮", * 违反 WCAG 4.1.2。 * * 类型层面新增 `
webui/src/components/ui/button.tsx:55
↓ 1 callersFunctionwriteBackupNote
(path, note string)
internal/store/store.go:1504
↓ 1 callersFunctionzapFieldsToAttrs
(fields []zapcore.Field)
internal/api/runtime_logs.go:404
← previousnext →1,701–1,800 of 2,686, ranked by callers