Skip to content

Commit

Permalink
feat: discovery icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Jul 24, 2024
1 parent 2a1c05a commit fd441d9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
7 changes: 7 additions & 0 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -587,6 +588,12 @@ export function ChatActions(props: {
icon={<RobotIcon />}
/>

<ChatAction
onClick={() => showToast(Locale.WIP)}
text={Locale.Plugin.Name}
icon={<PluginIcon />}
/>

{showModelSelector && (
<Selector
defaultSelectedValue={`${currentModel}@${currentProviderName}`}
Expand Down
6 changes: 3 additions & 3 deletions app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import AddIcon from "../icons/add.svg";
import CloseIcon from "../icons/close.svg";
import DeleteIcon from "../icons/delete.svg";
import MaskIcon from "../icons/mask.svg";
import PluginIcon from "../icons/plugin.svg";
import DragIcon from "../icons/drag.svg";
import DiscoveryIcon from "../icons/discovery.svg";

import Locale from "../locales";

Expand Down Expand Up @@ -242,8 +242,8 @@ export function SideBar(props: { className?: string }) {
shadow
/>
<IconButton
icon={<PluginIcon />}
text={shouldNarrow ? undefined : Locale.Plugin.Name}
icon={<DiscoveryIcon />}
text={shouldNarrow ? undefined : Locale.Discovery.Name}
className={styles["sidebar-bar-button"]}
onClick={() => setShowPluginSelector(true)}
shadow
Expand Down
7 changes: 7 additions & 0 deletions app/icons/discovery.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ const cn = {
Plugin: {
Name: "插件",
},
Discovery: {
Name: "发现",
},
FineTuned: {
Sysmessage: "你是一个助手",
},
Expand Down
3 changes: 3 additions & 0 deletions app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ const en: LocaleType = {
Plugin: {
Name: "Plugin",
},
Discovery: {
Name: "Discovery",
},
FineTuned: {
Sysmessage: "You are an assistant that",
},
Expand Down

0 comments on commit fd441d9

Please sign in to comment.