From 37409d7b2913fe0aa3eed2ae5b6b7f2b0499b1f1 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Fri, 30 Jun 2023 11:27:28 +0800 Subject: [PATCH 01/10] feat: change the url --- datacenter/app/datastores/constants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenter/app/datastores/constants.tsx b/datacenter/app/datastores/constants.tsx index c5d7f8260..ffacee373 100644 --- a/datacenter/app/datastores/constants.tsx +++ b/datacenter/app/datastores/constants.tsx @@ -1 +1 @@ -export const fetchBaseURL = 'http://30.183.154.125:5000'; +export const fetchBaseURL = 'http://30.183.154.76:5000'; From 492e5559b4596c1f1dee3db87867795110ae6e72 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Fri, 30 Jun 2023 14:04:54 +0800 Subject: [PATCH 02/10] feat: change the style --- .../datastores/documents/chunklist/page.tsx | 4 +- datacenter/app/datastores/documents/page.tsx | 23 ++++--- datacenter/app/datastores/page.tsx | 62 ++++++++++--------- datacenter/app/globals.css | 22 ------- 4 files changed, 49 insertions(+), 62 deletions(-) diff --git a/datacenter/app/datastores/documents/chunklist/page.tsx b/datacenter/app/datastores/documents/chunklist/page.tsx index 0a3db6383..c0a0b3538 100644 --- a/datacenter/app/datastores/documents/chunklist/page.tsx +++ b/datacenter/app/datastores/documents/chunklist/page.tsx @@ -44,8 +44,8 @@ const ChunkList = () => { {chunkList.length ? ( <> ({ color: theme.vars.palette.text.secondary })) const stepsOfAddingDocument = [ - 'Choose a Datasource type', - 'Setup the Datasource' + '1.Choose a Datasource type', + '2.Setup the Datasource' ] const documentTypeList = [ { @@ -121,6 +121,7 @@ const Documents = () => { @@ -128,8 +129,8 @@ const Documents = () => { {documents.length ? ( <>
{
{row.doc_name} {row.doc_type} @@ -168,8 +169,8 @@ const Documents = () => { {moment(row.last_sync).format('YYYY-MM-DD HH:MM:SS')} { - + {documents.length ? ( <> { Synch: - + + + )} diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index c1db62ecf..8884a93a5 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -144,7 +144,7 @@ const Index = () => { }, '& tbody tr a': { color: 'rgb(13, 96, 217)' - }, + } }} > @@ -387,130 +387,142 @@ const Index = () => { Synch: - + + + )} From c8044ddc96186e1ca271610a28b9e0460ddc8d49 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Fri, 30 Jun 2023 16:19:03 +0800 Subject: [PATCH 07/10] fix: sync when sync switch is checked --- datacenter/app/datastores/documents/page.tsx | 7 +- datacenter/app/datastores/page.tsx | 79 +++++++++++--------- 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/datacenter/app/datastores/documents/page.tsx b/datacenter/app/datastores/documents/page.tsx index 584e80daa..41b1da7e3 100644 --- a/datacenter/app/datastores/documents/page.tsx +++ b/datacenter/app/datastores/documents/page.tsx @@ -467,7 +467,9 @@ const Documents = () => { variant="outlined" sx={{ marginRight: '20px' }} onClick={() => setActiveStep(0)} - >{'< Back'} + > + {'< Back'} + + > + {'< Back'} + } From 235ccfd8692e13cd7ff6c492b2b9304e55cdb40d Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Fri, 30 Jun 2023 17:06:46 +0800 Subject: [PATCH 10/10] feat: add icon to synch button --- datacenter/app/datastores/documents/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datacenter/app/datastores/documents/page.tsx b/datacenter/app/datastores/documents/page.tsx index a56c2dbbf..5372f8d8a 100644 --- a/datacenter/app/datastores/documents/page.tsx +++ b/datacenter/app/datastores/documents/page.tsx @@ -22,6 +22,7 @@ import { import moment from 'moment' import { InboxOutlined } from '@ant-design/icons' import CheckCircleOutlinedIcon from '@mui/icons-material/CheckCircleOutlined'; +import CachedIcon from '@mui/icons-material/Cached'; import type { UploadProps } from 'antd' import { Upload, Pagination, Popover, message } from 'antd' import { fetchBaseURL } from '@/app/datastores/constants' @@ -264,7 +265,7 @@ const Documents = () => { } }} > - Synch + Synch