MCPcopy Create free account

hub / github.com/Yuri-NagaSaki/CattoPic / functions

Functions342 in github.com/Yuri-NagaSaki/CattoPic

↓ 36 callersFunctionerrorResponse
(error: string, status: number = 400)
worker/src/utils/response.ts:18
↓ 32 callersMethodget
(key: string)
worker/src/services/cache.ts:28
↓ 18 callersFunctionsuccessResponse
(data: T)
worker/src/utils/response.ts:14
↓ 17 callersFunctiongetFullUrl
(url: string)
app/utils/baseUrl.ts:51
↓ 13 callersMethodadd
(imageUrl: string, highPriority: boolean = false)
app/utils/imageQueue.ts:14
↓ 12 callersMethoddelete
(key: string)
worker/src/services/cache.ts:47
↓ 12 callersFunctionshowToast
(message: string, type: ToastType = "success")
app/components/ToastContainer.tsx:20
↓ 10 callersMethodlist
(prefix: string, limit?: number)
worker/src/services/storage.ts:26
↓ 10 callersMethodset
(key: string, value: T, ttlSeconds: number)
worker/src/services/cache.ts:37
↓ 8 callersFunctionsanitizeTagName
(tag: string)
worker/src/utils/validation.ts:22
↓ 7 callersFunctionhandleCopy
(text: string, type: string)
app/components/ImageUrls.tsx:157
↓ 7 callersMethodinvalidateTagsList
()
worker/src/services/cache.ts:86
↓ 6 callersFunctioncopyToClipboard
(text: string)
app/utils/copyImageUtils.ts:7
↓ 6 callersFunctiongetApiKey
()
app/utils/auth.ts:6
↓ 6 callersMethodinvalidateImagesList
()
worker/src/services/cache.ts:67
↓ 6 callersFunctiontoDeletionTarget
(id: string, paths: ImagePaths)
worker/src/services/deletion.ts:12
↓ 5 callersFunctionbuildImageUrls
(params: { baseUrl: string; image: Pick<ImageMetadata, 'format' | 'width' | 'height' | 'paths'>; options
worker/src/utils/imageTransform.ts:72
↓ 5 callersFunctionrequest
( endpoint: string, options: RequestOptions = {} )
app/utils/request.ts:8
↓ 4 callersMethoddeleteImagesWithDeletionJobs
(targets: ImageDeletionTarget[])
worker/src/services/metadata.ts:198
↓ 4 callersFunctiondispatchImageDeletions
( env: Env, targets: ImageDeletionTarget[], label = 'image' )
worker/src/services/deletion.ts:35
↓ 4 callersMethodenrichWithTags
(rows: ImageRow[])
worker/src/services/metadata.ts:665
↓ 4 callersMethodensureDeletionJobsSchema
()
worker/src/services/metadata.ts:25
↓ 4 callersMethodinvalidateImageDetails
(ids: string[])
worker/src/services/cache.ts:76
↓ 4 callersFunctionmatchesFilters
(image: ImageFile, tag: string, orientation: string, format: string)
app/hooks/useImages.ts:38
↓ 4 callersFunctionnotFoundResponse
(message: string = 'Not found')
worker/src/utils/response.ts:26
↓ 4 callersFunctionparseTags
(tagsString: string | null)
worker/src/utils/validation.ts:30
↓ 4 callersFunctionprocessImageDeletionTargets
( env: Env, targets: ImageDeletionTarget[] )
worker/src/services/deletion.ts:16
↓ 3 callersFunctionbuildPublicUrl
(baseUrl: string, key: string)
worker/src/utils/imageTransform.ts:23
↓ 3 callersFunctionclampInt
(value: unknown, min: number, max: number)
app/utils/cdnImage.ts:11
↓ 3 callersMethodinvalidateAfterTagChange
()
worker/src/services/cache.ts:100
↓ 3 callersMethodinvalidateImageDetail
(id: string)
worker/src/services/cache.ts:72
↓ 3 callersFunctionisValidUUID
(str: string)
worker/src/utils/validation.ts:3
↓ 3 callersFunctionparseNumber
(value: string | null, defaultValue: number)
worker/src/utils/validation.ts:38
↓ 3 callersFunctionparseNumber
(value: string | null, defaultValue: number)
worker/src/services/compression.ts:218
↓ 3 callersMethodrowToMetadata
(row: ImageRow, tags: string[])
worker/src/services/metadata.ts:641
↓ 3 callersFunctionsetApiKey
(apiKey: string)
app/utils/auth.ts:13
↓ 3 callersFunctiontoPositiveInt
(value: unknown, fallback: number)
worker/src/utils/imageTransform.ts:17
↓ 3 callersMethodupload
(key: string, data: ArrayBuffer | Uint8Array, contentType: string)
worker/src/services/storage.ts:7
↓ 2 callersFunctionbuildApiUrl
(endpoint: string)
app/utils/baseUrl.ts:41
↓ 2 callersFunctionbuildCdnCgiOptionsString
(options: { format: 'webp' | 'avif'; quality: number; width?: number; height?: number; fit?: 'scale-
worker/src/utils/imageTransform.ts:46
↓ 2 callersFunctionbuildTransformedUrl
(originalUrl: string, optionsString: string)
worker/src/utils/imageTransform.ts:67
↓ 2 callersFunctioncalculateDimensions
( width: number, height: number, maxWidth: number, maxHeight: number )
worker/src/utils/imageTransform.ts:29
↓ 2 callersMethodcalculateDimensions
* Calculate target dimensions while maintaining aspect ratio
worker/src/services/compression.ts:172
↓ 2 callersFunctionclampInt
(value: number, min: number, max: number)
worker/src/utils/imageTransform.ts:12
↓ 2 callersMethodcompressToFormat
* Compress image to specific format
worker/src/services/compression.ts:135
↓ 2 callersFunctionconcurrentUpload
(options: ConcurrentUploadOptions)
app/utils/concurrentUpload.ts:28
↓ 2 callersFunctioncopyToClipboard
(text: string)
app/utils/clipboard.ts:6
↓ 2 callersMethoddeleteMany
(keys: string[])
worker/src/services/storage.ts:21
↓ 2 callersMethoddetectFormat
(data: ArrayBuffer)
worker/src/services/imageProcessor.ts:14
↓ 2 callersFunctionensureApiBaseUrl
()
app/utils/baseUrl.ts:29
↓ 2 callersFunctionfetchTags
()
app/components/ImageFilters.tsx:40
↓ 2 callersFunctionformatFileSize
(bytes: number)
app/utils/imageUtils.ts:2
↓ 2 callersMethodgetAllTags
(options?: { limit?: number })
worker/src/services/metadata.ts:450
↓ 2 callersMethodgetExpiredImages
(limit = 100)
worker/src/services/metadata.ts:627
↓ 2 callersFunctiongetFormatLabel
(format: string)
app/utils/imageUtils.ts:10
↓ 2 callersMethodgetImage
(id: string)
worker/src/services/metadata.ts:92
↓ 2 callersMethodgetImageDimensions
(data: ArrayBuffer)
worker/src/services/imageProcessor.ts:50
↓ 2 callersFunctiongetOrientationLabel
(orientation: string)
app/utils/imageUtils.ts:23
↓ 2 callersFunctiongetTagState
(tag: string)
app/components/RandomApiModal/TagSelector.tsx:21
↓ 2 callersFunctionhandleFilterChange
( format: string, orientation: string, tag: string )
app/manage/page.tsx:94
↓ 2 callersFunctionisExpired
(expiryTime?: unknown)
worker/src/handlers/images.ts:17
↓ 2 callersFunctionjsonResponse
(data: T, status: number = 200)
worker/src/utils/response.ts:2
↓ 2 callersFunctionmergeFirstPage
(existing: ImageFile[], additions: ImageFile[], limit: number)
app/page.tsx:123
↓ 2 callersFunctionmergeFirstPageImages
( existing: ImageFile[], additions: ImageFile[], limit: number )
app/hooks/useImages.ts:62
↓ 2 callersFunctionnormalizeTagRouteParam
(raw: string | undefined)
worker/src/handlers/tags.ts:12
↓ 2 callersMethodoutput
(options: ImageOutputOptions)
worker/src/types.ts:8
↓ 2 callersFunctionprocessPendingDeletionJobs
(env: Env, limit = 100)
worker/src/services/deletion.ts:69
↓ 2 callersFunctiontoCdnCgiImageUrl
(inputUrl: string, options: CdnCgiImageOptions)
app/utils/cdnImage.ts:27
↓ 2 callersFunctionunauthorizedResponse
()
worker/src/utils/response.ts:22
↓ 2 callersFunctionupdateWidth
()
app/components/VirtualImageMasonry.tsx:160
↓ 2 callersFunctionupdateWidth
()
app/components/ImageSidebar.tsx:55
↓ 2 callersFunctionuseDeleteImage
()
app/hooks/useImages.ts:265
↓ 2 callersFunctionuseTags
()
app/hooks/useTags.ts:38
↓ 2 callersFunctionuseTheme
()
app/hooks/useTheme.ts:17
↓ 2 callersFunctionvalidateApiKey
(apiKey: string)
app/utils/auth.ts:27
↓ 2 callersMethodwithRetry
( label: string, fn: () => Promise<T>, options?: { attempts?: number; baseDelayMs?: number } )
worker/src/services/compression.ts:45
↓ 1 callersMethodaddToCache
(url: string, img: HTMLImageElement)
app/utils/imageQueue.ts:83
↓ 1 callersFunctionanalyzeZipFile
(zipFile: File)
app/utils/zipProcessor.ts:68
↓ 1 callersMethodbatchUpdateTags
(imageIds: string[], addTags: string[], removeTags: string[])
worker/src/services/metadata.ts:574
↓ 1 callersFunctionbuildHtmlImgTag
(url: string, altText: string)
app/utils/copyImageUtils.ts:54
↓ 1 callersFunctionbuildMarkdownLink
(url: string, altText: string)
app/utils/copyImageUtils.ts:47
↓ 1 callersFunctionbuildMarkdownLink
(url: string, filename: string)
app/utils/imageUtils.ts:68
↓ 1 callersFunctionbuildOptionsString
(options: CdnCgiImageOptions)
app/utils/cdnImage.ts:17
↓ 1 callersFunctioncanRemoveFile
(status: FileUploadStatus)
app/components/upload/PreviewSidebar.tsx:70
↓ 1 callersFunctioncheckApiKey
()
app/page.tsx:232
↓ 1 callersFunctionclampInt
(value: number, min: number, max: number)
worker/src/handlers/images.ts:12
↓ 1 callersMethodcompleteDeletionJobsForImages
(imageIds: string[])
worker/src/services/metadata.ts:237
↓ 1 callersMethodcompress
* Compress image to WebP and AVIF formats
worker/src/services/compression.ts:74
↓ 1 callersMethodcontentType
()
worker/src/types.ts:36
↓ 1 callersFunctioncopyAvifUrl
(image: ImageFile)
app/utils/copyImageUtils.ts:77
↓ 1 callersFunctioncopyHtmlImgTag
(image: ImageFile)
app/utils/copyImageUtils.ts:95
↓ 1 callersFunctioncopyMarkdownLink
(image: ImageFile)
app/utils/copyImageUtils.ts:85
↓ 1 callersFunctioncopyOriginalUrl
(image: ImageFile)
app/utils/copyImageUtils.ts:61
↓ 1 callersFunctioncopyWebpUrl
(image: ImageFile)
app/utils/copyImageUtils.ts:69
↓ 1 callersFunctioncorsResponse
()
worker/src/utils/response.ts:44
↓ 1 callersMethodcreateTag
(name: string)
worker/src/services/metadata.ts:468
↓ 1 callersMethoddelete
(key: string)
worker/src/services/storage.ts:17
↓ 1 callersMethoddeleteImageFilesBatch
(items: ImagePaths[])
worker/src/services/storage.ts:41
↓ 1 callersMethoddeleteTagWithImages
* Delete a tag and all images associated with it. * Uses subqueries to avoid exceeding SQLite/D1 variable limits.
worker/src/services/metadata.ts:560
↓ 1 callersMethoddetectOrientation
(width: number, height: number)
worker/src/services/imageProcessor.ts:188
next →1–100 of 342, ranked by callers