refactor(web): consolidate duplicate type imports (#42690)

This commit is contained in:
yyh authored and GitHub committed 2026-09-22 03:51:13 +00:00
1 parent 86cfb29b28
commit a50918dfe8
10 files changed
+9 -61

No files matched your search

-43
View File
@@ -921,11 +921,6 @@
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/annotation-reply/__tests__/index.spec.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx": {
"typescript/no-explicit-any": {
"count": 3
@@ -936,11 +931,6 @@
"count": 2
}
},
"web/app/components/base/features/new-feature-panel/conversation-opener/__tests__/index.spec.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx": {
"dify/require-disable-directive-description": {
"count": 1
@@ -963,21 +953,6 @@
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/file-upload/__tests__/index.spec.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/image-upload/__tests__/index.spec.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/moderation/__tests__/index.spec.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/base/features/new-feature-panel/moderation/index.tsx": {
"typescript/no-explicit-any": {
"count": 1
@@ -2552,19 +2527,6 @@
"web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx": {
"eslint-react/set-state-in-effect": {
"count": 1
},
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/plugins/install-plugin/install-bundle/item/marketplace-item.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/plugins/install-plugin/install-bundle/item/package-item.tsx": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/plugins/install-plugin/install-bundle/steps/__tests__/install-multi.spec.tsx": {
@@ -2590,11 +2552,6 @@
"count": 1
}
},
"web/app/components/plugins/install-plugin/utils.ts": {
"import/no-duplicates": {
"count": 1
}
},
"web/app/components/plugins/marketplace/home/home-trending.tsx": {
"jsx-a11y/no-static-element-interactions": {
"count": 1
@@ -1,5 +1,4 @@
import type { Features } from '../../../types'
import type { OnFeaturesChange } from '@/app/components/base/features/types'
import type { Features, OnFeaturesChange } from '../../../types'
import { act, fireEvent, render, screen } from '@testing-library/react'
import { FeaturesProvider } from '../../../context'
import AnnotationReply from '../index'
@@ -1,5 +1,4 @@
import type { Features } from '../../../types'
import type { OnFeaturesChange } from '@/app/components/base/features/types'
import type { Features, OnFeaturesChange } from '../../../types'
import { act, fireEvent, render, screen } from '@testing-library/react'
import { FeaturesProvider } from '../../../context'
import ConversationOpener from '../index'
@@ -1,5 +1,4 @@
import type { Features } from '../../../types'
import type { OnFeaturesChange } from '@/app/components/base/features/types'
import type { Features, OnFeaturesChange } from '../../../types'
import { fireEvent, render, screen, waitFor } from '@testing-library/react'
import { FeaturesProvider } from '../../../context'
import FileUpload from '../index'
@@ -1,5 +1,4 @@
import type { Features } from '../../../types'
import type { OnFeaturesChange } from '@/app/components/base/features/types'
import type { Features, OnFeaturesChange } from '../../../types'
import { fireEvent, render, screen, waitFor } from '@testing-library/react'
import { FeaturesProvider } from '../../../context'
import ImageUpload from '../index'
@@ -1,5 +1,4 @@
import type { Features } from '../../../types'
import type { OnFeaturesChange } from '@/app/components/base/features/types'
import type { Features, OnFeaturesChange } from '../../../types'
import { fireEvent, render, screen } from '@testing-library/react'
import { FeaturesProvider } from '../../../context'
import Moderation from '../index'
@@ -1,7 +1,6 @@
'use client'
import type { FC } from 'react'
import type { GitHubItemAndMarketPlaceDependency, Plugin } from '../../../types'
import type { VersionProps } from '@/app/components/plugins/types'
import type { GitHubItemAndMarketPlaceDependency, Plugin, VersionProps } from '../../../types'
import * as React from 'react'
import { useEffect } from 'react'
import { useUploadGitHub } from '@/service/use-plugins'
@@ -1,7 +1,6 @@
'use client'
import type { FC } from 'react'
import type { Plugin } from '../../../types'
import type { VersionProps } from '@/app/components/plugins/types'
import type { Plugin, VersionProps } from '../../../types'
import * as React from 'react'
import Loading from '../../base/loading'
import LoadedItem from './loaded-item'
@@ -1,7 +1,6 @@
'use client'
import type { FC } from 'react'
import type { PackageDependency, Plugin } from '../../../types'
import type { VersionProps } from '@/app/components/plugins/types'
import type { PackageDependency, Plugin, VersionProps } from '../../../types'
import * as React from 'react'
import LoadingError from '../../base/loading-error'
import { pluginManifestToCardPluginProps } from '../../utils'
@@ -1,5 +1,4 @@
import type { Plugin, PluginDeclaration, PluginManifestInMarket } from '../types'
import type { GitHubUrlInfo } from '@/app/components/plugins/types'
import type { GitHubUrlInfo, Plugin, PluginDeclaration, PluginManifestInMarket } from '../types'
import { isEmpty } from 'es-toolkit/compat'
export const pluginManifestToCardPluginProps = (pluginManifest: PluginDeclaration): Plugin => {