@lobehub/chat 1.15.22 → 1.15.23
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.
Potentially problematic release.
This version of @lobehub/chat might be problematic. Click here for more details.
- package/CHANGELOG.md +25 -0
- package/locales/ar/metadata.json +6 -6
- package/locales/ar/migration.json +9 -9
- package/locales/ar/plugin.json +1 -1
- package/locales/ar/setting.json +4 -4
- package/locales/ar/welcome.json +13 -13
- package/locales/bg-BG/metadata.json +7 -7
- package/locales/bg-BG/migration.json +12 -12
- package/locales/bg-BG/plugin.json +1 -1
- package/locales/bg-BG/setting.json +4 -4
- package/locales/bg-BG/welcome.json +13 -13
- package/locales/de-DE/metadata.json +6 -6
- package/locales/de-DE/migration.json +9 -9
- package/locales/de-DE/plugin.json +1 -1
- package/locales/de-DE/setting.json +4 -4
- package/locales/de-DE/welcome.json +15 -15
- package/locales/en-US/metadata.json +8 -8
- package/locales/en-US/migration.json +9 -9
- package/locales/en-US/plugin.json +1 -1
- package/locales/en-US/setting.json +4 -4
- package/locales/en-US/welcome.json +16 -16
- package/locales/es-ES/metadata.json +8 -8
- package/locales/es-ES/migration.json +9 -9
- package/locales/es-ES/plugin.json +1 -1
- package/locales/es-ES/setting.json +4 -4
- package/locales/es-ES/welcome.json +15 -15
- package/locales/fr-FR/metadata.json +7 -7
- package/locales/fr-FR/migration.json +8 -8
- package/locales/fr-FR/plugin.json +1 -1
- package/locales/fr-FR/setting.json +4 -4
- package/locales/fr-FR/welcome.json +12 -12
- package/locales/it-IT/metadata.json +6 -6
- package/locales/it-IT/migration.json +11 -11
- package/locales/it-IT/plugin.json +1 -1
- package/locales/it-IT/setting.json +4 -4
- package/locales/it-IT/welcome.json +16 -16
- package/locales/ja-JP/metadata.json +6 -6
- package/locales/ja-JP/migration.json +9 -9
- package/locales/ja-JP/plugin.json +1 -1
- package/locales/ja-JP/setting.json +4 -4
- package/locales/ja-JP/welcome.json +15 -15
- package/locales/ko-KR/metadata.json +6 -6
- package/locales/ko-KR/migration.json +9 -9
- package/locales/ko-KR/plugin.json +1 -1
- package/locales/ko-KR/setting.json +4 -4
- package/locales/ko-KR/welcome.json +13 -13
- package/locales/nl-NL/metadata.json +7 -7
- package/locales/nl-NL/migration.json +9 -9
- package/locales/nl-NL/plugin.json +1 -1
- package/locales/nl-NL/setting.json +4 -4
- package/locales/nl-NL/welcome.json +15 -15
- package/locales/pl-PL/metadata.json +6 -6
- package/locales/pl-PL/migration.json +11 -11
- package/locales/pl-PL/plugin.json +1 -1
- package/locales/pl-PL/setting.json +4 -4
- package/locales/pl-PL/welcome.json +16 -16
- package/locales/pt-BR/metadata.json +8 -8
- package/locales/pt-BR/migration.json +13 -13
- package/locales/pt-BR/plugin.json +1 -1
- package/locales/pt-BR/setting.json +4 -4
- package/locales/pt-BR/welcome.json +16 -16
- package/locales/ru-RU/metadata.json +6 -6
- package/locales/ru-RU/migration.json +11 -11
- package/locales/ru-RU/plugin.json +1 -1
- package/locales/ru-RU/setting.json +4 -4
- package/locales/ru-RU/welcome.json +16 -16
- package/locales/tr-TR/metadata.json +6 -6
- package/locales/tr-TR/migration.json +12 -12
- package/locales/tr-TR/plugin.json +1 -1
- package/locales/tr-TR/setting.json +4 -4
- package/locales/tr-TR/welcome.json +15 -15
- package/locales/vi-VN/metadata.json +6 -6
- package/locales/vi-VN/migration.json +8 -8
- package/locales/vi-VN/plugin.json +1 -1
- package/locales/vi-VN/setting.json +4 -4
- package/locales/vi-VN/welcome.json +9 -9
- package/locales/zh-CN/common.json +3 -3
- package/locales/zh-CN/market.json +1 -1
- package/locales/zh-CN/metadata.json +6 -6
- package/locales/zh-CN/migration.json +4 -4
- package/locales/zh-CN/plugin.json +2 -2
- package/locales/zh-CN/setting.json +4 -4
- package/locales/zh-CN/welcome.json +8 -8
- package/locales/zh-TW/metadata.json +6 -6
- package/locales/zh-TW/migration.json +6 -6
- package/locales/zh-TW/plugin.json +1 -1
- package/locales/zh-TW/setting.json +4 -4
- package/locales/zh-TW/welcome.json +10 -10
- package/package.json +1 -1
- package/src/app/(auth)/login/[[...login]]/page.tsx +2 -1
- package/src/app/(main)/chat/(workspace)/features/ShareButton/useScreenshot.ts +2 -1
- package/src/app/(main)/chat/(workspace)/features/TelemetryNotification.tsx +5 -2
- package/src/app/(main)/chat/(workspace)/page.tsx +5 -4
- package/src/app/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +2 -2
- package/src/app/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +2 -2
- package/src/app/(main)/chat/features/Migration/ExportConfigButton.tsx +3 -1
- package/src/app/(main)/chat/features/Migration/Modal.tsx +3 -2
- package/src/app/(main)/chat/features/Migration/Start.tsx +4 -2
- package/src/app/(main)/files/(content)/NotSupportClient.tsx +2 -1
- package/src/app/(main)/market/_layout/Desktop/Header.tsx +3 -2
- package/src/app/(main)/market/features/ShareAgentButton/Inner.tsx +2 -1
- package/src/app/(main)/settings/about/features/Analytics.tsx +2 -1
- package/src/app/(main)/settings/about/features/Version.tsx +3 -2
- package/src/app/(main)/settings/about/index.tsx +6 -1
- package/src/app/(main)/welcome/features/Hero.tsx +3 -1
- package/src/app/(main)/welcome/page.tsx +5 -4
- package/src/app/metadata.ts +11 -12
- package/src/components/Branding/ProductLogo.tsx +14 -0
- package/src/components/Branding/index.ts +1 -0
- package/src/config/featureFlags/schema.ts +11 -5
- package/src/config/modelProviders/groq.ts +3 -3
- package/src/const/branding.ts +5 -0
- package/src/features/Conversation/components/InboxWelcome/QuestionSuggest.tsx +2 -1
- package/src/features/Conversation/components/InboxWelcome/index.tsx +4 -1
- package/src/features/PluginDevModal/UrlManifestForm.tsx +2 -1
- package/src/features/Setting/Footer.tsx +2 -1
- package/src/locales/default/common.ts +3 -3
- package/src/locales/default/market.ts +1 -1
- package/src/locales/default/metadata.ts +6 -6
- package/src/locales/default/migration.ts +4 -4
- package/src/locales/default/plugin.ts +2 -2
- package/src/locales/default/setting.ts +4 -5
- package/src/locales/default/welcome.ts +8 -8
- package/src/server/ld.ts +2 -1
- package/src/server/metadata.ts +2 -1
- package/src/store/user/slices/auth/selectors.ts +2 -1
- package/src/utils/config.ts +2 -1
@@ -70,7 +70,7 @@ export default {
|
|
70
70
|
pattenErrorMessage: '只能输入英文字符、数字 、- 和_ 这两个符号',
|
71
71
|
},
|
72
72
|
manifest: {
|
73
|
-
desc: '
|
73
|
+
desc: '{{appName}}将会通过该链接安装插件',
|
74
74
|
label: '插件描述文件 (Manifest) URL',
|
75
75
|
preview: '预览 Manifest',
|
76
76
|
refresh: '刷新',
|
@@ -104,7 +104,7 @@ export default {
|
|
104
104
|
edit: '编辑自定义插件',
|
105
105
|
},
|
106
106
|
type: {
|
107
|
-
lobe: '
|
107
|
+
lobe: '{{appName}} 插件',
|
108
108
|
openai: 'OpenAI 插件',
|
109
109
|
},
|
110
110
|
update: '更新',
|
@@ -12,7 +12,7 @@ export default {
|
|
12
12
|
},
|
13
13
|
analytics: {
|
14
14
|
telemetry: {
|
15
|
-
desc: '通过选择发送遥测数据,你可以帮助我们改善
|
15
|
+
desc: '通过选择发送遥测数据,你可以帮助我们改善 {{appName}} 整体用户体验',
|
16
16
|
title: '发送匿名使用数据',
|
17
17
|
},
|
18
18
|
title: '数据统计',
|
@@ -70,13 +70,12 @@ export default {
|
|
70
70
|
title: '模型展示名称',
|
71
71
|
},
|
72
72
|
files: {
|
73
|
-
extra:
|
74
|
-
'当前 LobeChat 的文件上传实现仅为一种 Hack 方案,仅限自行尝试。完整文件上传能力请等待后续实现',
|
73
|
+
extra: '当前文件上传实现仅为一种 Hack 方案,仅限自行尝试。完整文件上传能力请等待后续实现',
|
75
74
|
title: '支持文件上传',
|
76
75
|
},
|
77
76
|
functionCall: {
|
78
77
|
extra:
|
79
|
-
'
|
78
|
+
'此配置将仅开启应用中的函数调用能力,是否支持函数调用完全取决于模型本身,请自行测试该模型的函数调用能力可用性',
|
80
79
|
title: '支持函数调用',
|
81
80
|
},
|
82
81
|
id: {
|
@@ -91,7 +90,7 @@ export default {
|
|
91
90
|
},
|
92
91
|
vision: {
|
93
92
|
extra:
|
94
|
-
'
|
93
|
+
'此配置将仅开启应用中的图片上传配置,是否支持识别完全取决于模型本身,请自行测试该模型的视觉识别能力可用性',
|
95
94
|
title: '支持视觉识别',
|
96
95
|
},
|
97
96
|
},
|
@@ -10,16 +10,16 @@ export default {
|
|
10
10
|
title: '新增助理推荐:',
|
11
11
|
},
|
12
12
|
defaultMessage:
|
13
|
-
'我是您的私人智能助理
|
14
|
-
defaultMessageWithoutCreate: '我是您的私人智能助理
|
13
|
+
'我是您的私人智能助理 {{appName}} ,请问现在能帮您做什么?\n如果需要获得更加专业或定制的助手,可以点击 `+` 创建自定义助手',
|
14
|
+
defaultMessageWithoutCreate: '我是您的私人智能助理 {{appName}} ,请问现在能帮您做什么?',
|
15
15
|
qa: {
|
16
16
|
q01: 'LobeHub 是什么?',
|
17
|
-
q02: '
|
18
|
-
q03: '
|
19
|
-
q04: '
|
20
|
-
q05: '
|
21
|
-
q06: '
|
22
|
-
q07: '
|
17
|
+
q02: '{{appName}} 是什么?',
|
18
|
+
q03: '{{appName}} 是否有社区支持?',
|
19
|
+
q04: '{{appName}} 支持哪些功能?',
|
20
|
+
q05: '{{appName}} 如何部署和使用?',
|
21
|
+
q06: '{{appName}} 的定价是如何的?',
|
22
|
+
q07: '{{appName}} 是否免费?',
|
23
23
|
q08: '是否有云端服务版?',
|
24
24
|
q09: '是否支持本地语言模型?',
|
25
25
|
q10: '是否支持图像识别和生成?',
|
package/src/server/ld.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import urlJoin from 'url-join';
|
2
2
|
|
3
|
+
import { BRANDING_NAME } from '@/const/branding';
|
3
4
|
import { EMAIL_BUSINESS, EMAIL_SUPPORT, OFFICIAL_SITE, OFFICIAL_URL, X } from '@/const/url';
|
4
5
|
|
5
6
|
import pkg from '../../package.json';
|
@@ -205,7 +206,7 @@ class Ld {
|
|
205
206
|
}
|
206
207
|
|
207
208
|
private fixTitle(title: string) {
|
208
|
-
return title.includes(
|
209
|
+
return title.includes(BRANDING_NAME) ? title : `${title} · ${BRANDING_NAME}`;
|
209
210
|
}
|
210
211
|
|
211
212
|
private fixUrl(url: string) {
|
package/src/server/metadata.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Metadata } from 'next';
|
2
2
|
|
3
|
+
import { BRANDING_NAME } from '@/const/branding';
|
3
4
|
import { OG_URL, getCanonicalUrl } from '@/const/url';
|
4
5
|
import { formatDescLength, formatTitleLength } from '@/utils/genOG';
|
5
6
|
|
@@ -23,7 +24,7 @@ export class Meta {
|
|
23
24
|
const formatedTitle = formatTitleLength(title, 21);
|
24
25
|
// eslint-disable-next-line no-param-reassign
|
25
26
|
const formatedDescription = formatDescLength(description, tags);
|
26
|
-
const siteTitle = title.includes(
|
27
|
+
const siteTitle = title.includes(BRANDING_NAME) ? title : title + ` · ${BRANDING_NAME}`;
|
27
28
|
return {
|
28
29
|
alternates: { canonical: getCanonicalUrl(url) },
|
29
30
|
description: formatedDescription,
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { t } from 'i18next';
|
2
2
|
|
3
3
|
import { enableClerk } from '@/const/auth';
|
4
|
+
import { BRANDING_NAME } from '@/const/branding';
|
4
5
|
import { UserStore } from '@/store/user';
|
5
6
|
import { LobeUser } from '@/types/user';
|
6
7
|
|
7
|
-
const DEFAULT_USERNAME =
|
8
|
+
const DEFAULT_USERNAME = BRANDING_NAME;
|
8
9
|
|
9
10
|
const nickName = (s: UserStore) => {
|
10
11
|
if (!s.enableAuth()) return t('userPanel.defaultNickname', { ns: 'common' });
|
package/src/utils/config.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { notification } from '@/components/AntdStaticMethods';
|
2
|
+
import { BRANDING_NAME } from '@/const/branding';
|
2
3
|
import { CURRENT_CONFIG_VERSION, Migration } from '@/migrations';
|
3
4
|
import {
|
4
5
|
ConfigFile,
|
@@ -12,7 +13,7 @@ import {
|
|
12
13
|
} from '@/types/exportConfig';
|
13
14
|
|
14
15
|
export const exportConfigFile = (config: object, fileName?: string) => {
|
15
|
-
const file =
|
16
|
+
const file = `${BRANDING_NAME}-${fileName || '-config'}-v${CURRENT_CONFIG_VERSION}.json`;
|
16
17
|
|
17
18
|
// 创建一个 Blob 对象
|
18
19
|
const blob = new Blob([JSON.stringify(config)], { type: 'application/json' });
|