mirror of
https://github.com/langgenius/dify.git
synced 2026-04-23 04:06:13 +08:00
Revert "[autofix.ci] apply automated fixes"
This reverts commit 01a05289e9.
This commit is contained in:
@ -5,7 +5,11 @@ import {
|
||||
shift,
|
||||
useFloating,
|
||||
} from '@floating-ui/react'
|
||||
|
||||
import {
|
||||
RiEditLine,
|
||||
RiExternalLinkLine,
|
||||
RiLinkUnlinkM,
|
||||
} from '@remixicon/react'
|
||||
import { useClickAway } from 'ahooks'
|
||||
import { escape } from 'es-toolkit/string'
|
||||
import {
|
||||
@ -102,7 +106,7 @@ const LinkEditorComponent = ({
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<span className="i-ri-external-link-line mr-1 h-3 w-3" />
|
||||
<RiExternalLinkLine className="mr-1 h-3 w-3" />
|
||||
<div className="mr-1">
|
||||
{t('nodes.note.editor.openLink', { ns: 'workflow' })}
|
||||
</div>
|
||||
@ -121,14 +125,14 @@ const LinkEditorComponent = ({
|
||||
setLinkOperatorShow(false)
|
||||
}}
|
||||
>
|
||||
<span className="i-ri-edit-line mr-1 h-3 w-3" />
|
||||
<RiEditLine className="mr-1 h-3 w-3" />
|
||||
{t('operation.edit', { ns: 'common' })}
|
||||
</div>
|
||||
<div
|
||||
className="flex h-6 cursor-pointer items-center rounded-md px-2 hover:bg-state-base-hover"
|
||||
onClick={handleUnlink}
|
||||
>
|
||||
<span className="i-ri-link-unlink-m mr-1 h-3 w-3" />
|
||||
<RiLinkUnlinkM className="mr-1 h-3 w-3" />
|
||||
{t('nodes.note.editor.unlink', { ns: 'workflow' })}
|
||||
</div>
|
||||
</>
|
||||
|
||||
@ -1,3 +1,10 @@
|
||||
import {
|
||||
RiBold,
|
||||
RiItalic,
|
||||
RiLink,
|
||||
RiListUnordered,
|
||||
RiStrikethrough,
|
||||
} from '@remixicon/react'
|
||||
import {
|
||||
memo,
|
||||
useMemo,
|
||||
@ -25,15 +32,15 @@ const Command = ({
|
||||
const icon = useMemo(() => {
|
||||
switch (type) {
|
||||
case 'bold':
|
||||
return <span className={`i-ri-bold ${cn('h-4 w-4', selectedIsBold && 'text-primary-600')}`} />
|
||||
return <RiBold className={cn('h-4 w-4', selectedIsBold && 'text-primary-600')} />
|
||||
case 'italic':
|
||||
return <span className={`i-ri-italic ${cn('h-4 w-4', selectedIsItalic && 'text-primary-600')}`} />
|
||||
return <RiItalic className={cn('h-4 w-4', selectedIsItalic && 'text-primary-600')} />
|
||||
case 'strikethrough':
|
||||
return <span className={`i-ri-strikethrough ${cn('h-4 w-4', selectedIsStrikeThrough && 'text-primary-600')}`} />
|
||||
return <RiStrikethrough className={cn('h-4 w-4', selectedIsStrikeThrough && 'text-primary-600')} />
|
||||
case 'link':
|
||||
return <span className={`i-ri-link ${cn('h-4 w-4', selectedIsLink && 'text-primary-600')}`} />
|
||||
return <RiLink className={cn('h-4 w-4', selectedIsLink && 'text-primary-600')} />
|
||||
case 'bullet':
|
||||
return <span className={`i-ri-list-unordered ${cn('h-4 w-4', selectedIsBullet && 'text-primary-600')}`} />
|
||||
return <RiListUnordered className={cn('h-4 w-4', selectedIsBullet && 'text-primary-600')} />
|
||||
}
|
||||
}, [type, selectedIsBold, selectedIsItalic, selectedIsStrikeThrough, selectedIsLink, selectedIsBullet])
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { RiFontSize } from '@remixicon/react'
|
||||
import { memo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { Check } from '@/app/components/base/icons/src/vender/line/general'
|
||||
@ -45,7 +46,7 @@ const FontSizeSelector = () => {
|
||||
fontSizeSelectorShow && 'bg-state-base-hover text-text-secondary',
|
||||
)}
|
||||
>
|
||||
<span className="i-ri-font-size mr-1 h-4 w-4" />
|
||||
<RiFontSize className="mr-1 h-4 w-4" />
|
||||
{FONT_SIZE_LIST.find(font => font.key === fontSize)?.value || t('nodes.note.editor.small', { ns: 'workflow' })}
|
||||
</div>
|
||||
</PortalToFollowElemTrigger>
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { RiMoreFill } from '@remixicon/react'
|
||||
import {
|
||||
memo,
|
||||
useState,
|
||||
@ -43,7 +44,7 @@ const Operator = ({
|
||||
open && 'bg-state-base-hover text-text-secondary',
|
||||
)}
|
||||
>
|
||||
<span className="i-ri-more-fill h-4 w-4" />
|
||||
<RiMoreFill className="h-4 w-4" />
|
||||
</div>
|
||||
</PortalToFollowElemTrigger>
|
||||
<PortalToFollowElemContent>
|
||||
|
||||
Reference in New Issue
Block a user