@lobehub/chat 1.22.24 → 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 +50 -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/database/server/migrations/0009_remove_unused_user_tables.sql +2 -0
- package/src/database/server/migrations/meta/0009_snapshot.json +3305 -0
- package/src/database/server/migrations/meta/_journal.json +7 -0
- package/src/database/server/schemas/lobechat/user.ts +1 -54
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +5 -3
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
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
|
+
|
30
|
+
### [Version 1.22.25](https://github.com/lobehub/lobe-chat/compare/v1.22.24...v1.22.25)
|
31
|
+
|
32
|
+
<sup>Released on **2024-10-23**</sup>
|
33
|
+
|
34
|
+
#### ♻ Code Refactoring
|
35
|
+
|
36
|
+
- **misc**: Remove unused user tables.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### Code refactoring
|
44
|
+
|
45
|
+
- **misc**: Remove unused user tables, closes [#4464](https://github.com/lobehub/lobe-chat/issues/4464) ([c85a270](https://github.com/lobehub/lobe-chat/commit/c85a270))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.22.24](https://github.com/lobehub/lobe-chat/compare/v1.22.23...v1.22.24)
|
6
56
|
|
7
57
|
<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