@lobehub/chat 0.52.0 → 0.53.0
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 +50 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/pages/_document.page.tsx +2 -26
- package/src/pages/chat/features/Sidebar/index.tsx +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 0.53.0](https://github.com/lobehub/lobe-chat/compare/v0.52.1...v0.53.0)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-08-15**</sup>
|
|
8
|
+
|
|
9
|
+
#### ✨ Features
|
|
10
|
+
|
|
11
|
+
- **sidebar**: Add DraggablePanelContainer and adjust layout and styling.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's improved
|
|
19
|
+
|
|
20
|
+
- **sidebar**: Add DraggablePanelContainer and adjust layout and styling ([e8c384f](https://github.com/lobehub/lobe-chat/commit/e8c384f))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.52.1](https://github.com/lobehub/lobe-chat/compare/v0.52.0...v0.52.1)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2023-08-15**</sup>
|
|
33
|
+
|
|
34
|
+
#### ♻ Code Refactoring
|
|
35
|
+
|
|
36
|
+
- **misc**: Replace cdn.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### Code refactoring
|
|
44
|
+
|
|
45
|
+
- **misc**: Replace cdn ([2875400](https://github.com/lobehub/lobe-chat/commit/2875400))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
## [Version 0.52.0](https://github.com/lobehub/lobe-chat/compare/v0.51.0...v0.52.0)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2023-08-15**</sup>
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
<img height="120" src="https://
|
|
5
|
+
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
|
6
6
|
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
|
|
7
|
-
<img height="120" src="https://
|
|
7
|
+
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/robot.webp">
|
|
8
8
|
|
|
9
9
|
<h1>Lobe Chat</h1>
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Meta } from '@lobehub/ui';
|
|
1
2
|
import { StyleProvider, extractStaticStyle } from 'antd-style';
|
|
2
3
|
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document';
|
|
3
4
|
|
|
@@ -31,32 +32,7 @@ class MyDocument extends Document {
|
|
|
31
32
|
return (
|
|
32
33
|
<Html>
|
|
33
34
|
<Head>
|
|
34
|
-
<
|
|
35
|
-
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/apple-touch-icon.png"
|
|
36
|
-
rel="apple-touch-icon"
|
|
37
|
-
sizes="180x180"
|
|
38
|
-
/>
|
|
39
|
-
<link
|
|
40
|
-
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon-32x32.png"
|
|
41
|
-
rel="icon"
|
|
42
|
-
sizes="32x32"
|
|
43
|
-
type="image/png"
|
|
44
|
-
/>
|
|
45
|
-
<link
|
|
46
|
-
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon-16x16.png"
|
|
47
|
-
rel="icon"
|
|
48
|
-
sizes="16x16"
|
|
49
|
-
type="image/png"
|
|
50
|
-
/>
|
|
51
|
-
<link
|
|
52
|
-
color="#000000"
|
|
53
|
-
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/safari-pinned-tab.svg"
|
|
54
|
-
rel="mask-icon"
|
|
55
|
-
/>
|
|
56
|
-
<meta content="LobeHub" name="apple-mobile-web-app-title" />
|
|
57
|
-
<meta content="LobeHub" name="application-name" />
|
|
58
|
-
<meta content="#000000" name="msapplication-TileColor" />
|
|
59
|
-
<meta content="#000000" name="theme-color" />
|
|
35
|
+
<Meta title={'LobeChat'} />
|
|
60
36
|
<link href="/manifest.json" rel="manifest" />
|
|
61
37
|
</Head>
|
|
62
38
|
<body>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DraggablePanel, SearchBar } from '@lobehub/ui';
|
|
1
|
+
import { DraggablePanel, DraggablePanelContainer, SearchBar } from '@lobehub/ui';
|
|
2
2
|
import { createStyles } from 'antd-style';
|
|
3
3
|
import { rgba } from 'polished';
|
|
4
4
|
import { memo } from 'react';
|
|
@@ -51,16 +51,20 @@ const SideBar = memo<SideBarProps>(({ systemRole = true }) => {
|
|
|
51
51
|
onExpandChange={toggleConfig}
|
|
52
52
|
placement={'right'}
|
|
53
53
|
>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
54
|
+
<DraggablePanelContainer
|
|
55
|
+
style={{ flex: 'none', height: '100%', minWidth: CHAT_SIDEBAR_WIDTH }}
|
|
56
|
+
>
|
|
57
|
+
<HeaderSpacing />
|
|
58
|
+
{systemRole && <SystemRole />}
|
|
59
|
+
<Flexbox height={'100%'} style={{ overflow: 'hidden' }}>
|
|
60
|
+
<Flexbox padding={16}>
|
|
61
|
+
<SearchBar placeholder={t('topic.searchPlaceholder')} spotlight type={'ghost'} />
|
|
62
|
+
</Flexbox>
|
|
63
|
+
<Flexbox gap={16} paddingInline={16} style={{ overflowY: 'auto', position: 'relative' }}>
|
|
64
|
+
<Topic />
|
|
65
|
+
</Flexbox>
|
|
59
66
|
</Flexbox>
|
|
60
|
-
|
|
61
|
-
<Topic />
|
|
62
|
-
</Flexbox>
|
|
63
|
-
</Flexbox>
|
|
67
|
+
</DraggablePanelContainer>
|
|
64
68
|
</DraggablePanel>
|
|
65
69
|
);
|
|
66
70
|
});
|