mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
暂存
This commit is contained in:
parent
e56ddc69d4
commit
7b7d3525a2
@ -7,7 +7,7 @@ import SettingsIcon from "../icons/settings.svg";
|
||||
import ChatGptIcon from "../icons/chatgpt.svg";
|
||||
import AddIcon from "../icons/add.svg";
|
||||
import CloseIcon from "../icons/close.svg";
|
||||
import DeleteIcon from "../icons/delete.svg";
|
||||
import DeleteIcon from "../icons/clear.svg";
|
||||
import MaskIcon from "../icons/mask.svg";
|
||||
import CoffeeIcon from "../icons/coffee.svg";
|
||||
import DragIcon from "../icons/drag.svg";
|
||||
@ -230,6 +230,7 @@ export function SideBar(props: { className?: string }) {
|
||||
<IconButton icon={<SettingsIcon />} shadow />
|
||||
</Link>
|
||||
</div>
|
||||
<div className={styles["sidebar-action"]}>
|
||||
<IconButton
|
||||
text={Locale.Settings.Danger.Clear.Title}
|
||||
onClick={async () => {
|
||||
@ -237,10 +238,13 @@ export function SideBar(props: { className?: string }) {
|
||||
chatStore.clearAllData();
|
||||
}
|
||||
}}
|
||||
title={"123fas"}
|
||||
icon={<DeleteIcon />}
|
||||
type="danger"
|
||||
className={styles["custom-sidebar-clear-button"]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<IconButton
|
||||
icon={<AddIcon />}
|
||||
|
@ -150,7 +150,8 @@ export const usePromptStore = createPersistStore(
|
||||
},
|
||||
|
||||
onRehydrateStorage(state) {
|
||||
const PROMPT_URL = "https://cos.xiaosi.cc/next/public/prompts.json";
|
||||
// const PROMPT_URL = "https://cos.xiaosi.cc/next/public/prompts.json";
|
||||
const PROMPT_URL = "./prompts.json";
|
||||
|
||||
type PromptList = Array<[string, string]>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user