MCPcopy Create free account

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

Functions813 in github.com/cosZone/astro-koharu

↓ 1 callersFunctiongetFullFilePath
* Build the full file path from project path, content path, and post ID
src/components/EditButton.tsx:25
↓ 1 callersFunctiongetHighlighter
* Get or create the Shiki highlighter singleton
cms/src/lib/markdown-render.ts:17
↓ 1 callersFunctiongetIndentClass
* Indentation class based on heading level
cms/src/components/EditorTOC.tsx:22
↓ 1 callersFunctiongetLqipGradient
(imagePath: string)
src/lib/lqip.ts:31
↓ 1 callersFunctiongetLqipStyle
(imagePath: string)
src/lib/lqip.ts:55
↓ 1 callersFunctiongetMarked
* Get or create the marked instance
cms/src/lib/markdown-render.ts:128
↓ 1 callersFunctiongetMermaid
* Get or initialize mermaid
cms/src/lib/preview-enhancer.ts:151
↓ 1 callersFunctiongetNonFeaturedPosts
(locale?: string)
src/lib/content/posts.ts:346
↓ 1 callersFunctiongetOGData
(url: string)
cms/src/lib/og-service.ts:101
↓ 1 callersFunctiongetPageviews
(config: UmamiStatsConfig)
src/lib/umami-stats.ts:76
↓ 1 callersFunctiongetPlainText
* 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 callersFunctiongetPlainText
(markdown: string)
src/scripts/generateSummaries.ts:110
↓ 1 callersFunctiongetPostDescriptionWithSummary
(post: BlogPost, locale: string = defaultLocale, maxLength: number = 150)
src/lib/content/posts.ts:82
↓ 1 callersFunctiongetPostSummary
(slug: string)
src/lib/content/posts.ts:62
↓ 1 callersFunctiongetPreviewUrl
()
cms/src/components/PostEditor.tsx:328
↓ 1 callersFunctiongetRelatedPostSlugs
(currentSlug: string, count: number = 5)
src/lib/content/similarities.ts:57
↓ 1 callersFunctiongetRestoreBackupFile
()
scripts/koharu.tsx:110
↓ 1 callersFunctiongetRestorePreview
(backupPath: string)
scripts/koharu/utils/restore-operations.ts:22
↓ 1 callersFunctiongetSanitizeHtml
(html: string)
src/lib/sanitize.ts:3
↓ 1 callersFunctiongetSeriesBySlug
(slug: string)
src/lib/content/posts.ts:317
↓ 1 callersFunctiongetSeriesPosts
(post: BlogPost, locale?: string)
src/lib/content/posts.ts:239
↓ 1 callersFunctiongetSessionStats
(config: UmamiStatsConfig)
src/lib/umami-stats.ts:35
↓ 1 callersFunctiongetSlugToPostMap
(allPosts: BlogPost[])
src/lib/content/similarities.ts:11
↓ 1 callersFunctiongetSource
Get the source element for parsing (hidden wrapper or the li itself)
src/lib/quiz/parse-quiz.ts:115
↓ 1 callersFunctiongetStoredMode
()
src/store/player.ts:21
↓ 1 callersFunctiongetTextClass
* Text size class based on heading level
cms/src/components/EditorTOC.tsx:36
↓ 1 callersFunctiongetUpdateInfo
(targetTag?: string)
scripts/koharu/utils/update-operations.ts:179
↓ 1 callersFunctiongetUpstreamRemoteUrl
()
scripts/koharu/utils/update-operations.ts:102
↓ 1 callersFunctiongetVolumeIcon
(volume: number, muted: boolean)
src/components/markdown/shared/MediaControls.tsx:51
↓ 1 callersFunctiongroupPortraitImages
* Group consecutive portrait images side by side
src/lib/image-enhancer.ts:172
↓ 1 callersFunctionhandleClick
(e: React.MouseEvent<HTMLButtonElement>, index: number)
src/components/markdown/video-player/VideoPlaylist.tsx:39
↓ 1 callersFunctionhandleClick
(e: React.MouseEvent<HTMLButtonElement>, globalIdx: number)
src/components/markdown/audio-player/PlayerPlaylist.tsx:57
↓ 1 callersFunctionhandleClose
()
cms/src/components/CategoryMappingDialog.tsx:67
↓ 1 callersFunctionhandleConfirm
()
scripts/koharu/restore.tsx:109
↓ 1 callersFunctionhandleFilterChange
(key: BangumiCollectionType | 'all')
src/components/bangumi/BangumiCollection.tsx:76
↓ 1 callersFunctionhandleRegenerate
(name: string)
cms/src/components/CategoryMappingDialog.tsx:82
↓ 1 callersFunctionhandleSelect
(value: string)
scripts/koharu/restore.tsx:100
↓ 1 callersFunctionhasUpstreamMergeHistory
()
scripts/koharu/utils/update-operations.ts:400
↓ 1 callersFunctionhasUpstreamRemote
()
scripts/koharu/utils/update-operations.ts:94
↓ 1 callersFunctionhighlightCode
* Highlight code using Shiki
cms/src/lib/markdown-render.ts:47
↓ 1 callersFunctionimagePathToKey
* 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 callersFunctioninitChristmasState
()
src/store/christmas.ts:43
↓ 1 callersFunctioninitTwikoo
()
src/components/comment/providers/Twikoo.tsx:43
↓ 1 callersFunctioninstallDeps
(onOutput?: (data: string) => void)
scripts/koharu/utils/update-operations.ts:584
↓ 1 callersFunctionisBlogPost
(param: BlogPost | PostRef)
src/lib/route.ts:7
↓ 1 callersFunctionisCacheValid
(cache: SummariesCache, model: string)
src/scripts/generateSummaries.ts:106
↓ 1 callersFunctionisConsecutiveSibling
* Check if two elements are consecutive siblings (allowing text nodes between)
src/lib/image-enhancer.ts:228
↓ 1 callersFunctionisDeviceType
(value: string)
src/scripts/generateSimilarities.ts:86
↓ 1 callersFunctionisFeaturedSeriesItem
* 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 callersFunctionisInfographicBlock
(preElement: HTMLElement)
src/lib/content-enhancer-utils.ts:41
↓ 1 callersFunctionisMac
* Check if the current platform is Mac
src/hooks/useKeyboardShortcut.ts:73
↓ 1 callersFunctionisPathWithinDir
(targetPath: string, allowedDir: string)
scripts/koharu/utils/validation.ts:12
↓ 1 callersFunctionisReservedSlug
(slug: string)
src/constants/router.ts:58
↓ 1 callersFunctionisStandaloneLinkParagraph
(node: MarkdownNode)
src/lib/markdown/link-utils.ts:131
↓ 1 callersFunctionisStandaloneLinkToken
* 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 callersFunctionisValidTimezone
(timezone: string)
src/lib/timezone.ts:17
↓ 1 callersFunctionlistPosts
(params?: ListPostsParams)
cms/src/lib/api.ts:162
↓ 1 callersFunctionlistRecentTags
(limit = 5)
scripts/koharu/utils/update-operations.ts:627
↓ 1 callersFunctionloadCache
()
cms/src/lib/og-service.ts:35
↓ 1 callersFunctionloadCache
()
src/scripts/generateSummaries.ts:91
↓ 1 callersFunctionloadConfigForAstro
()
astro.config.mjs:37
↓ 1 callersFunctionloadOGData
()
cms/src/components/embed/LinkPreview.tsx:22
↓ 1 callersFunctionloadPost
()
cms/src/components/PostEditor.tsx:147
↓ 1 callersFunctionloadPosts
* Load and process all markdown files
src/scripts/generateSimilarities.ts:245
↓ 1 callersFunctionloadPosts
(files: string[])
src/scripts/generateSummaries.ts:206
↓ 1 callersFunctionloadReadIds
* Load read IDs from localStorage
src/store/announcement.ts:71
↓ 1 callersFunctionloadSiteConfig
()
cms/server.ts:41
↓ 1 callersFunctionloadSummaries
* Load AI-generated summaries from file
src/scripts/generateSimilarities.ts:119
↓ 1 callersFunctionlockHeadingTo
(id: string)
src/lib/heading-scroll-lock.ts:16
↓ 1 callersFunctionmain
()
cms/server.ts:51
↓ 1 callersFunctionmain
()
src/scripts/generateSimilarities.ts:322
↓ 1 callersFunctionmain
()
src/scripts/generateLqips.ts:87
↓ 1 callersFunctionmain
()
src/scripts/generateSummaries.ts:220
↓ 1 callersFunctionmarkdownToBlocks
* Converts markdown to BlockNote blocks
cms/src/components/PostEditor.tsx:100
↓ 1 callersFunctionmatchesShortcut
* Check if event matches the shortcut
src/hooks/useKeyboardShortcut.ts:81
↓ 1 callersFunctionmergeUpstream
(options: MergeOptions = {})
scripts/koharu/utils/update-operations.ts:425
↓ 1 callersFunctionnavigateImage
(direction: 1 | -1)
src/store/modal.ts:129
↓ 1 callersFunctionnavigateToSelected
()
src/hooks/useSearchKeyboardNav.ts:73
↓ 1 callersFunctionnormalize
* Normalizes a vector to unit length (L2 norm == 1) * This makes cosine similarity a simple dot product
src/scripts/generateSimilarities.ts:135
↓ 1 callersFunctionnormalizeFeaturedSeries
* 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 callersFunctionnormalizeHexColor
(color: string)
src/lib/utils.ts:104
↓ 1 callersFunctionnormalizeNavSlug
(path: string)
src/lib/utils.ts:31
↓ 1 callersFunctionnormalizePath
Normalize path to strip trailing slash for consistent Umami matching
src/lib/umami-stats.ts:108
↓ 1 callersFunctionnormalizeUrl
(url: string | undefined)
src/lib/utils.ts:128
↓ 1 callersFunctionnotifyListeners
()
src/hooks/useCurrentHeading.ts:43
↓ 1 callersFunctiononError
()
src/hooks/useMediaPlayer.ts:124
↓ 1 callersFunctionopenImageLightbox
* Open image in React lightbox via custom event
src/lib/image-enhancer.ts:51
↓ 1 callersFunctionopenInEditor
* Open a file in the specified editor
src/components/EditButton.tsx:42
↓ 1 callersFunctionparseArgs
* Parse CLI arguments * Supported: --device <value>
src/scripts/generateSimilarities.ts:94
↓ 1 callersFunctionparseArgs
()
src/scripts/generateSummaries.ts:42
↓ 1 callersFunctionparseArgs
(argv: string[] = process.argv.slice(2))
scripts/koharu/utils/args.ts:33
↓ 1 callersFunctionparseBackupManifest
(manifest: string)
scripts/koharu/utils/backup.ts:23
↓ 1 callersFunctionparseCommand
Parse command meta: "prompt":startLine-endLine,...
src/lib/markdown/shiki-meta-transformer.ts:69
↓ 1 callersFunctionparseDateInSiteTimezone
(dateString: string)
src/lib/date.ts:89
↓ 1 callersFunctionparseInlineStyles
* Parse inline style string to React CSSProperties
src/components/markdown/CodeBlockFullscreen.tsx:20
↓ 1 callersFunctionparseLrc
(lrcText: string)
src/components/markdown/audio-player/LrcParser.ts:16
↓ 1 callersFunctionparseMeta
Parse meta string into structured data
src/lib/markdown/shiki-meta-transformer.ts:25
↓ 1 callersFunctionparseMusicUrl
(url: string)
src/lib/meting.ts:38
↓ 1 callersFunctionparsePostFile
* Converts a post file to PostListItem
cms/src/api/list.ts:102
↓ 1 callersFunctionparseQuizElement
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:120
← previousnext →301–400 of 813, ranked by callers