@lobehub/chat 0.89.1 → 0.89.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/package.json +1 -1
- package/src/app/chat/(mobile)/features/SessionHeader.tsx +1 -1
- package/src/app/home/index.tsx +1 -1
- package/src/components/ResponsiveIndex.tsx +9 -2
- package/src/layout/ResponsiveLayout.client.tsx +1 -1
- package/src/locales/default/common.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.89.2](https://github.com/lobehub/lobe-chat/compare/v0.89.1...v0.89.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-10-12**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Modify onClick event in SessionHeader, change title in Loading component,.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Modify onClick event in SessionHeader, change title in Loading component, ([b984f6a](https://github.com/lobehub/lobe-chat/commit/b984f6a))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.89.1](https://github.com/lobehub/lobe-chat/compare/v0.89.0...v0.89.1)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-10-12**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.89.
|
|
3
|
+
"version": "0.89.2",
|
|
4
4
|
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatbot",
|
|
@@ -26,7 +26,7 @@ const Header = memo(() => {
|
|
|
26
26
|
<MobileNavBar
|
|
27
27
|
center={<Logo type={'text'} />}
|
|
28
28
|
left={
|
|
29
|
-
<div onClick={() => router.push('/settings
|
|
29
|
+
<div onClick={() => router.push('/settings')} style={{ marginLeft: 8 }}>
|
|
30
30
|
{avatar ? <Avatar avatar={avatar} size={28} /> : <Logo size={28} />}
|
|
31
31
|
</div>
|
|
32
32
|
}
|
package/src/app/home/index.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import FullscreenLoading from '@/components/FullscreenLoading';
|
|
|
7
7
|
const Loading = () => {
|
|
8
8
|
const { t } = useTranslation();
|
|
9
9
|
|
|
10
|
-
return <FullscreenLoading title={t('
|
|
10
|
+
return <FullscreenLoading title={t('appInitializing', { ns: 'common' })} />;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export default Loading;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
+
import { FC, ReactNode, Suspense } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
4
5
|
|
|
6
|
+
import FullscreenLoading from '@/components/FullscreenLoading';
|
|
5
7
|
import { useIsMobile } from '@/hooks/useIsMobile';
|
|
6
8
|
|
|
7
9
|
interface ResponsiveIndexProps {
|
|
@@ -9,9 +11,14 @@ interface ResponsiveIndexProps {
|
|
|
9
11
|
children: ReactNode;
|
|
10
12
|
}
|
|
11
13
|
const ResponsiveIndex = ({ children, Mobile }: ResponsiveIndexProps) => {
|
|
14
|
+
const { t } = useTranslation();
|
|
12
15
|
const mobile = useIsMobile();
|
|
13
16
|
|
|
14
|
-
return
|
|
17
|
+
return (
|
|
18
|
+
<Suspense fallback={<FullscreenLoading title={t('layoutInitializing', { ns: 'common' })} />}>
|
|
19
|
+
{mobile ? <Mobile /> : children}
|
|
20
|
+
</Suspense>
|
|
21
|
+
);
|
|
15
22
|
};
|
|
16
23
|
|
|
17
24
|
export default ResponsiveIndex;
|
|
@@ -16,7 +16,7 @@ const ResponsiveLayout = ({ children, Desktop, Mobile }: ServerResponsiveLayoutP
|
|
|
16
16
|
const mobile = useIsMobile();
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<Suspense fallback={<FullscreenLoading title={t('
|
|
19
|
+
<Suspense fallback={<FullscreenLoading title={t('layoutInitializing', { ns: 'common' })} />}>
|
|
20
20
|
{mobile ? <Mobile>{children}</Mobile> : <Desktop>{children}</Desktop>}
|
|
21
21
|
</Suspense>
|
|
22
22
|
);
|
|
@@ -36,12 +36,14 @@ export default {
|
|
|
36
36
|
feedback: '反馈与建议',
|
|
37
37
|
historyRange: '历史范围',
|
|
38
38
|
import: '导入配置',
|
|
39
|
+
|
|
39
40
|
inbox: {
|
|
40
41
|
defaultMessage:
|
|
41
42
|
'你好,我是你的智能助手,你可以问我任何问题,我会尽力回答你。如果需要获得更加专业或定制的助手,可以点击`+`创建自定义助手',
|
|
42
43
|
desc: '开启大脑集群,激发思维火花。你的智能助理,在这里与你交流一切',
|
|
43
44
|
title: '随便聊聊',
|
|
44
45
|
},
|
|
46
|
+
layoutInitializing: '正在加载布局...',
|
|
45
47
|
message: {
|
|
46
48
|
function_loading: '插件请求中...',
|
|
47
49
|
},
|
|
@@ -75,7 +77,6 @@ export default {
|
|
|
75
77
|
withSystemRole: '包含助手角色设定',
|
|
76
78
|
},
|
|
77
79
|
stop: '停止',
|
|
78
|
-
switchMobileLayout: '正在切换到移动端布局...',
|
|
79
80
|
tab: {
|
|
80
81
|
chat: '会话',
|
|
81
82
|
market: '发现',
|