MCPcopy Create free account

hub / github.com/bhaskatripathi/Text2Diagram / functions

Functions29 in github.com/bhaskatripathi/Text2Diagram

↓ 13 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:14
↓ 2 callersFunctionOpenAIStream
( messages: Message[], model: string, key: string )
lib/utils.ts:25
↓ 2 callersFunctionparseCodeFromMessage
(message: string)
lib/utils.ts:91
↓ 1 callersFunctioncopyToClipboard
(text: string)
components/Mermaids.tsx:39
↓ 1 callersFunctioncopyToClipboard
(text: string)
components/CodeBlock.tsx:19
↓ 1 callersFunctiondrawChart
(chart: string, theme: Theme | "")
components/Mermaids.tsx:82
↓ 1 callersFunctionserializeCode
(code: string)
lib/utils.ts:102
FunctionAPIKeyInput
()
components/APIKeyInput.tsx:19
FunctionChatInput
({ messageCotent, onChange, onSubmit, })
components/ChatInput.tsx:11
FunctionChatMessage
({ message }: ChatMessageProps)
components/ChatMessage.tsx:7
FunctionCodeBlock
({ code })
components/CodeBlock.tsx:17
FunctionHome
()
app/page.tsx:15
FunctionMainNav
({ items }: MainNavProps)
components/MainNav.tsx:14
FunctionMermaid
({ chart }: MermaidProps)
components/Mermaids.tsx:24
FunctionPOST
(req: Request)
app/api/openai/route.ts:8
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:22
FunctionSiteHeader
()
components/SiteHeader.tsx:15
Functionchat
(req: Request)
pages/api/chat.ts:8
FunctiondownloadSVG
()
components/Mermaids.tsx:64
FunctionhandleChange
(e: ChangeEvent<HTMLInputElement>)
components/APIKeyInput.tsx:23
FunctionhandleCopyClick
()
components/Mermaids.tsx:48
FunctionhandleCopyClick
()
components/CodeBlock.tsx:28
FunctionhandleKeyDown
(e: KeyboardEvent<HTMLTextAreaElement>)
components/ChatInput.tsx:16
FunctionhandleModelChange
(value: OpenAIModel)
components/APIKeyInput.tsx:26
FunctionhandleSave
()
components/APIKeyInput.tsx:30
FunctionhandleSubmit
()
app/page.tsx:35
FunctionhandleThemeChange
(value: Theme)
components/Mermaids.tsx:100
FunctiononParse
(event: ParsedEvent | ReconnectInterval)
lib/utils.ts:60
Functionstart
(controller)
lib/utils.ts:59