@lobehub/chat 1.5.0 → 1.5.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/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/package.json +1 -1
- package/src/app/(main)/@nav/_layout/Desktop/BottomActions.tsx +2 -2
- package/src/components/BrandWatermark/index.tsx +7 -1
- package/src/const/url.ts +5 -0
- package/src/features/AlertBanner/CloudBanner.tsx +3 -3
- package/src/features/User/UserPanel/useMenu.tsx +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.5.1](https://github.com/lobehub/lobe-chat/compare/v1.5.0...v1.5.1)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-07-17**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Improve brand url.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Improve brand url, closes [#3238](https://github.com/lobehub/lobe-chat/issues/3238) ([eef066f](https://github.com/lobehub/lobe-chat/commit/eef066f))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 1.5.0](https://github.com/lobehub/lobe-chat/compare/v1.4.3...v1.5.0)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-07-17**</sup>
|
package/README.md
CHANGED
|
@@ -265,14 +265,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
265
265
|
|
|
266
266
|
<!-- AGENT LIST -->
|
|
267
267
|
|
|
268
|
-
| Recent Submits
|
|
269
|
-
|
|
|
270
|
-
| [
|
|
271
|
-
| [
|
|
272
|
-
| [
|
|
273
|
-
| [
|
|
274
|
-
|
|
275
|
-
> 📊 Total agents: [<kbd>**
|
|
268
|
+
| Recent Submits | Description |
|
|
269
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
270
|
+
| [Convert SQL Table Structure to Dao and Mapper](https://chat-preview.lobehub.com/market?agent=my-batis-generator)<br/><sup>By **[MeYoung](https://github.com/MeYoung)** on **2024-07-17**</sup> | Generate entity class and MyBatis Mapper based on a table structure<br/>`sql` `sql` `mybatis` |
|
|
271
|
+
| [Foreign Trade High EQ Response](https://chat-preview.lobehub.com/market?agent=reply-agent)<br/><sup>By **[zhushen12580](https://github.com/zhushen12580)** on **2024-07-13**</sup> | My goal is to provide professional responses with high emotional intelligence to help solve various foreign trade-related issues.<br/>`polishing` `high-eq` `response` |
|
|
272
|
+
| [Ducky Programming Assistant](https://chat-preview.lobehub.com/market?agent=rubber-duck-programming)<br/><sup>By **[JiyuShao](https://github.com/JiyuShao)** on **2024-07-10**</sup> | Ducky Programming Assistant<br/>`programming` |
|
|
273
|
+
| [B1 Level German Conversation Partner](https://chat-preview.lobehub.com/market?agent=deutsche-b-1)<br/><sup>By **[tayhe](https://github.com/tayhe)** on **2024-07-08**</sup> | Provides fluent German conversation partners for B1 level learners<br/>`language-exchange` `learning-support` `education` `german-learning` |
|
|
274
|
+
|
|
275
|
+
> 📊 Total agents: [<kbd>**298**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
276
276
|
|
|
277
277
|
<!-- AGENT LIST -->
|
|
278
278
|
|
package/README.zh-CN.md
CHANGED
|
@@ -254,14 +254,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
254
254
|
|
|
255
255
|
<!-- AGENT LIST -->
|
|
256
256
|
|
|
257
|
-
| 最近新增
|
|
258
|
-
|
|
|
259
|
-
| [
|
|
260
|
-
| [
|
|
261
|
-
| [
|
|
262
|
-
| [
|
|
263
|
-
|
|
264
|
-
> 📊 Total agents: [<kbd>**
|
|
257
|
+
| 最近新增 | 助手说明 |
|
|
258
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
259
|
+
| [SQL 表结构转 Dao 和 Mapper](https://chat-preview.lobehub.com/market?agent=my-batis-generator)<br/><sup>By **[MeYoung](https://github.com/MeYoung)** on **2024-07-17**</sup> | 给与一个表结构,生成表的实体和 MyBatis 的 Mapper<br/>`sql` `sql` `mybatis` |
|
|
260
|
+
| [外贸高情商回复](https://chat-preview.lobehub.com/market?agent=reply-agent)<br/><sup>By **[zhushen12580](https://github.com/zhushen12580)** on **2024-07-13**</sup> | 我的目标是提供具有高情商的专业回复,帮助解决各种外贸相关的问题。<br/>`润色` `高情商` `回复` |
|
|
261
|
+
| [小黄鸭编程助手](https://chat-preview.lobehub.com/market?agent=rubber-duck-programming)<br/><sup>By **[JiyuShao](https://github.com/JiyuShao)** on **2024-07-10**</sup> | 小黄鸭编程助手<br/>`programming` |
|
|
262
|
+
| [B1 级德语会话伙伴](https://chat-preview.lobehub.com/market?agent=deutsche-b-1)<br/><sup>By **[tayhe](https://github.com/tayhe)** on **2024-07-08**</sup> | 为 B1 级学习者提供流利的德语会话伙伴<br/>`语言交流` `学习支持` `教育` `德语学习` |
|
|
263
|
+
|
|
264
|
+
> 📊 Total agents: [<kbd>**298**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
265
265
|
|
|
266
266
|
<!-- AGENT LIST -->
|
|
267
267
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -4,7 +4,7 @@ import Link from 'next/link';
|
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { DOCUMENTS_REFER_URL, GITHUB } from '@/const/url';
|
|
8
8
|
|
|
9
9
|
const BottomActions = memo(() => {
|
|
10
10
|
const { t } = useTranslation('common');
|
|
@@ -14,7 +14,7 @@ const BottomActions = memo(() => {
|
|
|
14
14
|
<Link aria-label={'GitHub'} href={GITHUB} target={'_blank'}>
|
|
15
15
|
<ActionIcon icon={Github} placement={'right'} title={'GitHub'} />
|
|
16
16
|
</Link>
|
|
17
|
-
<Link aria-label={t('document')} href={
|
|
17
|
+
<Link aria-label={t('document')} href={DOCUMENTS_REFER_URL} target={'_blank'}>
|
|
18
18
|
<ActionIcon icon={Book} placement={'right'} title={t('document')} />
|
|
19
19
|
</Link>
|
|
20
20
|
</>
|
|
@@ -6,6 +6,8 @@ import Link from 'next/link';
|
|
|
6
6
|
import { memo } from 'react';
|
|
7
7
|
import { Flexbox, FlexboxProps } from 'react-layout-kit';
|
|
8
8
|
|
|
9
|
+
import { UTM_SOURCE } from '@/const/url';
|
|
10
|
+
|
|
9
11
|
const useStyles = createStyles(({ token, css }) => ({
|
|
10
12
|
logoLink: css`
|
|
11
13
|
height: 20px;
|
|
@@ -29,7 +31,11 @@ const BrandWatermark = memo<Omit<FlexboxProps, 'children'>>(({ style, ...rest })
|
|
|
29
31
|
{...rest}
|
|
30
32
|
>
|
|
31
33
|
<span>Powered by</span>
|
|
32
|
-
<Link
|
|
34
|
+
<Link
|
|
35
|
+
className={styles.logoLink}
|
|
36
|
+
href={`https://lobehub.com?utm_source=${UTM_SOURCE}&utm_content=brand_watermark`}
|
|
37
|
+
target={'_blank'}
|
|
38
|
+
>
|
|
33
39
|
<LobeHub size={20} type={'text'} />
|
|
34
40
|
</Link>
|
|
35
41
|
</Flexbox>
|
package/src/const/url.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { withBasePath } from '@/utils/basePath';
|
|
|
6
6
|
import pkg from '../../package.json';
|
|
7
7
|
import { INBOX_SESSION_ID } from './session';
|
|
8
8
|
|
|
9
|
+
export const UTM_SOURCE = 'chat_preview';
|
|
10
|
+
|
|
9
11
|
export const OFFICIAL_URL = 'https://lobechat.com/';
|
|
10
12
|
export const OFFICIAL_PREVIEW_URL = 'https://chat-preview.lobehub.com/';
|
|
11
13
|
export const OFFICIAL_SITE = 'https://lobehub.com/';
|
|
@@ -24,6 +26,9 @@ export const USAGE_DOCUMENTS = urlJoin(DOCUMENTS, '/usage');
|
|
|
24
26
|
export const SELF_HOSTING_DOCUMENTS = urlJoin(DOCUMENTS, '/self-hosting');
|
|
25
27
|
export const WEBRTC_SYNC_DOCUMENTS = urlJoin(SELF_HOSTING_DOCUMENTS, '/advanced/webrtc');
|
|
26
28
|
|
|
29
|
+
// use this for the link
|
|
30
|
+
export const DOCUMENTS_REFER_URL = `${DOCUMENTS}?utm_source=${UTM_SOURCE}`;
|
|
31
|
+
|
|
27
32
|
export const WIKI = urlJoin(GITHUB, 'wiki');
|
|
28
33
|
export const WIKI_PLUGIN_GUIDE = urlJoin(USAGE_DOCUMENTS, '/plugins/development');
|
|
29
34
|
export const MANUAL_UPGRADE_URL = urlJoin(SELF_HOSTING_DOCUMENTS, '/advanced/upstream-sync');
|
|
@@ -11,7 +11,7 @@ import Marquee from 'react-fast-marquee';
|
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
12
|
import { Center, Flexbox } from 'react-layout-kit';
|
|
13
13
|
|
|
14
|
-
import { OFFICIAL_URL } from '@/const/url';
|
|
14
|
+
import { OFFICIAL_URL, UTM_SOURCE } from '@/const/url';
|
|
15
15
|
import { isOnServerSide } from '@/utils/env';
|
|
16
16
|
|
|
17
17
|
export const BANNER_HEIGHT = 40;
|
|
@@ -60,7 +60,7 @@ const CloudBanner = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
|
60
60
|
<b>{t('alert.cloud.title', { name: 'LobeChat Cloud' })}:</b>
|
|
61
61
|
<span>
|
|
62
62
|
{t(mobile ? 'alert.cloud.descOnMobile' : 'alert.cloud.desc', {
|
|
63
|
-
credit: new Intl.NumberFormat('en-US').format(
|
|
63
|
+
credit: new Intl.NumberFormat('en-US').format(450_000),
|
|
64
64
|
name: 'LobeChat Cloud',
|
|
65
65
|
})}
|
|
66
66
|
</span>
|
|
@@ -78,7 +78,7 @@ const CloudBanner = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
|
78
78
|
<div className={styles.background} />
|
|
79
79
|
<Center className={styles.wrapper} gap={16} horizontal width={'100%'}>
|
|
80
80
|
{isTruncated ? <Marquee pauseOnHover>{content}</Marquee> : content}
|
|
81
|
-
<Link href={OFFICIAL_URL} target={'_blank'}>
|
|
81
|
+
<Link href={`${OFFICIAL_URL}?utm_source=${UTM_SOURCE}&utm_medium=banner`} target={'_blank'}>
|
|
82
82
|
<Button size={'small'} type="primary">
|
|
83
83
|
{t('alert.cloud.action')} <Icon icon={ArrowRightIcon} />
|
|
84
84
|
</Button>
|
|
@@ -24,10 +24,11 @@ import urlJoin from 'url-join';
|
|
|
24
24
|
import type { MenuProps } from '@/components/Menu';
|
|
25
25
|
import {
|
|
26
26
|
DISCORD,
|
|
27
|
-
|
|
27
|
+
DOCUMENTS_REFER_URL,
|
|
28
28
|
EMAIL_SUPPORT,
|
|
29
29
|
GITHUB_ISSUES,
|
|
30
30
|
OFFICIAL_URL,
|
|
31
|
+
UTM_SOURCE,
|
|
31
32
|
mailTo,
|
|
32
33
|
} from '@/const/url';
|
|
33
34
|
import { isServerMode } from '@/const/version';
|
|
@@ -177,7 +178,7 @@ export const useMenu = () => {
|
|
|
177
178
|
icon: <Icon icon={Cloudy} />,
|
|
178
179
|
key: 'cloud',
|
|
179
180
|
label: (
|
|
180
|
-
<Link href={OFFICIAL_URL} target={'_blank'}>
|
|
181
|
+
<Link href={`${OFFICIAL_URL}?utm_source=${UTM_SOURCE}`} target={'_blank'}>
|
|
181
182
|
{t('userPanel.cloud', { name: 'LobeChat Cloud' })}
|
|
182
183
|
</Link>
|
|
183
184
|
),
|
|
@@ -197,7 +198,7 @@ export const useMenu = () => {
|
|
|
197
198
|
icon: <Icon icon={Book} />,
|
|
198
199
|
key: 'docs',
|
|
199
200
|
label: (
|
|
200
|
-
<Link href={
|
|
201
|
+
<Link href={DOCUMENTS_REFER_URL} target={'_blank'}>
|
|
201
202
|
{t('userPanel.docs')}
|
|
202
203
|
</Link>
|
|
203
204
|
),
|