Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SSShooter/ebook-to-mindmap
/ functions
Functions
463 in github.com/SSShooter/ebook-to-mindmap
⨍
Functions
463
◇
Types & classes
70
↓ 233 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 12 callers
Method
generateKey
( filename: string, type: CacheKeyType, chapterId?: string )
src/services/cacheService.ts:43
↓ 10 callers
Method
deleteCache
( filename: string, type: CacheKeyType, chapterId?: string )
src/services/cacheService.ts:166
↓ 9 callers
Function
confirmDelete
(target: { key?: string; group?: BookModeGroup })
src/pages/CacheManagementPage.tsx:204
↓ 8 callers
Method
generateContentStream
( prompt: string, onUpdate: (data: { content: string; reasoning?: string }) => void, outputLanguag
src/services/aiService.ts:494
↓ 7 callers
Method
setCache
( filename: string, type: CacheKeyType, value: CacheValue, chapterId?: string )
src/services/cacheService.ts:106
↓ 6 callers
Function
fetchAvailableModels
(params?: { apiUrl?: string apiKey?: string provider?: string useCorsProxy?: boolean })
src/pages/ModelsPage.tsx:63
↓ 4 callers
Function
createTheme
( name: string, type: "light" | "dark", colors: { mainColor: string; mainBgcolor: string; co
src/components/ui/mindmap.tsx:144
↓ 4 callers
Method
getString
( filename: string, type: CacheKeyType, chapterId?: string )
src/services/cacheService.ts:61
↓ 4 callers
Function
useCarousel
()
src/components/ui/carousel.tsx:35
↓ 4 callers
Function
useFormField
()
src/components/ui/form.tsx:43
↓ 4 callers
Function
useSidebar
()
src/components/ui/sidebar.tsx:47
↓ 3 callers
Method
deleteCacheByKey
(key: string)
src/services/cacheService.ts:371
↓ 3 callers
Function
getCacheTypeLabel
( type: CacheKeyType, t: (key: string) => string )
src/pages/CacheManagementPage.tsx:55
↓ 3 callers
Method
getCacheValueByKey
(key: string)
src/services/cacheService.ts:366
↓ 3 callers
Function
getDefaultModelFromStorage
()
src/stores/configStore.ts:155
↓ 3 callers
Function
getDocumentTheme
()
src/components/ui/mindmap.tsx:22
↓ 3 callers
Method
getMindMap
( filename: string, type: CacheKeyType, chapterId?: string )
src/services/cacheService.ts:72
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
src/components/ui/chart.tsx:306
↓ 3 callers
Function
handleOpenDialog
(model?: AIModel, readOnly = false)
src/pages/ModelsPage.tsx:183
↓ 3 callers
Method
setSelectedChapters
( filename: string, selectedChapters: Set<string> )
src/services/cacheService.ts:117
↓ 3 callers
Function
updateTheme
(newTheme: 'light' | 'dark')
src/contexts/ThemeContext.tsx:43
↓ 2 callers
Method
createVoyIndex
(embeddedChunks: EmbeddedChunk[])
src/services/ragService.ts:162
↓ 2 callers
Method
ensureVoyLoaded
()
src/services/ragService.ts:51
↓ 2 callers
Method
extractChapters
( file: File, skipNonEssentialChapters: boolean = true, maxSubChapterDepth: number = 0 )
src/services/pdfProcessor.ts:75
↓ 2 callers
Function
getActualTheme
(theme: Theme)
src/contexts/ThemeContext.tsx:27
↓ 2 callers
Method
getAllCacheEntries
()
src/services/cacheService.ts:318
↓ 2 callers
Method
getAllKeys
()
src/services/cacheService.ts:181
↓ 2 callers
Function
getChapterMindMapStreamPrompt
()
src/services/prompts/mindmap.ts:110
↓ 2 callers
Method
getEmbeddings
( texts: string[], apiKey: string, model: string )
src/services/ragService.ts:94
↓ 2 callers
Method
getSingleChapterContent
( book: Book, href: string )
src/services/epubProcessor.ts:290
↓ 2 callers
Function
getTheme
(isDark: boolean, isMonochrome: boolean)
src/components/ui/mindmap.tsx:275
↓ 2 callers
Function
handleDownload
(group: BookModeGroup)
src/pages/CacheManagementPage.tsx:246
↓ 2 callers
Function
handleOpenDialog
(prompt?: CustomPrompt)
src/pages/CustomPromptsPage.tsx:43
↓ 2 callers
Function
hashString
* 简单的字符串哈希函数(类似MD5但更轻量)
src/services/bookProcessingService.ts:11
↓ 2 callers
Function
loadCacheData
()
src/pages/CacheManagementPage.tsx:112
↓ 2 callers
Method
loadIndex
()
src/services/ragService.ts:179
↓ 2 callers
Function
openInMindElixir
( mindmapData: MindElixirData, title: string )
src/utils/uiHelpers.ts:24
↓ 2 callers
Method
parseEpub
(file: File)
src/services/epubProcessor.ts:23
↓ 2 callers
Method
parseJsonResponse
(response: string, errorContext: string)
src/services/aiService.ts:471
↓ 2 callers
Function
processNode
(node: Node)
src/utils/htmlToMarkdown.ts:14
↓ 2 callers
Method
search
(query: Float32Array, k: number)
src/services/ragService.ts:21
↓ 2 callers
Method
setBook
(bookId: string)
src/services/ragService.ts:59
↓ 2 callers
Method
setChapterTags
( filename: string, chapterTags: Map<string, string> )
src/services/cacheService.ts:127
↓ 2 callers
Function
useChart
()
src/components/ui/chart.tsx:25
↓ 2 callers
Function
useProcessingOptions
()
src/stores/configStore.ts:201
↓ 2 callers
Function
useTheme
()
src/contexts/ThemeContext.tsx:82
↓ 1 callers
Method
analyzeConnections
( chapters: Chapter[], outputLanguage: SupportedLanguage = 'en', bookType: 'fiction' | 'non-fictio
src/services/aiService.ts:106
↓ 1 callers
Method
askQuestionStream
( query: string, contextChunks: EmbeddedChunk[], apiKey: string, // we should use a chat model
src/services/ragService.ts:245
↓ 1 callers
Method
buildIndex
( chunks: Chunk[], apiKey: string, model: string, onProgress?: (progress: number, total: numbe
src/services/ragService.ts:122
↓ 1 callers
Function
changeLanguage
(languageCode: string)
src/components/LanguageSwitcher.tsx:22
↓ 1 callers
Method
chunkText
( text: string, chapterId: string, chapterTitle: string, chunkSize = 1000, overlap = 200
src/services/ragService.ts:64
↓ 1 callers
Method
clearBookCache
( fileName: string, processingMode: 'summary' | 'mindmap' | 'combined_mindmap' )
src/services/cacheService.ts:212
↓ 1 callers
Method
clearChapterCache
( fileName: string, chapterId: string, type: 'summary' | 'mindmap' )
src/services/cacheService.ts:186
↓ 1 callers
Method
clearIndex
()
src/services/ragService.ts:195
↓ 1 callers
Method
clearSpecificCache
( fileName: string, cacheType: | 'connections' | 'overall_summary' | 'character_rela
src/services/cacheService.ts:196
↓ 1 callers
Function
corsProxyPlugin
()
vite.config.ts:10
↓ 1 callers
Function
downloadMindMap
( mindElixirInstance: MindElixirInstance, title: string, format: string )
src/utils/uiHelpers.ts:49
↓ 1 callers
Method
extractChapters
( book: Book, skipNonEssentialChapters: boolean = true, maxSubChapterDepth: number = 0, forceU
src/services/epubProcessor.ts:51
↓ 1 callers
Method
extractChaptersFromOutline
( pdf: any, outline: any[], currentDepth: number = 0, maxDepth: number = 0 )
src/services/pdfProcessor.ts:202
↓ 1 callers
Method
extractChaptersFromToc
( book: Book, toc: NavItem[], currentDepth: number = 0, maxDepth: number = 0 )
src/services/epubProcessor.ts:177
↓ 1 callers
Method
extractContentFromHref
( book: Book, href: string, subitems?: NavItem[] )
src/services/epubProcessor.ts:238
↓ 1 callers
Method
extractTextFromPages
( pdf: PDFDocumentProxy, startPage: number, endPage: number )
src/services/pdfProcessor.ts:261
↓ 1 callers
Method
extractTextFromXHTML
(xhtmlContent: string)
src/services/epubProcessor.ts:336
↓ 1 callers
Method
extractTextWithRegex
(xhtmlContent: string)
src/services/epubProcessor.ts:386
↓ 1 callers
Function
findLastNode
(node: NodeObj)
src/components/MindMapCard.tsx:67
↓ 1 callers
Function
formatDate
(timestamp: number)
src/pages/CustomPromptsPage.tsx:120
↓ 1 callers
Method
generateChapterMindMapStream
( content: string, outputLanguage: SupportedLanguage = 'en', onStreamUpdate: (data: { plaint
src/services/aiService.ts:230
↓ 1 callers
Method
generateCharacterRelationship
* 生成人物关系图
src/services/bookProcessingService.ts:408
↓ 1 callers
Method
generateCombinedMindMap
* 生成整书思维导图
src/services/bookProcessingService.ts:519
↓ 1 callers
Method
generateCombinedMindMapStream
( bookTitle: string, chapters: Chapter[], onStreamUpdate: (data: { plaintext: string m
src/services/aiService.ts:389
↓ 1 callers
Method
generateConnections
* 生成章节关联分析
src/services/bookProcessingService.ts:285
↓ 1 callers
Method
generateOverallSummary
* 生成全书总结
src/services/bookProcessingService.ts:342
↓ 1 callers
Function
getBrowserLanguage
()
src/stores/configStore.ts:54
↓ 1 callers
Method
getCacheEntriesByBook
()
src/services/cacheService.ts:343
↓ 1 callers
Function
getChapterConnectionsAnalysisPrompt
( chapterSummaries: string )
src/services/prompts/connectionAnalysis.ts:3
↓ 1 callers
Function
getChapterMindMapPrompt
()
src/services/prompts/mindmap.ts:1
↓ 1 callers
Method
getChapterPages
( pdfDocument: any, chapter: ChapterData )
src/services/pdfProcessor.ts:447
↓ 1 callers
Method
getChapterTags
( filename: string )
src/services/cacheService.ts:92
↓ 1 callers
Function
getCharacterRelationshipPrompt
(chapterSummaries: string)
src/services/prompts/characterRelationship.ts:3
↓ 1 callers
Method
getCurrentConfig
()
src/services/aiService.ts:54
↓ 1 callers
Function
getCurrentLanguage
()
src/pages/SettingsPage.tsx:40
↓ 1 callers
Method
getCustomPrompt
(filename: string)
src/services/cacheService.ts:137
↓ 1 callers
Function
getEntryMode
(type: CacheKeyType)
src/pages/CacheManagementPage.tsx:77
↓ 1 callers
Function
getFictionChapterConnectionsAnalysisPrompt
( chapterSummaries: string )
src/services/prompts/connectionAnalysis.ts:38
↓ 1 callers
Function
getFictionChapterSummaryPrompt
( title: string, content: string, customPrompt?: string, useCustomOnly: boolean = false )
src/services/prompts/chapterSummary.ts:3
↓ 1 callers
Function
getFictionCharacterRelationshipPrompt
( chapterSummaries: string )
src/services/prompts/characterRelationship.ts:22
↓ 1 callers
Function
getFictionOverallSummaryPrompt
( bookTitle: string, chapterInfo: string )
src/services/prompts/overallSummary.ts:16
↓ 1 callers
Function
getInitialTheme
()
src/contexts/ThemeContext.tsx:21
↓ 1 callers
Function
getLanguageInstruction
( language: 'en' | 'zh' | 'ja' | 'fr' | 'de' | 'es' | 'ru' = 'en' )
src/services/prompts/utils.ts:8
↓ 1 callers
Function
getMermaid
()
src/components/MermaidDiagram.tsx:21
↓ 1 callers
Function
getMindMapArrowPrompt
()
src/services/prompts/mindmap.ts:49
↓ 1 callers
Method
getModelConfig
(config: AIConfig)
src/services/aiService.ts:43
↓ 1 callers
Function
getNonFictionChapterSummaryPrompt
( title: string, content: string, customPrompt?: string, useCustomOnly: boolean = false )
src/services/prompts/chapterSummary.ts:53
↓ 1 callers
Function
getOverallSummaryPrompt
( bookTitle: string, chapterInfo: string )
src/services/prompts/overallSummary.ts:3
↓ 1 callers
Method
getPageContent
( pdfDocument: PDFDocumentProxy, pageNumber: number )
src/services/pdfProcessor.ts:406
↓ 1 callers
Method
getSelectedChapters
(filename: string)
src/services/cacheService.ts:85
↓ 1 callers
Method
getSingleChapterHTML
(book: Book, href: string)
src/services/epubProcessor.ts:434
↓ 1 callers
Function
getStringSizeInKB
(str: string)
src/components/Step1Config.tsx:71
↓ 1 callers
Function
getSystemTheme
()
src/components/ui/mindmap.tsx:30
next →
1–100 of 463, ranked by callers