chore(web): migrate lodash-es to es-toolkit compat (#30126)

This commit is contained in:
yyh
2025-12-25 09:44:57 +08:00
committed by GitHub
parent fdaeec7f7d
commit 3cbbb06dc4
202 changed files with 222 additions and 230 deletions

View File

@ -1,6 +1,6 @@
import type { SortableItem } from './types'
import type { InputVar } from '@/models/pipeline'
import { isEqual } from 'lodash-es'
import { isEqual } from 'es-toolkit/compat'
import {
memo,
useCallback,

View File

@ -2,7 +2,7 @@
import type { AppIconSelection } from '@/app/components/base/app-icon-picker'
import type { IconInfo } from '@/models/datasets'
import { RiCloseLine } from '@remixicon/react'
import { noop } from 'lodash-es'
import { noop } from 'es-toolkit/compat'
import { useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next'
import AppIcon from '@/app/components/base/app-icon'

View File

@ -1,6 +1,6 @@
import type { DataSourceNodeType } from '../../workflow/nodes/data-source/types'
import type { Node, ValueSelector } from '../../workflow/types'
import { uniqBy } from 'lodash-es'
import { uniqBy } from 'es-toolkit/compat'
import { useCallback } from 'react'
import { getOutgoers, useStoreApi } from 'reactflow'
import { findUsedVarNodes, updateNodeVars } from '../../workflow/nodes/_base/components/variable/utils'