Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fork #4066

Closed
wants to merge 32 commits into from
Closed

fork #4066

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1974050
add
Apr 17, 2023
09dbbdc
add dialog
Apr 17, 2023
4c4f41c
add
Apr 17, 2023
ea67ff7
Merge branch 'Yidadaa:main' into main
kouzikouzi Apr 17, 2023
ecfb649
add dialog
Apr 17, 2023
e3f2d8e
add
Apr 17, 2023
9deba4a
Merge branch 'main' of github.com:kouzikouzi/ChatGPT-Next-Web
Apr 17, 2023
4a4039b
reset
Apr 17, 2023
b4d60b0
add prompt
Apr 17, 2023
46bb7d2
Merge branch 'main' into main
kouzikouzi Feb 19, 2024
2dd842e
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Feb 21, 2024
e7deeb2
Update chat.tsx
kouzikouzi Feb 22, 2024
5dc1bae
Update chat.tsx
kouzikouzi Feb 22, 2024
a3bf947
Update chat.tsx
kouzikouzi Feb 22, 2024
e8ed117
Update chat.tsx
kouzikouzi Feb 22, 2024
4c4fd12
Update chat.tsx
kouzikouzi Feb 22, 2024
92f7a17
Update home.tsx
kouzikouzi Feb 22, 2024
614029f
Update home.tsx
kouzikouzi Feb 22, 2024
3352299
Update home.tsx
kouzikouzi Feb 22, 2024
50bef4f
Update home.tsx
kouzikouzi Feb 22, 2024
560e97d
Update home.tsx
kouzikouzi Feb 22, 2024
14b4e72
Update home.tsx
kouzikouzi Feb 22, 2024
feed730
Update home.tsx
kouzikouzi Feb 22, 2024
fbe5377
Update home.tsx
kouzikouzi Feb 22, 2024
e2314ce
Update home.tsx
kouzikouzi Feb 22, 2024
0ec7b76
Update home.tsx
kouzikouzi Feb 22, 2024
682441a
Update home.tsx
kouzikouzi Feb 22, 2024
27bb023
Update home.tsx
kouzikouzi Feb 22, 2024
dc904ad
Update home.tsx
kouzikouzi Feb 22, 2024
40b4622
Update home.tsx
kouzikouzi Feb 22, 2024
f49fb6c
Update home.tsx
kouzikouzi Feb 22, 2024
206650f
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,18 @@ function Screen() {
const isMobileScreen = useMobileScreen();
const shouldTightBorder =
getClientConfig()?.isApp || (config.tightBorder && !isMobileScreen);

const tbdsCode = localStorage.getItem('tbdsCode');
// 有缓存code,则更新code
if(tbdsCode != 'lab.ourtbds.com'){
// 无缓存,则弹窗提示,重新输入
var code:any = prompt("请输入授权码");
if(code == 'lab.ourtbds.com') {
localStorage.setItem('tbdsCode', code);
window.reload();
} else {
localStorage.setItem('tbdsCode', '');
}
}
useEffect(() => {
loadAsyncGoogleFont();
}, []);
Expand All @@ -150,16 +161,16 @@ function Screen() {
</>
) : (
<>
<SideBar className={isHome ? styles["sidebar-show"] : ""} />
{tbdsCode === 'lab.ourtbds.com' && (<SideBar className={isHome ? styles["sidebar-show"] : ""} />)}

<div className={styles["window-content"]} id={SlotID.AppBody}>
<Routes>
{tbdsCode === 'lab.ourtbds.com' && (<Routes>
<Route path={Path.Home} element={<Chat />} />
<Route path={Path.NewChat} element={<NewChat />} />
<Route path={Path.Masks} element={<MaskPage />} />
<Route path={Path.Chat} element={<Chat />} />
<Route path={Path.Settings} element={<Settings />} />
</Routes>
</Routes>)}
</div>
</>
)}
Expand Down
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
just for test.
Loading