MCPcopy Create free account

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

Functions813 in github.com/cosZone/astro-koharu

↓ 1 callersFunctionclassifyLink
(url: string)
cms/src/lib/link-utils.ts:93
↓ 1 callersFunctionclassifyLink
(url: string)
src/lib/markdown/link-utils.ts:100
↓ 1 callersFunctioncleanRestore
(backupPath: string, preCleanSha?: string)
scripts/koharu/utils/update-operations.ts:378
↓ 1 callersFunctioncloseBgmPanel
()
src/store/bgm.ts:14
↓ 1 callersFunctioncollectIds
(headings: Heading[])
src/hooks/useExpandedState.ts:72
↓ 1 callersFunctioncomputeHash
(content: string)
src/scripts/generateSummaries.ts:87
↓ 1 callersFunctioncomputeSimilarities
* Compute top N similar posts for each post
src/scripts/generateSimilarities.ts:285
↓ 1 callersFunctionconditionalSnowfall
* Vite plugin for conditional Three.js bundling * When christmas snowfall is disabled, replaces SnowfallCanvas with a noop component * This saves ~8
astro.config.mjs:70
↓ 1 callersFunctioncreateActiveHeadingStore
* Creates a scroll store for tracking active heading ID using Intersection Observer * This avoids forced reflows by using async intersection callback
src/hooks/useActiveHeading.ts:41
↓ 1 callersFunctioncreateCodeToolbar
* Create Mac-style toolbar HTML for code blocks
cms/src/lib/preview-enhancer.ts:39
↓ 1 callersFunctioncreateErrorPlaceholder
* Create accessible error placeholder for failed images
src/lib/image-enhancer.ts:28
↓ 1 callersFunctioncreateErrorPlaceholder
* Create error placeholder for failed link preview images
src/lib/link-preview-enhancer.ts:11
↓ 1 callersFunctioncreateFullscreenButton
* Create fullscreen button for images
src/lib/image-enhancer.ts:15
↓ 1 callersFunctioncreateHeadingStore
* Creates a scroll store for tracking current heading using Intersection Observer * This avoids forced reflows by using async intersection callbacks
src/hooks/useCurrentHeading.ts:35
↓ 1 callersFunctioncreateInfographicToolbar
* Create infographic toolbar HTML
cms/src/lib/preview-enhancer.ts:253
↓ 1 callersFunctioncreateInitialState
* Create initial state for CycleSelect
scripts/koharu/components/cycle-select/useCycleSelectState.ts:51
↓ 1 callersFunctioncreateLinkEmbedExtension
()
cms/src/lib/marked-link-embed.ts:41
↓ 1 callersFunctioncreateMappingSchema
* Creates a dynamic Zod schema based on category names
cms/src/components/CategoryMappingDialog.tsx:33
↓ 1 callersFunctioncreateMarkedInstance
* Create marked instance with Shiki extension
cms/src/lib/markdown-render.ts:111
↓ 1 callersFunctioncreateMermaidToolbar
* Create mermaid toolbar HTML
cms/src/lib/preview-enhancer.ts:167
↓ 1 callersFunctioncreateOptionMap
()
scripts/koharu/components/cycle-select/types.ts:31
↓ 1 callersFunctioncreatePlaybackTimeStore
()
src/lib/playback-time-store.ts:10
↓ 1 callersFunctioncreatePost
(data: PostData)
scripts/koharu/utils/new-operations.ts:196
↓ 1 callersFunctioncreateScrollStore
(options: UseScrollTriggerOptions = {})
src/hooks/useScrollTrigger.ts:73
↓ 1 callersFunctioncreateShikiExtension
* Create Shiki extension for marked
cms/src/lib/markdown-render.ts:77
↓ 1 callersFunctiondeleteBackups
(paths: string[])
scripts/koharu/utils/clean-operations.ts:19
↓ 1 callersFunctionderiveKey
(password: string, salt: ArrayBuffer)
src/lib/crypto/decrypt.ts:32
↓ 1 callersFunctionderiveKey
(password: string, salt: ArrayBuffer)
src/lib/crypto/encrypt.ts:23
↓ 1 callersFunctiondetectNewCategories
(categories?: string | string[] | string[][])
cms/src/lib/category.ts:73
↓ 1 callersFunctiondetectQuizType
(el: HTMLElement, source: HTMLElement)
src/lib/quiz/parse-quiz.ts:24
↓ 1 callersFunctiondisableChristmas
()
src/store/christmas.ts:107
↓ 1 callersFunctiondisableChristmasCompletely
()
src/store/christmas.ts:119
↓ 1 callersFunctiondotProduct
* Computes dot product of two same-length normalized vectors * For normalized vectors, this equals cosine similarity
src/scripts/generateSimilarities.ts:145
↓ 1 callersFunctionenableChristmas
()
src/store/christmas.ts:93
↓ 1 callersFunctionencodeSlug
* Encode a slug for URL usage
cms/src/lib/api.ts:23
↓ 1 callersFunctionenhanceCodeBlocks
* Enhance code blocks with Mac-style toolbars
cms/src/lib/preview-enhancer.ts:107
↓ 1 callersFunctionenhanceImages
* Enhance images with lightbox
cms/src/lib/preview-enhancer.ts:341
↓ 1 callersFunctionenhancePreviewContent
( container: HTMLElement, options?: { onImageClick?: (src: string) => void; }, )
cms/src/lib/preview-enhancer.ts:364
↓ 1 callersFunctionensureDirectory
(dirPath: string)
scripts/koharu/utils/new-operations.ts:22
↓ 1 callersFunctionensureUpstreamRemote
(options: EnsureUpstreamOptions = {})
scripts/koharu/utils/update-operations.ts:121
↓ 1 callersFunctionescapeHtml
* Escape HTML special characters
cms/src/lib/preview-enhancer.ts:20
↓ 1 callersFunctionextractCategoryNames
(categories?: string | string[] | string[][])
cms/src/lib/category.ts:44
↓ 1 callersFunctionextractCategoryNames
* Extracts category names from frontmatter categories * Handles both flat ['A', 'B'] and nested [['A', 'B']] formats
cms/src/api/list.ts:43
↓ 1 callersFunctionextractClasses
Extract extra classes from attr tokens (.class only, others ignored for spoiler)
src/lib/markdown/remark-shoka-spoiler.ts:20
↓ 1 callersFunctionextractCode
(preElement: HTMLElement)
src/lib/content-enhancer-utils.ts:26
↓ 1 callersFunctionextractCodeClassName
(preElement: HTMLElement)
src/lib/content-enhancer-utils.ts:36
↓ 1 callersFunctionextractCodeHTML
(preElement: HTMLElement)
src/lib/content-enhancer-utils.ts:31
↓ 1 callersFunctionextractExplanation
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:59
↓ 1 callersFunctionextractMistakes
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:108
↓ 1 callersFunctionextractNoteType
(element: HTMLElement)
src/components/markdown/NoteBlockIcon.tsx:15
↓ 1 callersFunctionextractOptions
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:48
↓ 1 callersFunctionextractQuestionHtml
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:36
↓ 1 callersFunctionextractQuestionParts
(el: HTMLElement)
src/lib/quiz/parse-quiz.ts:71
↓ 1 callersFunctionextractReleaseSummary
(body: string | null, maxLines = 5, maxChars = 300)
scripts/koharu/utils/update-operations.ts:684
↓ 1 callersFunctionextractSlug
* Extract slug from file path, with support for custom link field
src/scripts/generateSimilarities.ts:185
↓ 1 callersFunctionextractSlug
(filePath: string, link?: string)
src/scripts/generateSummaries.ts:124
↓ 1 callersFunctionextractTextFromContent
* Extracts plain text from BlockNote inline content
cms/src/hooks/useEditorHeadings.ts:30
↓ 1 callersFunctionfetchAllCollections
( userId: string, subjectType: BangumiSubjectType, )
src/lib/bangumi/api.ts:22
↓ 1 callersFunctionfetchMeting
(server: string, type: string, id: string, apiUrl?: string)
src/lib/meting.ts:88
↓ 1 callersFunctionfetchOGData
* Fetch OG data from URL
cms/src/api/og-data.ts:93
↓ 1 callersFunctionfetchOGData
* Fetch OG data from a URL at build time using metascraper * With timeout to avoid hanging builds
src/lib/markdown/remark-link-embed.ts:195
↓ 1 callersFunctionfetchReleaseInfo
(version: string)
scripts/koharu/utils/update-operations.ts:639
↓ 1 callersFunctionfetchUpstream
()
scripts/koharu/utils/update-operations.ts:142
↓ 1 callersFunctionfilePathToKey
* Convert file path to short key (relative to /img/)
src/scripts/generateLqips.ts:81
↓ 1 callersFunctionfilterNavItems
( items: Router[], configuredSlugs: Set<string>, enabledSlugs: Set<string>, reservedSlugs: Set<string>
src/lib/utils.ts:56
↓ 1 callersFunctionfilterPosts
* Filters posts based on query parameters
cms/src/api/list.ts:141
↓ 1 callersFunctionfilterPostsByLocale
(posts: BlogPost[], locale?: string)
src/lib/content/locale.ts:75
↓ 1 callersFunctionfindCurrentLrcIndex
Binary search for the current lyric line index.
src/hooks/usePlaybackTime.ts:42
↓ 1 callersFunctionflushCache
* Flush in-memory cache to disk if it has been modified.
src/lib/markdown/remark-link-embed.ts:124
↓ 1 callersFunctionformDataToFrontmatter
* Converts form data back to BlogSchema format
cms/src/components/FrontmatterEditor.tsx:97
↓ 1 callersFunctionformatAnnouncementDate
(dateStr?: string)
src/components/announcement/AnnouncementListPopup.tsx:26
↓ 1 callersFunctionformatCompactNumber
(num: number)
src/lib/utils.ts:14
↓ 1 callersFunctionformatDate
(date: Date = new Date())
scripts/koharu/utils/new-operations.ts:125
↓ 1 callersFunctionformatReadingTime
(minutes: number)
src/lib/stats.ts:36
↓ 1 callersFunctionformatRelativeTime
(dateString: string)
cms/src/components/RecentUpdates.tsx:22
↓ 1 callersFunctionformatWordCount
(count: number)
src/lib/stats.ts:28
↓ 1 callersFunctiongenerateCodePenEmbedHTML
* Generate HTML for CodePen embed using official embed format * https://blog.codepen.io/documentation/embedded-pens/
src/lib/markdown/remark-link-embed.ts:370
↓ 1 callersFunctiongenerateEmbeddings
* Generate embeddings for all posts one by one * Batch processing doesn't work reliably with this model
src/scripts/generateSimilarities.ts:261
↓ 1 callersFunctiongenerateFilePath
* Generates the file path based on categories * e.g., ['笔记', '前端'] + 'React Hooks' => 'note/front-end/react-hooks.md'
cms/src/api/create.ts:34
↓ 1 callersFunctiongenerateFrontmatter
* Generates initial frontmatter content
cms/src/api/create.ts:63
↓ 1 callersFunctiongeneratePostFrontmatter
(data: PostData)
scripts/koharu/utils/new-operations.ts:152
↓ 1 callersFunctiongenerateSummary
(text: string, model: string)
src/scripts/generateSummaries.ts:141
↓ 1 callersFunctiongetAllMarkdownFiles
* Recursively reads all markdown files from a directory
cms/src/api/list.ts:20
↓ 1 callersFunctiongetAlternateUrl
(currentPathname: string, targetLocale: Locale)
src/i18n/utils.ts:157
↓ 1 callersFunctiongetCMSConfig
()
cms/src/lib/api.ts:272
↓ 1 callersFunctiongetCacheKey
(config: UmamiStatsConfig)
src/lib/umami-stats.ts:72
↓ 1 callersFunctiongetCacheKey
(server: string, type: string, id: string)
src/lib/meting.ts:53
↓ 1 callersFunctiongetCachedOGData
* Get cached OG data if valid. * Error entries expire after 1 day; successful entries after `successTtl` ms.
src/lib/markdown/remark-link-embed.ts:92
↓ 1 callersFunctiongetCategoryNameByLink
(link: string)
src/lib/content/categories.ts:122
↓ 1 callersFunctiongetCategoryTree
()
scripts/koharu/utils/new-operations.ts:50
↓ 1 callersFunctiongetConfirmMessage
生成确认提示文字
scripts/koharu/update.tsx:23
↓ 1 callersFunctiongetConflictFiles
()
scripts/koharu/utils/update-operations.ts:533
↓ 1 callersFunctiongetContentCategoryName
(locale: string, slug: string)
src/i18n/content.ts:19
↓ 1 callersFunctiongetContentFeaturedCategoryField
(locale: string, link: string, field: string)
src/i18n/content.ts:37
↓ 1 callersFunctiongetContentSeriesField
(locale: string, slug: string, field: string)
src/i18n/content.ts:27
↓ 1 callersFunctiongetDefaultEditor
()
cms/src/lib/editor-url.ts:73
↓ 1 callersFunctiongetDomain
(url: string)
cms/src/lib/link-utils.ts:123
↓ 1 callersFunctiongetDomain
* Get domain from URL for display
src/lib/markdown/remark-link-embed.ts:260
↓ 1 callersFunctiongetFontConfig
(locale: string)
src/components/markdown/InfographicToolbar.tsx:15
↓ 1 callersFunctiongetFromCache
(key: string)
src/lib/meting.ts:57
← previousnext →201–300 of 813, ranked by callers