Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yuri-NagaSaki/CattoPic
/ functions
Functions
342 in github.com/Yuri-NagaSaki/CattoPic
⨍
Functions
342
◇
Types & classes
127
↓ 1 callers
Function
errorMessage
(err: unknown)
worker/src/services/deletion.ts:8
↓ 1 callers
Function
estimateCardHeight
(image: Pick<ImageFile, 'width' | 'height' | 'orientation'>, columnWidth: number)
app/components/VirtualImageMasonry.tsx:24
↓ 1 callers
Method
extractApiKey
(authHeader: string | null)
worker/src/services/auth.ts:43
↓ 1 callers
Function
extractImagesBatch
( zipFile: File, imageEntries: ZipImageEntry[], batchSize: number = 50, onProgress?: (progress: Extrac
app/utils/zipProcessor.ts:109
↓ 1 callers
Function
fetchConfig
()
app/page.tsx:259
↓ 1 callers
Function
fetchConfig
()
app/components/RandomApiModal/index.tsx:39
↓ 1 callers
Function
fetchTags
()
app/components/UploadSection.tsx:73
↓ 1 callers
Function
formatFileSize
(bytes: number)
app/components/upload/PreviewSidebar.tsx:31
↓ 1 callers
Function
formatFileSize
(bytes: number)
app/components/upload/ImageSidebar.tsx:19
↓ 1 callers
Function
generateId
()
app/components/ToastContainer.tsx:7
↓ 1 callers
Function
generateId
* 生成唯一ID
app/utils/zipProcessor.ts:61
↓ 1 callers
Function
generateImageId
()
worker/src/utils/validation.ts:15
↓ 1 callers
Method
generatePaths
(id: string, orientation: 'landscape' | 'portrait', format: string)
worker/src/services/storage.ts:57
↓ 1 callers
Method
getAvifDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:150
↓ 1 callers
Function
getBestFormat
(acceptHeader: string | null | undefined)
worker/src/utils/validation.ts:91
↓ 1 callers
Function
getColumnWidth
(containerWidth: number, lanes: number)
app/components/VirtualImageMasonry.tsx:17
↓ 1 callers
Method
getContentType
(format: string)
worker/src/services/imageProcessor.ts:202
↓ 1 callers
Function
getFallbackAspectRatio
(orientation: string)
app/components/ImageCard.tsx:32
↓ 1 callers
Method
getGifDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:104
↓ 1 callers
Function
getHeaderBgClass
(phase: UploadPhase, errorCount: number)
app/components/upload/PreviewSidebar.tsx:59
↓ 1 callers
Function
getHeaderTitle
(phase: UploadPhase, totalFiles: number, completedCount: number, errorCount: number)
app/components/upload/PreviewSidebar.tsx:40
↓ 1 callers
Function
getIcon
()
app/components/Toast.tsx:33
↓ 1 callers
Method
getImageInfo
(data: ArrayBuffer)
worker/src/services/imageProcessor.ts:193
↓ 1 callers
Method
getImagePathsByTag
* 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 callers
Method
getImages
(filters: ImageFilters)
worker/src/services/metadata.ts:322
↓ 1 callers
Method
getJpegDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:78
↓ 1 callers
Function
getLaneCount
(containerWidth: number)
app/components/VirtualImageMasonry.tsx:10
↓ 1 callers
Function
getMimeType
* 根据文件名获取MIME类型
app/utils/zipProcessor.ts:45
↓ 1 callers
Function
getOptionLabel
()
app/components/ImageFilters.tsx:104
↓ 1 callers
Function
getOptions
()
app/components/ImageFilters.tsx:115
↓ 1 callers
Method
getPendingDeletionJobs
(limit = 100)
worker/src/services/metadata.ts:271
↓ 1 callers
Method
getPngDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:71
↓ 1 callers
Method
getRandomImage
(filters?: { tags?: string[]; exclude?: string[]; orientation?: string; })
worker/src/services/metadata.ts:383
↓ 1 callers
Function
getStatusColorClass
(status: FileUploadStatus)
app/components/upload/UploadStatusIndicator.tsx:118
↓ 1 callers
Function
getStatusText
(status: FileUploadStatus)
app/components/upload/UploadStatusIndicator.tsx:100
↓ 1 callers
Function
getTitle
()
app/components/Header.tsx:26
↓ 1 callers
Method
getWebpDimensions
(bytes: Uint8Array)
worker/src/services/imageProcessor.ts:111
↓ 1 callers
Function
handleAddTag
()
app/components/upload/TagSelector.tsx:37
↓ 1 callers
Function
handleClearKey
()
app/components/ApiKeyModal.tsx:70
↓ 1 callers
Function
handleClose
()
app/components/ImageModal.tsx:26
↓ 1 callers
Function
handleDelete
(tag: Tag)
app/components/TagManagement/index.tsx:67
↓ 1 callers
Function
handleQueueBatch
( batch: MessageBatch<QueueMessage>, env: Env )
worker/src/handlers/queue.ts:6
↓ 1 callers
Function
handleRemoveTag
(tag: string)
app/components/upload/TagSelector.tsx:27
↓ 1 callers
Function
initializeApiBaseUrl
()
app/utils/baseUrl.ts:12
↓ 1 callers
Method
input
(source: ReadableStream | ArrayBuffer | Blob)
worker/src/types.ts:3
↓ 1 callers
Method
invalidateAfterImageChange
(imageId?: string)
worker/src/services/cache.ts:91
↓ 1 callers
Method
invalidateByPrefix
(prefix: string)
worker/src/services/cache.ts:56
↓ 1 callers
Method
isAnimatedGif
* Detect if GIF is animated (has multiple frames)
worker/src/services/compression.ts:192
↓ 1 callers
Function
isImageFile
* 检查文件是否是支持的图片格式
app/utils/zipProcessor.ts:37
↓ 1 callers
Function
isImageListResponse
(value: unknown)
app/page.tsx:104
↓ 1 callers
Function
isImageListResponse
(value: unknown)
app/hooks/useImages.ts:300
↓ 1 callers
Function
isInfiniteData
(value: unknown)
app/page.tsx:95
↓ 1 callers
Function
isInfiniteImageList
(value: unknown)
app/hooks/useImages.ts:291
↓ 1 callers
Function
isMobileDevice
(userAgent: string | null | undefined)
worker/src/utils/validation.ts:80
↓ 1 callers
Method
isPreloaded
(url: string)
app/utils/imageQueue.ts:102
↓ 1 callers
Method
isRetryableTransformError
(err: unknown)
worker/src/services/compression.ts:30
↓ 1 callers
Method
isSupportedFormat
(format: string)
worker/src/services/imageProcessor.ts:228
↓ 1 callers
Function
isUploading
(phase: UploadPhase)
app/components/upload/PreviewSidebar.tsx:75
↓ 1 callers
Function
loadImage
()
app/components/ImagePreview.tsx:64
↓ 1 callers
Function
matchesFormat
(img: ImageFile)
app/page.tsx:141
↓ 1 callers
Function
parseCompressionOptions
(formData: FormData)
worker/src/services/compression.ts:217
↓ 1 callers
Function
parseRemotePatterns
(patterns)
next.config.mjs:18
↓ 1 callers
Method
preloadImage
(url: string)
app/utils/imageQueue.ts:58
↓ 1 callers
Method
processQueue
()
app/utils/imageQueue.ts:32
↓ 1 callers
Method
recordApiKeyUsage
(key: string)
worker/src/services/auth.ts:15
↓ 1 callers
Method
recordDeletionJobFailureForImages
(imageIds: string[], error: string)
worker/src/services/metadata.ts:251
↓ 1 callers
Function
removeApiKey
()
app/utils/auth.ts:20
↓ 1 callers
Method
renameTag
(oldName: string, newName: string)
worker/src/services/metadata.ts:474
↓ 1 callers
Function
renderZipUploadContent
()
app/components/UploadSection.tsx:229
↓ 1 callers
Method
response
()
worker/src/types.ts:35
↓ 1 callers
Method
saveImage
(metadata: ImageMetadata)
worker/src/services/metadata.ts:47
↓ 1 callers
Method
sleep
(ms: number)
worker/src/services/compression.ts:26
↓ 1 callers
Method
transform
(options: ImageTransformOptions)
worker/src/types.ts:7
↓ 1 callers
Function
uniqueById
(items: ImageFile[])
app/page.tsx:112
↓ 1 callers
Method
updateImage
(id: string, updates: ImageUpdateFields)
worker/src/services/metadata.ts:115
↓ 1 callers
Function
uploadOne
(item: { id: string; file: File })
app/utils/concurrentUpload.ts:46
↓ 1 callers
Function
useApiKey
()
app/hooks/useApiKey.ts:6
↓ 1 callers
Function
useInfiniteImages
(options: UseImagesOptions = {})
app/hooks/useImages.ts:84
↓ 1 callers
Function
useInvalidateImages
()
app/hooks/useImages.ts:404
↓ 1 callers
Function
useUploadState
()
app/hooks/useUploadState.ts:21
↓ 1 callers
Function
useZipUpload
()
app/hooks/useZipUpload.ts:69
↓ 1 callers
Method
validateApiKey
(key: string)
worker/src/services/auth.ts:5
↓ 1 callers
Function
validateImageListFormat
( value: string | null )
worker/src/utils/validation.ts:62
↓ 1 callers
Function
validateOrientation
(value: string | null)
worker/src/utils/validation.ts:48
Function
ApiKeyModal
({ isOpen, onClose, onSuccess }: ApiKeyModalProps)
app/components/ApiKeyModal.tsx:9
Function
ContextMenu
({ items, isOpen, x, y, onClose }: ContextMenuProps)
app/components/ContextMenu.tsx:28
Function
DeleteButton
({ image, onDelete }: DeleteButtonProps)
app/components/ImageDetail/DeleteButton.tsx:12
Function
DeleteConfirm
({ isDeleting, onCancel, onConfirm }: DeleteConfirmProps)
app/components/DeleteConfirm.tsx:9
Function
ExpirySelector
({ onChange }: ExpirySelectorProps)
app/components/ExpirySelector.tsx:10
Function
FormatSelector
({ value, onChange }: FormatSelectorProps)
app/components/RandomApiModal/FormatSelector.tsx:18
Function
GET
(request: Request)
app/favicon.ico/route.ts:1
Function
GET
()
app/api/config/route.ts:5
Function
Header
({ onApiKeyClick, onTagManageClick, onRandomApiClick, title, isKeyVerified = false }: HeaderProps)
app/components/Header.tsx:21
Function
Home
()
app/page.tsx:23
Function
ImageFilters
({ onFilterChange }: ImageFiltersProps)
app/components/ImageFilters.tsx:7
Function
ImageInfo
({ image }: ImageInfoProps)
app/components/ImageInfo.tsx:11
Function
ImageInfo
({ image }: ImageInfoProps)
app/components/ImageDetail/ImageInfo.tsx:9
Function
ImageModal
({ image, isOpen, onClose, onDelete }: ImageModalProps)
app/components/ImageModal.tsx:22
Function
ImagePreview
({ image, priority = false, onLoad, quality = 20 }: ImagePreviewProps)
app/components/ImagePreview.tsx:19
Function
ImagePreview
({ image }: ImagePreviewProps)
app/components/ImageDetail/ImagePreview.tsx:12
← previous
next →
101–200 of 342, ranked by callers