Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Narrator-AI/NarratorAI
/ functions
Functions
548 in github.com/Narrator-AI/NarratorAI
⨍
Functions
548
◇
Types & classes
55
↓ 203 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 35 callers
Function
addSystemMessage
( content: string, type: "status" | "result" | "info" | "error" = "info", hasAction: boolean = fal
src/components/workflow-steps.tsx:1071
↓ 22 callers
Function
toast
(options: ToastOptions)
src/lib/toast.ts:15
↓ 16 callers
Function
addLog
(message: string)
src/tests/api-cors-test.tsx:25
↓ 8 callers
Function
deepCloneWithNewIds
( entities: LocalizationEntity[] )
src/components/workflow-steps.tsx:7491
↓ 8 callers
Function
generateFakeResult
(stepTitle: string)
src/components/workflow-steps.tsx:427
↓ 8 callers
Function
processStep
(stepId: string)
src/components/workflow-steps.tsx:2364
↓ 7 callers
Function
hasStylePromptSupport
()
src/app/page.tsx:1546
↓ 7 callers
Function
parseSrtContent
(srtContent: string)
src/components/workflow-steps.tsx:1288
↓ 7 callers
Function
toast
({ ...props }: Toast)
src/components/ui/use-toast.tsx:143
↓ 6 callers
Function
checkApiKeyBeforeAction
(action: () => Promise<void>)
src/app/page.tsx:336
↓ 6 callers
Function
formatFileSize
(bytes: number)
src/app/page.tsx:1269
↓ 6 callers
Function
handleEntityChange
(id: string, field: keyof LocalizationEntity, value: string)
src/components/workflow/components/LocalizationEditor.tsx:100
↓ 6 callers
Function
updateResult
(id: string, field: keyof TranslationResult, value: any)
src/components/workflow/components/TranslationEditor.tsx:22
↓ 6 callers
Function
useSidebar
()
src/components/ui/sidebar.tsx:47
↓ 5 callers
Function
checkApiKeyBeforeAction
* 检查API密钥并处理相关操作 * @param action 需要执行的函数 * @returns 处理结果,包含密钥验证结果
src/services/project-service.ts:73
↓ 5 callers
Function
createSystemMessage
( content: string, type: ChatMessage['type'] = 'info', relatedStep?: string, hasAction: boolean = fals
src/components/workflow/utils/message.utils.ts:13
↓ 5 callers
Function
dispatch
(action: Action)
src/components/ui/use-toast.tsx:134
↓ 5 callers
Function
fetchProjectFiles
(projectId: string, projectName?: string)
src/app/page.tsx:1104
↓ 5 callers
Function
fetchProjects
()
src/app/page.tsx:1004
↓ 5 callers
Function
formatSrtFilename
( ossKey: string | undefined, episodeNum: number | undefined, id: number )
src/components/workflow-steps.tsx:839
↓ 5 callers
Function
handleApiResponse
(response: any)
src/services/project-service.ts:55
↓ 5 callers
Function
refreshEditorData
()
src/components/workflow-steps.tsx:4859
↓ 5 callers
Function
renderTestResult
(testName: string)
src/tests/api-test.tsx:162
↓ 5 callers
Function
runTest
(testName: string, testFn: () => Promise<any>)
src/tests/api-test.tsx:31
↓ 5 callers
Function
setApiKey
(apiKey: string)
src/services/env-config.ts:21
↓ 4 callers
Function
addResult
(index = results.length)
src/components/workflow-steps.tsx:6156
↓ 4 callers
Function
fetchBaiduPanTasks
()
src/app/page.tsx:1206
↓ 4 callers
Function
getEnvConfig
()
src/services/env-config.ts:36
↓ 4 callers
Function
handleApiResponse
(response: any)
src/services/file-service.ts:70
↓ 4 callers
Function
useCarousel
()
src/components/ui/carousel.tsx:35
↓ 4 callers
Function
useFormField
()
src/components/ui/form.tsx:45
↓ 3 callers
Function
addExecutionLog
(stepId: string, message: string, type: ExecutionLogItem['type'], progress?: number)
src/components/workflow/WorkflowSteps.tsx:77
↓ 3 callers
Function
addSubtitle
(index = subtitles.length)
src/components/workflow-steps.tsx:4645
↓ 3 callers
Function
changeTaskStatus
(taskType, status)
src/components/task-progress.tsx:282
↓ 3 callers
Function
generateFakeTranslationResults
( count: number, setId: string )
src/components/workflow-steps.tsx:320
↓ 3 callers
Function
generateSampleLocalizationData
()
src/components/workflow-steps.tsx:458
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
src/components/ui/chart.tsx:308
↓ 3 callers
Function
handleColorChange
(hex: string)
src/components/ui/color-picker.tsx:66
↓ 3 callers
Function
handleEntityChange
( id: string, field: "原文" | "本土化" | "注释", value: string )
src/components/workflow-steps.tsx:5123
↓ 3 callers
Function
handleStepComplete
(stepId: string)
src/components/workflow/WorkflowSteps.tsx:200
↓ 3 callers
Function
mapTaskType
(taskType: string)
src/components/sidebar.tsx:46
↓ 3 callers
Function
refreshLocalStorage
()
src/tests/api-key-test.tsx:30
↓ 3 callers
Function
toggleSettingsSidebar
()
src/app/page.tsx:270
↓ 3 callers
Function
updateResult
( id: string, field: keyof TranslationResult, value: any )
src/components/workflow-steps.tsx:6130
↓ 3 callers
Function
updateSubtitle
( id: string, field: "startTime" | "endTime" | "text", value: string )
src/components/workflow-steps.tsx:4627
↓ 3 callers
Function
updateSubtitle
(id: string, field: keyof Subtitle, value: string)
src/components/workflow/components/SubtitleEditor.tsx:16
↓ 3 callers
Function
useIsMobile
()
src/hooks/use-mobile.ts:5
↓ 2 callers
Function
addExecutionLog
( stepId: string, message: string, type: ExecutionLogItem["type"], progress?: number )
src/components/workflow-steps.tsx:7025
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
src/components/ui/use-toast.tsx:59
↓ 2 callers
Function
assToHex
* ASS格式的颜色(&HAABBGGRR)转换为标准的十六进制颜色(#RRGGBB)
src/components/ui/color-picker.tsx:19
↓ 2 callers
Function
calculateOverallProgress
()
src/components/workflow-steps.tsx:2178
↓ 2 callers
Function
calculateOverallProgress
()
src/components/workflow/components/ExecutionProgress.tsx:19
↓ 2 callers
Function
calculateOverallProgress
()
src/components/workflow/components/ExecutionLogs.tsx:10
↓ 2 callers
Function
clearLogs
()
src/tests/api-cors-test.tsx:30
↓ 2 callers
Function
deleteEntity
(id: string)
src/components/workflow/components/LocalizationEditor.tsx:133
↓ 2 callers
Function
finishRenameFile
(projectId: string, fileId: string)
src/app/page.tsx:1396
↓ 2 callers
Function
formatTime
(date: Date)
src/components/workflow/utils/message.utils.ts:40
↓ 2 callers
Function
generateFakeSubtitles
(count: number, setId: string)
src/components/workflow-steps.tsx:303
↓ 2 callers
Function
generateSampleLocalizationData
()
src/components/workflow/utils/localization.utils.ts:3
↓ 2 callers
Function
getBadgeVariant
(status: WorkflowStep['status'])
src/components/workflow/utils/message.utils.ts:48
↓ 2 callers
Function
getCurrentData
()
src/components/workflow-steps.tsx:4993
↓ 2 callers
Function
getDefaultValues
()
src/components/api-key-dialog.tsx:25
↓ 2 callers
Function
getInitialSteps
()
src/components/workflow-steps.tsx:1513
↓ 2 callers
Function
getPresetTags
()
src/app/page.tsx:838
↓ 2 callers
Function
getStatusText
(status: WorkflowStep['status'])
src/components/workflow/utils/message.utils.ts:57
↓ 2 callers
Function
getTaskTypeName
(type)
src/components/task-progress.tsx:66
↓ 2 callers
Function
handleDrop
(e: React.DragEvent<HTMLDivElement>, projectId: string)
src/app/page.tsx:1508
↓ 2 callers
Function
handleExportSingleSrt
(srtEntry: SrtFileEntry)
src/components/translation-srt-modal.tsx:89
↓ 2 callers
Function
handleFeatureSelect
(featureId: string)
src/app/page.tsx:1519
↓ 2 callers
Function
isApiKeyError
(error: unknown)
src/utils/api-key-helper.ts:85
↓ 2 callers
Function
loadChatData
(id: string)
src/app/page.tsx:1713
↓ 2 callers
Function
logResult
(testName: string, result: any)
src/tests/api-test.tsx:23
↓ 2 callers
Function
onChange
()
src/hooks/use-mobile.ts:10
↓ 2 callers
Function
processStep
(stepId: string)
src/components/workflow/WorkflowSteps.tsx:101
↓ 2 callers
Function
triggerDownload
( real_url: string, url: string, ossKey: string | undefined, episodeNum: number | undefined,
src/components/workflow-steps.tsx:854
↓ 2 callers
Function
updateStepProgress
(stepId: string, progress: number)
src/components/workflow-steps.tsx:7056
↓ 2 callers
Function
uploadFiles
(projectId: string, uploadedFiles: File[])
src/app/page.tsx:1840
↓ 2 callers
Function
useChart
()
src/components/ui/chart.tsx:27
↓ 2 callers
Function
useTheme
()
src/components/theme-provider.tsx:74
↓ 2 callers
Function
validateData
(data: any)
src/components/workflow-steps.tsx:3099
↓ 1 callers
Function
addResult
(index = results.length)
src/components/workflow/components/TranslationEditor.tsx:32
↓ 1 callers
Function
addSubtitle
(index = subtitles.length)
src/components/workflow/components/SubtitleEditor.tsx:26
↓ 1 callers
Function
checkApiKeyAndFetchTasks
()
src/app/page.tsx:1287
↓ 1 callers
Function
clearApiKey
()
src/services/env-config.ts:28
↓ 1 callers
Function
convertSubtitlesToSrt
(subtitles: Subtitle[])
src/components/workflow-steps.tsx:445
↓ 1 callers
Function
debounce
(fn, delay = 300)
src/components/workflow-steps.tsx:560
↓ 1 callers
Function
deleteCharacter
(characterName: string)
src/components/workflow-steps.tsx:5350
↓ 1 callers
Function
deleteCharacter
(characterName: string)
src/components/workflow/components/LocalizationEditor.tsx:152
↓ 1 callers
Function
deleteEntity
(id: string)
src/components/workflow-steps.tsx:5269
↓ 1 callers
Function
deleteResult
(id: string)
src/components/workflow-steps.tsx:6146
↓ 1 callers
Function
deleteResult
(id: string)
src/components/workflow/components/TranslationEditor.tsx:28
↓ 1 callers
Function
deleteSubtitle
(id: string)
src/components/workflow-steps.tsx:4640
↓ 1 callers
Function
deleteSubtitle
(id: string)
src/components/workflow/components/SubtitleEditor.tsx:22
↓ 1 callers
Function
dismiss
()
src/components/ui/use-toast.tsx:151
↓ 1 callers
Function
extractBaiduPanLink
(text: string)
src/app/page.tsx:1943
↓ 1 callers
Function
extractIdFromFilename
(filename: string)
src/components/workflow-steps.tsx:665
↓ 1 callers
Function
finishStepProcessing
()
src/components/workflow-steps.tsx:2418
↓ 1 callers
Function
genId
()
src/components/ui/use-toast.tsx:28
↓ 1 callers
Function
generateExecutionCommands
(stepId: string)
src/components/workflow-steps.tsx:7063
next →
1–100 of 548, ranked by callers