-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1920 from BerriAI/litellm_ui_improvements_time_se…
…ries feat(proxy_server.py): show admin global spend as time series data
- Loading branch information
Showing
9 changed files
with
558 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Layout, Menu } from "antd"; | ||
import Link from "next/link"; | ||
|
||
const { Sider } = Layout; | ||
|
||
// Define the props type | ||
interface SidebarProps { | ||
setPage: React.Dispatch<React.SetStateAction<string>>; | ||
} | ||
|
||
const Sidebar: React.FC<SidebarProps> = ({ setPage }) => { | ||
return ( | ||
<Layout style={{ minHeight: "100vh", maxWidth: "120px" }}> | ||
<Sider width={120}> | ||
<Menu | ||
mode="inline" | ||
defaultSelectedKeys={["1"]} | ||
style={{ height: "100%", borderRight: 0 }} | ||
> | ||
<Menu.Item key="1" onClick={() => setPage("api-keys")}> | ||
API Keys | ||
</Menu.Item> | ||
<Menu.Item key="2" onClick={() => setPage("usage")}> | ||
Usage | ||
</Menu.Item> | ||
</Menu> | ||
</Sider> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default Sidebar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.