Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosZone/astro-koharu
/ functions
Functions
813 in github.com/cosZone/astro-koharu
⨍
Functions
813
◇
Types & classes
277
↓ 1 callers
Function
getFullFilePath
* Build the full file path from project path, content path, and post ID
src/components/EditButton.tsx:25
↓ 1 callers
Function
getHighlighter
* Get or create the Shiki highlighter singleton
cms/src/lib/markdown-render.ts:17
↓ 1 callers
Function
getIndentClass
* Indentation class based on heading level
cms/src/components/EditorTOC.tsx:22
↓ 1 callers
Function
getLqipGradient
(imagePath: string)
src/lib/lqip.ts:31
↓ 1 callers
Function
getLqipStyle
(imagePath: string)
src/lib/lqip.ts:55
↓ 1 callers
Function
getMarked
* Get or create the marked instance
cms/src/lib/markdown-render.ts:128
↓ 1 callers
Function
getMermaid
* Get or initialize mermaid
cms/src/lib/preview-enhancer.ts:151
↓ 1 callers
Function
getNonFeaturedPosts
(locale?: string)
src/lib/content/posts.ts:346
↓ 1 callers
Function
getOGData
(url: string)
cms/src/lib/og-service.ts:101
↓ 1 callers
Function
getPageviews
(config: UmamiStatsConfig)
src/lib/umami-stats.ts:76
↓ 1 callers
Function
getPlainText
* Extract plain text from markdown content using remark + strip-markdown * This AST-based approach is more reliable than regex
src/scripts/generateSimilarities.ts:157
↓ 1 callers
Function
getPlainText
(markdown: string)
src/scripts/generateSummaries.ts:110
↓ 1 callers
Function
getPostDescriptionWithSummary
(post: BlogPost, locale: string = defaultLocale, maxLength: number = 150)
src/lib/content/posts.ts:82
↓ 1 callers
Function
getPostSummary
(slug: string)
src/lib/content/posts.ts:62
↓ 1 callers
Function
getPreviewUrl
()
cms/src/components/PostEditor.tsx:328
↓ 1 callers
Function
getRelatedPostSlugs
(currentSlug: string, count: number = 5)
src/lib/content/similarities.ts:57
↓ 1 callers
Function
getRestoreBackupFile
()
scripts/koharu.tsx:110
↓ 1 callers
Function
getRestorePreview
(backupPath: string)
scripts/koharu/utils/restore-operations.ts:22
↓ 1 callers
Function
getSanitizeHtml
(html: string)
src/lib/sanitize.ts:3
↓ 1 callers
Function
getSeriesBySlug
(slug: string)
src/lib/content/posts.ts:317
↓ 1 callers
Function
getSeriesPosts
(post: BlogPost, locale?: string)
src/lib/content/posts.ts:239
↓ 1 callers
Function
getSessionStats
(config: UmamiStatsConfig)
src/lib/umami-stats.ts:35
↓ 1 callers
Function
getSlugToPostMap
(allPosts: BlogPost[])
src/lib/content/similarities.ts:11
↓ 1 callers
Function
getSource
Get the source element for parsing (hidden wrapper or the li itself)
src/lib/quiz/parse-quiz.ts:115
↓ 1 callers
Function
getStoredMode
()
src/store/player.ts:21
↓ 1 callers
Function
getTextClass
* Text size class based on heading level
cms/src/components/EditorTOC.tsx:36
↓ 1 callers
Function
getUpdateInfo
(targetTag?: string)
scripts/koharu/utils/update-operations.ts:179
↓ 1 callers
Function
getUpstreamRemoteUrl
()
scripts/koharu/utils/update-operations.ts:102
↓ 1 callers
Function
getVolumeIcon
(volume: number, muted: boolean)
src/components/markdown/shared/MediaControls.tsx:51
↓ 1 callers
Function
groupPortraitImages
* Group consecutive portrait images side by side
src/lib/image-enhancer.ts:172
↓ 1 callers
Function
handleClick
(e: React.MouseEvent<HTMLButtonElement>, index: number)
src/components/markdown/video-player/VideoPlaylist.tsx:39
↓ 1 callers
Function
handleClick
(e: React.MouseEvent<HTMLButtonElement>, globalIdx: number)
src/components/markdown/audio-player/PlayerPlaylist.tsx:57
↓ 1 callers
Function
handleClose
()
cms/src/components/CategoryMappingDialog.tsx:67
↓ 1 callers
Function
handleConfirm
()
scripts/koharu/restore.tsx:109
↓ 1 callers
Function
handleFilterChange
(key: BangumiCollectionType | 'all')
src/components/bangumi/BangumiCollection.tsx:76
↓ 1 callers
Function
handleRegenerate
(name: string)
cms/src/components/CategoryMappingDialog.tsx:82
↓ 1 callers
Function
handleSelect
(value: string)
scripts/koharu/restore.tsx:100
↓ 1 callers
Function
hasUpstreamMergeHistory
()
scripts/koharu/utils/update-operations.ts:400
↓ 1 callers
Function
hasUpstreamRemote
()
scripts/koharu/utils/update-operations.ts:94
↓ 1 callers
Function
highlightCode
* Highlight code using Shiki
cms/src/lib/markdown-render.ts:47
↓ 1 callers
Function
imagePathToKey
* Convert image path to LQIP key * @param imagePath Full path like /img/cover/1.webp * @returns Short key like cover/1.webp
src/lib/lqip.ts:22
↓ 1 callers
Function
initChristmasState
()
src/store/christmas.ts:43
↓ 1 callers
Function
initTwikoo
()
src/components/comment/providers/Twikoo.tsx:43
↓ 1 callers
Function
installDeps
(onOutput?: (data: string) => void)
scripts/koharu/utils/update-operations.ts:584
↓ 1 callers
Function
isBlogPost
(param: BlogPost | PostRef)
src/lib/route.ts:7
↓ 1 callers
Function
isCacheValid
(cache: SummariesCache, model: string)
src/scripts/generateSummaries.ts:106
↓ 1 callers
Function
isConsecutiveSibling
* Check if two elements are consecutive siblings (allowing text nodes between)
src/lib/image-enhancer.ts:228
↓ 1 callers
Function
isDeviceType
(value: string)
src/scripts/generateSimilarities.ts:86
↓ 1 callers
Function
isFeaturedSeriesItem
* Type guard to check if an unknown value is a valid FeaturedSeriesItem * @param value - The value to check * @returns true if the value is a valid
src/constants/site-config.ts:38
↓ 1 callers
Function
isInfographicBlock
(preElement: HTMLElement)
src/lib/content-enhancer-utils.ts:41
↓ 1 callers
Function
isMac
* Check if the current platform is Mac
src/hooks/useKeyboardShortcut.ts:73
↓ 1 callers
Function
isPathWithinDir
(targetPath: string, allowedDir: string)
scripts/koharu/utils/validation.ts:12
↓ 1 callers
Function
isReservedSlug
(slug: string)
src/constants/router.ts:58
↓ 1 callers
Function
isStandaloneLinkParagraph
(node: MarkdownNode)
src/lib/markdown/link-utils.ts:131
↓ 1 callers
Function
isStandaloneLinkToken
* Check if a paragraph token contains only a standalone link * Uses the token structure for reliable detection
cms/src/lib/marked-link-embed.ts:15
↓ 1 callers
Function
isValidTimezone
(timezone: string)
src/lib/timezone.ts:17
↓ 1 callers
Function
listPosts
(params?: ListPostsParams)
cms/src/lib/api.ts:162
↓ 1 callers
Function
listRecentTags
(limit = 5)
scripts/koharu/utils/update-operations.ts:627
↓ 1 callers
Function
loadCache
()
cms/src/lib/og-service.ts:35
↓ 1 callers
Function
loadCache
()
src/scripts/generateSummaries.ts:91
↓ 1 callers
Function
loadConfigForAstro
()
astro.config.mjs:37
↓ 1 callers
Function
loadOGData
()
cms/src/components/embed/LinkPreview.tsx:22
↓ 1 callers
Function
loadPost
()
cms/src/components/PostEditor.tsx:147
↓ 1 callers
Function
loadPosts
* Load and process all markdown files
src/scripts/generateSimilarities.ts:245
↓ 1 callers
Function
loadPosts
(files: string[])
src/scripts/generateSummaries.ts:206
↓ 1 callers
Function
loadReadIds
* Load read IDs from localStorage
src/store/announcement.ts:71
↓ 1 callers
Function
loadSiteConfig
()
cms/server.ts:41
↓ 1 callers
Function
loadSummaries
* Load AI-generated summaries from file
src/scripts/generateSimilarities.ts:119
↓ 1 callers
Function
lockHeadingTo
(id: string)
src/lib/heading-scroll-lock.ts:16
↓ 1 callers
Function
main
()
cms/server.ts:51
↓ 1 callers
Function
main
()
src/scripts/generateSimilarities.ts:322
↓ 1 callers
Function
main
()
src/scripts/generateLqips.ts:87
↓ 1 callers
Function
main
()
src/scripts/generateSummaries.ts:220
↓ 1 callers
Function
markdownToBlocks
* Converts markdown to BlockNote blocks
cms/src/components/PostEditor.tsx:100
↓ 1 callers
Function
matchesShortcut
* Check if event matches the shortcut
src/hooks/useKeyboardShortcut.ts:81
↓ 1 callers
Function
mergeUpstream
(options: MergeOptions = {})
scripts/koharu/utils/update-operations.ts:425
↓ 1 callers
Function
navigateImage
(direction: 1 | -1)
src/store/modal.ts:129
↓ 1 callers
Function
navigateToSelected
()
src/hooks/useSearchKeyboardNav.ts:73
↓ 1 callers
Function
normalize
* Normalizes a vector to unit length (L2 norm == 1) * This makes cosine similarity a simple dot product
src/scripts/generateSimilarities.ts:135
↓ 1 callers
Function
normalizeFeaturedSeries
* Normalize featured series config to array format * Supports both legacy single object and new array format * Validates all series configurations a
src/constants/site-config.ts:71
↓ 1 callers
Function
normalizeHexColor
(color: string)
src/lib/utils.ts:104
↓ 1 callers
Function
normalizeNavSlug
(path: string)
src/lib/utils.ts:31
↓ 1 callers
Function
normalizePath
Normalize path to strip trailing slash for consistent Umami matching
src/lib/umami-stats.ts:108
↓ 1 callers
Function
normalizeUrl
(url: string | undefined)
src/lib/utils.ts:128
↓ 1 callers
Function
notifyListeners
()
src/hooks/useCurrentHeading.ts:43
↓ 1 callers
Function
onError
()
src/hooks/useMediaPlayer.ts:124
↓ 1 callers
Function
openImageLightbox
* Open image in React lightbox via custom event
src/lib/image-enhancer.ts:51
↓ 1 callers
Function
openInEditor
* Open a file in the specified editor
src/components/EditButton.tsx:42
↓ 1 callers
Function
parseArgs
* Parse CLI arguments * Supported: --device <value>
src/scripts/generateSimilarities.ts:94
↓ 1 callers
Function
parseArgs
()
src/scripts/generateSummaries.ts:42
↓ 1 callers
Function
parseArgs
(argv: string[] = process.argv.slice(2))
scripts/koharu/utils/args.ts:33
↓ 1 callers
Function
parseBackupManifest
(manifest: string)
scripts/koharu/utils/backup.ts:23
↓ 1 callers
Function
parseCommand
Parse command meta: "prompt":startLine-endLine,...
src/lib/markdown/shiki-meta-transformer.ts:69
↓ 1 callers
Function
parseDateInSiteTimezone
(dateString: string)
src/lib/date.ts:89
↓ 1 callers
Function
parseInlineStyles
* Parse inline style string to React CSSProperties
src/components/markdown/CodeBlockFullscreen.tsx:20
↓ 1 callers
Function
parseLrc
(lrcText: string)
src/components/markdown/audio-player/LrcParser.ts:16
↓ 1 callers
Function
parseMeta
Parse meta string into structured data
src/lib/markdown/shiki-meta-transformer.ts:25
↓ 1 callers
Function
parseMusicUrl
(url: string)
src/lib/meting.ts:38
↓ 1 callers
Function
parsePostFile
* Converts a post file to PostListItem
cms/src/api/list.ts:102
↓ 1 callers
Function
parseQuizElement
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:120
← previous
next →
301–400 of 813, ranked by callers