Skip to content

Commit

Permalink
migrate the search button to plugins discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
heweikang committed Aug 20, 2024
1 parent fcd55df commit 39d7d9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 0 additions & 9 deletions app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import DeleteIcon from "../icons/delete.svg";
import MaskIcon from "../icons/mask.svg";
import DragIcon from "../icons/drag.svg";
import DiscoveryIcon from "../icons/discovery.svg";
import SearchIcon from "../icons/zoom.svg";
import Locale from "../locales";

import { useAppConfig, useChatStore } from "../store";
Expand Down Expand Up @@ -250,14 +249,6 @@ export function SideBar(props: { className?: string }) {
onClick={() => setShowPluginSelector(true)}
shadow
/>
<IconButton
icon={<SearchIcon />}
className={styles["sidebar-bar-button"]}
onClick={() =>
navigate(Path.SearchChat, { state: { fromHome: true } })
}
shadow
/>
</div>
{showPluginSelector && (
<Selector
Expand Down
7 changes: 6 additions & 1 deletion app/constant.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import path from "path";

export const OWNER = "ChatGPTNextWeb";
export const REPO = "ChatGPT-Next-Web";
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
Expand Down Expand Up @@ -476,4 +478,7 @@ export const internalAllowedWebDavEndpoints = [
];

export const DEFAULT_GA_ID = "G-89WN60ZK2E";
export const PLUGINS = [{ name: "Stable Diffusion", path: Path.Sd }];
export const PLUGINS = [
{ name: "Stable Diffusion", path: Path.Sd },
{ name: "Search Chat", path: Path.SearchChat },
];

0 comments on commit 39d7d9f

Please sign in to comment.