MCPcopy Create free account

hub / github.com/302ai/302_ai_card_generation / functions

Functions213 in github.com/302ai/302_ai_card_generation

↓ 229 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 10 callersFunctionlog
(level: DebugLevel, scope: string | undefined, messages: any[])
src/utils/logger.ts:54
↓ 9 callersFunctioncreateScopedLogger
(scope: string)
src/utils/logger.ts:32
↓ 7 callersFunctionlangToCountry
(lang: string)
src/utils/302.ts:8
↓ 7 callersFunctionsanitizeHtml
(htmlContent: string)
src/components/panel/right-panel/history.tsx:37
↓ 5 callersFunctionErrorToast
(code: number)
src/components/ui/errorToast.tsx:13
↓ 5 callersFunctiondispatch
(action: Action)
src/hooks/global/use-toast.ts:133
↓ 4 callersFunctionhandleDelete
(id: string, status: string)
src/components/panel/right-panel/history.tsx:112
↓ 4 callersFunctionrenderErrorMessage
()
src/components/common/form-generator/index.tsx:128
↓ 4 callersFunctionuseCarousel
()
src/components/ui/carousel.tsx:34
↓ 4 callersFunctionuseFormField
()
src/components/ui/form.tsx:44
↓ 4 callersFunctionuseSidebar
()
src/components/ui/sidebar.tsx:40
↓ 3 callersFunctioncleanupChatElements
()
src/components/global/app-chat/index.tsx:109
↓ 3 callersFunctiongenPhilosophicalCard
({ apiKey, model, lang, style, content, }: GeneratePhilosophicalCardParams)
src/services/gen-philosophical-card.ts:28
↓ 3 callersFunctiongenerateQuoteCard
({ apiKey, model, content, author, textPosition, style, }: GenerateQuoteCardParams)
src/services/gen-quote.ts:29
↓ 3 callersFunctiongenerateSVG
({ apiKey, model, lang, content, style, styleType, }: GenerateSVGParams)
src/services/generate-svg.ts:56
↓ 3 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
src/components/ui/chart.tsx:325
↓ 3 callersFunctionisAuthPath
(pathname: string)
src/utils/path.ts:3
↓ 3 callersFunctionisOutsideDeployMode
()
src/utils/302.ts:25
↓ 3 callersFunctionuseHistory
(page = 1)
src/hooks/db/use-gen-history.ts:12
↓ 3 callersFunctionuseIsHideBrand
()
src/hooks/global/use-is-hide-brand.ts:5
↓ 3 callersFunctionuseTheme
()
src/hooks/global/use-theme.ts:6
↓ 2 callersFunction_stripIndents
(value: string)
src/utils/strip-indent.ts:22
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
src/hooks/global/use-toast.ts:58
↓ 2 callersFunctiongenerateHTML
({ apiKey, model, lang, date, topic, style, qrCode, type, }: GenerateHTMLParams)
src/services/gen-html.ts:32
↓ 2 callersFunctiongetLabelStyles
(color: string, textColor: string)
src/utils/logger.ts:101
↓ 2 callersFunctionhandleDeploy
(id: string, html: string)
src/components/panel/right-panel/history.tsx:153
↓ 2 callersFunctionneedAuth
(pathname: string)
src/utils/path.ts:7
↓ 2 callersFunctionrenderEdgeLabel
(label?: string | LabelConfig)
src/components/common/form-generator/index.tsx:437
↓ 2 callersFunctionrenderTooltip
(content: string)
src/components/common/form-generator/index.tsx:192
↓ 2 callersFunctionsystemPrompt
({ lang = "zh", type, }: { lang?: "zh" | "en" | "ja"; type: "input-based" | "extract-key"; })
src/constants/prompt.ts:4
↓ 2 callersFunctiontoast
({ ...props }: Toast)
src/hooks/global/use-toast.ts:142
↓ 2 callersFunctionuseAuth
()
src/hooks/auth/index.ts:28
↓ 2 callersFunctionuseChart
()
src/components/ui/chart.tsx:32
↓ 2 callersFunctionuseChat
()
src/hooks/global/use-chat.ts:5
↓ 2 callersFunctionuseDomain
()
src/hooks/global/use-domain.ts:7
↓ 2 callersFunctionuseIsMobile
()
src/hooks/global/use-mobile.tsx:5
↓ 2 callersFunctionuseMonitorMessage
()
src/hooks/global/use-monitor-message.ts:11
↓ 2 callersFunctionuserPrompt
({ date, topic, style, qrCode, }: { date: string; topic: string; style: string; qrCode: string
src/constants/prompt.ts:307
↓ 1 callersFunctionchangeStylePrompt
({ content, html, }: { content: string; html: string; })
src/constants/prompt.ts:969
↓ 1 callersFunctioncheckStaleItems
()
src/components/panel/right-panel/history.tsx:124
↓ 1 callersFunctioncleanSvgFromMarkdown
* Cleans SVG string from markdown formatting * @param svgString - The SVG string that might contain markdown * @returns Cleaned SVG string
src/services/generate-svg.ts:37
↓ 1 callersFunctioncreateChatFunction
()
src/components/global/app-chat/index.tsx:39
↓ 1 callersFunctioncreateStorage
()
src/stores/slices/generation_store.ts:13
↓ 1 callersFunctioncreateStorage
()
src/stores/slices/form_store.ts:24
↓ 1 callersFunctioncreateStorage
()
src/stores/slices/ui_store.ts:24
↓ 1 callersFunctioncreateStorage
()
src/stores/slices/history_store.ts:14
↓ 1 callersFunctioncreateStorage
()
src/stores/slices/modal_store.ts:15
↓ 1 callersFunctiondepolyMode
()
src/utils/302.ts:18
↓ 1 callersFunctiondismiss
()
src/hooks/global/use-toast.ts:150
↓ 1 callersFunctionextractSvgContent
(content: string)
src/components/panel/right-panel/svg-preview.tsx:10
↓ 1 callersFunctiongenId
()
src/hooks/global/use-toast.ts:27
↓ 1 callersFunctiongenerateHTML
({ apiKey, content, html, }: ChangeStyleParams)
src/services/change-style.ts:16
↓ 1 callersFunctiongetColorForLevel
(level: DebugLevel)
src/utils/logger.ts:105
↓ 1 callersFunctiongetServerTheme
(cookies: CookiesFn)
src/utils/theme.ts:6
↓ 1 callersFunctionhandleCloseModal
()
src/components/panel/right-panel/html-preview.tsx:115
↓ 1 callersFunctionhandleCloseModal
()
src/components/panel/right-panel/svg-preview.tsx:229
↓ 1 callersFunctionhandleEditHtml
(id: string, html: string)
src/components/panel/right-panel/history.tsx:309
↓ 1 callersFunctionhandleLangParam
(request: NextRequest)
src/middleware.ts:10
↓ 1 callersFunctionhandlePreviewClick
(htmlContent: string, index?: number)
src/components/panel/right-panel/html-preview.tsx:103
↓ 1 callersFunctionhandlePreviewClick
()
src/components/panel/right-panel/svg-preview.tsx:219
↓ 1 callersFunctionhandleRetry
(values: any)
src/components/panel/right-panel/history.tsx:218
↓ 1 callersFunctionhandleSubmit
(event: FormEvent)
src/components/forms/auth/index.tsx:17
↓ 1 callersFunctioninitializeChat
()
src/components/global/app-chat/index.tsx:137
↓ 1 callersFunctioninitializeChatScript
()
src/components/global/app-chat/index.tsx:59
↓ 1 callersFunctionisMobile
()
src/utils/mobile.ts:1
↓ 1 callersFunctionloadInstallScript
( document: Document, scriptTag: string, scriptId: string )
src/components/global/app-chat/index.tsx:92
↓ 1 callersFunctionloadMainScript
()
src/components/global/app-chat/index.tsx:122
↓ 1 callersFunctionlogin
(code?: string)
src/services/auth.ts:31
↓ 1 callersFunctionnormalizeLanguageCode
(lang: string)
src/utils/language.ts:2
↓ 1 callersFunctiononChange
()
src/hooks/global/use-mobile.tsx:12
↓ 1 callersFunctiononDownLoadAsPng
(html: string)
src/components/panel/right-panel/download-dropdown.tsx:35
↓ 1 callersFunctiononDownLoadAsSvg
(svgContent: string)
src/components/panel/right-panel/download-dropdown.tsx:86
↓ 1 callersFunctiononDownloadAsHtml
(html: string)
src/components/panel/right-panel/download-dropdown.tsx:66
↓ 1 callersFunctiononGetResult
( fullStream: AsyncIterableStream<TextStreamPart<any>> )
src/services/generate-svg.ts:121
↓ 1 callersFunctiononGetResult
( fullStream: AsyncIterableStream<TextStreamPart<any>> )
src/services/gen-philosophical-card.ts:84
↓ 1 callersFunctiononGetResult
( fullStream: AsyncIterableStream<TextStreamPart<any>> )
src/services/gen-quote.ts:84
↓ 1 callersFunctiononGetResult
( fullStream: AsyncIterableStream<TextStreamPart<any>> )
src/services/gen-html.ts:85
↓ 1 callersFunctionoptimizeHtmlForFullPreview
(html: string)
src/components/panel/right-panel/html-preview.tsx:139
↓ 1 callersFunctionoptimizeHtmlForPreview
(html: string)
src/components/panel/right-panel/html-preview.tsx:75
↓ 1 callersFunctionoptimizeSvgForFullPreview
( svgContent: string, title: string )
src/components/panel/right-panel/svg-preview.tsx:115
↓ 1 callersFunctionoptimizeSvgForPreview
(svgContent: string, title: string)
src/components/panel/right-panel/svg-preview.tsx:97
↓ 1 callersFunctionphilosophicalCardPrompt
({ content, style, lang = "zh", }: { content: string; style: string; lang?: "zh" | "en" | "ja"; })
src/constants/prompt.ts:857
↓ 1 callersFunctionposterPromptForCustomAndTemplate
({ lang = "zh", content, style, }: { lang?: "zh" | "en" | "ja"; content: string; style: string; })
src/constants/prompt.ts:595
↓ 1 callersFunctionposterPromptForRandom
({ lang = "zh", content, }: { lang?: "zh" | "en" | "ja"; content: string; })
src/constants/prompt.ts:340
↓ 1 callersFunctionquoteReferenceCardPrompt
({ content, author, textPosition, style, }: { content: string; style: string; author: string;
src/constants/prompt.ts:931
↓ 1 callersFunctionreducer
(state: State, action: Action)
src/hooks/global/use-toast.ts:74
↓ 1 callersFunctionremoveParams
(pathname: string)
src/utils/path.ts:13
↓ 1 callersFunctionrenderBottomContent
()
src/components/common/form-generator/index.tsx:218
↓ 1 callersFunctionrenderCheckbox
()
src/components/common/form-generator/index.tsx:340
↓ 1 callersFunctionrenderInput
()
src/components/common/form-generator/index.tsx:143
↓ 1 callersFunctionrenderLabel
()
src/components/common/form-generator/index.tsx:430
↓ 1 callersFunctionrenderSelect
()
src/components/common/form-generator/index.tsx:164
↓ 1 callersFunctionrenderSlider
()
src/components/common/form-generator/index.tsx:375
↓ 1 callersFunctionrenderStepLabels
()
src/components/common/form-generator/index.tsx:387
↓ 1 callersFunctionrenderSwitch
()
src/components/common/form-generator/index.tsx:355
↓ 1 callersFunctionrenderTextarea
()
src/components/common/form-generator/index.tsx:214
↓ 1 callersFunctionresetGlobalVariables
()
src/components/global/app-chat/index.tsx:86
↓ 1 callersFunctionuseCopyToClipboard
({ text, copyMessage = "Copied to clipboard!", }: UseCopyToClipboardProps)
src/hooks/global/use-copy-to-clipboard.ts:10
↓ 1 callersFunctionuseIsDark
()
src/hooks/global/use-is-dark.ts:6
next →1–100 of 213, ranked by callers