Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MasteringNuxt/mastering-nuxt-full-stack-unleashed
/ functions
Functions
59 in github.com/MasteringNuxt/mastering-nuxt-full-stack-unleashed
⨍
Functions
59
◇
Types & classes
1
↓ 14 callers
Function
getAuthenticatedUserId
( event: H3Event )
layers/auth/server/utils/auth.ts:1
↓ 7 callers
Function
getChatByIdForUser
( id: string, userId: string )
layers/chat/server/repository/chatRepository.ts:45
↓ 4 callers
Function
createOpenAIModel
(apiKey: string)
layers/chat/server/services/ai-service.ts:11
↓ 3 callers
Function
createMessageForChat
({ chatId, content, role, }: { chatId: string content: string role: MessageRole })
layers/chat/server/repository/chatRepository.ts:64
↓ 3 callers
Function
getMessagesByChatId
( chatId: string )
layers/chat/server/repository/chatRepository.ts:82
↓ 3 callers
Function
isWithinDays
( date: Date, days: number )
layers/base/app/utils/dateUtils.ts:3
↓ 3 callers
Function
updateProjectInList
( updatedData: Partial<Project> )
layers/chat/app/composables/useProject.ts:8
↓ 2 callers
Function
createChat
(data: { title?: string userId: string projectId?: string })
layers/chat/server/repository/chatRepository.ts:91
↓ 2 callers
Function
generateChatResponse
( model: LanguageModelV1, messages: Message[] )
layers/chat/server/services/ai-service.ts:18
↓ 2 callers
Function
getProjectByIdForUser
( id: string, userId: string )
layers/chat/server/repository/projectRepository.ts:24
↓ 2 callers
Function
updateChat
( id: string, data: { title?: string; projectId?: string } )
layers/chat/server/repository/chatRepository.ts:107
↓ 1 callers
Function
checkScrollPosition
()
layers/chat/app/composables/useChatScroll.ts:11
↓ 1 callers
Function
createChat
( options: { projectId?: string; title?: string } = {} )
layers/chat/app/composables/useChats.ts:53
↓ 1 callers
Function
createProject
(data: { name: string userId: string })
layers/chat/server/repository/projectRepository.ts:36
↓ 1 callers
Function
createUserFromGitHub
( githubUser: GitHubUser )
layers/auth/server/repository/userRepository.ts:9
↓ 1 callers
Function
fetchMessages
({ refresh = false, }: { refresh?: boolean } = {})
layers/chat/app/composables/useChat.ts:20
↓ 1 callers
Function
findOrCreateUser
( githubUser: GitHubUser )
layers/auth/server/repository/userRepository.ts:22
↓ 1 callers
Function
findUserByProviderId
( providerId: string )
layers/auth/server/repository/userRepository.ts:1
↓ 1 callers
Function
generateChatTitle
(message: string)
layers/chat/app/composables/useChat.ts:39
↓ 1 callers
Function
generateChatTitle
( model: LanguageModelV1, firstMessage: string )
layers/chat/server/services/ai-service.ts:34
↓ 1 callers
Function
getAllChats
()
layers/chat/server/repository/chatRepository.ts:1
↓ 1 callers
Function
getAllChatsByUser
( userId: string )
layers/chat/server/repository/chatRepository.ts:14
↓ 1 callers
Function
getAllProjectsByUser
( userId: string )
layers/chat/server/repository/projectRepository.ts:7
↓ 1 callers
Function
getRedirectUrl
( userId: string )
layers/auth/server/routes/auth/github.get.ts:7
↓ 1 callers
Function
main
()
prisma/seed.ts:28
↓ 1 callers
Function
scrollToBottom
(immediate = false)
layers/chat/app/composables/useChatScroll.ts:22
↓ 1 callers
Function
streamChatResponse
( model: LanguageModelV1, messages: Message[] )
layers/chat/server/services/ai-service.ts:55
↓ 1 callers
Function
updateProject
( id: string, data: { name: string } )
layers/chat/server/repository/projectRepository.ts:48
↓ 1 callers
Function
useAuth
()
layers/auth/app/composables/useAuth.ts:1
↓ 1 callers
Function
useChats
()
layers/chat/app/composables/useChats.ts:1
↓ 1 callers
Function
useProjects
()
layers/chat/app/composables/useProjects.ts:1
Function
assignToProject
(projectId: string | null)
layers/chat/app/composables/useChat.ts:143
Function
chatsInProject
(projectId: string)
layers/chat/app/composables/useChats.ts:88
Function
createChatAndNavigate
( options: { projectId?: string } = {} )
layers/chat/app/composables/useChats.ts:70
Function
createOllamaModel
()
layers/chat/server/services/ai-service.ts:6
Function
createProject
()
layers/chat/app/composables/useProjects.ts:19
Function
deleteChat
(id: string)
layers/chat/server/repository/chatRepository.ts:125
Function
deleteProject
(id: string)
layers/chat/server/repository/projectRepository.ts:61
Function
fetchChats
(refresh = false)
layers/chat/app/composables/useChats.ts:12
Function
fetchProjects
()
layers/chat/app/composables/useProjects.ts:13
Function
filterChatsByDateRange
( chats: Chat[], startDays: number, endDays?: number )
layers/base/app/utils/dateUtils.ts:14
Function
flush
()
layers/chat/server/api/chats/[id]/messages/stream.post.ts:46
Function
getAllProjects
()
layers/chat/server/repository/projectRepository.ts:1
Function
getChatById
( id: string )
layers/chat/server/repository/chatRepository.ts:30
Function
getProjectById
( id: string )
layers/chat/server/repository/projectRepository.ts:16
Function
logout
()
layers/auth/app/composables/useAuth.ts:5
Function
onError
(event, error)
layers/auth/server/routes/auth/github.get.ts:70
Function
onSuccess
(event, { user })
layers/auth/server/routes/auth/github.get.ts:37
Function
pinToBottom
()
layers/chat/app/composables/useChatScroll.ts:60
Function
prefetchChatMessages
()
layers/chat/app/composables/useChats.ts:18
Function
seedDemoDataForUser
(userId: string)
templates/seedRepository.ts:1
Function
sendMessage
(message: string)
layers/chat/app/composables/useChat.ts:55
Function
shouldInvalidateCache
(event)
layers/chat/server/api/chats/index.get.ts:19
Function
step
(currentTime: number)
layers/chat/app/composables/useChatScroll.ts:39
Function
transform
(chunk, controller)
layers/chat/server/api/chats/[id]/messages/stream.post.ts:41
Function
updateProject
( updatedProject: Partial<Project> )
layers/chat/app/composables/useProject.ts:18
Function
useChat
(chatId: string)
layers/chat/app/composables/useChat.ts:1
Function
useChatScroll
()
layers/chat/app/composables/useChatScroll.ts:1
Function
useProject
(projectId: string)
layers/chat/app/composables/useProject.ts:1