From a64a3cf6ed21be985e9a38b6e4dff991057a97bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=87=E8=93=9D=E8=89=B2?= <565837861@qq.com> Date: Thu, 20 Feb 2025 20:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95-=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 6 + frontend/src/components/Footer/index.jsx | 132 +++++++++--------- .../Modals/Password/MultiUserAuth.jsx | 2 +- .../src/components/Modals/Password/index.jsx | 25 ++-- .../src/components/SettingsButton/index.jsx | 2 +- frontend/src/components/Sidebar/index.jsx | 6 +- frontend/src/components/UserIcon/index.jsx | 2 +- frontend/src/components/UserIcon/work.svg | 1 + .../ChatHistory/HistoricalMessage/index.jsx | 3 +- .../ChatHistory/ThoughtContainer/index.jsx | 2 +- .../PromptInput/AgentMenu/index.jsx | 8 +- .../PromptInput/AttachItem/index.jsx | 4 +- .../SlashCommands/SlashPresets/index.jsx | 2 +- .../PromptInput/SlashCommands/index.jsx | 2 +- .../PromptInput/SlashCommands/reset.jsx | 4 +- .../PromptInput/SpeechToText/index.jsx | 4 +- .../PromptInput/TextSizeMenu/index.jsx | 10 +- .../ChatContainer/PromptInput/index.jsx | 13 +- .../WorkspaceChat/ChatContainer/index.jsx | 2 +- frontend/src/components/WorkspaceChat/srk.css | 8 ++ .../Admin/Invitations/InviteRow/index.jsx | 2 +- images/bj.png | Bin 0 -> 8469010 bytes images/chimg.png | Bin 0 -> 41494 bytes 23 files changed, 134 insertions(+), 106 deletions(-) create mode 100644 .idea/vcs.xml create mode 100644 frontend/src/components/UserIcon/work.svg create mode 100644 frontend/src/components/WorkspaceChat/srk.css create mode 100644 images/bj.png create mode 100644 images/chimg.png diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/frontend/src/components/Footer/index.jsx b/frontend/src/components/Footer/index.jsx index fa4a0a9..b59db42 100644 --- a/frontend/src/components/Footer/index.jsx +++ b/frontend/src/components/Footer/index.jsx @@ -45,72 +45,72 @@ export default function Footer() { // to prevent pop-in. if (footerData === false) return null; - if (!Array.isArray(footerData) || footerData.length === 0) { - return ( -
-
-
- - - -
-
- - - -
-
- - - -
- {!isMobile && } -
- -
- ); - } + // if (!Array.isArray(footerData) || footerData.length === 0) { + // return ( + //
+ //
+ //
+ // + // + // + //
+ //
+ // + // + // + //
+ //
+ // + // + // + //
+ // {!isMobile && } + //
+ // + //
+ // ); + // } return (
diff --git a/frontend/src/components/Modals/Password/MultiUserAuth.jsx b/frontend/src/components/Modals/Password/MultiUserAuth.jsx index 30036ff..9b74df3 100644 --- a/frontend/src/components/Modals/Password/MultiUserAuth.jsx +++ b/frontend/src/components/Modals/Password/MultiUserAuth.jsx @@ -289,7 +289,7 @@ export default function MultiUserAuth() { {t("login.multi-user.welcome")}

- {customAppName || "AnythingLLM"} + {"琛海科技AI管理平台"}

diff --git a/frontend/src/components/Modals/Password/index.jsx b/frontend/src/components/Modals/Password/index.jsx index 6f3f24e..df71e9f 100644 --- a/frontend/src/components/Modals/Password/index.jsx +++ b/frontend/src/components/Modals/Password/index.jsx @@ -9,12 +9,21 @@ import { } from "../../../utils/constants"; import useLogo from "../../../hooks/useLogo"; import illustration from "@/media/illustrations/login-illustration.svg"; +import chimg from "../../../../../images/chimg.png" +import bjimg from "../../../../../images/bj.png" export default function PasswordModal({ mode = "single" }) { const { loginLogo } = useLogo(); + const bj = { + bjt: { + backgroundImage: `url(${bjimg})`, + backgroundSize:'cover', + backgroundPosition: 'center' + } + } return ( -

-
+ {/*
-
+
*/}
Logo - {mode === "single" ? : } + + {/* {mode === "single" ? : } */}
); diff --git a/frontend/src/components/SettingsButton/index.jsx b/frontend/src/components/SettingsButton/index.jsx index 98140bc..d956ba9 100644 --- a/frontend/src/components/SettingsButton/index.jsx +++ b/frontend/src/components/SettingsButton/index.jsx @@ -37,7 +37,7 @@ export default function SettingsButton() { // className="transition-all duration-300 p-2 rounded-full bg-sidebar-button hover:bg-menu-item-selected-gradient hover:border-slate-100 hover:border-opacity-50 border-transparent border" aria-label="Settings" data-tooltip-id="footer-item" - data-tooltip-content="Open settings" + data-tooltip-content="设置" >
- + Logo +
{'琛海科技'}
{canToggleSidebar && ( { const { pfp } = usePfp(); diff --git a/frontend/src/components/UserIcon/work.svg b/frontend/src/components/UserIcon/work.svg new file mode 100644 index 0000000..7ea3e02 --- /dev/null +++ b/frontend/src/components/UserIcon/work.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx index a5d60db..fa1ebaa 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx @@ -75,12 +75,13 @@ const HistoricalMessage = ({ if (completeDelete) return null; return ( + // 修改背景颜色
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx index 75f1d83..083df7c 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/ThoughtContainer/index.jsx @@ -63,7 +63,7 @@ export const ThoughtChainComponent = forwardRef( transition: "all 0.1s ease-in-out", borderRadius: isExpanded || autoExpand ? "6px" : "24px", }} - className={`${isExpanded || autoExpand ? "" : `${canExpand ? "hover:bg-theme-sidebar-item-hover" : ""}`} items-start bg-theme-bg-chat-input py-2 px-4 flex gap-x-2 border border-theme-sidebar-border`} + className={`${isExpanded || autoExpand ? "" : `${canExpand ? "hover:bg-theme-sidebar-item-hover" : ""}`} items-start bg-white py-2 px-4 flex gap-x-2 shadow-[0_0_5px_0_#EBEDF6]`} > {isThinking || isComplete ? ( setShowAgents(!showing)} className={`flex justify-center items-center cursor-pointer ${ showing ? "!opacity-100" : "" @@ -81,7 +81,7 @@ export function AvailableAgents({ >
- @agent - the default agent for this workspace. + @代理 - 此工作区的默认代理.
@@ -101,7 +101,7 @@ export function AvailableAgents({ >
- custom agents are coming soon! + 海关代理很快就要来了!
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx index fcdee57..10cb1e9 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx @@ -15,8 +15,8 @@ export default function AttachItem() { diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/index.jsx index 26f1958..b3293ef 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/index.jsx @@ -10,7 +10,7 @@ export default function SlashCommandsButton({ showing, setShowSlashCommand }) {
setShowSlashCommand(!showing)} className={`flex justify-center items-center cursor-pointer ${ showing ? "!opacity-100" : "" diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx index f75468a..2fc2850 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/reset.jsx @@ -13,9 +13,9 @@ export default function ResetCommand({ setShowing, sendCommand }) { className="border-none w-full hover:cursor-pointer hover:bg-theme-action-menu-item-hover px-2 py-2 rounded-xl flex flex-col justify-start" >
-
/reset
+
/重置
- Clear your chat history and begin a new chat + 清除您的聊天记录,并开始一个新的聊天
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx index f4991b4..d64ea99 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/index.jsx @@ -95,8 +95,8 @@ export default function SpeechToText({ sendCommand }) {
setShowTextSizeMenu(!showTextSizeMenu)} className={`border-none relative flex justify-center items-center opacity-60 hover:opacity-100 light:opacity-100 light:hover:opacity-60 cursor-pointer ${ showTextSizeMenu ? "!opacity-100" : "" @@ -88,7 +88,7 @@ function TextSizeMenu({ showing, setShowing, buttonRef }) { }`} >
-
Small
+
@@ -105,7 +105,7 @@ function TextSizeMenu({ showing, setShowing, buttonRef }) { }`} >
-
Normal
+
正常的
@@ -122,7 +122,7 @@ function TextSizeMenu({ showing, setShowing, buttonRef }) { }`} >
-
Large
+
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx index a0b5d7f..40a2d50 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx @@ -17,6 +17,7 @@ import AttachmentManager from "./Attachments"; import AttachItem from "./AttachItem"; import { PASTE_ATTACHMENT_EVENT } from "../DnDWrapper"; import useTextSize from "@/hooks/useTextSize"; +import "../../srk.css" export const PROMPT_INPUT_EVENT = "set_prompt_input"; const MAX_EDIT_STACK_SIZE = 100; @@ -251,10 +252,10 @@ export default function PromptInput({ onSubmit={handleSubmit} className="flex flex-col gap-y-1 rounded-t-lg md:w-3/4 w-full mx-auto max-w-xl items-center" > -
-
+
+
-
+