mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	feat: discovery icon
This commit is contained in:
		@@ -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={<RobotIcon />}
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
      <ChatAction
 | 
			
		||||
        onClick={() => showToast(Locale.WIP)}
 | 
			
		||||
        text={Locale.Plugin.Name}
 | 
			
		||||
        icon={<PluginIcon />}
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
      {showModelSelector && (
 | 
			
		||||
        <Selector
 | 
			
		||||
          defaultSelectedValue={`${currentModel}@${currentProviderName}`}
 | 
			
		||||
 
 | 
			
		||||
@@ -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";
 | 
			
		||||
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								app/icons/discovery.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/icons/discovery.svg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
<svg xmlns="http://www.w3.org/2000/svg" width="1.2rem" height="1.2rem" viewBox="0 0 24 24">
 | 
			
		||||
    <g fill="none" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
 | 
			
		||||
        <circle cx="12" cy="12" r="9" />
 | 
			
		||||
        <path
 | 
			
		||||
            d="M11.307 9.739L15 9l-.739 3.693a2 2 0 0 1-1.568 1.569L9 15l.739-3.693a2 2 0 0 1 1.568-1.568" />
 | 
			
		||||
    </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 371 B  | 
@@ -458,6 +458,9 @@ const cn = {
 | 
			
		||||
  Plugin: {
 | 
			
		||||
    Name: "插件",
 | 
			
		||||
  },
 | 
			
		||||
  Discovery: {
 | 
			
		||||
    Name: "发现",
 | 
			
		||||
  },
 | 
			
		||||
  FineTuned: {
 | 
			
		||||
    Sysmessage: "你是一个助手",
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -465,6 +465,9 @@ const en: LocaleType = {
 | 
			
		||||
  Plugin: {
 | 
			
		||||
    Name: "Plugin",
 | 
			
		||||
  },
 | 
			
		||||
  Discovery: {
 | 
			
		||||
    Name: "Discovery",
 | 
			
		||||
  },
 | 
			
		||||
  FineTuned: {
 | 
			
		||||
    Sysmessage: "You are an assistant that",
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user