From fd441d9303b9d77bf21e9e93c19e31f4e36b3b7f Mon Sep 17 00:00:00 2001
From: Dogtiti <499960698@qq.com>
Date: Wed, 24 Jul 2024 20:41:41 +0800
Subject: [PATCH] feat: discovery icon
---
app/components/chat.tsx | 7 +++++++
app/components/sidebar.tsx | 6 +++---
app/icons/discovery.svg | 7 +++++++
app/locales/cn.ts | 3 +++
app/locales/en.ts | 3 +++
5 files changed, 23 insertions(+), 3 deletions(-)
create mode 100644 app/icons/discovery.svg
diff --git a/app/components/chat.tsx b/app/components/chat.tsx
index 9c2a6e47f..19166c341 100644
--- a/app/components/chat.tsx
+++ b/app/components/chat.tsx
@@ -37,6 +37,7 @@ import AutoIcon from "../icons/auto.svg";
import BottomIcon from "../icons/bottom.svg";
import StopIcon from "../icons/pause.svg";
import RobotIcon from "../icons/robot.svg";
+import PluginIcon from "../icons/plugin.svg";
import {
ChatMessage,
@@ -587,6 +588,12 @@ export function ChatActions(props: {
icon={}
/>
+ showToast(Locale.WIP)}
+ text={Locale.Plugin.Name}
+ icon={}
+ />
+
{showModelSelector && (
}
- text={shouldNarrow ? undefined : Locale.Plugin.Name}
+ icon={}
+ text={shouldNarrow ? undefined : Locale.Discovery.Name}
className={styles["sidebar-bar-button"]}
onClick={() => setShowPluginSelector(true)}
shadow
diff --git a/app/icons/discovery.svg b/app/icons/discovery.svg
new file mode 100644
index 000000000..d6b91346c
--- /dev/null
+++ b/app/icons/discovery.svg
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/app/locales/cn.ts b/app/locales/cn.ts
index 795c04de0..3de062eef 100644
--- a/app/locales/cn.ts
+++ b/app/locales/cn.ts
@@ -458,6 +458,9 @@ const cn = {
Plugin: {
Name: "插件",
},
+ Discovery: {
+ Name: "发现",
+ },
FineTuned: {
Sysmessage: "你是一个助手",
},
diff --git a/app/locales/en.ts b/app/locales/en.ts
index 432785173..5b42663cf 100644
--- a/app/locales/en.ts
+++ b/app/locales/en.ts
@@ -465,6 +465,9 @@ const en: LocaleType = {
Plugin: {
Name: "Plugin",
},
+ Discovery: {
+ Name: "Discovery",
+ },
FineTuned: {
Sysmessage: "You are an assistant that",
},