MCPcopy Create free account

hub / github.com/DE0CH/grok-frontend / functions

Functions35 in github.com/DE0CH/grok-frontend

↓ 5 callersFunctionproxyUrl
Build proxy URL: ?url=<encoded-full-target-url>
src/lib/grokApi.ts:19
↓ 3 callersFunctionfallback
(prefix: string)
src/lib/grokApi.ts:277
↓ 3 callersFunctionsetGrokApiKey
(key: string | null)
src/lib/grokApi.ts:4
↓ 2 callersFunctiongetApiKey
()
src/lib/grokApi.ts:8
↓ 2 callersFunctiongetDownloadFilename
( url: string, defaultName = "grok-image" )
src/lib/downloadUtils.ts:16
↓ 2 callersFunctiongetErrorMessage
Extract a user-facing message from API errors; prefers full JSON when available.
src/lib/grokApi.ts:62
↓ 2 callersFunctionprocessImageGenerationResponse
Process raw image generation/edit response into success or unknown_error, surfacing raw body on unknown.
src/lib/grokApi.ts:179
↓ 2 callersFunctionuseProxy
(url: string)
src/lib/grokApi.ts:25
↓ 2 callersFunctionxaiPostRaw
Low-level POST helper for image endpoints that returns raw response text and surfaces API errors.
src/lib/grokApi.ts:144
↓ 1 callersFunctionclearApiKeyCookie
()
src/lib/cookies.ts:16
↓ 1 callersFunctiongetApiKeyFromCookie
()
src/lib/cookies.ts:4
↓ 1 callersFunctiongetBaseUrl
()
src/lib/grokApi.ts:13
↓ 1 callersFunctiongrokFetch
Custom fetch so requests to imgen.x.ai and vidgen.x.ai go via our proxy (avoids CORS).
src/lib/grokApi.ts:30
↓ 1 callersFunctionimageEdit
( prompt: string, imageDataUri: string )
src/lib/grokApi.ts:232
↓ 1 callersFunctionimageToVideo
( prompt: string, imageDataUri: string, options?: { duration?: number; resolution?: string } )
src/lib/grokApi.ts:342
↓ 1 callersFunctionisAllowedApiPath
(pathname: string)
api/proxy.ts:19
↓ 1 callersFunctionisAllowedCdnUrl
(url: string)
api/proxy.ts:8
↓ 1 callersFunctionisAllowedUrl
(targetUrl: string)
api/proxy.ts:25
↓ 1 callersFunctionprocessVideoPollResponse
Process raw video poll response text into one of: pending, success, known_error, unknown_error.
src/lib/grokApi.ts:264
↓ 1 callersFunctionproxyFetch
(request: Request)
api/proxy.ts:36
↓ 1 callersFunctionsetApiKeyCookie
(key: string)
src/lib/cookies.ts:10
↓ 1 callersFunctionstatusMessage
(status: number)
src/lib/grokApi.ts:43
↓ 1 callersFunctiontextToImage
(prompt: string)
src/lib/grokApi.ts:213
↓ 1 callersFunctionusePageTitle
()
src/App.tsx:16
FunctionApp
()
src/App.tsx:68
FunctionImageToImage
()
src/pages/ImageToImage.tsx:6
FunctionImageToVideo
()
src/pages/ImageToVideo.tsx:10
FunctionImageUpload
({ preview, onFileSelect, label = "Image" }: Props)
src/components/ImageUpload.tsx:9
FunctionLogin
()
src/pages/Login.tsx:6
FunctionNotFound
()
src/pages/NotFound.tsx:3
FunctionProtectedLayout
({ children }: { children: React.ReactNode })
src/App.tsx:32
FunctionTextToImage
()
src/pages/TextToImage.tsx:5
FunctionconfigureServer
(server)
vite.config.ts:14
FunctionhandleLogout
()
src/App.tsx:47
FunctionhandleSubmit
(e: React.FormEvent)
src/pages/Login.tsx:13