@lobehub/chat 1.70.7 → 1.70.8
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/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/layout/GlobalProvider/AppTheme.tsx +10 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.70.8](https://github.com/lobehub/lobe-chat/compare/v1.70.7...v1.70.8)
|
6
|
+
|
7
|
+
<sup>Released on **2025-03-12**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix theme flicking.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix theme flicking, closes [#6926](https://github.com/lobehub/lobe-chat/issues/6926) ([103c3e3](https://github.com/lobehub/lobe-chat/commit/103c3e3))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.70.7](https://github.com/lobehub/lobe-chat/compare/v1.70.6...v1.70.7)
|
6
31
|
|
7
32
|
<sup>Released on **2025-03-12**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.70.
|
3
|
+
"version": "1.70.8",
|
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",
|
@@ -14,7 +14,11 @@ import Link from 'next/link';
|
|
14
14
|
import { ReactNode, memo, useEffect } from 'react';
|
15
15
|
|
16
16
|
import AntdStaticMethods from '@/components/AntdStaticMethods';
|
17
|
-
import {
|
17
|
+
import {
|
18
|
+
LOBE_THEME_APPEARANCE,
|
19
|
+
LOBE_THEME_NEUTRAL_COLOR,
|
20
|
+
LOBE_THEME_PRIMARY_COLOR,
|
21
|
+
} from '@/const/theme';
|
18
22
|
import { useGlobalStore } from '@/store/global';
|
19
23
|
import { systemStatusSelectors } from '@/store/global/selectors';
|
20
24
|
import { useUserStore } from '@/store/user';
|
@@ -125,6 +129,11 @@ const AppTheme = memo<AppThemeProps>(
|
|
125
129
|
primaryColor: primaryColor ?? defaultPrimaryColor,
|
126
130
|
}}
|
127
131
|
defaultAppearance={defaultAppearance}
|
132
|
+
onAppearanceChange={(appearance) => {
|
133
|
+
if (themeMode !== 'auto') return;
|
134
|
+
|
135
|
+
setCookie(LOBE_THEME_APPEARANCE, appearance);
|
136
|
+
}}
|
128
137
|
theme={{
|
129
138
|
cssVar: true,
|
130
139
|
token: {
|