mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
隐藏配置
This commit is contained in:
parent
e1eb70cf71
commit
8ec37bc7f1
@ -34,9 +34,9 @@ export function Loading(props: { noLogo?: boolean }) {
|
||||
);
|
||||
}
|
||||
|
||||
const Settings = dynamic(async () => (await import("./settings")).Settings, {
|
||||
loading: () => <Loading noLogo />,
|
||||
});
|
||||
// const Settings = dynamic(async () => (await import("./settings")).Settings, {
|
||||
// loading: () => <Loading noLogo />,
|
||||
// });
|
||||
|
||||
const ChatList = dynamic(async () => (await import("./chat-list")).ChatList, {
|
||||
loading: () => <Loading noLogo />,
|
||||
@ -146,7 +146,7 @@ function _Home() {
|
||||
onClick={chatStore.deleteSession}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles["sidebar-action"]}>
|
||||
{/* <div className={styles["sidebar-action"]}>
|
||||
<IconButton
|
||||
icon={<SettingsIcon />}
|
||||
onClick={() => {
|
||||
@ -155,7 +155,7 @@ function _Home() {
|
||||
}}
|
||||
shadow
|
||||
/>
|
||||
</div>
|
||||
</div> */}
|
||||
<div className={styles["sidebar-action"]}>
|
||||
<a href={REPO_URL} target="_blank">
|
||||
<IconButton icon={<GithubIcon />} shadow />
|
||||
@ -177,20 +177,11 @@ function _Home() {
|
||||
</div>
|
||||
|
||||
<div className={styles["window-content"]}>
|
||||
{openSettings ? (
|
||||
<Settings
|
||||
closeSettings={() => {
|
||||
setOpenSettings(false);
|
||||
setShowSideBar(true);
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<Chat
|
||||
key="chat"
|
||||
showSideBar={() => setShowSideBar(true)}
|
||||
sideBarShowing={showSideBar}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { SubmitKey } from "../store/app";
|
||||
|
||||
import { isMobileScreen } from "../utils";
|
||||
const cn = {
|
||||
WIP: "该功能仍在开发中……",
|
||||
Error: {
|
||||
@ -25,6 +25,9 @@ const cn = {
|
||||
if (submitKey === String(SubmitKey.Enter)) {
|
||||
inputHints += ",Shift + Enter 换行";
|
||||
}
|
||||
if (isMobileScreen()) {
|
||||
return "与ta对话吧";
|
||||
}
|
||||
return inputHints + ",/ 触发补全提示词咒语";
|
||||
},
|
||||
Send: "发送",
|
||||
|
Loading…
Reference in New Issue
Block a user