Skip to content

Commit b82a41e

Browse files
authoredJan 2, 2025··
♻️ refactor: refactor provider info and improve settings side bar loading (#5268)
* refactor provider info * fix loading * fix ollama models * fix loading
1 parent 7084940 commit b82a41e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+356
-49
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"@lobehub/chat-plugins-gateway": "^1.9.0",
130130
"@lobehub/icons": "^1.56.0",
131131
"@lobehub/tts": "^1.25.1",
132-
"@lobehub/ui": "^1.155.7",
132+
"@lobehub/ui": "^1.155.8",
133133
"@neondatabase/serverless": "^0.10.1",
134134
"@next/third-parties": "^15.0.0",
135135
"@react-spring/web": "^9.7.5",

‎src/app/(main)/settings/_layout/Desktop/SideBar.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
'use client';
22

33
import { createStyles } from 'antd-style';
4+
import { Suspense } from 'react';
45
import { useTranslation } from 'react-i18next';
56
import { Flexbox, FlexboxProps } from 'react-layout-kit';
67

78
import BrandWatermark from '@/components/BrandWatermark';
9+
import CircleLoading from '@/components/Loading/CircleLoading';
810
import PanelTitle from '@/components/PanelTitle';
911

1012
const useStyles = createStyles(({ token, css }) => ({
@@ -33,7 +35,9 @@ const SidebarLayout = ({ children, className, title, desc, ...rest }: SidebarLay
3335
{...rest}
3436
>
3537
<PanelTitle desc={desc || t('header.desc')} title={title || t('header.title')} />
36-
<Flexbox flex={1}>{children}</Flexbox>
38+
<Flexbox flex={1}>
39+
<Suspense fallback={<CircleLoading />}>{children}</Suspense>
40+
</Flexbox>
3741
<BrandWatermark paddingInline={12} />
3842
</Flexbox>
3943
);

0 commit comments

Comments
 (0)
Please sign in to comment.