mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
sidebar api link usagestats
This commit is contained in:
parent
4bc8c73d66
commit
747336be86
@ -338,3 +338,18 @@
|
|||||||
.rtl-screen {
|
.rtl-screen {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.api-link {
|
||||||
|
cursor: pointer;
|
||||||
|
color: inherit; // Or any color that makes it blend in with the text
|
||||||
|
text-decoration: none; // No underline to make it look like normal text
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline; // Optional: underline on hover to indicate interactivity
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none; // Optional: custom focus style for accessibility
|
||||||
|
// Add your own focus styles here
|
||||||
|
}
|
||||||
|
}
|
@ -31,6 +31,11 @@ import { Link, useNavigate } from "react-router-dom";
|
|||||||
import { isIOS, useMobileScreen } from "../utils";
|
import { isIOS, useMobileScreen } from "../utils";
|
||||||
import { showConfirm, showToast } from "./ui-lib";
|
import { showConfirm, showToast } from "./ui-lib";
|
||||||
|
|
||||||
|
import { UsageStats } from '../usage-stats/UsageStats';
|
||||||
|
|
||||||
|
const [showUsageStats, setShowUsageStats] = useState(false); // State to control the visibility of the usage stats
|
||||||
|
const toggleUsageStats = () => setShowUsageStats(!showUsageStats); // Function to toggle the usage stats UI
|
||||||
|
|
||||||
const ChatList = dynamic(async () => (await import("./chat-list")).ChatList, {
|
const ChatList = dynamic(async () => (await import("./chat-list")).ChatList, {
|
||||||
loading: () => null,
|
loading: () => null,
|
||||||
});
|
});
|
||||||
@ -158,7 +163,15 @@ export function SideBar(props: { className?: string }) {
|
|||||||
AdEx<b>GPT</b> - via API
|
AdEx<b>GPT</b> - via API
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["sidebar-sub-title"]}>
|
<div className={styles["sidebar-sub-title"]}>
|
||||||
secure local UI for OpenAI API
|
secure local UI for
|
||||||
|
<span
|
||||||
|
className={styles["api-link"]} // You might need to define this style
|
||||||
|
onClick={toggleUsageStats}
|
||||||
|
role="button" // Accessibility improvement
|
||||||
|
tabIndex={0} // Accessibility improvement
|
||||||
|
>
|
||||||
|
OpenAI API
|
||||||
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<a href="https://adexpartners.sharepoint.com/sites/AdExGPT/SitePages/AdExGPT.aspx">
|
<a href="https://adexpartners.sharepoint.com/sites/AdExGPT/SitePages/AdExGPT.aspx">
|
||||||
FAQ & Support
|
FAQ & Support
|
||||||
|
Loading…
Reference in New Issue
Block a user