From f7f4a8de4d2ee95f868f0873d06ae819fb0562f4 Mon Sep 17 00:00:00 2001
From: Archer <545436317@qq.com>
Date: Thu, 13 Jun 2024 23:09:36 +0800
Subject: [PATCH] feat: chat slider support folder (#1759)
* feat: docker-compose version
* feat: chat slider support folder
* lazy behavior
* pref: code sandbox size
---
.../zh-cn/docs/development/upgrading/484.md | 2 +-
files/docker/docker-compose-milvus.yml | 8 +-
files/docker/docker-compose-pgvector.yml | 8 +-
files/docker/docker-compose-zilliz.yml | 8 +-
.../web/components/common/Icon/constants.ts | 1 +
.../common/Icon/icons/common/select.svg | 4 +
.../web/components/common/MyMenu/index.tsx | 9 +-
.../web/components/common/MyPopover/index.tsx | 48 +++++++
projects/app/i18n/en/common.json | 2 +
projects/app/i18n/zh/common.json | 2 +
projects/app/public/docs/versionIntro.md | 21 +--
projects/app/src/components/Avatar/index.tsx | 1 -
.../common/folder/SelectOneResource.tsx | 88 ++++++++-----
projects/app/src/pages/api/core/app/list.ts | 26 +++-
.../chat/components/ChatHistorySlider.tsx | 93 +++++++++-----
.../src/pages/chat/components/SliderApps.tsx | 120 ++++++++++++++----
projects/app/src/pages/chat/index.tsx | 13 +-
projects/app/src/pages/chat/team.tsx | 2 +-
.../app/src/web/core/app/store/useAppStore.ts | 25 ----
projects/sandbox/src/main.ts | 7 +-
20 files changed, 336 insertions(+), 152 deletions(-)
create mode 100644 packages/web/components/common/Icon/icons/common/select.svg
create mode 100644 packages/web/components/common/MyPopover/index.tsx
delete mode 100644 projects/app/src/web/core/app/store/useAppStore.ts
diff --git a/docSite/content/zh-cn/docs/development/upgrading/484.md b/docSite/content/zh-cn/docs/development/upgrading/484.md
index 7db9f8f510f..2390b0f04be 100644
--- a/docSite/content/zh-cn/docs/development/upgrading/484.md
+++ b/docSite/content/zh-cn/docs/development/upgrading/484.md
@@ -1,5 +1,5 @@
---
-title: 'V4.8.4(进行中)'
+title: 'V4.8.4'
description: 'FastGPT V4.8.4 更新说明'
icon: 'upgrade'
draft: false
diff --git a/files/docker/docker-compose-milvus.yml b/files/docker/docker-compose-milvus.yml
index a5149cbc9a2..b82848a44a1 100644
--- a/files/docker/docker-compose-milvus.yml
+++ b/files/docker/docker-compose-milvus.yml
@@ -114,15 +114,15 @@ services:
# fastgpt
sandbox:
container_name: sandbox
- image: ghcr.io/labring/fastgpt-sandbox:v4.8.3 # git
- # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.3 # 阿里云
+ image: ghcr.io/labring/fastgpt-sandbox:v4.8.4 # git
+ # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.4 # 阿里云
networks:
- fastgpt
restart: always
fastgpt:
container_name: fastgpt
- image: ghcr.io/labring/fastgpt:v4.8.3 # git
- # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.3 # 阿里云
+ image: ghcr.io/labring/fastgpt:v4.8.4 # git
+ # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.4 # 阿里云
ports:
- 3000:3000
networks:
diff --git a/files/docker/docker-compose-pgvector.yml b/files/docker/docker-compose-pgvector.yml
index 70c5f51c6ed..1c186bdfc22 100644
--- a/files/docker/docker-compose-pgvector.yml
+++ b/files/docker/docker-compose-pgvector.yml
@@ -72,15 +72,15 @@ services:
# fastgpt
sandbox:
container_name: sandbox
- image: ghcr.io/labring/fastgpt-sandbox:v4.8.3 # git
- # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.3 # 阿里云
+ image: ghcr.io/labring/fastgpt-sandbox:v4.8.4 # git
+ # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.4 # 阿里云
networks:
- fastgpt
restart: always
fastgpt:
container_name: fastgpt
- image: ghcr.io/labring/fastgpt:v4.8.3 # git
- # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.3 # 阿里云
+ image: ghcr.io/labring/fastgpt:v4.8.4 # git
+ # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.4 # 阿里云
ports:
- 3000:3000
networks:
diff --git a/files/docker/docker-compose-zilliz.yml b/files/docker/docker-compose-zilliz.yml
index 2607ce1ad34..eff1954e37c 100644
--- a/files/docker/docker-compose-zilliz.yml
+++ b/files/docker/docker-compose-zilliz.yml
@@ -53,15 +53,15 @@ services:
wait $$!
sandbox:
container_name: sandbox
- image: ghcr.io/labring/fastgpt-sandbox:v4.8.3 # git
- # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.3 # 阿里云
+ image: ghcr.io/labring/fastgpt-sandbox:v4.8.4 # git
+ # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.4 # 阿里云
networks:
- fastgpt
restart: always
fastgpt:
container_name: fastgpt
- image: ghcr.io/labring/fastgpt:v4.8.3 # git
- # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.3 # 阿里云
+ image: ghcr.io/labring/fastgpt:v4.8.4 # git
+ # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.4 # 阿里云
ports:
- 3000:3000
networks:
diff --git a/packages/web/components/common/Icon/constants.ts b/packages/web/components/common/Icon/constants.ts
index 10414578e46..21146d65f2d 100644
--- a/packages/web/components/common/Icon/constants.ts
+++ b/packages/web/components/common/Icon/constants.ts
@@ -51,6 +51,7 @@ export const iconPaths = {
'common/routePushLight': () => import('./icons/common/routePushLight.svg'),
'common/saveFill': () => import('./icons/common/saveFill.svg'),
'common/searchLight': () => import('./icons/common/searchLight.svg'),
+ 'common/select': () => import('./icons/common/select.svg'),
'common/selectLight': () => import('./icons/common/selectLight.svg'),
'common/settingLight': () => import('./icons/common/settingLight.svg'),
'common/text/t': () => import('./icons/common/text/t.svg'),
diff --git a/packages/web/components/common/Icon/icons/common/select.svg b/packages/web/components/common/Icon/icons/common/select.svg
new file mode 100644
index 00000000000..8081fb521cd
--- /dev/null
+++ b/packages/web/components/common/Icon/icons/common/select.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/packages/web/components/common/MyMenu/index.tsx b/packages/web/components/common/MyMenu/index.tsx
index 3857dbe397e..50b3f70da07 100644
--- a/packages/web/components/common/MyMenu/index.tsx
+++ b/packages/web/components/common/MyMenu/index.tsx
@@ -81,7 +81,14 @@ const MyMenu = ({
}, [offset]);
return (
-