MCPcopy Create free account

hub / github.com/Sallyn0225/seatview / functions

Functions372 in github.com/Sallyn0225/seatview

↓ 58 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:5
↓ 48 callersFunctionpref
(slug: string, label_zh: string, label_jp: string)
src/data/prefectures.ts:35
↓ 29 callersFunctionjsonError
(code: AdminErrorCode, status: number)
src/pages/api/admin/photos.ts:48
↓ 27 callersFunctionfillTemplate
( template: string, values: Record<string, string>, )
src/lib/format.ts:124
↓ 23 callersFunctionuseLocale
(locale: Locale)
src/hooks/useLocale.ts:15
↓ 17 callersFunctiongetDb
(d1: D1Database)
src/server/db/index.ts:6
↓ 17 callersFunctionpoint
(id: string, x: number, y = 0)
src/lib/cluster.test.ts:6
↓ 15 callersFunctionjsonError
(code: AdminErrorCode, status: number)
src/pages/api/admin/staging.ts:33
↓ 14 callersFunctionjsonError
(code: UploadErrorCode, status: number)
src/pages/api/upload/commit.ts:36
↓ 12 callersFunctionlocFlag
(remote)
scripts/migrate-coords-frame-to-image.mjs:148
↓ 11 callersFunctionisValidRatingScore
(value: unknown)
src/lib/venue-rating.ts:31
↓ 11 callersFunctionjsonRequest
(url: string, init: RequestInit)
src/lib/admin-client.ts:49
↓ 10 callersFunctionjsonError
(code: StagingErrorCode, status: number)
src/pages/api/staging.ts:39
↓ 10 callersFunctionmaintainerEmail
( request: Request, devEmail: string | undefined, )
src/server/admin-auth.ts:30
↓ 9 callersFunctionjsonError
(code: PhotoCorrectionErrorCode, status: number)
src/pages/api/photo-corrections.ts:23
↓ 9 callersFunctionjsonError
(code: AdminErrorCode, status: number)
src/pages/api/admin/photo-corrections.ts:23
↓ 9 callersFunctionsqlStr
(value)
scripts/gen-demo-seed.mjs:46
↓ 8 callersFunctionisValidRatingScores
( value: unknown, )
src/lib/venue-rating.ts:45
↓ 8 callersFunctionjsonError
(code: RatingErrorCode, status: number)
src/pages/api/rating.ts:28
↓ 8 callersFunctionstatusOf
(step: StepIndex)
src/islands/upload/UploadSheet.tsx:158
↓ 7 callersFunctionabs
(path: string, siteUrl: string | URL)
src/lib/seo/jsonld-core.ts:3
↓ 7 callersFunctionassertSafeHeicSourceDimensions
( width: number, height: number, )
src/lib/heic-decode.ts:32
↓ 7 callersFunctiongetMessages
(locale: Locale)
src/i18n/index.ts:13
↓ 7 callersFunctionimageContentRect
( containerW: number, containerH: number, naturalW: number, naturalH: number, )
src/lib/image-rect.ts:33
↓ 7 callersFunctionjsonError
(code: UploadErrorCode, status: number)
src/pages/api/upload/sign.ts:34
↓ 7 callersFunctionjsonError
(code: StagingErrorCode, status: number)
src/pages/api/staging/vote.ts:25
↓ 7 callersFunctionsetSelectedPhoto
(id: SelectedPhotoId)
src/lib/selected-photo.ts:42
↓ 7 callersFunctionurl
(path: string)
src/pages/llms.txt.ts:14
↓ 6 callersFunctionabsoluteDate
(epochMs: number, locale: Locale)
src/lib/format.ts:98
↓ 6 callersFunctionclientIp
(request: Request)
src/server/ip.ts:17
↓ 6 callersFunctionhashIp
(ip: string, salt: string)
src/server/ip.ts:31
↓ 6 callersFunctionimageKeyToUrl
(key: string, baseUrl?: string)
src/lib/photos.ts:89
↓ 6 callersFunctionnewId
(now: number = Date.now())
src/server/id.ts:40
↓ 6 callersFunctionrelativeTime
( createdAtMs: number, locale: Locale, now: number = Date.now(), )
src/lib/format.ts:48
↓ 6 callersFunctionusePrefersReducedMotion
()
src/hooks/usePrefersReducedMotion.ts:25
↓ 6 callersFunctionvenueName
(venue: Venue, locale: Locale)
src/i18n/index.ts:24
↓ 6 callersFunctionviewerColumn
( column: AnySQLiteColumn, venueId: string, ipHash: string, )
src/server/ratings.ts:59
↓ 5 callersFunctionapplyOptimisticRating
( summary: VenueRatingSummaryDto, scores: RatingDimensionScores, )
src/lib/venue-rating.ts:196
↓ 5 callersFunctionplural
(n: number, unit: string)
src/lib/format.ts:69
↓ 5 callersFunctionsameRatingScores
( left: RatingDimensionScores | null, right: RatingDimensionScores | null, )
src/lib/venue-rating.ts:179
↓ 5 callersFunctionstripLocale
(pathname: string)
src/lib/seo/hreflang.ts:30
↓ 5 callersFunctionwriteStorage
(key: string, value: string)
src/lib/storage.ts:34
↓ 4 callersFunctionbuildMusicVenueLd
(input: MusicVenueLdInput)
src/lib/seo/jsonld-core.ts:28
↓ 4 callersFunctioncheckDailyLimit
( kv: KVNamespace, scope: RateScope, ipHash: string, limit: number, now: number = Date.now(), )
src/server/rate-limit.ts:60
↓ 4 callersFunctionclusterPoints
( points: readonly LaidOutPoint[], scale: number, )
src/lib/cluster.ts:94
↓ 4 callersFunctionescapeXml
(value)
scripts/gen-placeholder-seatmaps.mjs:21
↓ 4 callersFunctionfmt
(n)
scripts/migrate-coords-frame-to-image.mjs:426
↓ 4 callersFunctionfocusItem
(index: number)
src/islands/lightbox/NearbyStrip.tsx:65
↓ 4 callersFunctionincrementDaily
( kv: KVNamespace, scope: RateScope, ipHash: string, now: number = Date.now(), )
src/server/rate-limit.ts:85
↓ 4 callersFunctionjsonResponse
200 with an admin mutation payload. No edge cache — admin views must reflect * the delete/restore/purge immediately.
src/pages/api/admin/photos.ts:57
↓ 4 callersFunctionlegacyMeanScore
(scores: RatingDimensionScores)
src/server/ratings.ts:50
↓ 4 callersFunctionmemberSets
(points: readonly LaidOutPoint[], scale: number)
src/lib/cluster.test.ts:28
↓ 4 callersFunctiononChange
(event: Event)
src/islands/VenueMain.tsx:101
↓ 4 callersFunctionperformanceDate
( iso: string | null, locale: Locale, )
src/lib/format.ts:108
↓ 4 callersFunctionratingDimensionAverage
( count: number, sums: RatingDimensionScores, dimension: RatingDimension, )
src/lib/venue-rating.ts:117
↓ 4 callersFunctionratingOverallAverage
( summary: VenueRatingSummaryDto, )
src/lib/venue-rating.ts:125
↓ 4 callersFunctionreadStorage
(key: string)
src/lib/storage.ts:24
↓ 4 callersFunctionresolveInitialSubMapId
( subMaps: readonly SubMap[], requested: string | undefined, )
src/lib/submap.ts:38
↓ 4 callersFunctionsetPhotoIdInUrl
(photoId: string | null)
src/lib/share.ts:73
↓ 4 callersFunctionsettle
(run: () => void)
src/lib/heic-decode.ts:126
↓ 4 callersFunctionsqlNum
(n)
scripts/migrate-coords-frame-to-image.mjs:185
↓ 4 callersFunctionsubMapLabel
( subMap: Pick<Venue["subMaps"][number], "label_zh" | "label_jp">, locale: Locale, )
src/i18n/index.ts:40
↓ 4 callersFunctionvenueAggregateRating
( summary: VenueRatingSummaryDto, )
src/lib/venue-rating.ts:159
↓ 4 callersFunctionxmlEscape
(value: string)
src/pages/sitemap.xml.ts:22
↓ 3 callersFunctionbuildVenuePhotosLd
(input: VenuePhotosLdInput)
src/lib/seo/jsonld-core.ts:115
↓ 3 callersFunctionemptyRatingSums
()
src/lib/venue-rating.ts:108
↓ 3 callersFunctionfind
(index: number)
src/lib/cluster.ts:103
↓ 3 callersFunctionfinishRestoring
()
src/islands/VenueTreeDrawer.tsx:65
↓ 3 callersFunctiongetViewerRatingRow
( db: Db, venueId: string, ipHash: string, )
src/server/ratings.ts:110
↓ 3 callersFunctiongetViewerScores
( db: Db, venueId: string, ipHash: string, )
src/server/ratings.ts:133
↓ 3 callersFunctionimageExists
( bucket: R2Bucket, key: string, )
src/server/r2/images.ts:56
↓ 3 callersFunctionisLocale
(value: string | undefined)
src/i18n/config.ts:8
↓ 3 callersFunctionjsonError
(message: string, status: number)
src/pages/api/photos.ts:18
↓ 3 callersFunctionjsonError
(code: AdminErrorCode, status: number)
src/pages/api/admin/photo-venues.ts:20
↓ 3 callersFunctionlocaleAlternatesForConfig
( pathname: string, siteUrl: string | URL, config: HreflangConfig<Locale>, )
src/lib/seo/hreflang-core.ts:39
↓ 3 callersFunctionlocalePath
(loc: Locale, rest: string)
src/pages/sitemap.xml.ts:18
↓ 3 callersFunctiononSelect
(subMapId: string)
src/islands/SubMapTabs.tsx:65
↓ 3 callersFunctionreadAgg
Authoritative post-write aggregate for response reconciliation.
src/server/ratings.ts:184
↓ 3 callersFunctionsummaryWith
(count: number)
src/lib/venue-rating.test.ts:109
↓ 3 callersFunctionvenueExtendedQuery
(query: string)
src/lib/venue-fuse.ts:30
↓ 3 callersFunctionverifyTurnstile
( secret: string, token: string, remoteIp?: string, )
src/server/turnstile.ts:37
↓ 2 callersFunctionaggSumAdd
(scores: RatingDimensionScores)
src/server/ratings.ts:68
↓ 2 callersFunctionapplyDimensionChange
( db: Db, venueId: string, ipHash: string, scores: RatingDimensionScores, now: number, )
src/server/ratings.ts:199
↓ 2 callersFunctionapplyTheme
Apply the resolved theme to <html> (mirrors the inline pre-paint script).
src/islands/ThemeToggle.tsx:19
↓ 2 callersFunctionb64url
base64url without padding (URL/JSON safe).
src/server/upload-ticket.ts:58
↓ 2 callersFunctionbuildBreadcrumbLd
(input: BreadcrumbLdInput)
src/lib/seo/jsonld-core.ts:71
↓ 2 callersFunctionbuildOrganizationLd
( siteUrl: string | URL, name: string, )
src/lib/seo/jsonld-core.ts:154
↓ 2 callersFunctionbuildWebsiteLd
( siteUrl: string | URL, locale: string, name: string, description: string, )
src/lib/seo/jsonld-core.ts:137
↓ 2 callersFunctionchangeExistingRating
* Dispatch for a viewer who ALREADY has a rating row, given their current * scores (already read by the caller — no extra round trip). One path share
src/server/ratings.ts:306
↓ 2 callersFunctionclamp01
(value: number)
src/lib/cluster.ts:156
↓ 2 callersFunctionclamp01
(n: number)
src/islands/upload/MarkSurface.tsx:273
↓ 2 callersFunctioncooldownKey
(scope: RateScope, ipHash: string)
src/server/rate-limit.ts:47
↓ 2 callersFunctiondayKey
( scope: RateScope, ipHash: string, now: number = Date.now(), )
src/server/rate-limit.ts:38
↓ 2 callersFunctiondispatchPhotoCountChange
(detail: PhotoCountChangeDetail)
src/lib/photos.ts:40
↓ 2 callersFunctionexecFile
(remote, filePath)
scripts/migrate-coords-frame-to-image.mjs:176
↓ 2 callersFunctionfallbackFramePct
( fraction: number, axis: "x" | "y", subMap: SubMap, )
src/islands/Seatmap.tsx:482
↓ 2 callersFunctionfetchAdminPhotos
( offset: number, limit: number, onlyDeleted: boolean, venueId?: string | null, signal?: AbortSignal
src/lib/admin-client.ts:67
↓ 2 callersFunctionformatBytes
(bytes: number)
src/lib/image-compress.ts:122
↓ 2 callersFunctionformatYMD
* Locale-appropriate absolute date. zh/ja render 年月日 literals * (shape-lightbox.md §8); en/ko (accessibility layer) use their own forms.
src/lib/format.ts:30
↓ 2 callersFunctionfromB64url
(s: string)
src/server/upload-ticket.ts:64
next →1–100 of 372, ranked by callers