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 ChatGptIcon from "../icons/chatgpt.svg";
|
||||||
import AddIcon from "../icons/add.svg";
|
import AddIcon from "../icons/add.svg";
|
||||||
import CloseIcon from "../icons/close.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 MaskIcon from "../icons/mask.svg";
|
||||||
import CoffeeIcon from "../icons/coffee.svg";
|
import CoffeeIcon from "../icons/coffee.svg";
|
||||||
import DragIcon from "../icons/drag.svg";
|
import DragIcon from "../icons/drag.svg";
|
||||||
@ -230,16 +230,20 @@ export function SideBar(props: { className?: string }) {
|
|||||||
<IconButton icon={<SettingsIcon />} shadow />
|
<IconButton icon={<SettingsIcon />} shadow />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<IconButton
|
<div className={styles["sidebar-action"]}>
|
||||||
text={Locale.Settings.Danger.Clear.Title}
|
<IconButton
|
||||||
onClick={async () => {
|
text={Locale.Settings.Danger.Clear.Title}
|
||||||
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
onClick={async () => {
|
||||||
chatStore.clearAllData();
|
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
||||||
}
|
chatStore.clearAllData();
|
||||||
}}
|
}
|
||||||
type="danger"
|
}}
|
||||||
className={styles["custom-sidebar-clear-button"]}
|
title={"123fas"}
|
||||||
/>
|
icon={<DeleteIcon />}
|
||||||
|
type="danger"
|
||||||
|
className={styles["custom-sidebar-clear-button"]}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -150,7 +150,8 @@ export const usePromptStore = createPersistStore(
|
|||||||
},
|
},
|
||||||
|
|
||||||
onRehydrateStorage(state) {
|
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]>;
|
type PromptList = Array<[string, string]>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user