MCPcopy Create free account

hub / github.com/KunMoe/kun-galgame-patch / functions

Functions1,135 in github.com/KunMoe/kun-galgame-patch

↓ 1 callersFunctionhandleCopyClick
(copyButton: HTMLElement)
apps/web/app/composables/topic/useSpoilerContent.ts:62
↓ 1 callersFunctionhandleSpoilerClick
(spoilerElement: HTMLElement)
apps/web/app/composables/topic/useSpoilerContent.ts:56
↓ 1 callersFunctionhashString
(input: string)
apps/web/app/shared/utils/getRandomSticker.ts:13
↓ 1 callersMethodhikariAvatarURL
hikariAvatarURL resolves a brief's avatar to an ABSOLUTE URL for third-party (Hikari) consumers, mirroring the frontend resolveAvatarUrl: prefer the i
apps/api/internal/common/handler.go:632
↓ 1 callersFunctionimageAspectRatio
( width?: number | null, height?: number | null, fallback = '16 / 9' )
apps/web/app/shared/utils/resolveBannerUrl.ts:91
↓ 1 callersFunctioninstalledCollections
()
apps/web/scripts/generate-icon-list.mjs:76
↓ 1 callersFunctionisAVIF
isAVIF detects the ISOBMFF `ftyp` box with an `avif`/`avis` brand (major or compatible). moyu's legacy content images are 100% AVIF.
apps/api/cmd/migrate-content-images/main.go:344
↓ 1 callersFunctionisHex
(s string)
apps/api/pkg/imageclient/client.go:388
↓ 1 callersFunctionisHexHash
(s: string)
apps/web/app/shared/utils/resolveBannerUrl.ts:39
↓ 1 callersFunctionisHexHash
(s: string)
apps/web/app/shared/utils/resolveAvatarUrl.ts:25
↓ 1 callersFunctionlinkText
linkText extracts the rendered text of a link's children, just enough to answer "does this link's label start with @?". We only look at *ast.Text node
apps/api/internal/infrastructure/markdown/markdown.go:274
↓ 1 callersFunctionloadApplied
(db *sql.DB)
apps/api/cmd/migrate/main.go:133
↓ 1 callersFunctionloadCollection
(collection)
apps/web/scripts/generate-icon-list.mjs:97
↓ 1 callersFunctionmain
()
apps/web/scripts/generate-icon-list.mjs:131
↓ 1 callersMethodmarkCompleteOnce
markCompleteOnce returns true if THIS call is the first complete for the given artifact uuid, false if a prior call already deducted quota. Nil rdb (t
apps/api/internal/common/upload/service.go:58
↓ 1 callersMethodmarkResourceFavorited
markResourceFavorited stamps is_favorite (收藏资源 subscription) on each resource for the given currentUID. Anonymous (0) leaves it false. Mirrors markRes
apps/api/internal/patch/service/service.go:847
↓ 1 callersMethodmarkResourceLiked
markResourceLiked stamps is_liked on each resource for the given currentUID. Anonymous (currentUID == 0) leaves is_liked false everywhere.
apps/api/internal/patch/service/service.go:823
↓ 1 callersFunctionmaxMonthStr
(a, b string)
apps/api/internal/common/handler.go:1063
↓ 1 callersFunctionminMonthStr
minMonthStr / maxMonthStr compare zero-padded "YYYY-MM" lexicographically (== chronologically), treating "" as absent. Used to union the data bounds w
apps/api/internal/common/handler.go:1050
↓ 1 callersFunctionmustGetEnv
(key string)
apps/api/pkg/config/config.go:179
↓ 1 callersFunctionnewCJKIDs
()
apps/api/internal/infrastructure/markdown/markdown.go:47
↓ 1 callersFunctionnewMentionLinkRenderer
()
apps/api/internal/infrastructure/markdown/markdown.go:262
↓ 1 callersFunctionnewSanitizePolicy
newSanitizePolicy builds moyu's allow-list on top of bluemonday's UGCPolicy, extended with exactly what this package's renderers emit. Mirrors forum's
apps/api/internal/infrastructure/markdown/sanitize.go:25
↓ 1 callersMethodnotifyFavoritedUsers
===== Notifications (simplified) =====
apps/api/internal/patch/service/service.go:1496
↓ 1 callersMethodnotifyResourceFavoritedUsers
notifyResourceFavoritedUsers notifies every user subscribed to a SINGLE resource that its file/link changed. Called from UpdateResource ONLY on a file
apps/api/internal/patch/service/service.go:1515
↓ 1 callersFunctionopen
()
apps/web/app/composables/useAuthModal.ts:15
↓ 1 callersFunctionparseCSVInts
parseCSVInts parses "1,2,3" → [1,2,3], skipping blanks/non-numeric, capped at 200 to bound the query.
apps/api/internal/chat/handler/handler.go:381
↓ 1 callersFunctionparseEndpoint
parseEndpoint splits a full URL ("https://s3.xxx.com") into host and TLS flag; minio-go requires the host part to have no scheme.
apps/api/internal/infrastructure/storage/s3.go:75
↓ 1 callersFunctionparsePrivateLink
parsePrivateLink splits a "{a}-{b}" private-room link into the two uids.
apps/api/internal/chat/handler/handler.go:246
↓ 1 callersFunctionpartsConcurrency
(fileSize: number)
apps/web/app/composables/useResourceUpload.ts:39
↓ 1 callersFunctionpersist
()
apps/web/app/composables/useKnownAccounts.ts:67
↓ 1 callersFunctionpreviewMessage
previewMessage returns a one-line preview of a message for the room list.
apps/api/internal/chat/handler/handler.go:260
↓ 1 callersFunctionprintPlan
(plan []migration, direction, dbURL string)
apps/api/cmd/migrate/main.go:217
↓ 1 callersFunctionprintPlan
(cfg *config.Config)
apps/api/cmd/migrate-oauth-prep/main.go:167
↓ 1 callersFunctionrange
(from: number, to: number)
apps/web/server/utils/kunSitemapSources.ts:47
↓ 1 callersFunctionread
()
apps/web/app/composables/useKnownAccounts.ts:35
↓ 1 callersFunctionreadImageFormFile
Read the bytes of a single image file from a form, with a 10 MB size cap.
apps/api/internal/user/handler/handler.go:22
↓ 1 callersFunctionreadTitleLanguagePreference
()
apps/web/app/shared/utils/getPreferredLanguageText.ts:6
↓ 1 callersFunctionredactURL
redactURL replaces the password in postgres://user:pass@host/db with ***
apps/api/cmd/migrate/main.go:240
↓ 1 callersFunctionredactURL
redactURL replaces the password in postgres://user:pass@host/db with ***.
apps/api/cmd/migrate-oauth-prep/main.go:193
↓ 1 callersFunctionrelease
()
apps/web/server/utils/kunSitemapSources.ts:32
↓ 1 callersFunctionrememberUser
( user: Pick< UserState, 'sub' | 'id' | 'name' | 'avatar' | 'avatar_image_hash' | 'roles'
apps/web/app/composables/useKnownAccounts.ts:106
↓ 1 callersFunctionrender
(entries)
apps/web/scripts/generate-icon-list.mjs:226
↓ 1 callersFunctionrenderNote
renderNote is the single point where a resource's markdown note becomes HTML. Pulled out so RenderResourceNotes (and its single-element callers) share
apps/api/internal/patch/model/model.go:35
↓ 1 callersFunctionreset
()
apps/web/app/composables/useResourceUpload.ts:136
↓ 1 callersMethodresolveGalgameName
resolveGalgameName fetches a patch's galgame display name. patch.id IS the wiki galgame id (D13: patch.id == galgame_id), so a single batch lookup suf
apps/api/internal/patch/service/service.go:1662
↓ 1 callersFunctionresolveMappings
resolveMappings hits Wiki concurrently and returns the partition.
apps/api/cmd/remap-patch-ids/main.go:261
↓ 1 callersFunctionresolveOrphanPublisherNames
resolveOrphanPublisherNames batch-fetches user names from OAuth /users/batch for every distinct publisher across the skipped rows. On error it returns
apps/api/cmd/remap-patch-ids/main.go:537
↓ 1 callersFunctionrewriteHost
rewriteHost swaps the legacy host for -base so originals can be fetched from an internal mirror when image.moyu.moe isn't reachable from the job.
apps/api/cmd/migrate-content-images/main.go:291
↓ 1 callersFunctionrunOne
(db *sql.DB, m migration, direction string)
apps/api/cmd/migrate/main.go:198
↓ 1 callersFunctionrunRemap
runRemap performs the actual two-pass remap + schema fixups in one tx.
apps/api/cmd/remap-patch-ids/main.go:336
↓ 1 callersFunctionschemaState
schemaState inspects every child table and returns the aggregate phase.
apps/api/cmd/remap-patch-ids/main.go:448
↓ 1 callersFunctionsingleflightKey
(ids []uint)
apps/api/pkg/userclient/client.go:282
↓ 1 callersFunctionsplitOrigins
splitOrigins turns the comma-separated CORS_ALLOW_ORIGINS env value into the []string that Fiber v3's cors.Config expects, trimming incidental whitesp
apps/api/internal/middleware/cors.go:33
↓ 1 callersFunctionstr
(row: Record<string, unknown>, key: string)
apps/web/server/utils/kunSitemapSources.ts:64
↓ 1 callersMethodsubmitGalgameJSON
(c fiber.Ctx, accessToken string)
apps/api/internal/patch/handler/handler.go:959
↓ 1 callersMethodsubmitGalgameMultipart
(c fiber.Ctx, accessToken string)
apps/api/internal/patch/handler/handler.go:968
↓ 1 callersFunctiontoLegacyVariant
(url: string, variant?: 'mini')
apps/web/app/shared/utils/resolveBannerUrl.ts:58
↓ 1 callersFunctiontoLegacyVariant
(url: string, variant?: string)
apps/web/app/shared/utils/resolveAvatarUrl.ts:41
↓ 1 callersFunctiontoUploadable
toUploadable returns bytes image_service can ingest. image_service has no AVIF decoder and the topic preset accepts only jpeg/png/webp/gif, so AVIF or
apps/api/cmd/migrate-content-images/main.go:331
↓ 1 callersFunctiontrigger
()
apps/web/app/plugins/revalidate-me.client.ts:21
↓ 1 callersMethodunmarkComplete
unmarkComplete releases the idempotency marker when a complete attempt set it but failed before the quota deduction committed (so a retry can re-run i
apps/api/internal/common/upload/service.go:75
↓ 1 callersMethodupdateGalgameJSON
updateGalgameJSON is the plain JSON path. Decoding into the client's pointer-fielded shape filters out unsupported keys (e.g. vndb_id, which Wiki reje
apps/api/internal/patch/handler/handler.go:847
↓ 1 callersMethodupdateGalgameMultipart
updateGalgameMultipart reads `data` + optional `file` from the incoming multipart body and forwards them through the wiki client. Size cap is 10 MB (c
apps/api/internal/patch/handler/handler.go:863
↓ 1 callersFunctionupload
( file: File, galgameId: number )
apps/web/app/composables/useResourceUpload.ts:258
↓ 1 callersFunctionuploadEditorImage
(apiBase: string, file: File)
apps/web/app/composables/useKunEditorAdapters.ts:28
↓ 1 callersFunctionupsert
(account: KnownAccount)
apps/web/app/composables/useKnownAccounts.ts:77
↓ 1 callersFunctionuseKnownAccounts
()
apps/web/app/composables/useKnownAccounts.ts:60
↓ 1 callersFunctionuseRefreshMe
()
apps/web/app/composables/useRefreshMe.ts:33
↓ 1 callersMethodvalidatePreUpload
validatePreUpload pre-checks at init time: extension, per-role single-file cap, and (unless the tier is unlimited) the per-user daily quota based on t
apps/api/internal/common/upload/service.go:89
↓ 1 callersFunctionwalk
(dir)
apps/web/scripts/generate-icon-list.mjs:110
↓ 1 callersFunctionwriteBackup
writeBackup appends one original row as a JSONL record before it is rewritten.
apps/api/cmd/migrate-content-images/main.go:393
↓ 1 callersFunctionwriteOrphansFile
writeOrphansFile dumps every skipped patch to a TSV file. Game names live on Wiki and these rows by definition have no Wiki match, so the most useful
apps/api/cmd/remap-patch-ids/main.go:493
MethodAbort
Abort POST /api/upload/abort — voluntarily cancel an in-progress upload.
apps/api/internal/common/upload/handler.go:204
MethodAbort
Abort soft-deletes an in-progress upload on client request (the artifact GC also reclaims orphaned status=uploading rows after its TTL).
apps/api/internal/common/upload/service.go:261
MethodAdminGetPost
AdminGetPost GET /admin/doc/:id — raw doc for the editor.
apps/api/internal/doc/handler/handler.go:93
MethodAdminListPosts
===== Admin (moderator+) ===== AdminListPosts GET /admin/doc — all docs incl. drafts.
apps/api/internal/doc/handler/handler.go:84
MethodApproveComment
ApproveComment flips a pending comment to approved and applies the deferred visible-comment side effects. Idempotent: approving an already-approved co
apps/api/internal/patch/service/service.go:673
MethodApproveComment
ApproveComment PUT /api/admin/comment/:id/approve Flips a pending comment (comment-verify) to approved, applying the deferred visible-comment side ef
apps/api/internal/patch/handler/handler.go:353
FunctionAuth
(rdb *redis.Client, oauthCfg config.OAuthConfig)
apps/api/internal/middleware/auth.go:129
MethodBalance
Balance reads the user's current authoritative balance from OAuth (C3 single source — NOT the local user.moemoepoint cache). Read-only passthrough; a
apps/api/pkg/moemoepoint/awarder.go:71
FunctionBriefMapByInt
BriefMapByInt is a thin convenience over Users that takes []int (the concrete type used in our domain models, where user_id is `int`), dedupes, drops
apps/api/pkg/userclient/helpers.go:16
FunctionBuildPatchSummaryMap
BuildPatchSummaryMap fetches Wiki briefs for the given patch IDs and returns a map keyed by patch_id (the local row id) of compact summaries. Patches
apps/api/internal/galgame/enricher/enricher.go:221
FunctionCORS
(cfg config.CORSConfig)
apps/api/internal/middleware/cors.go:13
MethodCheckDuplicate
(vndbID string)
apps/api/internal/patch/service/service.go:495
MethodCheckDuplicate
CheckDuplicate GET /api/patch/duplicate
apps/api/internal/patch/handler/handler.go:260
MethodCheckIn
CheckIn performs daily check-in.
apps/api/internal/user/service/service.go:254
MethodCheckIn
===== Daily ===== CheckIn marks the user as checked-in for today. The moemoepoint reward is no longer applied here — it goes through OAuth (the unifie
apps/api/internal/user/repository/repository.go:247
MethodCheckIn
CheckIn POST /api/user/check-in
apps/api/internal/user/handler/handler.go:314
MethodClaimGalgame
ClaimGalgame proxies POST /galgame/:gid/claim — claim a VNDB draft (status=2) and immediately publish it (status=0). Returns the published galgame.
apps/api/internal/galgame/client/submission.go:156
MethodClaimGalgame
ClaimGalgame POST /api/v1/galgame/:gid/claim Flip a VNDB draft (status=2) to published (status=0) on Wiki, then register the local patch row + award
apps/api/internal/patch/handler/handler.go:991
MethodComplete
Complete POST /api/upload/complete — finalize (size verified by artifact) and deduct the per-user daily quota.
apps/api/internal/common/upload/handler.go:68
MethodComplete
Complete finalizes the upload via artifact (which HeadObject-verifies the size server-side), then deducts the per-user daily quota once (idempotent).
apps/api/internal/common/upload/service.go:154
MethodCompleteUpload
CompleteUpload finalizes an upload (HeadObject size verify + optional manifest) and returns the ready artifact's metadata.
apps/api/pkg/artifactclient/client.go:177
MethodCompleteUpload
(ctx context.Context, uuid string, body CompleteUploadJSONRequestBody, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:340
MethodCompleteUploadWithBody
(ctx context.Context, uuid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:328
MethodCompleteUploadWithBodyWithResponse
CompleteUploadWithBodyWithResponse request with any body
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:677
MethodCompleteUploadWithBodyWithResponse
CompleteUploadWithBodyWithResponse request with arbitrary body returning *CompleteUploadResp
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:916
MethodCompleteUploadWithResponse
(ctx context.Context, uuid string, body CompleteUploadJSONRequestBody, reqEditors ...RequestEditorFn)
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:924
FunctionContentLimitForListBrowse
ContentLimitForListBrowse resolves the content_limit for browse-style list endpoints (home / list / ranking / user patches / etc.). The query value wi
apps/api/pkg/utils/contentlimit.go:43
← previousnext →401–500 of 1,135, ranked by callers