MCPcopy Create free account

hub / github.com/cosZone/astro-koharu / functions

Functions813 in github.com/cosZone/astro-koharu

↓ 2 callersFunctionextractLanguage
* Extract language from code block wrapper
cms/src/lib/preview-enhancer.ts:100
↓ 2 callersFunctionextractLanguage
(preElement: HTMLElement)
src/lib/content-enhancer-utils.ts:10
↓ 2 callersFunctionextractTextFromMarkdown
(content: string, maxLength: number = 150)
src/lib/sanitize.ts:41
↓ 2 callersFunctionextractTweetId
(url: string)
src/lib/markdown/link-utils.ts:29
↓ 2 callersFunctionfetchOGData
(url: string)
cms/src/lib/og-service.ts:74
↓ 2 callersFunctionfetchUserCollections
( userId: string, subjectType: BangumiSubjectType, limit = API_PAGE_SIZE, offset = 0, )
src/lib/bangumi/api.ts:4
↓ 2 callersFunctionfindLastHeadingAboveOffset
()
src/hooks/useCurrentHeading.ts:58
↓ 2 callersFunctionformatDate
* Formats a Date to YYYY-MM-DD HH:mm:ss string
cms/src/components/FrontmatterEditor.tsx:31
↓ 2 callersFunctionformatTime
(seconds: number)
src/components/markdown/audio-player/utils.ts:1
↓ 2 callersFunctiongenerateLinkPreviewHTML
* Generate HTML for link preview card
src/lib/markdown/remark-link-embed.ts:273
↓ 2 callersFunctiongetAnnouncementIcon
(announcement: Announcement)
src/components/announcement/AnnouncementToaster.tsx:37
↓ 2 callersFunctiongetCachePath
* Get cache file path
cms/src/api/og-data.ts:53
↓ 2 callersFunctiongetCachedOGData
(url: string)
cms/src/lib/og-service.ts:51
↓ 2 callersFunctiongetCategoryArr
(categories?: string[] | string)
src/lib/content/category-path.ts:27
↓ 2 callersFunctiongetCategoryMap
()
cms/src/lib/category.ts:23
↓ 2 callersFunctiongetDistance
(t1: Touch, t2: Touch)
src/hooks/useZoomPan.ts:107
↓ 2 callersFunctiongetFeaturedCategoryNames
()
src/lib/content/posts.ts:338
↓ 2 callersFunctiongetLockedHeadingId
()
src/lib/heading-scroll-lock.ts:31
↓ 2 callersFunctiongetMeta
(raw: string | undefined)
src/lib/markdown/shiki-meta-transformer.ts:85
↓ 2 callersFunctiongetModeLabel
根据更新模式获取操作标签
scripts/koharu/update.tsx:15
↓ 2 callersFunctiongetNonDefaultLocaleGlobs
()
src/scripts/locale-filter.ts:11
↓ 2 callersFunctiongetParentIds
(heading: Heading)
src/hooks/useHeadingTree.ts:166
↓ 2 callersFunctiongetPostLastCategory
(post: BlogPost)
src/lib/content/posts.ts:188
↓ 2 callersFunctiongetSiblingIds
(targetHeading: Heading, allHeadings: Heading[])
src/hooks/useHeadingTree.ts:179
↓ 2 callersFunctiongetSlugLocaleInfo
(slug: string)
src/lib/content/locale.ts:32
↓ 2 callersFunctiongetTheme
()
src/components/comment/providers/Giscus.tsx:15
↓ 2 callersFunctiongetThreshold
()
src/hooks/useScrollTrigger.ts:90
↓ 2 callersFunctiongetVersionInfo
* 获取目标版本信息用于 commit message
scripts/koharu/utils/update-operations.ts:273
↓ 2 callersFunctionhandleComplete
()
scripts/koharu.tsx:91
↓ 2 callersFunctionhandleImageError
(img: HTMLImageElement)
src/lib/image-enhancer.ts:159
↓ 2 callersFunctionhandleImageError
* Handle image load error
src/lib/link-preview-enhancer.ts:36
↓ 2 callersFunctionhandleImageLoaded
(img: HTMLImageElement)
src/lib/image-enhancer.ts:138
↓ 2 callersFunctionhandleScroll
()
src/hooks/useScrollTrigger.ts:110
↓ 2 callersFunctionhandleSubmit
(paths: string[])
scripts/koharu/clean.tsx:38
↓ 2 callersFunctionhasUpstreamTrackingRef
()
scripts/koharu/utils/update-operations.ts:98
↓ 2 callersFunctioninterpolate
Replace `{param}` placeholders in a string with provided values.
src/i18n/utils.ts:14
↓ 2 callersFunctionisExternalImage
(imagePath: string)
src/lib/lqip.ts:47
↓ 2 callersFunctionisLocaleSupported
(code: string)
src/i18n/config.ts:44
↓ 2 callersFunctionisPathWithinBackupDir
(targetPath: string)
scripts/koharu/utils/validation.ts:21
↓ 2 callersFunctionisUserContent
* 判断文件是否属于用户内容
scripts/koharu/utils/update-operations.ts:295
↓ 2 callersFunctionisValidBackupFile
(filePath: string)
scripts/koharu/utils/validation.ts:30
↓ 2 callersFunctionisValidUrl
(url: string)
scripts/koharu/utils/new-operations.ts:274
↓ 2 callersFunctionlistTarEntries
(archivePath: string)
scripts/koharu/utils/tar.ts:32
↓ 2 callersFunctionload
()
src/hooks/useBangumiData.ts:39
↓ 2 callersFunctionloadCache
* Load cache from file
cms/src/api/og-data.ts:60
↓ 2 callersFunctionloadCache
* Load cache from file system
src/lib/markdown/remark-link-embed.ts:46
↓ 2 callersFunctionloadSiteConfig
()
scripts/koharu/utils/new-operations.ts:29
↓ 2 callersFunctionmarkAsRead
(id: string)
src/store/announcement.ts:97
↓ 2 callersFunctionnormalizeRemoteUrl
(url: string)
scripts/koharu/utils/update-operations.ts:47
↓ 2 callersFunctionnormalizeTag
(tag: string)
src/lib/content/tags.ts:11
↓ 2 callersFunctionparseDate
* Parses a date string to Date object
cms/src/components/FrontmatterEditor.tsx:41
↓ 2 callersFunctionparseLocalDate
* Parses a date string in "YYYY-MM-DD HH:mm:ss" format as local time * Also supports ISO 8601 format for backward compatibility with existing files
cms/src/api/list.ts:68
↓ 2 callersFunctionprocessContainers
* Process container syntax (:::, +++, ;;;) and Hexo tags in raw markdown text. * Returns the text with containers/tags replaced by HTML blocks.
src/lib/markdown/shoka-preprocessor.ts:40
↓ 2 callersFunctionprocessLine
* 处理单行markdown文本
src/lib/sanitize.ts:145
↓ 2 callersFunctionprocessOutsideProtectedRegions
* Split text into protected and unprotected segments, applying `fn` only to unprotected parts. * Protected regions: code fences (```/~~~), inline cod
src/lib/markdown/shoka-preprocessor.ts:328
↓ 2 callersFunctionresolvePlaylist
(urls: string[], apiUrl?: string)
src/lib/meting.ts:107
↓ 2 callersFunctionrestoreBackup
(backupPath: string)
scripts/koharu/utils/restore-operations.ts:51
↓ 2 callersFunctionrunBackup
(isFullBackup: boolean, onProgress?: (results: BackupResult[]) => void)
scripts/koharu/utils/backup-operations.ts:32
↓ 2 callersFunctionrunGenerate
(type: GenerateType, options: GenerateOptions = {})
scripts/koharu/utils/generate-operations.ts:64
↓ 2 callersFunctionsafeParseDateString
* Safely parses a date string with fallback handling * * Supports multiple formats: * - "yyyy-MM-dd HH:mm:ss" (local time format) * - ISO 8601 for
cms/src/lib/api.ts:37
↓ 2 callersFunctionscheduleGrouping
()
src/lib/image-enhancer.ts:95
↓ 2 callersFunctionscroll
(direction: 'left' | 'right')
src/components/ui/ScrollableRow.tsx:43
↓ 2 callersFunctionselectResult
(index: number)
src/hooks/useSearchKeyboardNav.ts:47
↓ 2 callersFunctionsetupObserver
()
src/hooks/useActiveHeading.ts:75
↓ 2 callersFunctionsetupObserver
()
src/hooks/useCurrentHeading.ts:111
↓ 2 callersFunctionstringToCategories
* Parses categories string to array
cms/src/components/FrontmatterEditor.tsx:67
↓ 2 callersFunctiontarExtractManifest
(archivePath: string)
scripts/koharu/utils/tar.ts:48
↓ 2 callersFunctiontoggleModal
(type: ModalType)
src/store/modal.ts:105
↓ 2 callersFunctionuseActiveHeading
({ offsetTop = 120 }: UseActiveHeadingOptions = {})
src/hooks/useActiveHeading.ts:196
↓ 2 callersFunctionuseAudioPlayer
(tracks: MetingSong[])
src/hooks/useAudioPlayer.ts:13
↓ 2 callersFunctionuseExpandedState
({ headings, activeId, defaultExpanded = false, }: UseExpandedStateOptions)
src/hooks/useExpandedState.ts:64
↓ 2 callersFunctionuseFloatingUI
({ placement = 'bottom', offset = 8, enableFlip = true, enableShift = true, autoUpdate: enableAutoUp
src/hooks/useFloatingUI.ts:82
↓ 2 callersFunctionuseHeadingClickHandler
({ headings, setExpandedIds }: UseHeadingClickHandlerOptions)
src/hooks/useHeadingClickHandler.ts:45
↓ 2 callersFunctionuseHeadingTree
()
src/hooks/useHeadingTree.ts:72
↓ 2 callersFunctionuseMediaPlayer
({ tracks, getUrl, getElement }: UseMediaPlayerOptions<T>)
src/hooks/useMediaPlayer.ts:39
↓ 2 callersFunctionusePlaybackFormattedTime
(timeStore: PlaybackTimeStore)
src/hooks/usePlaybackTime.ts:84
↓ 2 callersFunctionuseStepFlow
({ initialStep, inputSteps, onComplete, showReturnHint = false, autoExitDelay = AUTO_EXIT_DELAY, n
scripts/koharu/hooks/useStepFlow.ts:17
↓ 2 callersFunctionuseZoomPan
(enabled = true)
src/hooks/useZoomPan.ts:33
↓ 1 callersFunctionabortMerge
()
scripts/koharu/utils/update-operations.ts:560
↓ 1 callersFunctionabortRebase
()
scripts/koharu/utils/update-operations.ts:572
↓ 1 callersFunctionaddUpstreamRemote
()
scripts/koharu/utils/update-operations.ts:109
↓ 1 callersFunctionappendFriend
(data: FriendData)
scripts/koharu/utils/new-operations.ts:235
↓ 1 callersFunctionautoResolveUserContent
* 对用户内容文件自动使用 --ours 解决冲突 * 如果 checkout 成功但 add 失败,用 checkout -m 恢复冲突状态 * @returns 解决失败的文件列表
scripts/koharu/utils/update-operations.ts:320
↓ 1 callersFunctionbuildAttrString
Parse attr tokens (.class, #id, key=value) into an HTML attribute string
src/lib/markdown/remark-shoka-effects.ts:24
↓ 1 callersFunctionbuildEditorUrl
(editor: EditorConfig, filePath: string, line = 1, column = 1)
cms/src/lib/editor-url.ts:58
↓ 1 callersFunctionbuildEditorUrl
* Build the editor URL from template and file path
src/components/EditButton.tsx:35
↓ 1 callersFunctionbuildFilePath
(projectRoot: string, postId: string)
cms/src/lib/editor-url.ts:41
↓ 1 callersFunctionbuildHeadingTree
* Build hierarchical structure from flat heading list
src/hooks/useHeadingTree.ts:36
↓ 1 callersFunctionbuildOptionMap
* Build OptionMap from options array * Creates a doubly-linked list structure for efficient navigation
scripts/koharu/components/cycle-select/useCycleSelectState.ts:15
↓ 1 callersFunctionbuildTagPath
(tag: string)
src/lib/content/tags.ts:24
↓ 1 callersFunctionbuildTree
()
src/hooks/useHeadingTree.ts:76
↓ 1 callersFunctioncalculateStats
* Calculates statistics from all posts
cms/src/api/list.ts:202
↓ 1 callersFunctioncategoriesToString
* Formats categories array to string
cms/src/components/FrontmatterEditor.tsx:55
↓ 1 callersFunctioncheck
()
scripts/koharu/generate.tsx:137
↓ 1 callersFunctioncheckApiRunning
()
src/scripts/generateSummaries.ts:132
↓ 1 callersFunctioncheckGitStatus
()
scripts/koharu/utils/update-operations.ts:78
↓ 1 callersFunctioncheckLlmServer
()
scripts/koharu/utils/generate-operations.ts:49
↓ 1 callersFunctioncheckTheme
()
cms/src/components/embed/CodePenEmbed.tsx:23
↓ 1 callersFunctioncheckTheme
()
cms/src/components/embed/TweetEmbed.tsx:22
↓ 1 callersFunctionclassifyConflicts
* 将冲突文件分为用户内容和主题文件
scripts/koharu/utils/update-operations.ts:302
← previousnext →101–200 of 813, ranked by callers