Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 27, 2024
1 parent 3f5411e commit 725d4ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
19 changes: 2 additions & 17 deletions ee/tabby-ui/lib/hooks/use-repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,8 @@
import { useMemo } from 'react'
import { useQuery } from 'urql'

import { graphql } from '@/lib/gql/generates'

import { useChatStore } from '../stores/chat-store'

const repositorySourceListQuery = graphql(/* GraphQL */ `
query RepositorySourceList {
repositoryList {
id
name
kind
gitUrl
sourceId
sourceName
sourceKind
}
}
`)
import { useChatStore } from '@/lib/stores/chat-store'
import { repositorySourceListQuery } from '@/lib/tabby/query'

export function useRepositorySources() {
return useQuery({
Expand Down
14 changes: 14 additions & 0 deletions ee/tabby-ui/lib/tabby/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,17 @@ export const notificationsQuery = graphql(/* GraphQL */ `
}
}
`)

export const repositorySourceListQuery = graphql(/* GraphQL */ `
query RepositorySourceList {
repositoryList {
id
name
kind
gitUrl
sourceId
sourceName
sourceKind
}
}
`)

0 comments on commit 725d4ff

Please sign in to comment.