diff --git a/frontend/index.html b/frontend/index.html index 22cc5b0..29aa5f6 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,24 +5,24 @@ - AnythingLLM | Your personal LLM trained on anything + 琛海AI | 大模型私有化训练 - - + + - - + + - - + + @@ -35,4 +35,4 @@ - \ No newline at end of file + diff --git a/frontend/public/favicon.png b/frontend/public/favicon.png index 2dab536..e3a787f 100644 Binary files a/frontend/public/favicon.png and b/frontend/public/favicon.png differ diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 813a6ab..5ef3649 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -23,6 +23,8 @@ const Home = lazy(() => import("@/pages/Home")); // 新首页 const PolicyLibrary = lazy(() => import("@/pages/PolicyLibrary")); // 政策库 const DataAnalysis = lazy(() => import("@/pages/DataAnalysis")); // 数据分析 const Tendency = lazy(() => import("@/pages/Tendency")); // 趋势洞察 +const Yuqingfenxi = lazy(() => import("@/pages/Yuqingfenxi")); // 趋势洞察 +const ReportGeneration = lazy(() => import("@/pages/ReportGeneration")); // 报告生成 const InvitePage = lazy(() => import("@/pages/Invite")); const WorkspaceChat = lazy(() => import("@/pages/WorkspaceChat")); @@ -104,10 +106,18 @@ export default function App() { path="/home/Tendency" element={} /> + } + /> } /> + } + /> } />
{/* {t("welcomeMessage.part4")} */} - {'很简单。所有集合都组织成我们称之为“工作区”的桶。工作区是文件、文档、图像、PDF 和其他文件的存储桶,这些文件将被琛海AI转换为可以理解和在对话中使用的内容。 你可以随时添加和删除文件。'} + {'所有集合都被组织成我们称之为“文件分析区”的存储桶。这些文件分析区作为存储文件、文档、图像、PDF 以及其他类型文件的容器,使得琛海AI能够将这些文件转换为可以理解和在对话中使用的内容。你可以随时向文件分析区中添加或删除文件。'} {(!user || user?.role !== "default") && (
@@ -172,4 +185,4 @@ function DataAnalysis() { ) } -export default DataAnalysis; \ No newline at end of file +export default DataAnalysis; diff --git a/frontend/src/pages/GeneralSettings/Appearance/CustomAppName/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/CustomAppName/index.jsx index a4b928b..b465519 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/CustomAppName/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/CustomAppName/index.jsx @@ -60,10 +60,10 @@ export default function CustomAppName() {

- Custom App Name + 自定义应用名称

- Set a custom app name that is displayed on the login page. + 自定义应用名称,显示在登录界面

@@ -71,7 +71,7 @@ export default function CustomAppName() { name="customAppName" type="text" className="border-none bg-theme-settings-input-bg mt-3 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 max-w-[275px] placeholder:text-theme-settings-input-placeholder" - placeholder="AnythingLLM" + placeholder="琛海AI" required={true} autoComplete="off" onChange={handleChange} diff --git a/frontend/src/pages/GeneralSettings/Appearance/CustomSiteSettings/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/CustomSiteSettings/index.jsx index c4b766c..5103710 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/CustomSiteSettings/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/CustomSiteSettings/index.jsx @@ -42,19 +42,18 @@ export default function CustomSiteSettings() {

- Custom Site Settings + 自定义站点设置

- Change the content of the browser tab for customization and - branding. + 更改浏览器选项卡的内容以进行自定义和标记

-

Tab Title

+

选项卡标题

- Set a custom tab title when the app is open in a browser. + 当应用程序在浏览器中打开时,显示设置的自定义标签和标题

@@ -62,7 +61,7 @@ export default function CustomSiteSettings() { name="meta_page_title" type="text" className="border-none bg-theme-settings-input-bg mt-3 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 max-w-[400px] placeholder:text-theme-settings-input-placeholder" - placeholder="AnythingLLM | Your personal LLM trained on anything" + placeholder="琛海AI" autoComplete="off" onChange={(e) => { setSettings((prev) => { @@ -71,7 +70,7 @@ export default function CustomSiteSettings() { }} value={ settings.title ?? - "AnythingLLM | Your personal LLM trained on anything" + "琛海AI | 大模型私有化训练" } />
@@ -79,9 +78,9 @@ export default function CustomSiteSettings() {
-

Tab Favicon

+

标签标识

- Define a url to an image to use for your favicon + 为你的标签定义一个链接地址

@@ -94,7 +93,7 @@ export default function CustomSiteSettings() { name="meta_page_favicon" type="url" className="border-none bg-theme-settings-input-bg mt-3 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 max-w-[400px] placeholder:text-theme-settings-input-placeholder" - placeholder="url to your image" + placeholder="链接地址" onChange={(e) => { setSettings((prev) => { return { ...prev, faviconUrl: e.target.value }; diff --git a/frontend/src/pages/GeneralSettings/Appearance/LanguagePreference/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/LanguagePreference/index.jsx index 46c38e6..9c2a3bf 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/LanguagePreference/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/LanguagePreference/index.jsx @@ -12,11 +12,10 @@ export default function LanguagePreference() { <>

- Display Language + 语言

- Select the preferred language to render AnythingLLM's UI in, when - applicable. + 选择渲染琛海AI的首选语言。

diff --git a/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx index 361c7af..840128b 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx @@ -30,10 +30,10 @@ export default function ShowScrollbar() {

- Show chat window scrollbar + 显示聊天窗口滚动条

- Enable or disable the scrollbar in the chat window + 启用或禁用聊天窗口中的滚动条

+
+ ) + + +} + +export default IframeComponent; diff --git a/frontend/src/pages/Tendency/index.jsx b/frontend/src/pages/Tendency/index.jsx index ed13570..ee1d549 100644 --- a/frontend/src/pages/Tendency/index.jsx +++ b/frontend/src/pages/Tendency/index.jsx @@ -1,29 +1,209 @@ -import React, { useEffect, useRef } from 'react'; +// import React, { useEffect, useRef } from 'react'; +import React, { useEffect, useState, useRef } from 'react'; +import '../DataAnalysis/DataAnalysis.css' +import sou from '../DataAnalysis/img/sou.png' +import home from '../DataAnalysis/img/home.png' +import tu1 from '../DataAnalysis/img/1.png' +import tu2 from '../DataAnalysis/img/2.png' +import tu3 from '../DataAnalysis/img/3.png' +import tu4 from '../DataAnalysis/img/4.png' +import tu5 from '../DataAnalysis/img/5.png' +import tu6 from '../DataAnalysis/img/6.png' +import tu7 from '../DataAnalysis/img/7.png' +import tu8 from '../DataAnalysis/img/8.png' +import tu9 from '../DataAnalysis/img/9.png' +import tu10 from '../DataAnalysis/img/10.png' +import tu11 from '../DataAnalysis/img/11.png' +import tu12 from '../DataAnalysis/img/12.png' +import tu13 from '../DataAnalysis/img/13.png' +import tu14 from '../DataAnalysis/img/14.png' function IframeComponent() { - const iframeRef = useRef(null); + // const iframeRef = useRef(null); + // + // useEffect(() => { + // if (iframeRef.current) { + // iframeRef.current.contentWindow.addEventListener('message', (event) => { + // console.log(11111, event.data); + // }); + // } + // + // return () => { + // if (iframeRef.current) { + // iframeRef.current.contentWindow.removeEventListener('message', (event) => { + // console.log('Received message:', event.data); + // }); + // } + // }; + // }, []); // 空依赖数组确保只运行一次清理操作 + // + // return ( + //
+ //