Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nanjiren01/AIChatWeb
/ functions
Functions
347 in github.com/Nanjiren01/AIChatWeb
⨍
Functions
347
◇
Types & classes
61
↓ 57 callers
Function
get
(id)
app/store/mask.ts:85
↓ 46 callers
Function
showToast
( content: string, action?: ToastProps["action"], delay = 3000, )
app/components/ui-lib.tsx:216
↓ 22 callers
Function
fetch
()
app/store/access.ts:64
↓ 12 callers
Function
getClientConfig
()
app/config/client.ts:3
↓ 11 callers
Method
at
(index: number)
app/polyfill.ts:3
↓ 11 callers
Function
create
(mask)
app/store/mask.ts:55
↓ 9 callers
Function
showConfirm
(content: any)
app/components/ui-lib.tsx:306
↓ 8 callers
Function
get
(id)
app/store/prompt.ts:85
↓ 7 callers
Function
createMessage
(override: Partial<ChatMessage>)
app/store/chat.ts:31
↓ 6 callers
Function
copyToClipboard
(text: string)
app/utils.ts:9
↓ 6 callers
Function
doSubmit
(userInput: string)
app/components/chat.tsx:671
↓ 6 callers
Function
getHeaders
()
app/client/api.ts:135
↓ 6 callers
Function
getLang
()
app/locales/index.ts:94
↓ 5 callers
Function
closeModal
()
app/components/ui-lib.tsx:171
↓ 5 callers
Function
createEmptySession
()
app/store/chat.ts:68
↓ 5 callers
Function
prettyObject
(msg: any)
app/utils/format.ts:1
↓ 5 callers
Function
request
(req: NextRequest)
app/api/common.ts:71
↓ 5 callers
Function
updateConfig
(updater: (config: ModelConfig) => void)
app/components/mask.tsx:56
↓ 4 callers
Function
downloadAs
(text: string, filename: string)
app/utils.ts:34
↓ 4 callers
Function
getPrefix
(balance: Balance)
app/components/profile.tsx:79
↓ 4 callers
Function
limitNumber
( x: number, min: number, max: number, defaultValue: number, )
app/store/config.ts:128
↓ 4 callers
Method
path
(path: string)
app/client/platforms/openai.ts:24
↓ 4 callers
Method
render
()
app/components/error.tsx:39
↓ 4 callers
Function
request
( url: string, method: string, body: any, options?: { onError: (error: Error, statusCode?: number)
app/requests.ts:24
↓ 4 callers
Function
startChat
(mask?: Mask)
app/components/new-chat.tsx:95
↓ 4 callers
Function
useMobileScreen
()
app/utils.ts:100
↓ 3 callers
Method
chat
(options: ChatOptions)
app/client/platforms/openai.ts:40
↓ 3 callers
Function
findLastUserIndex
(messageId: number)
app/components/chat.tsx:773
↓ 3 callers
Function
makeBearer
(token: string)
app/client/api.ts:143
↓ 3 callers
Function
onSearch
(text: string)
app/components/mask.tsx:288
↓ 3 callers
Function
validString
(x: string)
app/client/api.ts:144
↓ 2 callers
Function
changeIndex
(delta: number)
app/components/chat.tsx:224
↓ 2 callers
Function
countMessages
(msgs: ChatMessage[])
app/store/chat.ts:127
↓ 2 callers
Function
createEmptyMask
()
app/store/mask.ts:38
↓ 2 callers
Function
deleteMessage
(userIndex: number)
app/components/chat.tsx:789
↓ 2 callers
Function
estimateTokenLength
(input: string)
app/utils/token.ts:1
↓ 2 callers
Function
extract
(userInput: string)
app/command.ts:43
↓ 2 callers
Function
fillTemplateWith
(input: string, modelConfig: ModelConfig)
app/store/chat.ts:131
↓ 2 callers
Function
getOrCreateMeasureDom
(id: string, init?: (dom: HTMLElement) => void)
app/utils.ts:136
↓ 2 callers
Function
getRegisterCaptcha
(captchaId: string)
app/components/register.tsx:162
↓ 2 callers
Function
getServerSideConfig
()
app/config/server.ts:33
↓ 2 callers
Function
getSize
(x: number)
app/components/markdown.tsx:189
↓ 2 callers
Function
getWidth
(dom: HTMLDivElement)
app/components/chat.tsx:313
↓ 2 callers
Function
isValid
(m: ChatMessage)
app/components/message-selector.tsx:75
↓ 2 callers
Function
limit
(x: number)
app/components/sidebar.tsx:63
↓ 2 callers
Function
requestSendEmailCode
( email: string, resetPassword: boolean, options?: { onError: (error: Error, statusCode?: number) =>
app/requests.ts:138
↓ 2 callers
Function
showPrompt
(content: any, value = "")
app/components/ui-lib.tsx:377
↓ 2 callers
Function
timeoutPromise
(timeout)
scripts/fetch-prompts.mjs:15
↓ 2 callers
Function
updateExportConfig
(updater: (config: typeof exportConfig) => void)
app/components/exporter.tsx:134
↓ 2 callers
Function
useCommand
(commands: Commands = {})
app/command.ts:11
↓ 1 callers
Function
addContextPrompt
(prompt: ChatMessage)
app/components/mask.tsx:227
↓ 1 callers
Function
autoGrowTextArea
(dom: HTMLTextAreaElement)
app/utils.ts:155
↓ 1 callers
Function
changeLang
(lang: Lang)
app/locales/index.ts:112
↓ 1 callers
Method
clearAndSaveData
()
app/components/error.tsx:27
↓ 1 callers
Function
close
()
app/components/ui-lib.tsx:226
↓ 1 callers
Function
computeGroup
()
app/components/new-chat.tsx:43
↓ 1 callers
Function
doSearch
(text: string)
app/components/message-selector.tsx:90
↓ 1 callers
Method
extractMessage
(res: any)
app/client/platforms/openai.ts:36
↓ 1 callers
Function
fetchCN
()
scripts/fetch-prompts.mjs:23
↓ 1 callers
Function
fetchEN
()
scripts/fetch-prompts.mjs:42
↓ 1 callers
Method
fetchMidjourneyStatus
(options: ChatOptions, botMessage: ChatMessage)
app/client/platforms/openai.ts:439
↓ 1 callers
Function
fetchProfile
(token: string)
app/store/profile.ts:30
↓ 1 callers
Function
fetchWebsiteConfig
()
app/store/website.ts:86
↓ 1 callers
Function
formatVersionDate
(t: string)
app/store/update.ts:25
↓ 1 callers
Function
generateUUID
()
app/components/forget-password.tsx:45
↓ 1 callers
Function
generateUUID
()
app/components/register.tsx:45
↓ 1 callers
Function
getBuildConfig
()
app/config/build.ts:3
↓ 1 callers
Function
getCSSVar
(varName: string)
app/utils.ts:177
↓ 1 callers
Function
getDomContentWidth
(dom: HTMLElement)
app/utils.ts:128
↓ 1 callers
Function
getItem
(key: string)
app/locales/index.ts:72
↓ 1 callers
Function
getLanguage
()
app/locales/index.ts:86
↓ 1 callers
Function
getSubTitle
(pkg: Balance)
app/components/balance.tsx:66
↓ 1 callers
Function
getVersion
(type: "date" | "tag")
app/store/update.ts:38
↓ 1 callers
Function
handleClickBuy
(pkg: Package)
app/components/pricing.tsx:111
↓ 1 callers
Function
handleClickSendEmailCode
()
app/components/forget-password.tsx:67
↓ 1 callers
Function
handleClickSendEmailCode
()
app/components/register.tsx:67
↓ 1 callers
Method
handleDraw
(options: ChatOptions, modelConfig: any)
app/client/platforms/openai.ts:268
↓ 1 callers
Function
importFromFile
()
app/components/mask.tsx:307
↓ 1 callers
Function
init
(builtinPrompts: Prompt[], userPrompts: Prompt[])
app/store/prompt.ts:38
↓ 1 callers
Function
isInSearchResult
(id: number)
app/components/message-selector.tsx:87
↓ 1 callers
Function
limit
(x: number)
app/store/chat.ts:227
↓ 1 callers
Function
loadAsyncGoogleFont
()
app/components/home.tsx:151
↓ 1 callers
Function
login
()
app/components/login.tsx:40
↓ 1 callers
Function
logout
()
app/components/profile.tsx:72
↓ 1 callers
Function
logout
()
app/components/login.tsx:66
↓ 1 callers
Function
main
()
scripts/fetch-prompts.mjs:63
↓ 1 callers
Function
merge
(target: any, source: any)
app/utils/merge.ts:1
↓ 1 callers
Function
moveSession
(from: number, to: number)
app/store/chat.ts:174
↓ 1 callers
Function
nextMask
()
app/components/new-chat.tsx:55
↓ 1 callers
Function
onChatBodyScroll
(e: HTMLElement)
app/components/chat.tsx:589
↓ 1 callers
Function
onClickIndex
(index: number)
app/components/message-selector.tsx:16
↓ 1 callers
Function
onDelete
(botMessageId: number)
app/components/chat.tsx:795
↓ 1 callers
Function
onDragMouseDown
(e: MouseEvent)
app/components/sidebar.tsx:86
↓ 1 callers
Function
onInput
(value: string)
app/components/ui-lib.tsx:362
↓ 1 callers
Function
onInput
(text: string)
app/components/chat.tsx:642
↓ 1 callers
Function
onPinMessage
(botMessage: ChatMessage)
app/components/chat.tsx:817
↓ 1 callers
Function
onResend
(botMessageId: number)
app/components/chat.tsx:801
↓ 1 callers
Function
onRightClick
(e: any, message: ChatMessage)
app/components/chat.tsx:762
↓ 1 callers
Function
onUserStop
(messageId: number)
app/components/chat.tsx:711
↓ 1 callers
Function
queryMeta
(key: string, defaultValue?: string)
app/config/client.ts:15
next →
1–100 of 347, ranked by callers