mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-12 04:53:44 +08:00
添加了充值用量的功能
This commit is contained in:
@@ -11,6 +11,7 @@ import ClearIcon from "../icons/clear.svg";
|
||||
import EditIcon from "../icons/edit.svg";
|
||||
import EyeIcon from "../icons/eye.svg";
|
||||
import EyeOffIcon from "../icons/eye-off.svg";
|
||||
import AddIcon from "../icons/add.svg";
|
||||
|
||||
import { Input, List, ListItem, Modal, Popover } from "./ui-lib";
|
||||
|
||||
@@ -214,6 +215,10 @@ export function Settings() {
|
||||
});
|
||||
}
|
||||
|
||||
function reCharge() {
|
||||
window.open("https://api2d.com/r/186624");
|
||||
}
|
||||
|
||||
const accessStore = useAccessStore();
|
||||
const enabledAccessControl = useMemo(
|
||||
() => accessStore.enabledAccessControl(),
|
||||
@@ -506,6 +511,36 @@ export function Settings() {
|
||||
)}
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
title={Locale.Settings.ReCharge.Title}
|
||||
// subTitle={
|
||||
// showUsage
|
||||
// ? loadingUsage
|
||||
// ? Locale.Settings.Usage.IsChecking
|
||||
// : Locale.Settings.Usage.SubTitle(
|
||||
// usage?.used ?? "[?]",
|
||||
// usage?.subscription ?? "[?]",
|
||||
// )
|
||||
// : Locale.Settings.Usage.NoAccess
|
||||
// }
|
||||
subTitle={Locale.Settings.ReCharge.SubTitle}
|
||||
>
|
||||
{/* {!showUsage || loadingUsage ? (
|
||||
<div />
|
||||
) : (
|
||||
<IconButton
|
||||
icon={<ResetIcon></ResetIcon>}
|
||||
text={Locale.Settings.Usage.Check}
|
||||
onClick={checkUsage}
|
||||
/>
|
||||
)} */}
|
||||
<IconButton
|
||||
icon={<AddIcon></AddIcon>}
|
||||
text={Locale.Settings.ReCharge.Text}
|
||||
onClick={reCharge}
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
title={Locale.Settings.HistoryCount.Title}
|
||||
subTitle={Locale.Settings.HistoryCount.SubTitle}
|
||||
|
Reference in New Issue
Block a user