From 05a78d4144bdb7047a808e5a10c74b0fdd69d5d5 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Tue, 4 Jul 2023 18:29:54 +0800 Subject: [PATCH 1/2] feat: modify space list style --- datacenter/app/datastores/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index d6f2e5469..b42accfc2 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -114,8 +114,8 @@ const Index = () => { sx={{ width: '100%', height: '100%', - backgroundColor: mode === 'light' ? 'rgb(238, 240, 245)' : 'rgb(33, 33, 33)' }} + className='bg-[#EEF0F5] dark:bg-[#212121]' > { fontSize: '18px', fontWeight: 'bold', color: 'black', - backgroundColor: mode === 'light' ? 'rgb(224, 228, 237)' : 'rgb(72, 72, 72)', flexShrink: 0, flexGrow: 0, cursor: 'pointer', @@ -158,6 +157,7 @@ const Index = () => { } }} onClick={() => setIsAddKnowledgeSpaceModalShow(true)} + className='bg-[#E0E4ED] dark:bg-[#484848]' >Space {knowledgeSpaceList.map((item: any, index: number) => ( { padding: '30px 20px 40px', marginRight: '30px', marginBottom: '30px', - backgroundColor: mode === 'light' ? 'rgb(255, 255, 255)' : 'rgb(72, 72, 72)', borderTop: '3px solid rgb(82, 196, 26)', flexShrink: 0, flexGrow: 0, @@ -178,6 +177,7 @@ const Index = () => { onClick={() => { router.push(`/datastores/documents?name=${item.name}`); }} + className='bg-[#FFFFFF] dark:bg-[#484848]' > Date: Wed, 5 Jul 2023 11:03:37 +0800 Subject: [PATCH 2/2] fix: fix to static compile --- datacenter/hooks/useAgentChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenter/hooks/useAgentChat.ts b/datacenter/hooks/useAgentChat.ts index d9c734e20..f14f72b05 100644 --- a/datacenter/hooks/useAgentChat.ts +++ b/datacenter/hooks/useAgentChat.ts @@ -49,7 +49,7 @@ import { useDialogueContext } from '@/app/context/dialogue'; const ctrl = new AbortController(); let buffer = ''; - await fetchEventSource(`${process.env.API_BASE_URL + "/api" + queryAgentURL}`, { + await fetchEventSource(`${process.env.API_BASE_URL ? process.env.API_BASE_URL : ''}${"/api" + queryAgentURL}`, { method: 'POST', headers: { 'Content-Type': 'application/json',