Wangbo 1 month ago
parent
commit
a7762219ff

+ 5 - 2
context/app-context.tsx

@@ -13,7 +13,9 @@ import type { ICurrentWorkspace, LangGeniusVersionResponse, UserProfileResponse
 import MaintenanceNotice from '@/app/components/header/maintenance-notice'
 import type { SystemFeatures } from '@/types/feature'
 import { defaultSystemFeatures } from '@/types/feature'
+import style from './page.module.css'
 
+import cn from '@/utils/classnames'
 export type AppContextValue = {
   theme: Theme
   setTheme: (theme: Theme) => void
@@ -140,6 +142,7 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
     return <Loading type='app' />
 
   return (
+    // 首页页面背景
     <AppContext.Provider value={{
       theme,
       setTheme: handleSetTheme,
@@ -158,9 +161,9 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
       isCurrentWorkspaceDatasetOperator,
       mutateCurrentWorkspace,
     }}>
-      <div className='flex flex-col h-full overflow-y-auto'>
+      <div className={cn('flex flex-col h-full overflow-y-auto',style.background)}>
         {globalThis.document?.body?.getAttribute('data-public-maintenance-notice') && <MaintenanceNotice />}
-        <div ref={pageContainerRef} className='grow relative flex flex-col overflow-y-auto overflow-x-hidden bg-background-body'>
+        <div ref={pageContainerRef} className='grow relative flex flex-col overflow-y-auto overflow-x-hidden'>
           {children}
         </div>
       </div>

+ 2 - 2
i18n/zh-Hans/app.ts

@@ -1,5 +1,5 @@
 const translation = {
-  createApp: '创建应用',
+  createApp: '创建数据通道',
   types: {
     all: '全部',
     chatbot: '聊天助手',
@@ -26,7 +26,7 @@ const translation = {
   communityIntro: '与团队成员、贡献者和开发者在不同频道中交流',
   roadmap: '产品路线图',
   newApp: {
-    startFromBlank: '创建空白应用',
+    startFromBlank: '创建默认数据通道',
     startFromTemplate: '从应用模版创建',
     captionAppType: '想要哪种应用类型?',
     chatbotDescription: '使用大型语言模型构建基于聊天的助手',

+ 5 - 3
i18n/zh-Hans/common.ts

@@ -122,13 +122,15 @@ const translation = {
   menus: {
     status: 'beta',
     explore: '探索',
-    apps: '工作室',
+    apps: '数据通道',
     plugins: '插件',
     pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。',
-    datasets: '知识库',
+    datasets: '知识图谱',
+    database: '数据库',
     datasetsTips: '即将到来: 上传自己的长文本数据,或通过 Webhook 集成自己的数据源',
     newApp: '创建应用',
     newDataset: '创建知识库',
+    newDatabase: '创建数据库',
     tools: '工具',
   },
   userProfile: {
@@ -289,7 +291,7 @@ const translation = {
     setupModelFirst: '请先设置您的模型',
     systemReasoningModel: {
       key: '系统推理模型',
-      tip: '设置创建应用使用的默认推理模型,以及对话名称生成、下一步问题建议等功能也会使用该默认推理模型。',
+      tip: '设置创建数据通道使用的默认推理模型,以及对话名称生成、下一步问题建议等功能也会使用该默认推理模型。',
     },
     embeddingModel: {
       key: 'Embedding 模型',

+ 1 - 1
i18n/zh-Hans/dataset-creation.ts

@@ -1,7 +1,7 @@
 const translation = {
   steps: {
     header: {
-      creation: '创建知识库',
+      creation: '构建知识图谱',
       update: '上传文件',
     },
     one: '选择数据源',

+ 5 - 2
i18n/zh-Hans/dataset.ts

@@ -1,5 +1,6 @@
 const translation = {
   knowledge: '知识库',
+  database: '数据库',
   externalTag: '外部',
   externalAPI: '外部 API',
   externalAPIPanelTitle: '外部知识库 API',
@@ -15,7 +16,8 @@ const translation = {
   documentCount: ' 文档',
   wordCount: ' 千字符',
   appCount: ' 关联应用',
-  createDataset: '创建知识库',
+  createDataset: '构建知识图谱',
+  createDatabase: '新建数据库',
   noExternalKnowledge: '还没有外部知识库 API,点击此处创建',
   createExternalAPI: '添加外部知识库 API',
   createNewExternalAPI: '创建新的外部知识库API',
@@ -57,7 +59,8 @@ const translation = {
     helper5: '。',
   },
   connectDataset: '连接外部知识库',
-  createDatasetIntro: '导入您自己的文本数据或通过 Webhook 实时写入数据以增强 LLM 的上下文。',
+  connectDatabase: '连接外部数据库',
+  createDatasetIntro: '导入数据。',
   deleteDatasetConfirmTitle: '要删除知识库吗?',
   deleteDatasetConfirmContent:
     '删除知识库是不可逆的。用户将无法再访问您的知识库,所有的提示配置和日志将被永久删除。',

+ 5 - 5
i18n/zh-Hans/login.ts

@@ -1,8 +1,8 @@
 const translation = {
-  pageTitle: '嗨,近来可好',
-  welcome: '👋 欢迎来到 Dify, 登录以继续',
-  email: '邮箱',
-  emailPlaceholder: '输入邮箱地址',
+  pageTitle: 'Hello!',
+  welcome: '欢迎使用智脑网络云平台',
+  email: '账号',
+  emailPlaceholder: '输入账号',
   password: '密码',
   passwordPlaceholder: '输入密码',
   name: '用户名',
@@ -35,7 +35,7 @@ const translation = {
   rightDesc: '简单构建可视化、可运营、可改进的 AI 应用',
   tos: '使用协议',
   pp: '隐私政策',
-  tosDesc: '使用即代表您同意我们的',
+  tosDesc: '已阅读并同意',
   goToInit: '如果您还没有初始化账户,请前往初始化页面',
   dontHave: '还没有邀请码?',
   invalidInvitationCode: '无效的邀请码',

BIN
public/favicon.ico


BIN
public/logo/logo-embedded-chat-avatar.png


BIN
public/logo/logo-embedded-chat-header.png


BIN
public/logo/logo-site.png


+ 29 - 29
themes/light.css

@@ -13,7 +13,7 @@ html[data-theme="light"] {
   --color-components-input-text-filled-disabled: #676F83;
   --color-components-input-border-hover: #D0D5DC;
   --color-components-input-border-active-prompt-1: #0BA5EC;
-  --color-components-input-border-active-prompt-2: #155AEF;
+  --color-components-input-border-active-prompt-2: #409EFF;
 
   --color-components-kbd-bg-gray: #1018280A;
   --color-components-kbd-bg-white: #FFFFFF1F;
@@ -21,11 +21,11 @@ html[data-theme="light"] {
   --color-components-tooltip-bg: #FFFFFFF2;
 
   --color-components-button-primary-text: #FFFFFF;
-  --color-components-button-primary-bg: #155AEF;
+  --color-components-button-primary-bg: #409EFF;
   --color-components-button-primary-border: #1018280A;
-  --color-components-button-primary-bg-hover: #004AEB;
+  --color-components-button-primary-bg-hover: #2894ff;
   --color-components-button-primary-border-hover: #10182814;
-  --color-components-button-primary-bg-disabled: #155AEF24;
+  --color-components-button-primary-bg-disabled: #409EFF24;
   --color-components-button-primary-border-disabled: #FFFFFF00;
   --color-components-button-primary-text-disabled: #FFFFFF99;
 
@@ -76,7 +76,7 @@ html[data-theme="light"] {
   --color-components-button-destructive-ghost-text-disabled: #F0443833;
   --color-components-button-destructive-ghost-bg-hover: #FEE4E2;
 
-  --color-components-button-secondary-accent-text: #155AEF;
+  --color-components-button-secondary-accent-text: #409EFF;
   --color-components-button-secondary-accent-text-disabled: #B2CAFF;
   --color-components-button-secondary-accent-bg: #FFFFFF;
   --color-components-button-secondary-accent-bg-hover: #F2F4F7;
@@ -91,7 +91,7 @@ html[data-theme="light"] {
 
   --color-components-checkbox-icon: #FFFFFF;
   --color-components-checkbox-icon-disabled: #FFFFFF80;
-  --color-components-checkbox-bg: #155AEF;
+  --color-components-checkbox-bg: #409EFF;
   --color-components-checkbox-bg-hover: #004AEB;
   --color-components-checkbox-bg-disabled: #F2F4F7;
   --color-components-checkbox-border: #D0D5DC;
@@ -101,7 +101,7 @@ html[data-theme="light"] {
   --color-components-checkbox-bg-unchecked-hover: #FFFFFF;
   --color-components-checkbox-bg-disabled-checked: #B2CAFF;
 
-  --color-components-radio-border-checked: #155AEF;
+  --color-components-radio-border-checked: #409EFF;
   --color-components-radio-border-checked-hover: #004AEB;
   --color-components-radio-border-checked-disabled: #B2CAFF;
   --color-components-radio-bg-disabled: #FFFFFF00;
@@ -113,7 +113,7 @@ html[data-theme="light"] {
 
   --color-components-toggle-knob: #FFFFFF;
   --color-components-toggle-knob-disabled: #FFFFFFF2;
-  --color-components-toggle-bg: #155AEF;
+  --color-components-toggle-bg: #409EFF;
   --color-components-toggle-bg-hover: #004AEB;
   --color-components-toggle-bg-disabled: #D1E0FF;
   --color-components-toggle-bg-unchecked: #E9EBF0;
@@ -147,7 +147,7 @@ html[data-theme="light"] {
   --color-components-panel-bg-transparent: #FFFFFF00;
 
   --color-components-main-nav-nav-button-text: #495464;
-  --color-components-main-nav-nav-button-text-active: #155AEF;
+  --color-components-main-nav-nav-button-text-active: #409EFF;
   --color-components-main-nav-nav-button-bg: #FFFFFF00;
   --color-components-main-nav-nav-button-bg-active: #FCFCFD;
   --color-components-main-nav-nav-button-border: #FFFFFFF2;
@@ -176,7 +176,7 @@ html[data-theme="light"] {
   --color-components-option-card-option-bg-hover: #FFFFFF;
   --color-components-option-card-option-border-hover: #D0D5DC;
 
-  --color-components-tab-active: #155AEF;
+  --color-components-tab-active: #409EFF;
 
   --color-components-badge-white-to-dark: #FFFFFF;
   --color-components-badge-status-light-success-bg: #47CD89;
@@ -208,9 +208,9 @@ html[data-theme="light"] {
   --color-components-badge-bg-gray-soft: #1018280A;
 
   --color-components-chart-line: #296DFF;
-  --color-components-chart-area-1: #155AEF24;
-  --color-components-chart-area-2: #155AEF0A;
-  --color-components-chart-current-1: #155AEF;
+  --color-components-chart-area-1: #409EFF24;
+  --color-components-chart-area-2: #409EFF0A;
+  --color-components-chart-current-1: #409EFF;
   --color-components-chart-current-2: #D1E0FF;
   --color-components-chart-bg: #FFFFFF;
 
@@ -221,14 +221,14 @@ html[data-theme="light"] {
 
   --color-components-dropzone-bg-alt: #F2F4F7;
   --color-components-dropzone-bg: #F9FAFB;
-  --color-components-dropzone-bg-accent: #155AEF24;
+  --color-components-dropzone-bg-accent: #409EFF24;
   --color-components-dropzone-border: #10182814;
   --color-components-dropzone-border-alt: #10182833;
   --color-components-dropzone-border-accent: #84ABFF;
 
   --color-components-progress-brand-progress: #296DFF;
   --color-components-progress-brand-border: #296DFF;
-  --color-components-progress-brand-bg: #155AEF0A;
+  --color-components-progress-brand-bg: #409EFF0A;
 
   --color-components-progress-white-progress: #FFFFFF;
   --color-components-progress-white-border: #FFFFFFF2;
@@ -247,7 +247,7 @@ html[data-theme="light"] {
   --color-components-progress-error-bg: #F044380A;
 
   --color-components-chat-input-audio-bg: #EFF4FF;
-  --color-components-chat-input-audio-wave-default: #155AEF33;
+  --color-components-chat-input-audio-wave-default: #409EFF33;
   --color-components-chat-input-bg-mask-1: #FFFFFF03;
   --color-components-chat-input-bg-mask-2: #F2F4F7;
   --color-components-chat-input-border: #FFFFFF;
@@ -266,9 +266,9 @@ html[data-theme="light"] {
   --color-components-label-gray: #F2F4F7;
 
   --color-components-premium-badge-blue-bg-stop-0: #5289FF;
-  --color-components-premium-badge-blue-bg-stop-100: #155AEF;
+  --color-components-premium-badge-blue-bg-stop-100: #409EFF;
   --color-components-premium-badge-blue-stroke-stop-0: #FFFFFFF2;
-  --color-components-premium-badge-blue-stroke-stop-100: #155AEF;
+  --color-components-premium-badge-blue-stroke-stop-100: #409EFF;
   --color-components-premium-badge-blue-text-stop-0: #F5F7FF;
   --color-components-premium-badge-blue-text-stop-100: #D1E0FF;
   --color-components-premium-badge-blue-glow: #00329E;
@@ -319,11 +319,11 @@ html[data-theme="light"] {
   --color-components-premium-badge-orange-stroke-stop-0-hover: #FFFFFFF2;
   --color-components-premium-badge-orange-stroke-stop-100-hover: #BC1B06;
 
-  --color-components-progress-bar-bg: #155AEF0A;
-  --color-components-progress-bar-progress: #155AEF24;
+  --color-components-progress-bar-bg: #409EFF0A;
+  --color-components-progress-bar-progress: #409EFF24;
   --color-components-progress-bar-border: #1018280A;
   --color-components-progress-bar-progress-solid: #296DFF;
-  --color-components-progress-bar-progress-highlight: #155AEF33;
+  --color-components-progress-bar-progress-highlight: #409EFF33;
 
   --color-components-icon-bg-red-solid: #D92D20;
   --color-components-icon-bg-rose-solid: #E31B54;
@@ -333,7 +333,7 @@ html[data-theme="light"] {
   --color-components-icon-bg-green-solid: #4CA30D;
   --color-components-icon-bg-teal-solid: #0E9384;
   --color-components-icon-bg-blue-light-solid: #0BA5EC;
-  --color-components-icon-bg-blue-solid: #155AEF;
+  --color-components-icon-bg-blue-solid: #409EFF;
   --color-components-icon-bg-indigo-solid: #444CE7;
   --color-components-icon-bg-violet-solid: #7839EE;
   --color-components-icon-bg-midnight-solid: #828DAD;
@@ -362,13 +362,13 @@ html[data-theme="light"] {
   --color-text-destructive-secondary: #F04438;
   --color-text-success-secondary: #17B26A;
   --color-text-warning-secondary: #F79009;
-  --color-text-accent: #155AEF;
+  --color-text-accent: #409EFF;
   --color-text-primary-on-surface: #FFFFFF;
   --color-text-placeholder: #98A2B2;
   --color-text-disabled: #D0D5DC;
   --color-text-accent-secondary: #296DFF;
-  --color-text-accent-light-mode-only: #155AEF;
-  --color-text-text-selected: #155AEF24;
+  --color-text-accent-light-mode-only: #409EFF;
+  --color-text-text-selected: #409EFF24;
   --color-text-secondary-on-surface: #FFFFFFE5;
   --color-text-logo-text: #18222F;
   --color-text-empty-state-icon: #D0D5DC;
@@ -427,7 +427,7 @@ html[data-theme="light"] {
   --color-workflow-block-parma-bg: #F2F4F7;
   --color-workflow-block-bg: #FCFCFD;
   --color-workflow-block-bg-transparent: #FCFCFDE5;
-  --color-workflow-block-border-highlight: #155AEF24;
+  --color-workflow-block-border-highlight: #409EFF24;
 
   --color-workflow-canvas-workflow-dot-color: #8585AD26;
   --color-workflow-canvas-workflow-bg: #F2F4F7;
@@ -504,10 +504,10 @@ html[data-theme="light"] {
   --color-state-base-handle-hover: #1018284D;
 
   --color-state-accent-hover: #EFF4FF;
-  --color-state-accent-active: #155AEF14;
+  --color-state-accent-active: #409EFF14;
   --color-state-accent-hover-alt: #D1E0FF;
   --color-state-accent-solid: #296DFF;
-  --color-state-accent-active-alt: #155AEF24;
+  --color-state-accent-active-alt: #409EFF24;
 
   --color-state-destructive-hover: #FEF3F2;
   --color-state-destructive-hover-alt: #FEE4E2;
@@ -617,7 +617,7 @@ html[data-theme="light"] {
   --color-util-colors-blue-brand-blue-brand-300: #84ABFF;
   --color-util-colors-blue-brand-blue-brand-400: #5289FF;
   --color-util-colors-blue-brand-blue-brand-500: #296DFF;
-  --color-util-colors-blue-brand-blue-brand-600: #155AEF;
+  --color-util-colors-blue-brand-blue-brand-600: #409EFF;
   --color-util-colors-blue-brand-blue-brand-700: #004AEB;
 
   --color-util-colors-red-red-50: #FEF3F2;

File diff suppressed because it is too large
+ 102 - 303
yarn.lock


Some files were not shown because too many files changed in this diff