mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
temp: change payload types
This commit is contained in:
parent
474ea97fc7
commit
85947efcfa
@ -6,7 +6,7 @@ import type { Item } from '@/app/components/base/select'
|
|||||||
import type { InstallState } from '@/app/components/plugins/types'
|
import type { InstallState } from '@/app/components/plugins/types'
|
||||||
import { useGitHubReleases, useGitHubUpload } from '../hooks'
|
import { useGitHubReleases, useGitHubUpload } from '../hooks'
|
||||||
import { parseGitHubUrl } from '../utils'
|
import { parseGitHubUrl } from '../utils'
|
||||||
import type { PluginDeclaration, UpdatePluginPayload } from '../../types'
|
import type { PluginDeclaration, UpdateFromGitHubPayload } from '../../types'
|
||||||
import { InstallStepFromGitHub } from '../../types'
|
import { InstallStepFromGitHub } from '../../types'
|
||||||
import Toast from '@/app/components/base/toast'
|
import Toast from '@/app/components/base/toast'
|
||||||
import SetURL from './steps/setURL'
|
import SetURL from './steps/setURL'
|
||||||
@ -16,7 +16,7 @@ import Loaded from './steps/loaded'
|
|||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
type InstallFromGitHubProps = {
|
type InstallFromGitHubProps = {
|
||||||
updatePayload?: UpdatePluginPayload
|
updatePayload?: UpdateFromGitHubPayload
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -70,12 +70,6 @@ export type PluginDeclaration = {
|
|||||||
model: any // TODO
|
model: any // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdatePluginPayload = {
|
|
||||||
url: string
|
|
||||||
currVersion: string
|
|
||||||
currPackage: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PluginManifestInMarket = {
|
export type PluginManifestInMarket = {
|
||||||
name: string
|
name: string
|
||||||
org: string
|
org: string
|
||||||
@ -151,9 +145,11 @@ export type UpdateFromMarketPlacePayload = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateFromGitHubPayload = {
|
export type UpdateFromGitHubPayload = {
|
||||||
repo: string
|
originalPackageInfo: {
|
||||||
originalPluginId: string
|
repo: string
|
||||||
version: string
|
originalPluginId: string
|
||||||
|
version: string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdatePluginPayload = {
|
export type UpdatePluginPayload = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user