MCPcopy Create free account

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

Functions342 in github.com/Yuri-NagaSaki/CattoPic

↓ 1 callersFunctionerrorMessage
(err: unknown)
worker/src/services/deletion.ts:8
↓ 1 callersFunctionestimateCardHeight
(image: Pick<ImageFile, 'width' | 'height' | 'orientation'>, columnWidth: number)
app/components/VirtualImageMasonry.tsx:24
↓ 1 callersMethodextractApiKey
(authHeader: string | null)
worker/src/services/auth.ts:43
↓ 1 callersFunctionextractImagesBatch
( zipFile: File, imageEntries: ZipImageEntry[], batchSize: number = 50, onProgress?: (progress: Extrac
app/utils/zipProcessor.ts:109
↓ 1 callersFunctionfetchConfig
()
app/page.tsx:259
↓ 1 callersFunctionfetchConfig
()
app/components/RandomApiModal/index.tsx:39
↓ 1 callersFunctionfetchTags
()
app/components/UploadSection.tsx:73
↓ 1 callersFunctionformatFileSize
(bytes: number)
app/components/upload/PreviewSidebar.tsx:31
↓ 1 callersFunctionformatFileSize
(bytes: number)
app/components/upload/ImageSidebar.tsx:19
↓ 1 callersFunctiongenerateId
()
app/components/ToastContainer.tsx:7
↓ 1 callersFunctiongenerateId
* 生成唯一ID
app/utils/zipProcessor.ts:61
↓ 1 callersFunctiongenerateImageId
()
worker/src/utils/validation.ts:15
↓ 1 callersMethodgeneratePaths
(id: string, orientation: 'landscape' | 'portrait', format: string)
worker/src/services/storage.ts:57
↓ 1 callersMethodgetAvifDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:150
↓ 1 callersFunctiongetBestFormat
(acceptHeader: string | null | undefined)
worker/src/utils/validation.ts:91
↓ 1 callersFunctiongetColumnWidth
(containerWidth: number, lanes: number)
app/components/VirtualImageMasonry.tsx:17
↓ 1 callersMethodgetContentType
(format: string)
worker/src/services/imageProcessor.ts:202
↓ 1 callersFunctiongetFallbackAspectRatio
(orientation: string)
app/components/ImageCard.tsx:32
↓ 1 callersMethodgetGifDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:104
↓ 1 callersFunctiongetHeaderBgClass
(phase: UploadPhase, errorCount: number)
app/components/upload/PreviewSidebar.tsx:59
↓ 1 callersFunctiongetHeaderTitle
(phase: UploadPhase, totalFiles: number, completedCount: number, errorCount: number)
app/components/upload/PreviewSidebar.tsx:40
↓ 1 callersFunctiongetIcon
()
app/components/Toast.tsx:33
↓ 1 callersMethodgetImageInfo
(data: ArrayBuffer)
worker/src/services/imageProcessor.ts:193
↓ 1 callersMethodgetImagePathsByTag
* Get minimal image info needed for deleting files, without loading tag lists. * This avoids large IN(...) placeholder lists which can exceed D1's
worker/src/services/metadata.ts:525
↓ 1 callersMethodgetImages
(filters: ImageFilters)
worker/src/services/metadata.ts:322
↓ 1 callersMethodgetJpegDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:78
↓ 1 callersFunctiongetLaneCount
(containerWidth: number)
app/components/VirtualImageMasonry.tsx:10
↓ 1 callersFunctiongetMimeType
* 根据文件名获取MIME类型
app/utils/zipProcessor.ts:45
↓ 1 callersFunctiongetOptionLabel
()
app/components/ImageFilters.tsx:104
↓ 1 callersFunctiongetOptions
()
app/components/ImageFilters.tsx:115
↓ 1 callersMethodgetPendingDeletionJobs
(limit = 100)
worker/src/services/metadata.ts:271
↓ 1 callersMethodgetPngDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:71
↓ 1 callersMethodgetRandomImage
(filters?: { tags?: string[]; exclude?: string[]; orientation?: string; })
worker/src/services/metadata.ts:383
↓ 1 callersFunctiongetStatusColorClass
(status: FileUploadStatus)
app/components/upload/UploadStatusIndicator.tsx:118
↓ 1 callersFunctiongetStatusText
(status: FileUploadStatus)
app/components/upload/UploadStatusIndicator.tsx:100
↓ 1 callersFunctiongetTitle
()
app/components/Header.tsx:26
↓ 1 callersMethodgetWebpDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:111
↓ 1 callersFunctionhandleAddTag
()
app/components/upload/TagSelector.tsx:37
↓ 1 callersFunctionhandleClearKey
()
app/components/ApiKeyModal.tsx:70
↓ 1 callersFunctionhandleClose
()
app/components/ImageModal.tsx:26
↓ 1 callersFunctionhandleDelete
(tag: Tag)
app/components/TagManagement/index.tsx:67
↓ 1 callersFunctionhandleQueueBatch
( batch: MessageBatch<QueueMessage>, env: Env )
worker/src/handlers/queue.ts:6
↓ 1 callersFunctionhandleRemoveTag
(tag: string)
app/components/upload/TagSelector.tsx:27
↓ 1 callersFunctioninitializeApiBaseUrl
()
app/utils/baseUrl.ts:12
↓ 1 callersMethodinput
(source: ReadableStream | ArrayBuffer | Blob)
worker/src/types.ts:3
↓ 1 callersMethodinvalidateAfterImageChange
(imageId?: string)
worker/src/services/cache.ts:91
↓ 1 callersMethodinvalidateByPrefix
(prefix: string)
worker/src/services/cache.ts:56
↓ 1 callersMethodisAnimatedGif
* Detect if GIF is animated (has multiple frames)
worker/src/services/compression.ts:192
↓ 1 callersFunctionisImageFile
* 检查文件是否是支持的图片格式
app/utils/zipProcessor.ts:37
↓ 1 callersFunctionisImageListResponse
(value: unknown)
app/page.tsx:104
↓ 1 callersFunctionisImageListResponse
(value: unknown)
app/hooks/useImages.ts:300
↓ 1 callersFunctionisInfiniteData
(value: unknown)
app/page.tsx:95
↓ 1 callersFunctionisInfiniteImageList
(value: unknown)
app/hooks/useImages.ts:291
↓ 1 callersFunctionisMobileDevice
(userAgent: string | null | undefined)
worker/src/utils/validation.ts:80
↓ 1 callersMethodisPreloaded
(url: string)
app/utils/imageQueue.ts:102
↓ 1 callersMethodisRetryableTransformError
(err: unknown)
worker/src/services/compression.ts:30
↓ 1 callersMethodisSupportedFormat
(format: string)
worker/src/services/imageProcessor.ts:228
↓ 1 callersFunctionisUploading
(phase: UploadPhase)
app/components/upload/PreviewSidebar.tsx:75
↓ 1 callersFunctionloadImage
()
app/components/ImagePreview.tsx:64
↓ 1 callersFunctionmatchesFormat
(img: ImageFile)
app/page.tsx:141
↓ 1 callersFunctionparseCompressionOptions
(formData: FormData)
worker/src/services/compression.ts:217
↓ 1 callersFunctionparseRemotePatterns
(patterns)
next.config.mjs:18
↓ 1 callersMethodpreloadImage
(url: string)
app/utils/imageQueue.ts:58
↓ 1 callersMethodprocessQueue
()
app/utils/imageQueue.ts:32
↓ 1 callersMethodrecordApiKeyUsage
(key: string)
worker/src/services/auth.ts:15
↓ 1 callersMethodrecordDeletionJobFailureForImages
(imageIds: string[], error: string)
worker/src/services/metadata.ts:251
↓ 1 callersFunctionremoveApiKey
()
app/utils/auth.ts:20
↓ 1 callersMethodrenameTag
(oldName: string, newName: string)
worker/src/services/metadata.ts:474
↓ 1 callersFunctionrenderZipUploadContent
()
app/components/UploadSection.tsx:229
↓ 1 callersMethodresponse
()
worker/src/types.ts:35
↓ 1 callersMethodsaveImage
(metadata: ImageMetadata)
worker/src/services/metadata.ts:47
↓ 1 callersMethodsleep
(ms: number)
worker/src/services/compression.ts:26
↓ 1 callersMethodtransform
(options: ImageTransformOptions)
worker/src/types.ts:7
↓ 1 callersFunctionuniqueById
(items: ImageFile[])
app/page.tsx:112
↓ 1 callersMethodupdateImage
(id: string, updates: ImageUpdateFields)
worker/src/services/metadata.ts:115
↓ 1 callersFunctionuploadOne
(item: { id: string; file: File })
app/utils/concurrentUpload.ts:46
↓ 1 callersFunctionuseApiKey
()
app/hooks/useApiKey.ts:6
↓ 1 callersFunctionuseInfiniteImages
(options: UseImagesOptions = {})
app/hooks/useImages.ts:84
↓ 1 callersFunctionuseInvalidateImages
()
app/hooks/useImages.ts:404
↓ 1 callersFunctionuseUploadState
()
app/hooks/useUploadState.ts:21
↓ 1 callersFunctionuseZipUpload
()
app/hooks/useZipUpload.ts:69
↓ 1 callersMethodvalidateApiKey
(key: string)
worker/src/services/auth.ts:5
↓ 1 callersFunctionvalidateImageListFormat
( value: string | null )
worker/src/utils/validation.ts:62
↓ 1 callersFunctionvalidateOrientation
(value: string | null)
worker/src/utils/validation.ts:48
FunctionApiKeyModal
({ isOpen, onClose, onSuccess }: ApiKeyModalProps)
app/components/ApiKeyModal.tsx:9
FunctionContextMenu
({ items, isOpen, x, y, onClose }: ContextMenuProps)
app/components/ContextMenu.tsx:28
FunctionDeleteButton
({ image, onDelete }: DeleteButtonProps)
app/components/ImageDetail/DeleteButton.tsx:12
FunctionDeleteConfirm
({ isDeleting, onCancel, onConfirm }: DeleteConfirmProps)
app/components/DeleteConfirm.tsx:9
FunctionExpirySelector
({ onChange }: ExpirySelectorProps)
app/components/ExpirySelector.tsx:10
FunctionFormatSelector
({ value, onChange }: FormatSelectorProps)
app/components/RandomApiModal/FormatSelector.tsx:18
FunctionGET
(request: Request)
app/favicon.ico/route.ts:1
FunctionGET
()
app/api/config/route.ts:5
FunctionHeader
({ onApiKeyClick, onTagManageClick, onRandomApiClick, title, isKeyVerified = false }: HeaderProps)
app/components/Header.tsx:21
FunctionHome
()
app/page.tsx:23
FunctionImageFilters
({ onFilterChange }: ImageFiltersProps)
app/components/ImageFilters.tsx:7
FunctionImageInfo
({ image }: ImageInfoProps)
app/components/ImageInfo.tsx:11
FunctionImageInfo
({ image }: ImageInfoProps)
app/components/ImageDetail/ImageInfo.tsx:9
FunctionImageModal
({ image, isOpen, onClose, onDelete }: ImageModalProps)
app/components/ImageModal.tsx:22
FunctionImagePreview
({ image, priority = false, onLoad, quality = 20 }: ImagePreviewProps)
app/components/ImagePreview.tsx:19
FunctionImagePreview
({ image }: ImagePreviewProps)
app/components/ImageDetail/ImagePreview.tsx:12
← previousnext →101–200 of 342, ranked by callers