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,6 +32,14 @@ const SaveButton = ({
} = useDisclosure(); } = useDisclosure();
return ( return (
<Box
flexShrink={0}
sx={{
section: {
width: 'auto'
}
}}
>
<MyPopover <MyPopover
placement={'bottom-end'} placement={'bottom-end'}
hasArrow={false} hasArrow={false}
@@ -43,7 +51,6 @@ const SaveButton = ({
Trigger={ Trigger={
<Button <Button
size={'sm'} size={'sm'}
flexShrink={0}
rightIcon={ rightIcon={
<MyIcon <MyIcon
name={isSave ? 'core/chat/chevronUp' : 'core/chat/chevronDown'} name={isSave ? 'core/chat/chevronUp' : 'core/chat/chevronDown'}
@@ -97,6 +104,10 @@ const SaveButton = ({
> >
<MyIcon name={'core/workflow/publish'} w={'1rem'} /> <MyIcon name={'core/workflow/publish'} w={'1rem'} />
<Box fontSize={'sm'}>{t('common:core.workflow.Save and publish')}</Box> <Box fontSize={'sm'}>{t('common:core.workflow.Save and publish')}</Box>
</HStack>
</Box>
)}
</MyPopover>
{isSaveAndPublishModalOpen && ( {isSaveAndPublishModalOpen && (
<SaveAndPublishModal <SaveAndPublishModal
isLoading={isLoading} isLoading={isLoading}
@@ -104,10 +115,7 @@ const SaveButton = ({
onClickSave={onClickSave} onClickSave={onClickSave}
/> />
)} )}
</HStack>
</Box> </Box>
)}
</MyPopover>
); );
}; };

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;
}