feat(dify): 把本地控制台的中文与去外链改动入库

这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 09:44:09 +08:00
1 parent 9c7c80e194
commit c2cb845a32
211 files changed
+3030 -2794

No files matched your search

@@ -12,7 +12,6 @@ import PluginDetailPanel from '@/app/components/plugins/plugin-detail-panel'
import { STEP_BY_STEP_TOUR_TARGETS } from '@/app/components/step-by-step-tour/target-registry'
import ProviderDetail from '@/app/components/tools/provider/detail'
import { useGetLanguage } from '@/context/i18n'
import { useMarketplace } from '@/features/marketplace/client'
import { renderI18nObject } from '@/i18n/metadata'
import {
normalizePluginCategoryListLanguage,
@@ -105,7 +104,6 @@ const PluginsPanel = ({
: undefined,
[filters.searchQuery, filters.tags, isIntegrationCategoryPage, locale, supportsTagFilter],
)
const marketplace = useMarketplace()
const {
data: pluginList,
isLoading: isPluginListLoading,
@@ -192,8 +190,6 @@ const PluginsPanel = ({
}, [currentBuiltinToolID, filteredBuiltinTools])
const handleDetailHide = () => setSelectedItem(undefined)
const hasToolMarketplacePanel = marketplace !== null && isToolIntegrationPage
const categoryMarketplace = marketplace && hasEmbeddedMarketplace ? fixedCategory : undefined
const contentPaddingClassName = pluginPageContentInsetClassNames[contentInset]
const contentFrameClassName = cn(
pluginPageContentFrameClassNames[contentInset],
@@ -246,15 +242,11 @@ const PluginsPanel = ({
{isPluginListLoading && <PluginListSkeleton contentFrameClassName={contentFrameClassName} />}
{!isPluginListLoading && (
<>
{hasVisiblePlugins ||
hasVisibleBuiltinTools ||
hasToolMarketplacePanel ||
hasEmbeddedMarketplace ? (
{hasVisiblePlugins || hasVisibleBuiltinTools || hasEmbeddedMarketplace ? (
<PluginsPanelResults
autoLoadNextPage={isIntegrationCategoryPage}
containerRef={containerRef}
contentFrameClassName={contentFrameClassName}
contentInset={contentInset}
currentBuiltinToolID={currentBuiltinToolID}
firstBuiltinToolTarget={
isToolIntegrationPage
@@ -268,22 +260,17 @@ const PluginsPanel = ({
}
filteredBuiltinTools={filteredBuiltinTools}
filteredList={filteredList}
hasToolMarketplacePanel={hasToolMarketplacePanel}
marketplace={marketplace}
hasVisibleBuiltinTools={hasVisibleBuiltinTools}
hasVisiblePlugins={hasVisiblePlugins}
hasEmbeddedMarketplace={hasEmbeddedMarketplace}
isFetching={isFetching}
isLastPage={isLastPage}
keywords={filters.searchQuery}
loadNextPage={loadNextPage}
scrollAreaLabel={scrollAreaLabel}
onSelectBuiltinTool={(id) => setSelectedItem({ type: 'builtinTool', id })}
tagFilterValue={filters.tags}
canDeletePlugin={canDeletePlugin}
canUpdatePlugin={canUpdatePlugin}
categoryEmptyState={hasEmbeddedMarketplace ? fixedCategory : undefined}
categoryMarketplace={categoryMarketplace}
showCategoryEmptyState={
hasEmbeddedMarketplace &&
!isFilteringCategory &&