@lobehub/chat 0.79.1 → 0.79.2
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/public/manifest.json +7 -11
- package/src/app/StyleRegistry.tsx +1 -0
- package/src/app/layout.page.tsx +2 -6
- package/src/app/metadata.ts +62 -0
- package/public/icons/icon-192x192.png +0 -0
- package/public/icons/icon-512x512.png +0 -0
- package/public/icons/icon-72x72.png +0 -0
- package/public/icons/icon-96x96.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.79.2](https://github.com/lobehub/lobe-chat/compare/v0.79.1...v0.79.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-09-25**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **meta**: Fix and add metadata.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **meta**: Fix and add metadata ([c872522](https://github.com/lobehub/lobe-chat/commit/c872522))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.79.1](https://github.com/lobehub/lobe-chat/compare/v0.79.0...v0.79.1)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-09-25**</sup>
|
package/package.json
CHANGED
package/public/manifest.json
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"background_color": "#
|
|
2
|
+
"background_color": "#000000",
|
|
3
3
|
"display": "fullscreen",
|
|
4
4
|
"icons": [
|
|
5
5
|
{
|
|
6
|
-
"src": "
|
|
7
|
-
"sizes": "
|
|
8
|
-
"type": "image/png"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "icons/icon-96x96.png",
|
|
12
|
-
"sizes": "96x96",
|
|
6
|
+
"src": "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png",
|
|
7
|
+
"sizes": "192x192",
|
|
13
8
|
"type": "image/png"
|
|
14
9
|
},
|
|
15
10
|
{
|
|
16
|
-
"src": "
|
|
17
|
-
"sizes": "
|
|
11
|
+
"src": "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png",
|
|
12
|
+
"sizes": "512x512",
|
|
18
13
|
"type": "image/png"
|
|
19
14
|
}
|
|
20
15
|
],
|
|
@@ -23,5 +18,6 @@
|
|
|
23
18
|
"scope": "/",
|
|
24
19
|
"short_name": "LobeChat",
|
|
25
20
|
"splash_pages": null,
|
|
26
|
-
"start_url": "/"
|
|
21
|
+
"start_url": "/",
|
|
22
|
+
"theme_color": "#000000"
|
|
27
23
|
}
|
package/src/app/layout.page.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Analytics } from '@vercel/analytics/react';
|
|
2
|
-
import { Metadata } from 'next';
|
|
3
2
|
import { cookies } from 'next/headers';
|
|
4
3
|
import { PropsWithChildren } from 'react';
|
|
5
4
|
|
|
@@ -12,11 +11,6 @@ import Layout from '@/layout/GlobalLayout';
|
|
|
12
11
|
|
|
13
12
|
import StyleRegistry from './StyleRegistry';
|
|
14
13
|
|
|
15
|
-
export const metadata: Metadata = {
|
|
16
|
-
manifest: '/manifest.json',
|
|
17
|
-
title: 'LobeChat',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
14
|
const RootLayout = ({ children }: PropsWithChildren) => {
|
|
21
15
|
// get default theme config to use with ssr
|
|
22
16
|
const cookieStore = cookies();
|
|
@@ -43,3 +37,5 @@ const RootLayout = ({ children }: PropsWithChildren) => {
|
|
|
43
37
|
};
|
|
44
38
|
|
|
45
39
|
export default RootLayout;
|
|
40
|
+
|
|
41
|
+
export { default as metadata } from './metadata';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
|
|
4
|
+
|
|
5
|
+
import pkg from '../../package.json';
|
|
6
|
+
|
|
7
|
+
const title = genSiteHeadTitle();
|
|
8
|
+
const description = pkg.description;
|
|
9
|
+
const metadata: Metadata = {
|
|
10
|
+
appleWebApp: {
|
|
11
|
+
statusBarStyle: 'black-translucent',
|
|
12
|
+
title: title,
|
|
13
|
+
},
|
|
14
|
+
description: description,
|
|
15
|
+
icons: {
|
|
16
|
+
apple:
|
|
17
|
+
'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/apple-touch-icon.png',
|
|
18
|
+
icon: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-32x32.png',
|
|
19
|
+
other: {
|
|
20
|
+
rel: 'mask-icon',
|
|
21
|
+
url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/safari-pinned-tab.svg',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
manifest: '/manifest.json',
|
|
25
|
+
openGraph: {
|
|
26
|
+
description: description,
|
|
27
|
+
images: [
|
|
28
|
+
{
|
|
29
|
+
alt: title,
|
|
30
|
+
height: 192,
|
|
31
|
+
url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png',
|
|
32
|
+
width: 192,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
alt: title,
|
|
36
|
+
height: 512,
|
|
37
|
+
url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png',
|
|
38
|
+
width: 512,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
locale: 'en_US',
|
|
42
|
+
siteName: title,
|
|
43
|
+
title: title,
|
|
44
|
+
type: 'website',
|
|
45
|
+
url: pkg.homepage,
|
|
46
|
+
},
|
|
47
|
+
themeColor: [
|
|
48
|
+
{ color: '#fff', media: '(prefers-color-scheme: light)' },
|
|
49
|
+
{ color: '#000', media: '(prefers-color-scheme: dark)' },
|
|
50
|
+
],
|
|
51
|
+
title: genSiteHeadTitle(),
|
|
52
|
+
viewport: {
|
|
53
|
+
initialScale: 1,
|
|
54
|
+
maximumScale: 1,
|
|
55
|
+
minimumScale: 1,
|
|
56
|
+
userScalable: false,
|
|
57
|
+
viewportFit: 'cover',
|
|
58
|
+
width: 'device-width',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export default metadata;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|