Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: image icon can not display (#11701)

crazywoola7f095bdc42bc
diff --git a/web/app/components/base/app-icon/index.tsx b/web/app/components/base/app-icon/index.tsx
index c195b7253d8..1938c42d3ef 100644
--- a/web/app/components/base/app-icon/index.tsx
+++ b/web/app/components/base/app-icon/index.tsx
@@ -3,7 +3,6 @@
import type { FC } from 'react'
import { init } from 'emoji-mart'
import data from '@emoji-mart/data'
-import Image from 'next/image'
import { cva } from 'class-variance-authority'
import type { AppIconType } from '@/types/app'
import classNames from '@/utils/classnames'
@@ -62,7 +61,8 @@ const AppIcon: FC<AppIconProps> = ({
onClick={onClick}
>
{isValidImageIcon
- ? <Image src={imageUrl} className="w-full h-full" alt="app icon" />
+ // eslint-disable-next-line @next/next/no-img-element
+ ? <img src={imageUrl} className="w-full h-full" alt="app icon" />
: (innerIcon || ((icon && icon !== '') ? <em-emoji id={icon} /> : <em-emoji id='🤖' />))
}
</span>
diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts
index 546bb088733..2d3ad99cae2 100644
--- a/web/i18n/en-US/app.ts
+++ b/web/i18n/en-US/app.ts
@@ -125,7 +125,7 @@ const translation = {
switchStart: 'Start switch',
openInExplore: 'Open in Explore',
typeSelector: {
- all: 'ALL Types',
+ all: 'All Types ',
chatbot: 'Chatbot',
agent: 'Agent',
workflow: 'Workflow',
diff --git a/web/i18n/tr-TR/app.ts b/web/i18n/tr-TR/app.ts
index 1681fc9169c..29c2aeaf45b 100644
--- a/web/i18n/tr-TR/app.ts
+++ b/web/i18n/tr-TR/app.ts
@@ -112,7 +112,7 @@ const translation = {
removeOriginal: 'Orijinal uygulamayı sil',
switchStart: 'Geçişi Başlat',
typeSelector: {
- all: 'ALL Types',
+ all: 'All Types',
chatbot: 'Chatbot',
agent: 'Agent',
workflow: 'Workflow',