MCPcopy Create free account

hub / github.com/JoJoJotarou/LDOH / functions

Functions220 in github.com/JoJoJotarou/LDOH

↓ 27 callersFunctionnormalizeString
(value?: string | null)
app/api/sites/[id]/route.ts:47
↓ 26 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 19 callersFunctionnormalizeApiBaseUrl
(url: string)
lib/utils/url.ts:79
↓ 15 callersFunctionpushChange
( label: string, before: string | number | boolean | null | undefined, after: string | numbe
app/api/sites/[id]/route.ts:277
↓ 14 callersFunctiongetAdminUser
( cookies: CookieStore )
lib/admin/auth.ts:22
↓ 12 callersFunctioncheckApiBaseUrlExists
( url: string, excludeSiteId?: string )
lib/utils/url.ts:157
↓ 11 callersFunctionnormalizeString
(value?: string | null)
app/api/sites/route.ts:47
↓ 10 callersFunctiongetSessionIdFromCookies
(cookies: CookieStore)
lib/auth/ld-oauth.ts:88
↓ 9 callersFunctionisSuperAdmin
(admin: AdminUser)
lib/admin/auth.ts:59
↓ 8 callersFunctiongetDevUserConfig
()
lib/auth/dev-user.ts:7
↓ 8 callersFunctiongetLdUserWithCache
(params: { sessionId: string; options?: CachedUserOptions; })
lib/auth/ld-user.ts:40
↓ 7 callersMethodgetFromStorage
()
features/sites/services/UserPreferenceService.ts:12
↓ 6 callersFunctionformatList
(values: string[])
app/api/sites/[id]/route.ts:65
↓ 6 callersFunctionnormalizeList
(value: unknown)
app/api/sites/[id]/route.ts:51
↓ 5 callersFunctiongetSessionCookieName
()
lib/auth/ld-oauth.ts:42
↓ 5 callersFunctionpad
(value: number)
features/sites/components/SiteCard.tsx:194
↓ 5 callersFunctionpad
(num: number)
features/sites/components/SiteLogDialog.tsx:34
↓ 4 callersFunctionextractProtocolAndDomain
(url: string)
lib/utils/url.ts:137
↓ 4 callersFunctiongetNumberEnv
(name: string, fallback: number)
app/api/health/cron/route.ts:17
↓ 4 callersFunctiongetSessionCookieMaxAge
()
lib/auth/ld-oauth.ts:118
↓ 4 callersFunctionisSiteMaintainer
(site: Site)
features/sites/components/SiteHubPage.tsx:165
↓ 4 callersFunctionnormalizeReturnTo
(pathname: string, search: string)
middleware.ts:20
↓ 4 callersFunctionnormalizeReturnTo
(value?: string | null)
lib/auth/ld-oauth.ts:46
↓ 4 callersMethodsaveToStorage
(preferences: UserPreference)
features/sites/services/UserPreferenceService.ts:29
↓ 3 callersFunctiongetOAuthConfig
()
lib/auth/ld-oauth.ts:23
↓ 3 callersFunctiongetSession
(sessionId: string)
lib/auth/session-store.ts:75
↓ 3 callersFunctiongetStateCookieName
()
lib/auth/ld-oauth.ts:38
↓ 3 callersFunctionisValidUrl
(str: string)
features/sites/components/SiteReportDialog.tsx:29
↓ 3 callersFunctionisValidUrl
(str: string)
app/api/sites/[id]/report/route.ts:13
↓ 3 callersFunctionnormalizeList
(value: unknown)
app/api/sites/route.ts:51
↓ 3 callersFunctiontoSession
(row: SessionRow)
lib/auth/session-store.ts:29
↓ 2 callersFunctionbuildTagOptionsFromSites
(sites: Site[])
lib/server/siteData.ts:315
↓ 2 callersFunctioncheckIsAdmin
(userId: number)
middleware.ts:148
↓ 2 callersFunctioncomputeVisibleCount
()
features/sites/components/SiteCard.tsx:251
↓ 2 callersFunctionformatValue
(value: string | number | boolean | null | undefined)
app/api/sites/[id]/route.ts:55
↓ 2 callersFunctiongetSessionSecret
()
lib/auth/ld-oauth.ts:130
↓ 2 callersFunctiongetStateCookieMaxAge
()
lib/auth/ld-oauth.ts:106
↓ 2 callersFunctionhandleAction
(reportId: string, action: "reviewed" | "dismissed")
app/admin/reports/page.tsx:99
↓ 2 callersFunctionhandleAddTag
(inputVal: string)
features/sites/components/SiteEditorDialog.tsx:177
↓ 2 callersFunctionhandleExtensionChange
( index: number, key: keyof ExtensionForm, value: string )
features/sites/components/SiteEditorDialog.tsx:229
↓ 2 callersFunctionhandleMaintainerChange
( index: number, key: keyof MaintainerForm, value: string )
features/sites/components/SiteEditorDialog.tsx:209
↓ 2 callersFunctionhandleRemoveTag
(tagId: string)
features/sites/components/SiteEditorDialog.tsx:192
↓ 2 callersFunctionhandleReportTypeChange
(type: ReportType)
features/sites/components/SiteReportDialog.tsx:157
↓ 2 callersFunctionisAdminPath
(pathname: string)
middleware.ts:144
↓ 2 callersFunctionloadSitesData
(options?: { username?: string; includeHidden?: boolean; maxRegistrationLimit?: number; runawayOnly?:
lib/server/siteData.ts:359
↓ 2 callersFunctionnormalizeTextList
(values: string[])
app/api/sites/[id]/route.ts:70
↓ 2 callersFunctionparseLinuxDoId
(value?: string)
features/sites/components/SiteEditorDialog.tsx:109
↓ 2 callersFunctionparseMaintainerId
(value?: string | null)
app/api/sites/[id]/restore-runaway/route.ts:6
↓ 2 callersFunctionsignValue
(value: string, secret: string)
lib/auth/ld-oauth.ts:138
↓ 2 callersFunctionvalidateUrl
(url: URL)
lib/server/site-health.ts:65
↓ 1 callersFunctionbuildAuthorizeUrl
(options: { authorizationEndpoint: string; clientId: string; redirectUri: string; state: string; })
lib/auth/ld-oauth.ts:92
↓ 1 callersFunctionbuildHealthTooltip
(health?: Site["health"])
features/sites/components/SiteCard.tsx:112
↓ 1 callersFunctionbuildLinuxDoProfileUrl
(linuxDoId: string)
features/sites/components/SiteEditorDialog.tsx:114
↓ 1 callersFunctionchangeRole
(admin: AdminRow, role: string)
app/admin/admins/page.tsx:70
↓ 1 callersFunctioncheckSiteHealth
( apiBaseUrl: string, overrides: Partial<HealthCheckOptions> = {} )
lib/server/site-health.ts:103
↓ 1 callersFunctioncomputeIsTruncated
()
features/sites/components/SiteCard.tsx:301
↓ 1 callersFunctioncreateSession
(params: { accessToken: string; refreshToken: string; tokenType: string; accessExpiresAt: Date; sess
lib/auth/session-store.ts:45
↓ 1 callersFunctioncreateSignedCookieValue
(payload: unknown, secret: string)
lib/auth/ld-oauth.ts:74
↓ 1 callersFunctiondeleteNotif
(id: string)
app/admin/notifications/page.tsx:110
↓ 1 callersFunctiondeleteSession
(sessionId: string)
middleware.ts:114
↓ 1 callersFunctiondeleteSession
(sessionId: string)
lib/auth/session-store.ts:128
↓ 1 callersFunctionensureConfigured
()
lib/server/siteData.ts:336
↓ 1 callersMethodfavoriteSite
* 收藏站点 * @param siteId - 站点 ID
lib/contracts/interfaces/user-preference-service.ts:24
↓ 1 callersFunctionfetchLdUser
(accessToken: string)
lib/auth/ld-user.ts:16
↓ 1 callersFunctionfetchWithTimeout
(url: URL, method: "HEAD" | "GET", timeoutMs: number)
lib/server/site-health.ts:85
↓ 1 callersMethodfilterSites
* 根据筛选条件过滤站点列表 * @param sites - 站点列表 * @param filters - 筛选条件 * @param userPreferences - 用户偏好(用于判断收藏/隐藏) * @returns 过滤后的站点列表
lib/contracts/interfaces/filter-service.ts:21
↓ 1 callersFunctionforceLogout
(userId: number, username: string | null)
app/admin/users/page.tsx:34
↓ 1 callersFunctionformatBeijingTime
(value: string)
features/sites/components/SiteLogDialog.tsx:28
↓ 1 callersFunctionformatHealthError
(error?: string)
features/sites/components/SiteCard.tsx:80
↓ 1 callersFunctionformatHealthTime
(value?: string)
features/sites/components/SiteCard.tsx:85
↓ 1 callersFunctiongetCachedUser
( session: { userId?: number | null; userUsername?: string | null; userTrustLevel?: number | nul
lib/auth/ld-user.ts:74
↓ 1 callersFunctiongetHealthDotClass
(status: HealthViewStatus)
features/sites/components/SiteCard.tsx:99
↓ 1 callersFunctiongetHealthStatus
(health?: Site["health"])
features/sites/components/SiteCard.tsx:94
↓ 1 callersFunctiongetLdUserEndpoint
()
lib/auth/ld-user.ts:12
↓ 1 callersFunctiongetOAuthStateFromCookies
(cookies: CookieStore, secret: string)
lib/auth/ld-oauth.ts:80
↓ 1 callersMethodgetPreferences
* 获取用户偏好设置 * @returns 用户偏好对象
lib/contracts/interfaces/user-preference-service.ts:18
↓ 1 callersFunctiongetRefreshBufferSeconds
()
middleware.ts:28
↓ 1 callersFunctiongetSession
(sessionId: string)
middleware.ts:49
↓ 1 callersFunctiongetSignedCookieValue
(value: string, secret: string)
lib/auth/ld-oauth.ts:53
↓ 1 callersFunctiongetTokenCookieMaxAge
()
middleware.ts:36
↓ 1 callersFunctiongetTokenCookieMaxAge
()
lib/auth/ld-oauth.ts:110
↓ 1 callersFunctionhandleChange
(key: string, value: string)
app/admin/settings/page.tsx:20
↓ 1 callersFunctionhandleCopyUrl
()
features/sites/components/SiteCard.tsx:225
↓ 1 callersFunctionhandleRestore
(site: Site)
features/sites/components/RunawaySitesPage.tsx:67
↓ 1 callersMethodhideSite
* 隐藏站点 * @param siteId - 站点 ID
lib/contracts/interfaces/user-preference-service.ts:36
↓ 1 callersFunctionisAuthRequired
()
middleware.ts:16
↓ 1 callersFunctionisAuthRequired
()
lib/auth/ld-oauth.ts:34
↓ 1 callersFunctionisPrivateIp
(address: string)
lib/server/site-health.ts:27
↓ 1 callersFunctionisValidImageUrl
(url: string)
features/sites/components/SiteReportDialog.tsx:38
↓ 1 callersFunctionisValidImageUrl
(url: string)
app/api/sites/[id]/report/route.ts:22
↓ 1 callersFunctionisValidLinuxDoTopicUrl
(url: string)
features/sites/components/SiteReportDialog.tsx:53
↓ 1 callersFunctionisValidLinuxDoTopicUrl
(url: string)
app/api/sites/[id]/report/route.ts:29
↓ 1 callersFunctionloadMaintainerSiteIds
(username: string)
lib/server/siteData.ts:342
↓ 1 callersFunctionloadSitesFromSupabase
(options?: { includeIds?: string[]; includeHidden?: boolean; maxRegistrationLimit?: number; runawayOnl
lib/server/siteData.ts:106
↓ 1 callersFunctionopenEdit
(n: NotifRow)
app/admin/notifications/page.tsx:57
↓ 1 callersFunctionparseLinuxDoId
(value?: string | null)
lib/server/siteData.ts:84
↓ 1 callersFunctionrefreshToken
( token: OAuthTokenPayload )
middleware.ts:168
↓ 1 callersFunctionremoveAdmin
(admin: AdminRow)
app/admin/admins/page.tsx:51
↓ 1 callersFunctionrestoreFakeCharity
(site: SiteRow)
app/admin/sites/page.tsx:107
↓ 1 callersFunctionrestoreRunaway
(site: SiteRow)
app/admin/sites/page.tsx:87
next →1–100 of 220, ranked by callers