Skip to content

Commit

Permalink
chore: 屏蔽最外层滚动条、未登录屏蔽获取调用获取历史记录接口
Browse files Browse the repository at this point in the history
  • Loading branch information
adams549659584 committed May 18, 2023
1 parent c582f63 commit b79de9c
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "go-proxy-bingai",
"version": "1.6.7",
"version": "1.6.8",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@import './base.css';
@import './base.css';

.cib-serp-main {
overflow: hidden;
}
4 changes: 2 additions & 2 deletions frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ const isShowHistory = computed(() => {
onMounted(async () => {
await initChat();
checkUserToken();
// show
SydneyFullScreenConv.initWithWaitlistUpdate({ cookLoc: {} }, 10);
isShowLoading.value = false;
checkUserToken();
hackStyle();
initChatPrompt();
});
Expand All @@ -55,6 +54,7 @@ const checkUserToken = () => {
const userCookieVal = cookies.get(userTokenCookieName);
if (!userCookieVal) {
// 未登录不显示历史记录
CIB.config.features.enableGetChats = false;
CIB.vm.sidePanel.isVisibleMobile = false;
CIB.vm.sidePanel.isVisibleDesktop = false;
// 创建会话id
Expand Down
4 changes: 4 additions & 0 deletions frontend/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ declare const CIB: {
config: {
features: {
enableThreads: boolean;
/**
* 获取聊天历史
*/
enableGetChats: boolean;
};
sydney: {
/**
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions web/assets/index-cb246388.js → web/assets/index-d9a4ae7e.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<script src="/web/js/bing/chat/global.js"></script>
<script src="/web/js/bing/chat/amd.js"></script>
<script src="/web/js/bing/chat/config.js"></script>
<script type="module" crossorigin src="/web/assets/index-0b2cc67d.js"></script>
<link rel="stylesheet" href="/web/assets/index-3b84657c.css">
<script type="module" crossorigin src="/web/assets/index-6982f66e.js"></script>
<link rel="stylesheet" href="/web/assets/index-9d6f4de0.css">
<link rel="manifest" href="/web/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/web/registerSW.js"></script></head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion web/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit b79de9c

@vercel
Copy link

@vercel vercel bot commented on b79de9c May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.