MCPcopy Create free account

hub / github.com/MasteringNuxt/mastering-nuxt-full-stack-unleashed / functions

Functions59 in github.com/MasteringNuxt/mastering-nuxt-full-stack-unleashed

↓ 14 callersFunctiongetAuthenticatedUserId
( event: H3Event )
layers/auth/server/utils/auth.ts:1
↓ 7 callersFunctiongetChatByIdForUser
( id: string, userId: string )
layers/chat/server/repository/chatRepository.ts:45
↓ 4 callersFunctioncreateOpenAIModel
(apiKey: string)
layers/chat/server/services/ai-service.ts:11
↓ 3 callersFunctioncreateMessageForChat
({ chatId, content, role, }: { chatId: string content: string role: MessageRole })
layers/chat/server/repository/chatRepository.ts:64
↓ 3 callersFunctiongetMessagesByChatId
( chatId: string )
layers/chat/server/repository/chatRepository.ts:82
↓ 3 callersFunctionisWithinDays
( date: Date, days: number )
layers/base/app/utils/dateUtils.ts:3
↓ 3 callersFunctionupdateProjectInList
( updatedData: Partial<Project> )
layers/chat/app/composables/useProject.ts:8
↓ 2 callersFunctioncreateChat
(data: { title?: string userId: string projectId?: string })
layers/chat/server/repository/chatRepository.ts:91
↓ 2 callersFunctiongenerateChatResponse
( model: LanguageModelV1, messages: Message[] )
layers/chat/server/services/ai-service.ts:18
↓ 2 callersFunctiongetProjectByIdForUser
( id: string, userId: string )
layers/chat/server/repository/projectRepository.ts:24
↓ 2 callersFunctionupdateChat
( id: string, data: { title?: string; projectId?: string } )
layers/chat/server/repository/chatRepository.ts:107
↓ 1 callersFunctioncheckScrollPosition
()
layers/chat/app/composables/useChatScroll.ts:11
↓ 1 callersFunctioncreateChat
( options: { projectId?: string; title?: string } = {} )
layers/chat/app/composables/useChats.ts:53
↓ 1 callersFunctioncreateProject
(data: { name: string userId: string })
layers/chat/server/repository/projectRepository.ts:36
↓ 1 callersFunctioncreateUserFromGitHub
( githubUser: GitHubUser )
layers/auth/server/repository/userRepository.ts:9
↓ 1 callersFunctionfetchMessages
({ refresh = false, }: { refresh?: boolean } = {})
layers/chat/app/composables/useChat.ts:20
↓ 1 callersFunctionfindOrCreateUser
( githubUser: GitHubUser )
layers/auth/server/repository/userRepository.ts:22
↓ 1 callersFunctionfindUserByProviderId
( providerId: string )
layers/auth/server/repository/userRepository.ts:1
↓ 1 callersFunctiongenerateChatTitle
(message: string)
layers/chat/app/composables/useChat.ts:39
↓ 1 callersFunctiongenerateChatTitle
( model: LanguageModelV1, firstMessage: string )
layers/chat/server/services/ai-service.ts:34
↓ 1 callersFunctiongetAllChats
()
layers/chat/server/repository/chatRepository.ts:1
↓ 1 callersFunctiongetAllChatsByUser
( userId: string )
layers/chat/server/repository/chatRepository.ts:14
↓ 1 callersFunctiongetAllProjectsByUser
( userId: string )
layers/chat/server/repository/projectRepository.ts:7
↓ 1 callersFunctiongetRedirectUrl
( userId: string )
layers/auth/server/routes/auth/github.get.ts:7
↓ 1 callersFunctionmain
()
prisma/seed.ts:28
↓ 1 callersFunctionscrollToBottom
(immediate = false)
layers/chat/app/composables/useChatScroll.ts:22
↓ 1 callersFunctionstreamChatResponse
( model: LanguageModelV1, messages: Message[] )
layers/chat/server/services/ai-service.ts:55
↓ 1 callersFunctionupdateProject
( id: string, data: { name: string } )
layers/chat/server/repository/projectRepository.ts:48
↓ 1 callersFunctionuseAuth
()
layers/auth/app/composables/useAuth.ts:1
↓ 1 callersFunctionuseChats
()
layers/chat/app/composables/useChats.ts:1
↓ 1 callersFunctionuseProjects
()
layers/chat/app/composables/useProjects.ts:1
FunctionassignToProject
(projectId: string | null)
layers/chat/app/composables/useChat.ts:143
FunctionchatsInProject
(projectId: string)
layers/chat/app/composables/useChats.ts:88
FunctioncreateChatAndNavigate
( options: { projectId?: string } = {} )
layers/chat/app/composables/useChats.ts:70
FunctioncreateOllamaModel
()
layers/chat/server/services/ai-service.ts:6
FunctioncreateProject
()
layers/chat/app/composables/useProjects.ts:19
FunctiondeleteChat
(id: string)
layers/chat/server/repository/chatRepository.ts:125
FunctiondeleteProject
(id: string)
layers/chat/server/repository/projectRepository.ts:61
FunctionfetchChats
(refresh = false)
layers/chat/app/composables/useChats.ts:12
FunctionfetchProjects
()
layers/chat/app/composables/useProjects.ts:13
FunctionfilterChatsByDateRange
( chats: Chat[], startDays: number, endDays?: number )
layers/base/app/utils/dateUtils.ts:14
Functionflush
()
layers/chat/server/api/chats/[id]/messages/stream.post.ts:46
FunctiongetAllProjects
()
layers/chat/server/repository/projectRepository.ts:1
FunctiongetChatById
( id: string )
layers/chat/server/repository/chatRepository.ts:30
FunctiongetProjectById
( id: string )
layers/chat/server/repository/projectRepository.ts:16
Functionlogout
()
layers/auth/app/composables/useAuth.ts:5
FunctiononError
(event, error)
layers/auth/server/routes/auth/github.get.ts:70
FunctiononSuccess
(event, { user })
layers/auth/server/routes/auth/github.get.ts:37
FunctionpinToBottom
()
layers/chat/app/composables/useChatScroll.ts:60
FunctionprefetchChatMessages
()
layers/chat/app/composables/useChats.ts:18
FunctionseedDemoDataForUser
(userId: string)
templates/seedRepository.ts:1
FunctionsendMessage
(message: string)
layers/chat/app/composables/useChat.ts:55
FunctionshouldInvalidateCache
(event)
layers/chat/server/api/chats/index.get.ts:19
Functionstep
(currentTime: number)
layers/chat/app/composables/useChatScroll.ts:39
Functiontransform
(chunk, controller)
layers/chat/server/api/chats/[id]/messages/stream.post.ts:41
FunctionupdateProject
( updatedProject: Partial<Project> )
layers/chat/app/composables/useProject.ts:18
FunctionuseChat
(chatId: string)
layers/chat/app/composables/useChat.ts:1
FunctionuseChatScroll
()
layers/chat/app/composables/useChatScroll.ts:1
FunctionuseProject
(projectId: string)
layers/chat/app/composables/useProject.ts:1