MCPcopy Create free account

hub / github.com/all-in-aigc/aicover / functions

Functions48 in github.com/all-in-aigc/aicover

↓ 15 callersFunctiongetDb
()
models/db.ts:5
↓ 13 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 12 callersFunctionrespErr
(message: string)
lib/resp.ts:9
↓ 4 callersFunctionrespData
(data: any)
lib/resp.ts:1
↓ 3 callersFunctionformatCover
(row: QueryResultRow)
models/cover.ts:160
↓ 3 callersFunctionrespJson
(code: number, message: string, data?: any)
lib/resp.ts:13
↓ 2 callersFunctionfetchUserInfo
()
contexts/AppContext.tsx:14
↓ 2 callersFunctionfindUserByEmail
( email: string )
models/user.ts:20
↓ 2 callersFunctionformatOrder
(row: QueryResultRow)
models/order.ts:98
↓ 2 callersFunctiongenUuid
()
lib/index.ts:3
↓ 2 callersFunctiongetCoversFromSqlResult
( res: QueryResult<QueryResultRow> )
models/cover.ts:141
↓ 2 callersFunctiongetUserCredits
(user_email: string)
services/order.ts:28
↓ 2 callersFunctioninsertUser
(user: User)
models/user.ts:4
↓ 1 callersFunctionclassNames
(...classes: string[])
app/(default)/pricing/page.tsx:53
↓ 1 callersFunctiondownloadAndUploadImage
( imageUrl: string, bucketName: string, s3Key: string )
lib/s3.ts:13
↓ 1 callersFunctionfetchCovers
(page: number)
components/covers/index.tsx:13
↓ 1 callersFunctiongenOrderNo
()
lib/order.ts:3
↓ 1 callersFunctiongetCovers
(page: number, limit: number)
models/cover.ts:118
↓ 1 callersFunctiongetOpenAIClient
()
services/openai.ts:3
↓ 1 callersFunctiongetUserCoversCount
(user_email: string)
models/cover.ts:43
↓ 1 callersFunctiongetUserOrders
( user_email: string )
models/order.ts:75
↓ 1 callersFunctionhandleCheckout
( plan: string, amount: number, currency: string, credits: number )
app/(default)/pricing/page.tsx:61
↓ 1 callersFunctionhandleOrderSession
(session_id: string)
services/order.ts:8
↓ 1 callersFunctionhandleSubmit
()
components/input/index.tsx:26
↓ 1 callersFunctioninsertCover
(cover: Cover)
models/cover.ts:6
↓ 1 callersFunctioninsertOrder
(order: Order)
models/order.ts:5
↓ 1 callersFunctionupdateOrderSession
( order_no: string, stripe_session_id: string )
models/order.ts:62
↓ 1 callersFunctionupdateOrderStatus
( order_no: string, order_status: number, paied_at: string )
models/order.ts:48
FunctionAppContextProvider
({ children }: ContextProviderProps)
contexts/AppContext.tsx:10
FunctionDropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:171
FunctionPOST
(req: Request)
app/api/checkout/route.ts:11
FunctionPOST
(req: Request)
app/api/gen-cover/route.ts:12
FunctionPOST
(req: Request)
app/api/get-user-info/route.ts:9
FunctionPOST
(req: Request)
app/api/get-covers/route.ts:6
FunctionPage
()
app/(auth)/sign-up/[[...sign-up]]/page.tsx:3
FunctionPage
()
app/(auth)/sign-in/[[...sign-in]]/page.tsx:3
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:19
FunctionafterAuth
(auth, req, evt)
middleware.ts:7
FunctiondownloadImage
(imageUrl: string, outputPath: string)
lib/s3.ts:38
FunctionfindCoverById
(id: number)
models/cover.ts:59
FunctionfindCoverByUuid
( uuid: string )
models/cover.ts:74
FunctionfindOrderByOrderNo
( order_no: number )
models/order.ts:29
FunctionfindUserByUuid
(uuid: string)
models/user.ts:44
FunctiongetCoversCount
()
models/cover.ts:30
FunctiongetRandCovers
( page: number, limit: number )
models/cover.ts:91
FunctionhandleInputKeydown
(e: KeyboardEvent<HTMLInputElement>)
components/input/index.tsx:17
FunctionrespOk
()
lib/resp.ts:5
FunctionsaveUser
(user: User)
services/user.ts:5