@lobehub/chat 1.22.25 → 1.22.26
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/app/(main)/discover/_layout/Desktop/Header.tsx +2 -1
- package/src/app/(main)/settings/llm/index.tsx +3 -1
- package/src/app/metadata.ts +10 -7
- package/src/const/branding.ts +6 -0
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +5 -3
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.22.26](https://github.com/lobehub/lobe-chat/compare/v1.22.25...v1.22.26)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-23**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Fix some custom branding detail.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Fix some custom branding detail, closes [#4465](https://github.com/lobehub/lobe-chat/issues/4465) ([3fb1f6a](https://github.com/lobehub/lobe-chat/commit/3fb1f6a))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.22.25](https://github.com/lobehub/lobe-chat/compare/v1.22.24...v1.22.25)
|
6
31
|
|
7
32
|
<sup>Released on **2024-10-23**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.22.
|
3
|
+
"version": "1.22.26",
|
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",
|
@@ -5,6 +5,7 @@ import Link from 'next/link';
|
|
5
5
|
import { memo } from 'react';
|
6
6
|
|
7
7
|
import { ProductLogo } from '@/components/Branding';
|
8
|
+
import { isCustomBranding } from '@/const/version';
|
8
9
|
|
9
10
|
import CreateButton from '../../features/CreateButton';
|
10
11
|
import StoreSearchBar from '../../features/StoreSearchBar';
|
@@ -17,7 +18,7 @@ const Header = memo(() => {
|
|
17
18
|
<ProductLogo extra={'Discover'} size={36} type={'text'} />
|
18
19
|
</Link>
|
19
20
|
}
|
20
|
-
right={<CreateButton />}
|
21
|
+
right={!isCustomBranding && <CreateButton />}
|
21
22
|
style={{
|
22
23
|
position: 'relative',
|
23
24
|
zIndex: 10,
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
import { Flexbox } from 'react-layout-kit';
|
4
4
|
|
5
|
+
import { isCustomBranding } from '@/const/version';
|
6
|
+
|
5
7
|
import { useProviderList } from './ProviderList/providers';
|
6
8
|
import ProviderConfig from './components/ProviderConfig';
|
7
9
|
import Footer from './features/Footer';
|
@@ -14,7 +16,7 @@ const Page = () => {
|
|
14
16
|
{list.map(({ id, ...res }) => (
|
15
17
|
<ProviderConfig id={id as any} key={id} {...res} />
|
16
18
|
))}
|
17
|
-
<Footer />
|
19
|
+
{!isCustomBranding && <Footer />}
|
18
20
|
</Flexbox>
|
19
21
|
);
|
20
22
|
};
|
package/src/app/metadata.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Metadata } from 'next';
|
2
2
|
|
3
3
|
import { appEnv } from '@/config/app';
|
4
|
-
import { BRANDING_NAME } from '@/const/branding';
|
4
|
+
import { BRANDING_LOGO_URL, BRANDING_NAME, ORG_NAME } from '@/const/branding';
|
5
5
|
import { OFFICIAL_URL, OG_URL } from '@/const/url';
|
6
|
+
import { isCustomBranding, isCustomORG } from '@/const/version';
|
6
7
|
import { translation } from '@/server/translation';
|
7
8
|
|
8
9
|
const BASE_PATH = appEnv.NEXT_PUBLIC_BASE_PATH;
|
@@ -22,11 +23,13 @@ export const generateMetadata = async (): Promise<Metadata> => {
|
|
22
23
|
title: BRANDING_NAME,
|
23
24
|
},
|
24
25
|
description: t('chat.description', { appName: BRANDING_NAME }),
|
25
|
-
icons:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
icons: isCustomBranding
|
27
|
+
? BRANDING_LOGO_URL
|
28
|
+
: {
|
29
|
+
apple: '/apple-touch-icon.png?v=1',
|
30
|
+
icon: '/favicon.ico?v=1',
|
31
|
+
shortcut: '/favicon-32x32.ico?v=1',
|
32
|
+
},
|
30
33
|
manifest: noManifest ? undefined : '/manifest.json',
|
31
34
|
metadataBase: new URL(OFFICIAL_URL),
|
32
35
|
openGraph: {
|
@@ -53,7 +56,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
|
|
53
56
|
card: 'summary_large_image',
|
54
57
|
description: t('chat.description', { appName: BRANDING_NAME }),
|
55
58
|
images: [OG_URL],
|
56
|
-
site: '@lobehub',
|
59
|
+
site: isCustomORG ? `@${ORG_NAME}` : '@lobehub',
|
57
60
|
title: t('chat.title', { appName: BRANDING_NAME }),
|
58
61
|
},
|
59
62
|
};
|
package/src/const/branding.ts
CHANGED
@@ -4,6 +4,8 @@ import { dark } from '@clerk/themes';
|
|
4
4
|
import { ElementsConfig, Theme } from '@clerk/types';
|
5
5
|
import { createStyles, useThemeMode } from 'antd-style';
|
6
6
|
|
7
|
+
import { BRANDING_URL } from '@/const/branding';
|
8
|
+
|
7
9
|
const prefixCls = 'cl';
|
8
10
|
|
9
11
|
export const useStyles = createStyles(
|
@@ -101,10 +103,10 @@ export const useAppearance = () => {
|
|
101
103
|
baseTheme: isDarkMode ? dark : undefined,
|
102
104
|
elements: styles,
|
103
105
|
layout: {
|
104
|
-
helpPageUrl: 'https://lobehub.com/docs',
|
105
|
-
privacyPageUrl: 'https://lobehub.com/privacy',
|
106
|
+
helpPageUrl: BRANDING_URL.help ?? 'https://lobehub.com/docs',
|
107
|
+
privacyPageUrl: BRANDING_URL.privacy ?? 'https://lobehub.com/privacy',
|
106
108
|
socialButtonsVariant: 'blockButton',
|
107
|
-
termsPageUrl: 'https://lobehub.com/terms',
|
109
|
+
termsPageUrl: BRANDING_URL.terms ?? 'https://lobehub.com/terms',
|
108
110
|
},
|
109
111
|
variables: {
|
110
112
|
borderRadius: `${theme.borderRadius}px`,
|