mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-25 02:33:00 +08:00
feat(components): 移除工作流相关组件中的帮助链接
- 注释掉了 HelpLink 组件中的图标 - 注释掉了 NewFeaturePanel 组件中的文档链接 - 注释掉了 ChatVariablePanel 组件中的文档链接 - 注释掉了 PanelOperatorPopup 组件中的帮助链接
This commit is contained in:
@@ -20,7 +20,6 @@ import AnnotationReply from '@/app/components/base/features/new-feature-panel/an
|
||||
import type { PromptVariable } from '@/models/debug'
|
||||
import type { InputVar } from '@/app/components/workflow/types'
|
||||
import I18n from '@/context/i18n'
|
||||
import { LanguagesSupported } from '@/i18n/language'
|
||||
|
||||
type Props = {
|
||||
show: boolean
|
||||
@@ -78,11 +77,11 @@ const NewFeaturePanel = ({
|
||||
</div>
|
||||
<div className='system-xs-medium p-1 text-text-primary'>
|
||||
<span>{isChatMode ? t('workflow.common.fileUploadTip') : t('workflow.common.ImageUploadLegacyTip')}</span>
|
||||
<a
|
||||
className='text-text-accent'
|
||||
href={`https://docs.dify.ai/${locale === LanguagesSupported[1] ? 'v/zh-hans/' : ''}guides/workflow/bulletin`}
|
||||
target='_blank' rel='noopener noreferrer'
|
||||
>{t('workflow.common.featuresDocLink')}</a>
|
||||
{/* <a */}
|
||||
{/* className='text-text-accent' */}
|
||||
{/* href={`https://docs.dify.ai/${locale === LanguagesSupported[1] ? 'v/zh-hans/' : ''}guides/workflow/bulletin`} */}
|
||||
{/* target='_blank' rel='noopener noreferrer' */}
|
||||
{/* >{t('workflow.common.featuresDocLink')}</a> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { memo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { RiBookOpenLine } from '@remixicon/react'
|
||||
import { useNodeHelpLink } from '../hooks/use-node-help-link'
|
||||
import TooltipPlus from '@/app/components/base/tooltip'
|
||||
import type { BlockEnum } from '@/app/components/workflow/types'
|
||||
@@ -26,7 +25,7 @@ const HelpLink = ({
|
||||
target='_blank'
|
||||
className='mr-1 flex h-6 w-6 items-center justify-center'
|
||||
>
|
||||
<RiBookOpenLine className='h-4 w-4 text-gray-500' />
|
||||
{/* <RiBookOpenLine className='h-4 w-4 text-gray-500' /> */}
|
||||
</a>
|
||||
</TooltipPlus>
|
||||
|
||||
|
||||
@@ -166,15 +166,15 @@ const PanelOperatorPopup = ({
|
||||
{
|
||||
showHelpLink && link && (
|
||||
<>
|
||||
<div className='p-1'>
|
||||
<a
|
||||
href={link}
|
||||
target='_blank'
|
||||
className='flex h-8 cursor-pointer items-center rounded-lg px-3 text-sm text-gray-700 hover:bg-gray-50'
|
||||
>
|
||||
{t('workflow.panel.helpLink')}
|
||||
</a>
|
||||
</div>
|
||||
{/* <div className='p-1'> */}
|
||||
{/* <a */}
|
||||
{/* href={link} */}
|
||||
{/* target='_blank' */}
|
||||
{/* className='flex h-8 cursor-pointer items-center rounded-lg px-3 text-sm text-gray-700 hover:bg-gray-50' */}
|
||||
{/* > */}
|
||||
{/* {t('workflow.panel.helpLink')} */}
|
||||
{/* </a> */}
|
||||
{/* </div> */}
|
||||
<div className='h-[1px] bg-gray-100'></div>
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -23,7 +23,6 @@ import { findUsedVarNodes, updateNodeVars } from '@/app/components/workflow/node
|
||||
import { useNodesSyncDraft } from '@/app/components/workflow/hooks/use-nodes-sync-draft'
|
||||
import { BlockEnum } from '@/app/components/workflow/types'
|
||||
import I18n from '@/context/i18n'
|
||||
import { LanguagesSupported } from '@/i18n/language'
|
||||
import cn from '@/utils/classnames'
|
||||
|
||||
const ChatVariablePanel = () => {
|
||||
@@ -139,7 +138,7 @@ const ChatVariablePanel = () => {
|
||||
<div className='system-2xs-medium-uppercase inline-block rounded-[5px] border border-divider-deep px-[5px] py-[3px] text-text-tertiary'>TIPS</div>
|
||||
<div className='system-sm-regular mb-4 mt-1 text-text-secondary'>
|
||||
{t('workflow.chatVariable.panelDescription')}
|
||||
<a target='_blank' rel='noopener noreferrer' className='text-text-accent' href={locale !== LanguagesSupported[1] ? 'https://docs.dify.ai/guides/workflow/variables#conversation-variables' : `https://docs.dify.ai/${locale.toLowerCase()}/guides/workflow/variables#hui-hua-bian-liang`}>{t('workflow.chatVariable.docLink')}</a>
|
||||
{/* <a target='_blank' rel='noopener noreferrer' className='text-text-accent' href={locale !== LanguagesSupported[1] ? 'https://docs.dify.ai/guides/workflow/variables#conversation-variables' : `https://docs.dify.ai/${locale.toLowerCase()}/guides/workflow/variables#hui-hua-bian-liang`}>{t('workflow.chatVariable.docLink')}</a> */}
|
||||
</div>
|
||||
<div className='flex items-center gap-2'>
|
||||
<div className='radius-lg flex flex-col border border-workflow-block-border bg-workflow-block-bg p-3 pb-4 shadow-md'>
|
||||
|
||||
Reference in New Issue
Block a user