MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / getCategoryLabel

Function getCategoryLabel

webui/src/components/data/DataExplorer.tsx:26–36  ·  view source on GitHub ↗
(category: string)

Source from the content-addressed store, hash-verified

24
25// 类别显示名称
26function getCategoryLabel(category: string): string {
27 const labels: Record<string, string> = {
28 'search_comments': 'Comments',
29 'search_creators': 'Creators',
30 'search_videos': 'Videos',
31 'search_contents': 'Contents',
32 'search_notes': 'Notes',
33 'other': 'Other',
34 }
35 return labels[category] || category.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase())
36}
37
38export function DataExplorer() {
39 const { t } = useTranslation('data')

Callers 1

DataExplorerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected