Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MemeCalculate/moyin-creator
/ functions
Functions
1,435 in github.com/MemeCalculate/moyin-creator
⨍
Functions
1,435
◇
Types & classes
419
↓ 415 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:9
↓ 97 callers
Method
get
(key: string)
src/lib/storage/types.ts:8
↓ 93 callers
Function
promptInput
()
src/lib/freedom/model-registry.ts:41
↓ 83 callers
Method
set
(key: string, value: T)
src/lib/storage/types.ts:9
↓ 80 callers
Function
onProgress
(completed: number, total: number)
src/components/panels/script/index.tsx:1514
↓ 67 callers
Function
aspectRatioInput
( ratios: string[], defaultRatio?: string, )
src/lib/freedom/model-registry.ts:70
↓ 59 callers
Function
getFeatureConfig
(feature: AIFeature)
src/lib/ai/feature-router.ts:144
↓ 47 callers
Method
keys
()
src/lib/storage/types.ts:68
↓ 39 callers
Method
entries
()
src/lib/storage/types.ts:70
↓ 38 callers
Method
getCurrentKey
* Get the current API key
src/lib/api-key-manager.ts:307
↓ 35 callers
Function
getFeatureNotConfiguredMessage
(feature: AIFeature)
src/lib/ai/feature-router.ts:220
↓ 33 callers
Function
durationInput
( opts: { default?: number; enum?: number[] }, )
src/lib/freedom/model-registry.ts:90
↓ 32 callers
Function
resolutionInput
( values: string[], defaultVal?: string, )
src/lib/freedom/model-registry.ts:99
↓ 30 callers
Function
parseApiKeys
(apiKey: string)
src/lib/api-key-manager.ts:224
↓ 26 callers
Function
persistSceneImage
( imageData: string, sceneId: number, frameType: 'first' | 'end' = 'first', category: ImageCategor
src/lib/utils/image-persist.ts:33
↓ 25 callers
Function
reportSceneProgress
* Helper: Report scene progress
src/workers/ai-worker.ts:528
↓ 24 callers
Function
getStyleById
(styleId: string)
src/lib/constants/visual-styles.ts:588
↓ 22 callers
Function
copyDir
(source: string, destination: string)
electron/main.ts:351
↓ 22 callers
Function
saveImageToLocal
( url: string, category: ImageCategory, filename: string = 'image.png' )
src/lib/image-storage.ts:38
↓ 20 callers
Function
readImageAsBase64
(imagePath: string)
src/lib/image-storage.ts:115
↓ 20 callers
Function
removeDir
(dirPath: string)
electron/main.ts:356
↓ 19 callers
Function
widthHeightInputs
( min: number, max: number, step: number, defaults?: { width?: number; height?: number }, )
src/lib/freedom/model-registry.ts:46
↓ 18 callers
Function
getMediaRoot
()
electron/main.ts:317
↓ 18 callers
Function
postEvent
(event: WorkerEvent)
src/workers/ai-worker.ts:1202
↓ 17 callers
Function
submitGridImageRequest
(params: { model: string; prompt: string; apiKey: string; baseUrl: string; aspectRatio: string;
src/lib/ai/image-generator.ts:779
↓ 16 callers
Method
on
* Register event handlers
src/lib/ai/worker-bridge.ts:81
↓ 15 callers
Function
normalizeUrl
(url: unknown)
src/components/panels/director/use-image-generation.ts:11
↓ 15 callers
Function
numImagesInput
( min: number, max: number, )
src/lib/freedom/model-registry.ts:80
↓ 14 callers
Method
clear
()
src/lib/storage/types.ts:12
↓ 14 callers
Method
remove
(key: string)
src/lib/storage/types.ts:10
↓ 14 callers
Function
retryOperation
( operation: () => Promise<T>, options: RetryOptions = {} )
src/lib/utils/retry.ts:65
↓ 14 callers
Function
toUploadHttpUrl
(file: FreedomVideoUploadFile)
src/lib/freedom/freedom-api.ts:1018
↓ 14 callers
Method
values
()
src/lib/storage/types.ts:69
↓ 13 callers
Function
callFeatureAPI
( feature: AIFeature, systemPrompt: string, userPrompt: string, options?: CallFeatureAPIOptions )
src/lib/ai/feature-router.ts:253
↓ 13 callers
Function
ensureDir
(dirPath: string)
electron/main.ts:262
↓ 13 callers
Function
getPromptByLanguage
(zh: string | undefined, en: string | undefined)
src/components/panels/director/split-scene-card.tsx:187
↓ 13 callers
Function
isValid
(v?: string | null)
src/components/panels/sclass/sclass-prompt-builder.ts:452
↓ 13 callers
Function
normalizePath
(inputPath: string)
electron/main.ts:268
↓ 13 callers
Function
update
(props: ToasterToast)
src/hooks/use-toast.ts:148
↓ 12 callers
Method
handleError
* Handle API errors and decide whether to rotate * Returns true if key was rotated
src/lib/api-key-manager.ts:372
↓ 12 callers
Function
normalizeUrl
(url: any)
src/components/panels/director/split-scenes.tsx:1120
↓ 12 callers
Function
useActiveScriptProject
()
src/stores/script-store.ts:1147
↓ 11 callers
Function
findPresetToken
* 查找预设 token 并应用媒介类型翻译。 * 当 mediaType 为 undefined 时视为 cinematic(直通)。
src/lib/generation/prompt-builder.ts:78
↓ 11 callers
Function
getCharacterReferenceImages
()
src/components/panels/director/screenplay-input.tsx:364
↓ 11 callers
Function
getShotCompletionStatus
(shot: Shot)
src/lib/script/shot-utils.ts:15
↓ 11 callers
Function
normalizeUrlValue
(url: any)
src/components/panels/sclass/sclass-scenes.tsx:1822
↓ 11 callers
Function
normalizeUrlValue
(url: any)
src/components/panels/director/split-scenes.tsx:2064
↓ 11 callers
Function
push
(value?: string | null, maxLength = 96)
src/components/panels/director/split-scenes.tsx:215
↓ 11 callers
Function
toHttpError
(prefix: string, status: number, body: string)
src/lib/freedom/freedom-api.ts:600
↓ 11 callers
Function
useActiveDirectorProject
()
src/stores/director-store.ts:2198
↓ 11 callers
Function
writeJSON
(filePath, data)
scripts/prepare-demo-data.cjs:37
↓ 10 callers
Function
extractVideoUrl
(data: any)
src/lib/freedom/freedom-api.ts:1590
↓ 10 callers
Function
getRootBaseUrl
(baseUrl: string)
src/lib/freedom/freedom-api.ts:155
↓ 10 callers
Function
getStylePrompt
(styleId: string | null | undefined)
src/lib/constants/visual-styles.ts:593
↓ 10 callers
Function
isImageHostConfigured
()
src/lib/image-host.ts:380
↓ 10 callers
Function
normalizeUrl
(url: any)
src/components/panels/sclass/sclass-scenes.tsx:897
↓ 10 callers
Function
sleepOrAbort
AbortSignal 感知的 sleep:若信号触发则立即以 '用户已取消' 拒绝
src/components/panels/director/use-video-generation.ts:410
↓ 10 callers
Function
useResolvedImageUrl
(rawUrl: string | null | undefined)
src/hooks/use-resolved-image-url.ts:24
↓ 9 callers
Function
delay
(ms: number)
src/lib/utils/rate-limiter.ts:66
↓ 9 callers
Function
ensureString
(val: any)
src/lib/script/ai-character-finder.ts:388
↓ 9 callers
Function
getProjectDataRoot
()
electron/main.ts:311
↓ 9 callers
Function
normalizeGenerationPrefs
( prefs?: Partial<SceneGenerationPrefs> | null )
src/stores/scene-store.ts:131
↓ 9 callers
Function
reportSceneFailed
* Helper: Report scene failed
src/workers/ai-worker.ts:553
↓ 8 callers
Function
convertToHttpUrl
( rawUrl: unknown, options?: ConvertToHttpUrlOptions )
src/components/panels/director/use-video-generation.ts:89
↓ 8 callers
Function
extractVideoUrl
* Extract video URL from various response formats
src/components/panels/director/use-video-generation.ts:520
↓ 8 callers
Function
generateId
()
src/lib/api-key-manager.ts:217
↓ 8 callers
Function
isElectron
()
src/lib/image-storage.ts:27
↓ 8 callers
Function
saveToMediaLibrary
( url: string, prompt: string, source: 'ai-image' | 'ai-video' )
src/lib/freedom/freedom-api.ts:1643
↓ 8 callers
Method
sendCommand
(command: WorkerCommand)
src/lib/ai/worker-bridge.ts:230
↓ 7 callers
Function
_findStyle
内部:先查内置,再查自定义
src/lib/constants/visual-styles.ts:574
↓ 7 callers
Function
downloadFile
* Download a file from any URL type (HTTP, local-image://, data:) as Blob
src/lib/script/export-service.ts:90
↓ 7 callers
Function
generateUUID
()
src/lib/utils.ts:21
↓ 7 callers
Function
getActiveProjectId
* Get current activeProjectId from project-store. * MUST be called synchronously (before any await) to avoid race conditions.
src/lib/project-storage.ts:22
↓ 7 callers
Function
getAngleLabel
( direction: HorizontalDirection, elevation: ElevationAngle, shotSize: ShotSize )
src/lib/ai/runninghub-angles.ts:162
↓ 7 callers
Function
getCharacterReferenceImages
(shot: Shot)
src/components/panels/script/shot-list.tsx:68
↓ 7 callers
Function
getDataDir
()
electron/main.ts:946
↓ 7 callers
Function
handleVideoSubmitError
( status: number, errorText: string, keyManager?: { handleError: (status: number, errorText?: string)
src/components/panels/director/use-video-generation.ts:291
↓ 7 callers
Function
isNonEmptyString
(value: unknown)
electron/main.ts:46
↓ 7 callers
Function
normalizeLocation
* 标准化地点名称用于匹配
src/lib/script/scene-calibrator.ts:224
↓ 7 callers
Method
poll
* Poll an async task until completion or failure * Automatically extends timeout based on server's estimated_time
src/packages/ai-core/api/task-poller.ts:33
↓ 7 callers
Function
readJSON
(filePath)
scripts/prepare-demo-data.cjs:32
↓ 7 callers
Function
uploadToImageHost
( imageData: string, options?: UploadOptions )
src/lib/image-host.ts:301
↓ 6 callers
Function
buildSeriesContextSummary
(meta: SeriesMeta | null)
src/lib/script/series-meta-sync.ts:119
↓ 6 callers
Function
calculateProgress
(items: { status?: CompletionStatus }[])
src/lib/script/shot-utils.ts:28
↓ 6 callers
Function
ensureString
(val: any)
src/lib/script/ai-scene-finder.ts:238
↓ 6 callers
Function
extractImageUrl
(data: any)
src/lib/freedom/freedom-api.ts:1570
↓ 6 callers
Function
getMediaType
(styleId: string | null | undefined)
src/lib/constants/visual-styles.ts:665
↓ 6 callers
Function
getOptionKey
(option: ProviderOption)
src/components/api-manager/FeatureBindingPanel.tsx:108
↓ 6 callers
Method
getProjectMediaAdapters
({ projectId }: { projectId: string })
src/lib/storage/storage-service.ts:46
↓ 6 callers
Method
getTotalKeyCount
* Get total key count
src/lib/api-key-manager.ts:405
↓ 6 callers
Function
isProviderConfigured
(providerIdOrPlatform: string)
src/components/api-manager/FeatureBindingPanel.tsx:267
↓ 6 callers
Function
normalizeUrl
(url: any)
src/lib/ai/image-generator.ts:881
↓ 6 callers
Function
pad
(value: number, length: number = 2)
src/lib/time.ts:7
↓ 6 callers
Function
sanitizeExternalUrl
(value?: string)
electron/main.ts:50
↓ 5 callers
Function
cleanup
()
src/components/panels/director/use-video-generation.ts:1342
↓ 5 callers
Function
createShot
* 创建分镜对象
src/lib/script/full-script-service.ts:919
↓ 5 callers
Function
dispatch
(action: Action)
src/hooks/use-toast.ts:136
↓ 5 callers
Function
estimateTokens
(text: string)
src/lib/ai/model-registry.ts:260
↓ 5 callers
Function
exportProjectMetadata
(projectId: string)
src/lib/script/full-script-service.ts:2429
↓ 5 callers
Function
generateAngleSwitch
(params: { referenceImage: string; direction: HorizontalDirection; elevation: ElevationAngle; shot
src/lib/ai/runninghub-client.ts:230
next →
1–100 of 1,435, ranked by callers