Skip to content

Commit fd441d9

Browse files
committed
feat: discovery icon
1 parent 2a1c05a commit fd441d9

5 files changed

Lines changed: 23 additions & 3 deletions

File tree

app/components/chat.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import AutoIcon from "../icons/auto.svg";
3737
import BottomIcon from "../icons/bottom.svg";
3838
import StopIcon from "../icons/pause.svg";
3939
import RobotIcon from "../icons/robot.svg";
40+
import PluginIcon from "../icons/plugin.svg";
4041

4142
import {
4243
ChatMessage,
@@ -587,6 +588,12 @@ export function ChatActions(props: {
587588
icon={<RobotIcon />}
588589
/>
589590

591+
<ChatAction
592+
onClick={() => showToast(Locale.WIP)}
593+
text={Locale.Plugin.Name}
594+
icon={<PluginIcon />}
595+
/>
596+
590597
{showModelSelector && (
591598
<Selector
592599
defaultSelectedValue={`${currentModel}@${currentProviderName}`}

app/components/sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import AddIcon from "../icons/add.svg";
1010
import CloseIcon from "../icons/close.svg";
1111
import DeleteIcon from "../icons/delete.svg";
1212
import MaskIcon from "../icons/mask.svg";
13-
import PluginIcon from "../icons/plugin.svg";
1413
import DragIcon from "../icons/drag.svg";
14+
import DiscoveryIcon from "../icons/discovery.svg";
1515

1616
import Locale from "../locales";
1717

@@ -242,8 +242,8 @@ export function SideBar(props: { className?: string }) {
242242
shadow
243243
/>
244244
<IconButton
245-
icon={<PluginIcon />}
246-
text={shouldNarrow ? undefined : Locale.Plugin.Name}
245+
icon={<DiscoveryIcon />}
246+
text={shouldNarrow ? undefined : Locale.Discovery.Name}
247247
className={styles["sidebar-bar-button"]}
248248
onClick={() => setShowPluginSelector(true)}
249249
shadow

app/icons/discovery.svg

Lines changed: 7 additions & 0 deletions
Loading

app/locales/cn.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ const cn = {
458458
Plugin: {
459459
Name: "插件",
460460
},
461+
Discovery: {
462+
Name: "发现",
463+
},
461464
FineTuned: {
462465
Sysmessage: "你是一个助手",
463466
},

app/locales/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ const en: LocaleType = {
465465
Plugin: {
466466
Name: "Plugin",
467467
},
468+
Discovery: {
469+
Name: "Discovery",
470+
},
468471
FineTuned: {
469472
Sysmessage: "You are an assistant that",
470473
},

0 commit comments

Comments
 (0)