mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
refactor: update import paths and remove unused props in block selector components
This commit is contained in:
parent
3edf1e2f59
commit
b100ce15cd
@ -25,7 +25,6 @@ const AllStartBlocks = ({
|
|||||||
className,
|
className,
|
||||||
searchText,
|
searchText,
|
||||||
onSelect,
|
onSelect,
|
||||||
availableBlocksTypes,
|
|
||||||
tags = [],
|
tags = [],
|
||||||
}: AllStartBlocksProps) => {
|
}: AllStartBlocksProps) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|||||||
@ -5,10 +5,10 @@ import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react'
|
|||||||
import type { FC } from 'react'
|
import type { FC } from 'react'
|
||||||
import React, { useEffect, useMemo, useRef } from 'react'
|
import React, { useEffect, useMemo, useRef } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { CollectionType } from '../../../tools/types'
|
import { CollectionType } from '@/app/components/tools/types'
|
||||||
import BlockIcon from '../../block-icon'
|
import BlockIcon from '@/app/components/workflow/block-icon'
|
||||||
import { BlockEnum } from '../../types'
|
import { BlockEnum } from '@/app/components/workflow/types'
|
||||||
import type { TriggerDefaultValue, TriggerWithProvider } from '../types'
|
import type { TriggerDefaultValue, TriggerWithProvider } from '@/app/components/workflow/block-selector/types'
|
||||||
import TriggerPluginActionItem from './action-item'
|
import TriggerPluginActionItem from './action-item'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -86,6 +86,7 @@ const TriggerPluginItem: FC<Props> = ({
|
|||||||
trigger_label: trigger.label[language],
|
trigger_label: trigger.label[language],
|
||||||
trigger_description: trigger.description[language],
|
trigger_description: trigger.description[language],
|
||||||
title: trigger.label[language],
|
title: trigger.label[language],
|
||||||
|
plugin_unique_identifier: payload.plugin_unique_identifier,
|
||||||
is_team_authorization: payload.is_team_authorization,
|
is_team_authorization: payload.is_team_authorization,
|
||||||
output_schema: trigger.output_schema || {},
|
output_schema: trigger.output_schema || {},
|
||||||
paramSchemas: trigger.parameters,
|
paramSchemas: trigger.parameters,
|
||||||
|
|||||||
@ -17,7 +17,6 @@ const TriggerPluginList = ({
|
|||||||
onSelect,
|
onSelect,
|
||||||
searchText,
|
searchText,
|
||||||
onContentStateChange,
|
onContentStateChange,
|
||||||
tags = [],
|
|
||||||
}: TriggerPluginListProps) => {
|
}: TriggerPluginListProps) => {
|
||||||
const { data: triggerPluginsData } = useAllTriggerPlugins()
|
const { data: triggerPluginsData } = useAllTriggerPlugins()
|
||||||
const language = useGetLanguage()
|
const language = useGetLanguage()
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import type { FC } from 'react'
|
|||||||
import {
|
import {
|
||||||
RiBracesLine,
|
RiBracesLine,
|
||||||
} from '@remixicon/react'
|
} from '@remixicon/react'
|
||||||
import type { PluginTriggerVarInputs } from '../../types'
|
import type { PluginTriggerVarInputs } from '@/app/components/workflow/nodes/trigger-plugin/types'
|
||||||
import type { CredentialFormSchema } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
import type { CredentialFormSchema } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
||||||
import { FormTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
import { FormTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
||||||
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
|
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||||
@ -13,7 +13,7 @@ import FormInputItem from '@/app/components/workflow/nodes/_base/components/form
|
|||||||
import { useBoolean } from 'ahooks'
|
import { useBoolean } from 'ahooks'
|
||||||
import SchemaModal from '@/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal'
|
import SchemaModal from '@/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal'
|
||||||
import type { Trigger } from '@/app/components/tools/types'
|
import type { Trigger } from '@/app/components/tools/types'
|
||||||
import type { TriggerWithProvider } from '../../../../block-selector/types'
|
import type { TriggerWithProvider } from '@/app/components/workflow/block-selector/types'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
readOnly: boolean
|
readOnly: boolean
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user