@lobehub/chat 0.82.4 → 0.82.6

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 CHANGED
@@ -2,6 +2,57 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.82.6](https://github.com/lobehub/lobe-chat/compare/v0.82.5...v0.82.6)
6
+
7
+ <sup>Released on **2023-09-29**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix share default config, pin openai to fix type error.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix share default config ([e00d6bf](https://github.com/lobehub/lobe-chat/commit/e00d6bf))
21
+ - **misc**: Pin openai to fix type error ([5af4050](https://github.com/lobehub/lobe-chat/commit/5af4050))
22
+
23
+ </details>
24
+
25
+ <div align="right">
26
+
27
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
28
+
29
+ </div>
30
+
31
+ ### [Version 0.82.5](https://github.com/lobehub/lobe-chat/compare/v0.82.4...v0.82.5)
32
+
33
+ <sup>Released on **2023-09-29**</sup>
34
+
35
+ #### 💄 Styles
36
+
37
+ - **misc**: Update theme color and styling of mobile settings page.
38
+
39
+ <br/>
40
+
41
+ <details>
42
+ <summary><kbd>Improvements and Fixes</kbd></summary>
43
+
44
+ #### Styles
45
+
46
+ - **misc**: Update theme color and styling of mobile settings page ([1acfb71](https://github.com/lobehub/lobe-chat/commit/1acfb71))
47
+
48
+ </details>
49
+
50
+ <div align="right">
51
+
52
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
53
+
54
+ </div>
55
+
5
56
  ### [Version 0.82.4](https://github.com/lobehub/lobe-chat/compare/v0.82.3...v0.82.4)
6
57
 
7
58
  <sup>Released on **2023-09-29**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.82.4",
3
+ "version": "0.82.6",
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",
@@ -91,7 +91,7 @@
91
91
  "mixpanel-browser": "^2",
92
92
  "nanoid": "^5",
93
93
  "next": "^13.5.3",
94
- "openai": "^4",
94
+ "openai": "~4.10.0",
95
95
  "polished": "^4",
96
96
  "posthog-js": "^1",
97
97
  "react": "^18",
@@ -21,7 +21,7 @@ const Inner = memo(() => {
21
21
  const [withSystemRole, setWithSystemRole] = useState(false);
22
22
  const [withPluginInfo, setWithPluginInfo] = useState(false);
23
23
  const [withBackground, setWithBackground] = useState(true);
24
- const [withFooter, setWithFooter] = useState(true);
24
+ const [withFooter, setWithFooter] = useState(false);
25
25
  const [imageType, setImageType] = useState<ImageType>(ImageType.JPG);
26
26
  const [tab, setTab] = useState<Tab>(Tab.Screenshot);
27
27
  const { t } = useTranslation('common');
@@ -43,7 +43,7 @@ const metadata: Metadata = {
43
43
  url: homepage,
44
44
  },
45
45
  themeColor: [
46
- { color: '#fff', media: '(prefers-color-scheme: light)' },
46
+ { color: '#f8f8f8', media: '(prefers-color-scheme: light)' },
47
47
  { color: '#000', media: '(prefers-color-scheme: dark)' },
48
48
  ],
49
49
  title: title,
@@ -1,9 +1,11 @@
1
1
  'use client';
2
2
 
3
3
  import { Divider } from 'antd';
4
+ import { createStyles } from 'antd-style';
4
5
  import { memo } from 'react';
5
6
  import { Center } from 'react-layout-kit';
6
7
 
8
+ import pkg from '@/../package.json';
7
9
  import AgentCardBanner from '@/app/market/features/AgentCard/AgentCardBanner';
8
10
  import Header from '@/app/market/features/Header';
9
11
  import AvatarWithUpload from '@/features/AvatarWithUpload';
@@ -15,8 +17,20 @@ import { AVATAR } from '@/store/session/slices/chat/actions/share';
15
17
  import List from '../features/SideBar/List';
16
18
  import ExtraList from './ExtraList';
17
19
 
20
+ const useStyles = createStyles(({ css, token }) => ({
21
+ divider: css`
22
+ height: 6px;
23
+ background: ${token.colorFillTertiary};
24
+ `,
25
+ footer: css`
26
+ font-size: 12px;
27
+ color: ${token.colorTextQuaternary};
28
+ `,
29
+ }));
30
+
18
31
  const Setting = memo(() => {
19
32
  const avatar = useGlobalStore((s) => s.settings.avatar);
33
+ const { styles } = useStyles();
20
34
  useSwitchSideBarOnInit(SidebarTabKey.Setting);
21
35
  return (
22
36
  <AppMobileLayout navBar={<Header />} showTabBar>
@@ -24,17 +38,21 @@ const Setting = memo(() => {
24
38
  mask
25
39
  meta={{ avatar: avatar || AVATAR }}
26
40
  size={10}
27
- style={{ height: 180, marginBottom: 0 }}
41
+ style={{ height: 172, marginBottom: 0 }}
28
42
  >
29
43
  <Center style={{ position: 'absolute', zIndex: 2 }}>
30
- <AvatarWithUpload size={100} />
44
+ <AvatarWithUpload size={88} />
31
45
  </Center>
32
46
  </AgentCardBanner>
33
47
  <div style={{ width: '100%' }}>
34
- <Divider style={{ margin: '0 0 8px' }} />
35
48
  <List />
36
- <Divider style={{ margin: '8px 0' }} />
49
+ <div className={styles.divider} />
37
50
  <ExtraList />
51
+ <Center style={{ paddingInline: 64 }}>
52
+ <Divider>
53
+ <span className={styles.footer}>LobeChat v{pkg.version}</span>
54
+ </Divider>
55
+ </Center>
38
56
  </div>
39
57
  </AppMobileLayout>
40
58
  );