@lobehub/chat 0.27.0 → 0.27.1
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/plugins/searchEngine/Render.tsx +33 -32
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.27.1](https://github.com/lobehub/lobe-chat/compare/v0.27.0...v0.27.1)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-07-29**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: 优化搜索引擎样式.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: 优化搜索引擎样式 ([699afb3](https://github.com/lobehub/lobe-chat/commit/699afb3))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 0.27.0](https://github.com/lobehub/lobe-chat/compare/v0.26.1...v0.27.0)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-07-29**</sup>
|
package/package.json
CHANGED
|
@@ -41,44 +41,45 @@ const useStyles = createStyles(({ css, token, cx }) => {
|
|
|
41
41
|
const Render = memo<PluginRenderProps<Result>>(({ content }) => {
|
|
42
42
|
const { styles } = useStyles();
|
|
43
43
|
return (
|
|
44
|
-
<Flexbox
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
>
|
|
54
|
-
<
|
|
55
|
-
<
|
|
56
|
-
<Flexbox>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<Flexbox>
|
|
68
|
-
|
|
69
|
-
<Flexbox className={styles.displayLink}>{item.displayed_link}</Flexbox>
|
|
70
|
-
</Flexbox>
|
|
44
|
+
<Flexbox>
|
|
45
|
+
{content.map((item, index) => (
|
|
46
|
+
<Flexbox
|
|
47
|
+
className={styles.container}
|
|
48
|
+
distribution={'space-between'}
|
|
49
|
+
horizontal
|
|
50
|
+
key={item.link}
|
|
51
|
+
padding={12}
|
|
52
|
+
>
|
|
53
|
+
<Flexbox>
|
|
54
|
+
<Link className={styles.link} href={item.link!} target={'_blank'}>
|
|
55
|
+
<Flexbox>
|
|
56
|
+
<Flexbox align={'center'} gap={12} horizontal>
|
|
57
|
+
{item.favicon && (
|
|
58
|
+
<img
|
|
59
|
+
alt={item.title || item.link}
|
|
60
|
+
className={styles.favicon}
|
|
61
|
+
height={24}
|
|
62
|
+
src={item.favicon}
|
|
63
|
+
width={24}
|
|
64
|
+
/>
|
|
65
|
+
)}
|
|
66
|
+
<Flexbox>
|
|
67
|
+
<Flexbox className={styles.desc}>{item.source}</Flexbox>
|
|
68
|
+
<Flexbox className={styles.displayLink}>{item.displayed_link}</Flexbox>
|
|
71
69
|
</Flexbox>
|
|
70
|
+
</Flexbox>
|
|
71
|
+
<Flexbox align={'baseline'} gap={2} horizontal>
|
|
72
|
+
<div>{index + 1}.</div>
|
|
72
73
|
<Flexbox className={styles.title}>{item.title}</Flexbox>
|
|
73
74
|
</Flexbox>
|
|
74
|
-
</Link>
|
|
75
|
-
<Flexbox className={styles.desc}>
|
|
76
|
-
{item.date ? `${item.date} - ${item.content}` : item.content}
|
|
77
75
|
</Flexbox>
|
|
76
|
+
</Link>
|
|
77
|
+
<Flexbox className={styles.desc}>
|
|
78
|
+
{item.date ? `${item.date} - ${item.content}` : item.content}
|
|
78
79
|
</Flexbox>
|
|
79
80
|
</Flexbox>
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
</Flexbox>
|
|
82
|
+
))}
|
|
82
83
|
</Flexbox>
|
|
83
84
|
);
|
|
84
85
|
});
|