MCPcopy Create free account

hub / github.com/Narrator-AI/NarratorAI / functions

Functions548 in github.com/Narrator-AI/NarratorAI

↓ 203 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 35 callersFunctionaddSystemMessage
( content: string, type: "status" | "result" | "info" | "error" = "info", hasAction: boolean = fal
src/components/workflow-steps.tsx:1071
↓ 22 callersFunctiontoast
(options: ToastOptions)
src/lib/toast.ts:15
↓ 16 callersFunctionaddLog
(message: string)
src/tests/api-cors-test.tsx:25
↓ 8 callersFunctiondeepCloneWithNewIds
( entities: LocalizationEntity[] )
src/components/workflow-steps.tsx:7491
↓ 8 callersFunctiongenerateFakeResult
(stepTitle: string)
src/components/workflow-steps.tsx:427
↓ 8 callersFunctionprocessStep
(stepId: string)
src/components/workflow-steps.tsx:2364
↓ 7 callersFunctionhasStylePromptSupport
()
src/app/page.tsx:1546
↓ 7 callersFunctionparseSrtContent
(srtContent: string)
src/components/workflow-steps.tsx:1288
↓ 7 callersFunctiontoast
({ ...props }: Toast)
src/components/ui/use-toast.tsx:143
↓ 6 callersFunctioncheckApiKeyBeforeAction
(action: () => Promise<void>)
src/app/page.tsx:336
↓ 6 callersFunctionformatFileSize
(bytes: number)
src/app/page.tsx:1269
↓ 6 callersFunctionhandleEntityChange
(id: string, field: keyof LocalizationEntity, value: string)
src/components/workflow/components/LocalizationEditor.tsx:100
↓ 6 callersFunctionupdateResult
(id: string, field: keyof TranslationResult, value: any)
src/components/workflow/components/TranslationEditor.tsx:22
↓ 6 callersFunctionuseSidebar
()
src/components/ui/sidebar.tsx:47
↓ 5 callersFunctioncheckApiKeyBeforeAction
* 检查API密钥并处理相关操作 * @param action 需要执行的函数 * @returns 处理结果,包含密钥验证结果
src/services/project-service.ts:73
↓ 5 callersFunctioncreateSystemMessage
( content: string, type: ChatMessage['type'] = 'info', relatedStep?: string, hasAction: boolean = fals
src/components/workflow/utils/message.utils.ts:13
↓ 5 callersFunctiondispatch
(action: Action)
src/components/ui/use-toast.tsx:134
↓ 5 callersFunctionfetchProjectFiles
(projectId: string, projectName?: string)
src/app/page.tsx:1104
↓ 5 callersFunctionfetchProjects
()
src/app/page.tsx:1004
↓ 5 callersFunctionformatSrtFilename
( ossKey: string | undefined, episodeNum: number | undefined, id: number )
src/components/workflow-steps.tsx:839
↓ 5 callersFunctionhandleApiResponse
(response: any)
src/services/project-service.ts:55
↓ 5 callersFunctionrefreshEditorData
()
src/components/workflow-steps.tsx:4859
↓ 5 callersFunctionrenderTestResult
(testName: string)
src/tests/api-test.tsx:162
↓ 5 callersFunctionrunTest
(testName: string, testFn: () => Promise<any>)
src/tests/api-test.tsx:31
↓ 5 callersFunctionsetApiKey
(apiKey: string)
src/services/env-config.ts:21
↓ 4 callersFunctionaddResult
(index = results.length)
src/components/workflow-steps.tsx:6156
↓ 4 callersFunctionfetchBaiduPanTasks
()
src/app/page.tsx:1206
↓ 4 callersFunctiongetEnvConfig
()
src/services/env-config.ts:36
↓ 4 callersFunctionhandleApiResponse
(response: any)
src/services/file-service.ts:70
↓ 4 callersFunctionuseCarousel
()
src/components/ui/carousel.tsx:35
↓ 4 callersFunctionuseFormField
()
src/components/ui/form.tsx:45
↓ 3 callersFunctionaddExecutionLog
(stepId: string, message: string, type: ExecutionLogItem['type'], progress?: number)
src/components/workflow/WorkflowSteps.tsx:77
↓ 3 callersFunctionaddSubtitle
(index = subtitles.length)
src/components/workflow-steps.tsx:4645
↓ 3 callersFunctionchangeTaskStatus
(taskType, status)
src/components/task-progress.tsx:282
↓ 3 callersFunctiongenerateFakeTranslationResults
( count: number, setId: string )
src/components/workflow-steps.tsx:320
↓ 3 callersFunctiongenerateSampleLocalizationData
()
src/components/workflow-steps.tsx:458
↓ 3 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
src/components/ui/chart.tsx:308
↓ 3 callersFunctionhandleColorChange
(hex: string)
src/components/ui/color-picker.tsx:66
↓ 3 callersFunctionhandleEntityChange
( id: string, field: "原文" | "本土化" | "注释", value: string )
src/components/workflow-steps.tsx:5123
↓ 3 callersFunctionhandleStepComplete
(stepId: string)
src/components/workflow/WorkflowSteps.tsx:200
↓ 3 callersFunctionmapTaskType
(taskType: string)
src/components/sidebar.tsx:46
↓ 3 callersFunctionrefreshLocalStorage
()
src/tests/api-key-test.tsx:30
↓ 3 callersFunctiontoggleSettingsSidebar
()
src/app/page.tsx:270
↓ 3 callersFunctionupdateResult
( id: string, field: keyof TranslationResult, value: any )
src/components/workflow-steps.tsx:6130
↓ 3 callersFunctionupdateSubtitle
( id: string, field: "startTime" | "endTime" | "text", value: string )
src/components/workflow-steps.tsx:4627
↓ 3 callersFunctionupdateSubtitle
(id: string, field: keyof Subtitle, value: string)
src/components/workflow/components/SubtitleEditor.tsx:16
↓ 3 callersFunctionuseIsMobile
()
src/hooks/use-mobile.ts:5
↓ 2 callersFunctionaddExecutionLog
( stepId: string, message: string, type: ExecutionLogItem["type"], progress?: number )
src/components/workflow-steps.tsx:7025
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
src/components/ui/use-toast.tsx:59
↓ 2 callersFunctionassToHex
* ASS格式的颜色(&HAABBGGRR)转换为标准的十六进制颜色(#RRGGBB)
src/components/ui/color-picker.tsx:19
↓ 2 callersFunctioncalculateOverallProgress
()
src/components/workflow-steps.tsx:2178
↓ 2 callersFunctioncalculateOverallProgress
()
src/components/workflow/components/ExecutionProgress.tsx:19
↓ 2 callersFunctioncalculateOverallProgress
()
src/components/workflow/components/ExecutionLogs.tsx:10
↓ 2 callersFunctionclearLogs
()
src/tests/api-cors-test.tsx:30
↓ 2 callersFunctiondeleteEntity
(id: string)
src/components/workflow/components/LocalizationEditor.tsx:133
↓ 2 callersFunctionfinishRenameFile
(projectId: string, fileId: string)
src/app/page.tsx:1396
↓ 2 callersFunctionformatTime
(date: Date)
src/components/workflow/utils/message.utils.ts:40
↓ 2 callersFunctiongenerateFakeSubtitles
(count: number, setId: string)
src/components/workflow-steps.tsx:303
↓ 2 callersFunctiongenerateSampleLocalizationData
()
src/components/workflow/utils/localization.utils.ts:3
↓ 2 callersFunctiongetBadgeVariant
(status: WorkflowStep['status'])
src/components/workflow/utils/message.utils.ts:48
↓ 2 callersFunctiongetCurrentData
()
src/components/workflow-steps.tsx:4993
↓ 2 callersFunctiongetDefaultValues
()
src/components/api-key-dialog.tsx:25
↓ 2 callersFunctiongetInitialSteps
()
src/components/workflow-steps.tsx:1513
↓ 2 callersFunctiongetPresetTags
()
src/app/page.tsx:838
↓ 2 callersFunctiongetStatusText
(status: WorkflowStep['status'])
src/components/workflow/utils/message.utils.ts:57
↓ 2 callersFunctiongetTaskTypeName
(type)
src/components/task-progress.tsx:66
↓ 2 callersFunctionhandleDrop
(e: React.DragEvent<HTMLDivElement>, projectId: string)
src/app/page.tsx:1508
↓ 2 callersFunctionhandleExportSingleSrt
(srtEntry: SrtFileEntry)
src/components/translation-srt-modal.tsx:89
↓ 2 callersFunctionhandleFeatureSelect
(featureId: string)
src/app/page.tsx:1519
↓ 2 callersFunctionisApiKeyError
(error: unknown)
src/utils/api-key-helper.ts:85
↓ 2 callersFunctionloadChatData
(id: string)
src/app/page.tsx:1713
↓ 2 callersFunctionlogResult
(testName: string, result: any)
src/tests/api-test.tsx:23
↓ 2 callersFunctiononChange
()
src/hooks/use-mobile.ts:10
↓ 2 callersFunctionprocessStep
(stepId: string)
src/components/workflow/WorkflowSteps.tsx:101
↓ 2 callersFunctiontriggerDownload
( real_url: string, url: string, ossKey: string | undefined, episodeNum: number | undefined,
src/components/workflow-steps.tsx:854
↓ 2 callersFunctionupdateStepProgress
(stepId: string, progress: number)
src/components/workflow-steps.tsx:7056
↓ 2 callersFunctionuploadFiles
(projectId: string, uploadedFiles: File[])
src/app/page.tsx:1840
↓ 2 callersFunctionuseChart
()
src/components/ui/chart.tsx:27
↓ 2 callersFunctionuseTheme
()
src/components/theme-provider.tsx:74
↓ 2 callersFunctionvalidateData
(data: any)
src/components/workflow-steps.tsx:3099
↓ 1 callersFunctionaddResult
(index = results.length)
src/components/workflow/components/TranslationEditor.tsx:32
↓ 1 callersFunctionaddSubtitle
(index = subtitles.length)
src/components/workflow/components/SubtitleEditor.tsx:26
↓ 1 callersFunctioncheckApiKeyAndFetchTasks
()
src/app/page.tsx:1287
↓ 1 callersFunctionclearApiKey
()
src/services/env-config.ts:28
↓ 1 callersFunctionconvertSubtitlesToSrt
(subtitles: Subtitle[])
src/components/workflow-steps.tsx:445
↓ 1 callersFunctiondebounce
(fn, delay = 300)
src/components/workflow-steps.tsx:560
↓ 1 callersFunctiondeleteCharacter
(characterName: string)
src/components/workflow-steps.tsx:5350
↓ 1 callersFunctiondeleteCharacter
(characterName: string)
src/components/workflow/components/LocalizationEditor.tsx:152
↓ 1 callersFunctiondeleteEntity
(id: string)
src/components/workflow-steps.tsx:5269
↓ 1 callersFunctiondeleteResult
(id: string)
src/components/workflow-steps.tsx:6146
↓ 1 callersFunctiondeleteResult
(id: string)
src/components/workflow/components/TranslationEditor.tsx:28
↓ 1 callersFunctiondeleteSubtitle
(id: string)
src/components/workflow-steps.tsx:4640
↓ 1 callersFunctiondeleteSubtitle
(id: string)
src/components/workflow/components/SubtitleEditor.tsx:22
↓ 1 callersFunctiondismiss
()
src/components/ui/use-toast.tsx:151
↓ 1 callersFunctionextractBaiduPanLink
(text: string)
src/app/page.tsx:1943
↓ 1 callersFunctionextractIdFromFilename
(filename: string)
src/components/workflow-steps.tsx:665
↓ 1 callersFunctionfinishStepProcessing
()
src/components/workflow-steps.tsx:2418
↓ 1 callersFunctiongenId
()
src/components/ui/use-toast.tsx:28
↓ 1 callersFunctiongenerateExecutionCommands
(stepId: string)
src/components/workflow-steps.tsx:7063
next →1–100 of 548, ranked by callers