diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx
index bc19b18c0c..340b395b48 100644
--- a/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx
+++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx
@@ -1,7 +1,6 @@
import type { NodeRendererProps } from 'react-arborist'
import type { FileAppearanceType } from '@/app/components/base/file-uploader/types'
import type { TreeNodeData } from '@/app/components/workflow/skill/type'
-import { RiArrowDownSLine, RiArrowRightSLine, RiFolderLine, RiFolderOpenLine, RiQuestionLine } from '@remixicon/react'
import { useSize } from 'ahooks'
import * as React from 'react'
import { useCallback, useMemo, useRef } from 'react'
@@ -66,8 +65,8 @@ const FilePickerTreeNode = ({ node, style, dragHandle, onSelectNode }: FilePicke
{isFolder
? (
node.isOpen
- ?
- :
+ ?
+ :
)
: (
@@ -95,8 +94,8 @@ const FilePickerTreeNode = ({ node, style, dragHandle, onSelectNode }: FilePicke
)}
>
{node.isOpen
- ?
- : }
+ ?
+ : }
)}
@@ -162,7 +161,7 @@ const FilePickerPanel = ({
{t('skillEditor.referenceFiles')}
-
+
)}
>
{isFolder
- ?
+ ?
: (
-
+
{t('skillEditor.authorizationRequired', { ns: 'workflow' })}
@@ -536,7 +534,7 @@ const ToolBlockComponent = ({
{needAuthorization && (
{authBadgeLabel}
-
+
)}
diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx
index 61e83af2ad..b1d7363241 100644
--- a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx
+++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx
@@ -3,7 +3,6 @@ import type { PluginDetail } from '@/app/components/plugins/types'
import type { ToolParameter } from '@/app/components/tools/types'
import type { ToolValue } from '@/app/components/workflow/block-selector/types'
import type { ToolWithProvider } from '@/app/components/workflow/types'
-import { RiAlertFill, RiCloseLine, RiEqualizer2Line } from '@remixicon/react'
import * as React from 'react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { createPortal } from 'react-dom'
@@ -650,7 +649,7 @@ const ToolGroupBlockComponent = ({
}}
>
{t('operation.close', { ns: 'common' })}
-
+
{providerDescription && (
@@ -741,7 +740,7 @@ const ToolGroupBlockComponent = ({
setExpandedToolId(item.configId)
}}
>
-
+
{t('operation.settings', { ns: 'common' })}
@@ -798,7 +797,7 @@ const ToolGroupBlockComponent = ({
? (
{authBadgeLabel}
-
+
)
: (
diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx
index 5e38957dc9..3375cfb98f 100644
--- a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx
+++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx
@@ -1,7 +1,6 @@
'use client'
import type { Emoji } from '@/app/components/tools/types'
-import { RiArrowLeftSLine, RiCloseLine } from '@remixicon/react'
import AppIcon from '@/app/components/base/app-icon'
type ToolHeaderProps = {
@@ -71,7 +70,7 @@ const ToolHeader = ({
onBack()
}}
>
-
+
)}
{renderHeaderIcon()}
@@ -89,7 +88,7 @@ const ToolHeader = ({
onClose()
}}
>
-
+
diff --git a/web/app/components/workflow/skill/file-tab-item.tsx b/web/app/components/workflow/skill/file-tab-item.tsx
index d9c6fc37eb..b3a6faa65a 100644
--- a/web/app/components/workflow/skill/file-tab-item.tsx
+++ b/web/app/components/workflow/skill/file-tab-item.tsx
@@ -1,7 +1,6 @@
'use client'
import type { FileAppearanceType } from '@/app/components/base/file-uploader/types'
-import { RiCloseLine } from '@remixicon/react'
import * as React from 'react'
import { useCallback } from 'react'
import { useTranslation } from 'react-i18next'
@@ -95,7 +94,7 @@ const FileTabItem = ({
aria-label={t('operation.close', { ns: 'common' })}
onClick={handleClose}
>
-
+
)
diff --git a/web/app/components/workflow/skill/file-tree/artifacts-section.tsx b/web/app/components/workflow/skill/file-tree/artifacts-section.tsx
index bd1f651d3f..398001c946 100644
--- a/web/app/components/workflow/skill/file-tree/artifacts-section.tsx
+++ b/web/app/components/workflow/skill/file-tree/artifacts-section.tsx
@@ -1,11 +1,9 @@
'use client'
import type { SandboxFileTreeNode } from '@/types/sandbox-file'
-import { RiArrowDownSLine, RiArrowRightSLine, RiLoader2Line } from '@remixicon/react'
import * as React from 'react'
import { useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next'
-import FolderSpark from '@/app/components/base/icons/src/vender/workflow/FolderSpark'
import { useStore, useWorkflowStore } from '@/app/components/workflow/store'
import { useAppContext } from '@/context/app-context'
import { useDownloadSandboxFile, useSandboxFilesTree } from '@/service/use-sandbox-file'
@@ -67,7 +65,7 @@ const ArtifactsSection = ({ className }: ArtifactsSectionProps) => {
>
-
+
{t('skillSidebar.artifacts.title')}
@@ -76,15 +74,15 @@ const ArtifactsSection = ({ className }: ArtifactsSectionProps) => {
{showSpinner
- ?
+ ?
: (
<>
{showBlueDot && (
)}
{isExpanded
- ?
- :
}
+ ?
+ :
}
>
)}
diff --git a/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx b/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx
index b363affa89..502f4697b5 100644
--- a/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx
+++ b/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx
@@ -2,7 +2,6 @@
import type { FileAppearanceType } from '@/app/components/base/file-uploader/types'
import type { SandboxFileTreeNode } from '@/types/sandbox-file'
-import { RiDownloadLine, RiFolderLine, RiFolderOpenLine } from '@remixicon/react'
import * as React from 'react'
import { useCallback, useState } from 'react'
import FileTypeIcon from '@/app/components/base/file-uploader/file-type-icon'
@@ -84,8 +83,8 @@ const ArtifactsTreeNode = ({
{isFolder
? (
isExpanded
- ?
- :
+ ?
+ :
)
: }
@@ -107,7 +106,7 @@ const ArtifactsTreeNode = ({
)}
aria-label={`Download ${node.name}`}
>
-
+
)}
diff --git a/web/app/components/workflow/skill/file-tree/index.tsx b/web/app/components/workflow/skill/file-tree/index.tsx
index 0bb3dcc53c..181e35c6dc 100644
--- a/web/app/components/workflow/skill/file-tree/index.tsx
+++ b/web/app/components/workflow/skill/file-tree/index.tsx
@@ -4,7 +4,6 @@ import type { MoveHandler, NodeApi, NodeRendererProps, TreeApi } from 'react-arb
import type { TreeNodeData } from '../type'
import type { OpensObject } from '@/app/components/workflow/store/workflow/skill-editor/file-tree-slice'
import type { AppAssetTreeView } from '@/types/app-asset'
-import { RiDragDropLine } from '@remixicon/react'
import { useIsMutating } from '@tanstack/react-query'
import { useSize } from 'ahooks'
import * as React from 'react'
@@ -12,7 +11,6 @@ import { useCallback, useEffect, useMemo, useRef } from 'react'
import { Tree } from 'react-arborist'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
-import SearchMenu from '@/app/components/base/icons/src/vender/knowledge/SearchMenu'
import Loading from '@/app/components/base/loading'
import { useStore, useWorkflowStore } from '@/app/components/workflow/store'
import { cn } from '@/utils/classnames'
@@ -81,7 +79,7 @@ const DropTip = () => {
const { t } = useTranslation('workflow')
return (
-
+
{t('skillSidebar.dropTip')}
@@ -348,7 +346,7 @@ const FileTree = ({ className }: FileTreeProps) => {
return (
-
+
{t('skillSidebar.searchNoResults')}
diff --git a/web/app/components/workflow/skill/file-tree/menu-item.tsx b/web/app/components/workflow/skill/file-tree/menu-item.tsx
index b6bf17b88d..05b91b669f 100644
--- a/web/app/components/workflow/skill/file-tree/menu-item.tsx
+++ b/web/app/components/workflow/skill/file-tree/menu-item.tsx
@@ -50,14 +50,14 @@ const labelVariants = cva('system-sm-regular text-text-secondary', {
})
export type MenuItemProps = {
- icon: React.ElementType
+ icon: string
label: string
kbd?: readonly string[]
onClick: React.MouseEventHandler
disabled?: boolean
} & VariantProps
-const MenuItem = ({ icon: Icon, label, kbd, onClick, disabled, variant }: MenuItemProps) => {
+const MenuItem = ({ icon, label, kbd, onClick, disabled, variant }: MenuItemProps) => {
const handleClick = React.useCallback((event: React.MouseEvent) => {
event.stopPropagation()
onClick(event)
@@ -70,7 +70,7 @@ const MenuItem = ({ icon: Icon, label, kbd, onClick, disabled, variant }: MenuIt
disabled={disabled}
className={cn(menuItemVariants({ variant }))}
>
-
+
{label}
{kbd && kbd.length > 0 && }
diff --git a/web/app/components/workflow/skill/file-tree/node-menu.tsx b/web/app/components/workflow/skill/file-tree/node-menu.tsx
index 9d1c4802c2..2e402ff289 100644
--- a/web/app/components/workflow/skill/file-tree/node-menu.tsx
+++ b/web/app/components/workflow/skill/file-tree/node-menu.tsx
@@ -3,21 +3,10 @@
import type { NodeApi, TreeApi } from 'react-arborist'
import type { NodeMenuType } from '../constants'
import type { TreeNodeData } from '../type'
-import {
- RiClipboardLine,
- RiDeleteBinLine,
- RiEdit2Line,
- RiFileAddLine,
- RiFolderAddLine,
- RiFolderUploadLine,
- RiScissorsLine,
- RiUploadLine,
-} from '@remixicon/react'
import * as React from 'react'
import { useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import Confirm from '@/app/components/base/confirm'
-import { Download02 } from '@/app/components/base/icons/src/vender/solid/general'
import { useStore, useWorkflowStore } from '@/app/components/workflow/store'
import { cn } from '@/utils/classnames'
import { NODE_MENU_TYPE } from '../constants'
@@ -119,13 +108,13 @@ const NodeMenu = ({
/>
diff --git a/web/app/components/workflow/skill/sidebar-search-add.tsx b/web/app/components/workflow/skill/sidebar-search-add.tsx
index acf5718a16..e200b69f8c 100644
--- a/web/app/components/workflow/skill/sidebar-search-add.tsx
+++ b/web/app/components/workflow/skill/sidebar-search-add.tsx
@@ -1,12 +1,5 @@
'use client'
-import {
- RiAddLine,
- RiFileAddLine,
- RiFolderAddLine,
- RiFolderUploadLine,
- RiUploadLine,
-} from '@remixicon/react'
import * as React from 'react'
import { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -25,13 +18,13 @@ import { useSkillAssetTreeData } from './hooks/use-skill-asset-tree'
import { getTargetFolderIdFromSelection } from './utils/tree-utils'
type MenuItemProps = {
- icon: React.ElementType
+ icon: string
label: string
onClick: () => void
disabled?: boolean
}
-const MenuItem = ({ icon: Icon, label, onClick, disabled }: MenuItemProps) => (
+const MenuItem = ({ icon, label, onClick, disabled }: MenuItemProps) => (
@@ -122,13 +115,13 @@ const SidebarSearchAdd = () => {
/>
{
fileInputRef.current?.click()}
disabled={isLoading}
/>
folderInputRef.current?.click()}
disabled={isLoading}
diff --git a/web/app/components/workflow/skill/start-tab-item.tsx b/web/app/components/workflow/skill/start-tab-item.tsx
index 3f6559293e..1ad24688f8 100644
--- a/web/app/components/workflow/skill/start-tab-item.tsx
+++ b/web/app/components/workflow/skill/start-tab-item.tsx
@@ -2,7 +2,6 @@
import * as React from 'react'
import { useTranslation } from 'react-i18next'
-import Home from '@/app/components/base/icons/src/vender/workflow/Home'
import { cn } from '@/utils/classnames'
type StartTabItemProps = {
@@ -32,8 +31,8 @@ const StartTabItem = ({
onClick={onClick}
>
-
diff --git a/web/app/components/workflow/skill/start-tab/create-import-section.tsx b/web/app/components/workflow/skill/start-tab/create-import-section.tsx
index 12967c2221..4c58a289e4 100644
--- a/web/app/components/workflow/skill/start-tab/create-import-section.tsx
+++ b/web/app/components/workflow/skill/start-tab/create-import-section.tsx
@@ -1,6 +1,5 @@
'use client'
-import { RiAddCircleFill, RiUploadLine } from '@remixicon/react'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import ActionCard from './action-card'
@@ -11,12 +10,12 @@ const CreateImportSection = () => {
return (
}
+ icon={
}
title={t('skill.startTab.createBlankSkill')}
description={t('skill.startTab.createBlankSkillDesc')}
/>
}
+ icon={
}
title={t('skill.startTab.importSkill')}
description={t('skill.startTab.importSkillDesc')}
/>
diff --git a/web/app/components/workflow/skill/start-tab/template-search.tsx b/web/app/components/workflow/skill/start-tab/template-search.tsx
index dafc00f03b..0b07884f44 100644
--- a/web/app/components/workflow/skill/start-tab/template-search.tsx
+++ b/web/app/components/workflow/skill/start-tab/template-search.tsx
@@ -1,6 +1,5 @@
'use client'
-import { RiSearchLine } from '@remixicon/react'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
@@ -17,7 +16,7 @@ const TemplateSearch = ({
return (
-
+
-
+
{label}
@@ -70,11 +67,11 @@ const TableSelector = ({
isLoading ? 'cursor-not-allowed opacity-60' : 'cursor-pointer hover:bg-state-base-hover',
)}
>
-
+
{label}
-
+
@@ -93,10 +90,10 @@ const TableSelector = ({
setOpen(false)
}}
>
-
+
{item.name}
{item.value === selectedTable && (
-
+
)}
))}