Skip to content

Commit 2d48a73

Browse files
committed
add nav
1 parent 3f3ed70 commit 2d48a73

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/components/sidebar.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
Path,
2525
PLUGINS,
2626
REPO_URL,
27+
NAV_URL,
2728
} from "../constant";
2829

2930
import { Link, useNavigate } from "react-router-dom";
@@ -306,6 +307,15 @@ export function SideBar(props: { className?: string }) {
306307
/>
307308
</Link>
308309
</div>
310+
<div className={styles["sidebar-action"]}>
311+
<a href={NAV_URL} target="_blank" rel="noopener noreferrer">
312+
<IconButton
313+
aria={Locale.Export.MessageFromChatGPT}
314+
icon={<DiscoveryIcon />}
315+
shadow
316+
/>
317+
</a>
318+
</div>
309319
<div className={styles["sidebar-action"]}>
310320
<a href={REPO_URL} target="_blank" rel="noopener noreferrer">
311321
<IconButton

app/constant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const OWNER = "ChatGPTNextWeb";
22
export const REPO = "ChatGPT-Next-Web";
33
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
4+
export const NAV_URL = "https://nav.programnotes.cn";
45
export const PLUGINS_REPO_URL = `https://github.com/${OWNER}/NextChat-Awesome-Plugins`;
56
export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`;
67
export const UPDATE_URL = `${REPO_URL}#keep-updated`;

0 commit comments

Comments
 (0)