修改文字和logo

This commit is contained in:
罗杰
2025-10-19 20:35:40 +08:00
parent 4f2328cc0e
commit ad4bd49697
14 changed files with 12 additions and 22 deletions

View File

@@ -67,7 +67,7 @@ const PageComponent = () => {
style={{ backgroundColor: isDark ? '#1f2937' : '#ffffff' }} style={{ backgroundColor: isDark ? '#1f2937' : '#ffffff' }}
> >
<h1 style={{ color: isDark ? '#ffffff' : '#000000' }}> <h1 style={{ color: isDark ? '#ffffff' : '#000000' }}>
Dify Application
</h1> </h1>
<div data-testid="theme-indicator"> <div data-testid="theme-indicator">
Current Theme: {mounted ? theme : 'unknown'} Current Theme: {mounted ? theme : 'unknown'}

View File

@@ -572,7 +572,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
"tag2" "tag2"
], ],
"mode": "chat", "mode": "chat",
"author_name": "Dify" "author_name": "智能体平台"
} }
``` ```
</CodeGroup> </CodeGroup>
@@ -796,7 +796,7 @@ ___
{ {
"id": "69d48372-ad81-4c75-9c46-2ce197b4d402", "id": "69d48372-ad81-4c75-9c46-2ce197b4d402",
"question": "What is your name?", "question": "What is your name?",
"answer": "I am Dify.", "answer": "I am 智能体平台.",
"hit_count": 0, "hit_count": 0,
"created_at": 1735625869 "created_at": 1735625869
} }

View File

@@ -40,7 +40,7 @@ describe('use default branding', () => {
it('document title should be Dify if not set title', () => { it('document title should be Dify if not set title', () => {
renderHook(() => useDocumentTitle('')) renderHook(() => useDocumentTitle(''))
expect(document.title).toBe('Dify') expect(document.title).toBe('智能体平台')
}) })
}) })

View File

@@ -16,7 +16,7 @@ export default function useDocumentTitle(title: string) {
favicon = systemFeatures.branding.favicon favicon = systemFeatures.branding.favicon
} }
else { else {
titleStr = `${prefix}Dify` titleStr = `${prefix}智能体平台`
favicon = `${basePath}/favicon.ico` favicon = `${basePath}/favicon.ico`
} }
} }

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dify - Offline</title> <title>智能体平台 - Offline</title>
<style> <style>
* { * {
margin: 0; margin: 0;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -1,12 +1,6 @@
<svg width="48" height="22" viewBox="0 0 48 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="48" height="22" viewBox="0 0 48 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="White=True"> <g id="White=True">
<g id="if">
<path d="M21.2002 4.0695C22.5633 4.0695 23.0666 3.23413 23.0666 2.20309C23.0666 1.17204 22.5623 0.33667 21.2002 0.33667C19.838 0.33667 19.3337 1.17204 19.3337 2.20309C19.3337 3.23413 19.838 4.0695 21.2002 4.0695Z" fill="white"/>
<path d="M27.7336 4.46931V5.66969H24.6668V8.33667H27.7336V15.0037H22.6668V5.67063H15.9998V8.33761H19.7336V15.0046H15.3337V17.6716H35.3337V15.0046H30.6668V8.33761H35.3337V5.67063H30.6668V3.00365H35.3337V0.33667H31.8671C29.5877 0.33667 27.7336 2.19086 27.7336 4.47025V4.46931Z" fill="white"/>
</g>
<g id="Dy">
<path d="M5.66698 0.335902H0V17.6689H5.66698C12.667 17.6689 14.667 13.6689 14.667 9.00194C14.667 4.33496 12.667 0.334961 5.66698 0.334961V0.335902ZM5.73377 15.0029H3.20038V3.00288H5.73377C9.75823 3.00288 11.4666 4.97842 11.4666 9.00288C11.4666 13.0273 9.75823 15.0029 5.73377 15.0029Z" fill="white"/>
<path d="M44.8335 5.66986L42.1665 14.3368L39.4995 5.66986H36.333L40.2013 16.8815C40.604 18.049 39.9229 19.0029 38.6886 19.0029H37.333V21.6699H39.3255C41.063 21.6699 42.6265 20.5711 43.2145 18.9361L48 5.66986H44.8335Z" fill="white"/>
</g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -1,12 +1,8 @@
<svg width="48" height="22" viewBox="0 0 48 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="48" height="22" viewBox="0 0 48 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="White=False"> <g id="White=False">
<g id="if"> <g id="if">
<path d="M21.2002 3.73454C22.5633 3.73454 23.0666 2.89917 23.0666 1.86812C23.0666 0.837081 22.5623 0.00170898 21.2002 0.00170898C19.838 0.00170898 19.3337 0.837081 19.3337 1.86812C19.3337 2.89917 19.838 3.73454 21.2002 3.73454Z" fill="#0033FF"/>
<path d="M27.7336 4.13435V5.33473H24.6668V8.00171H27.7336V14.6687H22.6668V5.33567H15.9998V8.00265H19.7336V14.6696H15.3337V17.3366H35.3337V14.6696H30.6668V8.00265H35.3337V5.33567H30.6668V2.66869H35.3337V0.00170898H31.8671C29.5877 0.00170898 27.7336 1.8559 27.7336 4.13529V4.13435Z" fill="#0033FF"/>
</g>
<g id="Dy">
<path d="M5.66698 0.000940576H0V17.334H5.66698C12.667 17.334 14.667 13.334 14.667 8.66698C14.667 4 12.667 0 5.66698 0V0.000940576ZM5.73377 14.6679H3.20038V2.66792H5.73377C9.75823 2.66792 11.4666 4.64346 11.4666 8.66792C11.4666 12.6924 9.75823 14.6679 5.73377 14.6679Z" fill="black"/>
<path d="M44.8335 5.3349L42.1665 14.0019L39.4995 5.3349H36.333L40.2013 16.5466C40.604 17.714 39.9229 18.6679 38.6886 18.6679H37.333V21.3349H39.3255C41.063 21.3349 42.6265 20.2361 43.2145 18.6011L48 5.3349H44.8335Z" fill="black"/>
</g> </g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 148 B

View File

@@ -1,6 +1,6 @@
{ {
"name": "Dify", "name": "智能体平台",
"short_name": "Dify", "short_name": "智能体平台",
"description": "Build Production Ready Agentic AI Solutions", "description": "Build Production Ready Agentic AI Solutions",
"icons": [ "icons": [
{ {