fix: popver ui (#4980)

* doc

* fix: ui
This commit is contained in:
Archer
2025-06-08 22:55:36 +08:00
committed by GitHub
parent 9b73d3f702
commit 6873af01d4
7 changed files with 121 additions and 104 deletions

View File

@@ -132,15 +132,15 @@ services:
# fastgpt # fastgpt
sandbox: sandbox:
container_name: sandbox container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-sandbox:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.11 # 阿里云
networks: networks:
- fastgpt - fastgpt
restart: always restart: always
fastgpt-mcp-server: fastgpt-mcp-server:
container_name: fastgpt-mcp-server container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-mcp_server:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.11 # 阿里云
ports: ports:
- 3005:3000 - 3005:3000
networks: networks:
@@ -150,8 +150,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000 - FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt: fastgpt:
container_name: fastgpt container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.11 # 阿里云
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:

View File

@@ -109,15 +109,15 @@ services:
# fastgpt # fastgpt
sandbox: sandbox:
container_name: sandbox container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-sandbox:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.11 # 阿里云
networks: networks:
- fastgpt - fastgpt
restart: always restart: always
fastgpt-mcp-server: fastgpt-mcp-server:
container_name: fastgpt-mcp-server container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-mcp_server:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.11 # 阿里云
ports: ports:
- 3005:3000 - 3005:3000
networks: networks:
@@ -127,8 +127,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000 - FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt: fastgpt:
container_name: fastgpt container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.11 # 阿里云
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:

View File

@@ -96,15 +96,15 @@ services:
# fastgpt # fastgpt
sandbox: sandbox:
container_name: sandbox container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-sandbox:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.11 # 阿里云
networks: networks:
- fastgpt - fastgpt
restart: always restart: always
fastgpt-mcp-server: fastgpt-mcp-server:
container_name: fastgpt-mcp-server container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-mcp_server:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.11 # 阿里云
ports: ports:
- 3005:3000 - 3005:3000
networks: networks:
@@ -114,8 +114,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000 - FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt: fastgpt:
container_name: fastgpt container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.11 # 阿里云
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:

View File

@@ -72,15 +72,15 @@ services:
sandbox: sandbox:
container_name: sandbox container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-sandbox:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.11 # 阿里云
networks: networks:
- fastgpt - fastgpt
restart: always restart: always
fastgpt-mcp-server: fastgpt-mcp-server:
container_name: fastgpt-mcp-server container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt-mcp_server:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.11 # 阿里云
ports: ports:
- 3005:3000 - 3005:3000
networks: networks:
@@ -90,8 +90,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000 - FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt: fastgpt:
container_name: fastgpt container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.10-fix2 # git image: ghcr.io/labring/fastgpt:v4.9.11 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.10-fix2 # 阿里云 # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.11 # 阿里云
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:

View File

@@ -1,5 +1,5 @@
--- ---
title: 'V4.9.11(进行中)' title: 'V4.9.11(包含升级脚本)'
description: 'FastGPT V4.9.11 更新说明' description: 'FastGPT V4.9.11 更新说明'
icon: 'upgrade' icon: 'upgrade'
draft: false draft: false
@@ -7,7 +7,17 @@ toc: true
weight: 789 weight: 789
--- ---
## 执行升级脚本 ## 更新指南
### 1. 更新镜像:
- 更新 FastGPT 镜像 tag: v4.9.11
- 更新 FastGPT 商业版镜像 tag: v4.9.11
- mcp_server 无需更新
- 更新 Sandbox 镜像 tag: v4.9.11
- AIProxy 无需更新
### 2. 执行升级脚本
该脚本仅需商业版用户执行。 该脚本仅需商业版用户执行。
@@ -30,10 +40,12 @@ curl --location --request POST 'https://{{host}}/api/admin/initv4911' \
3. 工作流中,子流程版本控制,可选择“保持最新版本”,无需手动更新。 3. 工作流中,子流程版本控制,可选择“保持最新版本”,无需手动更新。
4. 增加更多审计操作日志。 4. 增加更多审计操作日志。
5. 知识库增加文档解析异步队列,导入文档时,无需等待文档解析完毕才进行导入。 5. 知识库增加文档解析异步队列,导入文档时,无需等待文档解析完毕才进行导入。
6. 第三方知识库开发文档, [点击查看](/docs/guide/knowledge_base/third_dataset/)
## ⚙️ 优化 ## ⚙️ 优化
1. 原文缓存改用 gridfs 存储,提高上限。 1. 原文缓存改用 gridfs 存储,提高上限。
2. 增加知识库模板导入选项。
## 🐛 修复 ## 🐛 修复
@@ -43,3 +55,4 @@ curl --location --request POST 'https://{{host}}/api/admin/initv4911' \
4. 自定义 PDF 解析,无法保存 base64 图片。 4. 自定义 PDF 解析,无法保存 base64 图片。
5. 非流请求,未进行 CITE 标记替换。 5. 非流请求,未进行 CITE 标记替换。
6. Python 沙盒存在隐藏风险。 6. Python 沙盒存在隐藏风险。
7. curl 导入插件缺失确认按键

View File

@@ -32,82 +32,90 @@ const SaveButton = ({
} = useDisclosure(); } = useDisclosure();
return ( return (
<MyPopover <Box
placement={'bottom-end'} flexShrink={0}
hasArrow={false} sx={{
offset={[2, 4]} section: {
w={'116px'} width: 'auto'
onOpenFunc={() => setIsSave(true)} }
onCloseFunc={() => setIsSave(false)} }}
trigger={'hover'}
Trigger={
<Button
size={'sm'}
flexShrink={0}
rightIcon={
<MyIcon
name={isSave ? 'core/chat/chevronUp' : 'core/chat/chevronDown'}
w={['14px', '16px']}
/>
}
>
<Box>{t('common:Save')}</Box>
</Button>
}
> >
{({ onClose }) => ( <MyPopover
<Box p={1.5}> placement={'bottom-end'}
<MyBox hasArrow={false}
display={'flex'} offset={[2, 4]}
alignItems={'center'} w={'116px'}
gap={2} onOpenFunc={() => setIsSave(true)}
p={1.5} onCloseFunc={() => setIsSave(false)}
rounded={'4px'} trigger={'hover'}
_hover={{ color: 'primary.600', bg: 'rgba(17, 24, 36, 0.05)' }} Trigger={
cursor={'pointer'} <Button
isLoading={isLoading} size={'sm'}
onClick={async () => { rightIcon={
await onClickSave({}); <MyIcon
toast({ name={isSave ? 'core/chat/chevronUp' : 'core/chat/chevronDown'}
status: 'success', w={['14px', '16px']}
title: t('app:saved_success'),
position: 'top-right',
isClosable: true
});
onClose();
setIsSave(false);
}}
>
<MyIcon name={'core/workflow/upload'} w={'1rem'} />
<Box fontSize={'sm'}>{t('common:core.workflow.Save to cloud')}</Box>
</MyBox>
<HStack
p={1.5}
rounded={'4px'}
_hover={{ color: 'primary.600', bg: 'rgba(17, 24, 36, 0.05)' }}
cursor={'pointer'}
onClick={() => {
const canOpen = !checkData || checkData();
if (canOpen) {
onSaveAndPublishModalOpen();
}
onClose();
setIsSave(false);
}}
>
<MyIcon name={'core/workflow/publish'} w={'1rem'} />
<Box fontSize={'sm'}>{t('common:core.workflow.Save and publish')}</Box>
{isSaveAndPublishModalOpen && (
<SaveAndPublishModal
isLoading={isLoading}
onClose={onSaveAndPublishModalClose}
onClickSave={onClickSave}
/> />
)} }
</HStack> >
</Box> <Box>{t('common:Save')}</Box>
</Button>
}
>
{({ onClose }) => (
<Box p={1.5}>
<MyBox
display={'flex'}
alignItems={'center'}
gap={2}
p={1.5}
rounded={'4px'}
_hover={{ color: 'primary.600', bg: 'rgba(17, 24, 36, 0.05)' }}
cursor={'pointer'}
isLoading={isLoading}
onClick={async () => {
await onClickSave({});
toast({
status: 'success',
title: t('app:saved_success'),
position: 'top-right',
isClosable: true
});
onClose();
setIsSave(false);
}}
>
<MyIcon name={'core/workflow/upload'} w={'1rem'} />
<Box fontSize={'sm'}>{t('common:core.workflow.Save to cloud')}</Box>
</MyBox>
<HStack
p={1.5}
rounded={'4px'}
_hover={{ color: 'primary.600', bg: 'rgba(17, 24, 36, 0.05)' }}
cursor={'pointer'}
onClick={() => {
const canOpen = !checkData || checkData();
if (canOpen) {
onSaveAndPublishModalOpen();
}
onClose();
setIsSave(false);
}}
>
<MyIcon name={'core/workflow/publish'} w={'1rem'} />
<Box fontSize={'sm'}>{t('common:core.workflow.Save and publish')}</Box>
</HStack>
</Box>
)}
</MyPopover>
{isSaveAndPublishModalOpen && (
<SaveAndPublishModal
isLoading={isLoading}
onClose={onSaveAndPublishModalClose}
onClickSave={onClickSave}
/>
)} )}
</MyPopover> </Box>
); );
}; };

View File

@@ -6,7 +6,3 @@ body select {
.chakra-tooltip { .chakra-tooltip {
font-size: var(--chakra-fontSizes-xs) !important; font-size: var(--chakra-fontSizes-xs) !important;
} }
.chakra-popover__popper > section {
width: auto !important;
}