mirror of
https://github.com/langgenius/dify.git
synced 2026-06-11 02:31:13 +08:00
This commit is contained in:
parent
62a1476a95
commit
beec13ed61
@ -16,9 +16,9 @@ import { useAppContext } from '@/context/app-context'
|
||||
import { systemFeaturesQueryOptions } from '@/features/system-features/client'
|
||||
import { useWorkspacePermissions } from '@/service/use-workspace'
|
||||
|
||||
type Props = {
|
||||
type Props = Readonly<{
|
||||
onOperate: () => void
|
||||
}
|
||||
}>
|
||||
|
||||
const TransferOwnership = ({ onOperate }: Props) => {
|
||||
const { t } = useTranslation()
|
||||
|
||||
@ -9,10 +9,10 @@ import { useAppContext } from '@/context/app-context'
|
||||
import { ownershipTransfer, sendOwnerEmail, verifyOwnerEmail } from '@/service/common'
|
||||
import MemberSelector from './member-selector'
|
||||
|
||||
type Props = {
|
||||
type Props = Readonly<{
|
||||
show: boolean
|
||||
onClose: () => void
|
||||
}
|
||||
}>
|
||||
enum STEP {
|
||||
start = 'start',
|
||||
verify = 'verify',
|
||||
|
||||
@ -12,11 +12,11 @@ import { useTranslation } from 'react-i18next'
|
||||
import Input from '@/app/components/base/input'
|
||||
import { useMembers } from '@/service/use-common'
|
||||
|
||||
type Props = {
|
||||
type Props = Readonly<{
|
||||
value?: string
|
||||
onSelect: (value: string) => void
|
||||
exclude?: string[]
|
||||
}
|
||||
}>
|
||||
|
||||
const MemberSelector: FC<Props> = ({
|
||||
value,
|
||||
|
||||
@ -27,9 +27,9 @@ import { providerToPluginId } from './utils'
|
||||
|
||||
type SystemModelConfigStatus = 'no-provider' | 'none-configured' | 'partially-configured' | 'fully-configured'
|
||||
|
||||
type Props = {
|
||||
type Props = Readonly<{
|
||||
searchText: string
|
||||
}
|
||||
}>
|
||||
|
||||
const FixedModelProvider = ['langgenius/openai/openai', 'langgenius/anthropic/anthropic']
|
||||
|
||||
|
||||
@ -15,10 +15,10 @@ import { useLocale } from '@/context/i18n'
|
||||
import useTheme from '@/hooks/use-theme'
|
||||
import { getMarketplaceUrl } from '@/utils/var'
|
||||
|
||||
type Props = {
|
||||
type Props = Readonly<{
|
||||
detail: PluginDetail
|
||||
onUpdate?: () => void
|
||||
}
|
||||
}>
|
||||
|
||||
const ProviderCardActions: FC<Props> = ({ detail, onUpdate }) => {
|
||||
const { t } = useTranslation()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user