@lobehub/chat 0.83.0 → 0.83.1

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 CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.83.1](https://github.com/lobehub/lobe-chat/compare/v0.83.0...v0.83.1)
6
+
7
+ <sup>Released on **2023-10-06**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Refactor settings page entry.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Refactor settings page entry ([e86aff2](https://github.com/lobehub/lobe-chat/commit/e86aff2))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 0.83.0](https://github.com/lobehub/lobe-chat/compare/v0.82.9...v0.83.0)
6
31
 
7
32
  <sup>Released on **2023-10-06**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.83.0",
3
+ "version": "0.83.1",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -1,7 +1,21 @@
1
- import Page from './index';
1
+ 'use client';
2
2
 
3
- const Index = () => {
4
- return <Page />;
5
- };
3
+ import { memo } from 'react';
6
4
 
7
- export default Index;
5
+ import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit';
6
+ import { SettingsTabs } from '@/store/global/initialState';
7
+
8
+ import Layout from '../index';
9
+ import Agent from './Agent';
10
+
11
+ const AgentSetting = memo(() => {
12
+ useSwitchSideBarOnInit(SettingsTabs.Agent);
13
+
14
+ return (
15
+ <Layout>
16
+ <Agent />
17
+ </Layout>
18
+ );
19
+ });
20
+
21
+ export default AgentSetting;
@@ -1,7 +1,20 @@
1
- import Page from './index';
1
+ 'use client';
2
2
 
3
- const Index = () => {
4
- return <Page />;
5
- };
3
+ import { memo } from 'react';
6
4
 
7
- export default Index;
5
+ import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit';
6
+ import { SettingsTabs } from '@/store/global/initialState';
7
+
8
+ import Layout from '../index';
9
+ import Common from './Common';
10
+
11
+ const CommonSetting = memo(() => {
12
+ useSwitchSideBarOnInit(SettingsTabs.Common);
13
+ return (
14
+ <Layout>
15
+ <Common />
16
+ </Layout>
17
+ );
18
+ });
19
+
20
+ export default CommonSetting;
@@ -1,7 +1,20 @@
1
- import Page from './index';
1
+ 'use client';
2
2
 
3
- const Index = () => {
4
- return <Page />;
5
- };
3
+ import { memo } from 'react';
6
4
 
7
- export default Index;
5
+ import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit';
6
+ import { SettingsTabs } from '@/store/global/initialState';
7
+
8
+ import Layout from '../index';
9
+ import LLM from './LLM';
10
+
11
+ const LLMSetting = memo(() => {
12
+ useSwitchSideBarOnInit(SettingsTabs.LLM);
13
+ return (
14
+ <Layout>
15
+ <LLM />
16
+ </Layout>
17
+ );
18
+ });
19
+
20
+ export default LLMSetting;
@@ -1,21 +0,0 @@
1
- 'use client';
2
-
3
- import { memo } from 'react';
4
-
5
- import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit';
6
- import { SettingsTabs } from '@/store/global/initialState';
7
-
8
- import Layout from '../index';
9
- import Agent from './Agent';
10
-
11
- const AgentSetting = memo(() => {
12
- useSwitchSideBarOnInit(SettingsTabs.Agent);
13
-
14
- return (
15
- <Layout>
16
- <Agent />
17
- </Layout>
18
- );
19
- });
20
-
21
- export default AgentSetting;
@@ -1,20 +0,0 @@
1
- 'use client';
2
-
3
- import { memo } from 'react';
4
-
5
- import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit';
6
- import { SettingsTabs } from '@/store/global/initialState';
7
-
8
- import Layout from '../index';
9
- import Common from './Common';
10
-
11
- const CommonSetting = memo(() => {
12
- useSwitchSideBarOnInit(SettingsTabs.Common);
13
- return (
14
- <Layout>
15
- <Common />
16
- </Layout>
17
- );
18
- });
19
-
20
- export default CommonSetting;
@@ -1,20 +0,0 @@
1
- 'use client';
2
-
3
- import { memo } from 'react';
4
-
5
- import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit';
6
- import { SettingsTabs } from '@/store/global/initialState';
7
-
8
- import Layout from '../index';
9
- import LLM from './LLM';
10
-
11
- const LLMSetting = memo(() => {
12
- useSwitchSideBarOnInit(SettingsTabs.LLM);
13
- return (
14
- <Layout>
15
- <LLM />
16
- </Layout>
17
- );
18
- });
19
-
20
- export default LLMSetting;