ChatGPT Logo

This commit is contained in:
Hao Jia
2024-05-16 15:03:14 +08:00
parent 01c9dbc1fd
commit bfdb47a7ed
8 changed files with 608 additions and 673 deletions

View File

@@ -6,6 +6,7 @@ import { IconButton } from "./button";
import SettingsIcon from "../icons/settings.svg";
import GithubIcon from "../icons/github.svg";
import ChatGptIcon from "../icons/chatgpt.svg";
import DiitIcon from "../icons/diit.svg";
import AddIcon from "../icons/add.svg";
import CloseIcon from "../icons/close.svg";
import DeleteIcon from "../icons/delete.svg";
@@ -155,38 +156,38 @@ export function SideBar(props: { className?: string }) {
>
<div className={styles["sidebar-header"]} data-tauri-drag-region>
<div className={styles["sidebar-title"]} data-tauri-drag-region>
NextChat
</div>
<div className={styles["sidebar-sub-title"]}>
Build your own AI assistant.
DiitChat
</div>
{/*<div className={styles["sidebar-sub-title"]}>*/}
{/* Build your own AI assistant.*/}
{/*</div>*/}
<div className={styles["sidebar-logo"] + " no-dark"}>
<ChatGptIcon />
<DiitIcon />
</div>
</div>
<div className={styles["sidebar-header-bar"]}>
<IconButton
icon={<MaskIcon />}
text={shouldNarrow ? undefined : Locale.Mask.Name}
className={styles["sidebar-bar-button"]}
onClick={() => {
if (config.dontShowMaskSplashScreen !== true) {
navigate(Path.NewChat, { state: { fromHome: true } });
} else {
navigate(Path.Masks, { state: { fromHome: true } });
}
}}
shadow
/>
<IconButton
icon={<PluginIcon />}
text={shouldNarrow ? undefined : Locale.Plugin.Name}
className={styles["sidebar-bar-button"]}
onClick={() => showToast(Locale.WIP)}
shadow
/>
</div>
{/*<div className={styles["sidebar-header-bar"]}>*/}
{/* <IconButton*/}
{/* icon={<MaskIcon />}*/}
{/* text={shouldNarrow ? undefined : Locale.Mask.Name}*/}
{/* className={styles["sidebar-bar-button"]}*/}
{/* onClick={() => {*/}
{/* if (config.dontShowMaskSplashScreen !== true) {*/}
{/* navigate(Path.NewChat, { state: { fromHome: true } });*/}
{/* } else {*/}
{/* navigate(Path.Masks, { state: { fromHome: true } });*/}
{/* }*/}
{/* }}*/}
{/* shadow*/}
{/* />*/}
{/* <IconButton*/}
{/* icon={<PluginIcon />}*/}
{/* text={shouldNarrow ? undefined : Locale.Plugin.Name}*/}
{/* className={styles["sidebar-bar-button"]}*/}
{/* onClick={() => showToast(Locale.WIP)}*/}
{/* shadow*/}
{/* />*/}
{/*</div>*/}
<div
className={styles["sidebar-body"]}
@@ -216,11 +217,11 @@ export function SideBar(props: { className?: string }) {
<IconButton icon={<SettingsIcon />} shadow />
</Link>
</div>
<div className={styles["sidebar-action"]}>
<a href={REPO_URL} target="_blank" rel="noopener noreferrer">
<IconButton icon={<GithubIcon />} shadow />
</a>
</div>
{/*<div className={styles["sidebar-action"]}>*/}
{/* <a href={REPO_URL} target="_blank" rel="noopener noreferrer">*/}
{/* <IconButton icon={<GithubIcon />} shadow />*/}
{/* </a>*/}
{/*</div>*/}
</div>
<div>
<IconButton