mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
4.6.9-production (#952)
* move components to web package (#37) * move components * fix * fix: cq connection * fix pagination (#41) * doc * openapi config * fix team share app lose (#42) * fix: ts * doc * doc --------- Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com> Co-authored-by: yst <77910600+yu-and-liu@users.noreply.github.com>
This commit is contained in:
@@ -108,11 +108,6 @@ curl -O https://raw.githubusercontent.com/labring/FastGPT/main/projects/app/data
|
|||||||
```bash
|
```bash
|
||||||
# 进入项目目录
|
# 进入项目目录
|
||||||
cd 项目目录
|
cd 项目目录
|
||||||
# 创建 mongo 密钥
|
|
||||||
openssl rand -base64 756 > ./mongodb.key
|
|
||||||
# 600不行可以用chmod 999
|
|
||||||
chmod 600 ./mongodb.key
|
|
||||||
chown 999:root ./mongodb.key
|
|
||||||
# 启动容器
|
# 启动容器
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
@@ -128,7 +123,7 @@ docker ps
|
|||||||
# 进入容器
|
# 进入容器
|
||||||
docker exec -it mongo bash
|
docker exec -it mongo bash
|
||||||
|
|
||||||
# 连接数据库
|
# 连接数据库(这里要填Mongo的用户名和密码)
|
||||||
mongo -u myname -p mypassword --authenticationDatabase admin
|
mongo -u myname -p mypassword --authenticationDatabase admin
|
||||||
|
|
||||||
# 初始化副本集。如果需要外网访问,mongo:27017 可以改成 ip:27017。但是需要同时修改 FastGPT 连接的参数(MONGODB_URI=mongodb://myname:mypassword@mongo:27017/fastgpt?authSource=admin => MONGODB_URI=mongodb://myname:mypassword@ip:27017/fastgpt?authSource=admin)
|
# 初始化副本集。如果需要外网访问,mongo:27017 可以改成 ip:27017。但是需要同时修改 FastGPT 连接的参数(MONGODB_URI=mongodb://myname:mypassword@mongo:27017/fastgpt?authSource=admin => MONGODB_URI=mongodb://myname:mypassword@ip:27017/fastgpt?authSource=admin)
|
||||||
@@ -142,8 +137,58 @@ rs.initiate({
|
|||||||
rs.status()
|
rs.status()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**关于 host: "mongo:27017" 说明**
|
||||||
|
|
||||||
|
1. mongo:27017 代表指向同一个 docker 网络的 mongo 容器的 27017 服务。因此,如果使用该参数,外网是无法访问到数据库的。
|
||||||
|
2. ip:27017 (ip替换成公网IP):代表通过你的公网IP进行访问。如果用该方法,同时需要修改 docker-compose 中 mongo 的连接参数,因为默认是用 `mongo:27017` 进行连接。
|
||||||
|
|
||||||
## 五、访问 FastGPT
|
## 五、访问 FastGPT
|
||||||
|
|
||||||
目前可以通过 `ip:3000` 直接访问(注意防火墙)。登录用户名为 `root`,密码为`docker-compose.yml`环境变量里设置的 `DEFAULT_ROOT_PSW`。
|
目前可以通过 `ip:3000` 直接访问(注意防火墙)。登录用户名为 `root`,密码为`docker-compose.yml`环境变量里设置的 `DEFAULT_ROOT_PSW`。
|
||||||
|
|
||||||
如果需要域名访问,请自行安装并配置 Nginx。
|
如果需要域名访问,请自行安装并配置 Nginx。
|
||||||
|
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### Mongo 启动失败
|
||||||
|
|
||||||
|
docker-compose 示例优化 Mongo 副本集参数,不需要手动创建再挂载。如果无法启动,可以尝试更换下面的脚本:
|
||||||
|
|
||||||
|
1. 终端中执行:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
openssl rand -base64 756 > ./mongodb.key
|
||||||
|
chmod 600 ./mongodb.key
|
||||||
|
chown 999:root ./mongodb.key
|
||||||
|
```
|
||||||
|
|
||||||
|
2. 修改 docker-compose.yml:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
mongo:
|
||||||
|
# image: mongo:5.0.18
|
||||||
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.18 # 阿里云
|
||||||
|
container_name: mongo
|
||||||
|
ports:
|
||||||
|
- 27017:27017
|
||||||
|
networks:
|
||||||
|
- fastgpt
|
||||||
|
command: mongod --keyFile /data/mongodb.key --replSet rs0
|
||||||
|
environment:
|
||||||
|
# 默认的用户名和密码,只有首次允许有效
|
||||||
|
- MONGO_INITDB_ROOT_USERNAME=myname
|
||||||
|
- MONGO_INITDB_ROOT_PASSWORD=mypassword
|
||||||
|
volumes:
|
||||||
|
- ./mongo/data:/data/db
|
||||||
|
- ./mongodb.key:/data/mongodb.key
|
||||||
|
```
|
||||||
|
|
||||||
|
3. 重启服务
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose down
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
4. 进入容器执行副本集合初始化(看上方)
|
@@ -46,9 +46,14 @@ OneAPI 的 API Key 配置错误,需要修改`OPENAI_API_KEY`环境变量,并
|
|||||||
### 页面崩溃
|
### 页面崩溃
|
||||||
|
|
||||||
1. 关闭翻译
|
1. 关闭翻译
|
||||||
2. 检查配置文件是否正常加载,如果没有正常加载会导致缺失系统信息,在某些操作下会导致空指针。(95%)
|
2. 检查配置文件是否正常加载,如果没有正常加载会导致缺失系统信息,在某些操作下会导致空指针。(95%情况,可以F12打开控制台,看具体的空指针情况)
|
||||||
3. 某些api不兼容问题(较少)
|
3. 某些api不兼容问题(较少)
|
||||||
|
|
||||||
|
### 开启内容补全后,响应速度变慢
|
||||||
|
|
||||||
|
1. 问题补全需要经过一轮AI生成。
|
||||||
|
2. 会进行3~5轮的查询,如果数据库性能不足,会有明显影响。
|
||||||
|
|
||||||
## 私有部署问题
|
## 私有部署问题
|
||||||
|
|
||||||
### 知识库索引没有进度
|
### 知识库索引没有进度
|
||||||
@@ -80,7 +85,7 @@ OneAPI 的 API Key 配置错误,需要修改`OPENAI_API_KEY`环境变量,并
|
|||||||
|
|
||||||
### 如何自定义配置文件?
|
### 如何自定义配置文件?
|
||||||
|
|
||||||
修改`config.json`文件,并执行`docker-compose up -d`重起容器。具体配置,参考[配置详解](/docs/development/configuration)。
|
修改`config.json`文件,并执行`docker-compose down`再执行`docker-compose up -d`重起容器。具体配置,参考[配置详解](/docs/development/configuration)。
|
||||||
|
|
||||||
### 如何检查自定义配置文件是否挂载
|
### 如何检查自定义配置文件是否挂载
|
||||||
|
|
||||||
@@ -93,6 +98,12 @@ OneAPI 的 API Key 配置错误,需要修改`OPENAI_API_KEY`环境变量,并
|
|||||||
2. 配置文件不正确,日志中会提示`invalid json`,配置文件需要是标准的 JSON 文件。
|
2. 配置文件不正确,日志中会提示`invalid json`,配置文件需要是标准的 JSON 文件。
|
||||||
3. 修改后,没有`docker-compose down`再`docker-compose up -d`,restart是不会重新挂载文件的。
|
3. 修改后,没有`docker-compose down`再`docker-compose up -d`,restart是不会重新挂载文件的。
|
||||||
|
|
||||||
|
### 如何检查环境变量是否正常加载
|
||||||
|
|
||||||
|
1. `docker exec -it fastgpt sh` 进入 FastGPT 容器。
|
||||||
|
2. 直接输入`env`命令查看所有环境变量。
|
||||||
|
|
||||||
|
|
||||||
### 为什么无法连接`本地模型`镜像。
|
### 为什么无法连接`本地模型`镜像。
|
||||||
|
|
||||||
`docker-compose.yml`中使用了桥接的模式建立了`fastgpt`网络,如想通过0.0.0.0或镜像名访问其它镜像,需将其它镜像也加入到网络中。
|
`docker-compose.yml`中使用了桥接的模式建立了`fastgpt`网络,如想通过0.0.0.0或镜像名访问其它镜像,需将其它镜像也加入到网络中。
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 'V4.6.9(进行中)'
|
title: 'V4.6.9'
|
||||||
description: 'FastGPT V4.6.9更新说明'
|
description: 'FastGPT V4.6.9更新说明'
|
||||||
icon: 'upgrade'
|
icon: 'upgrade'
|
||||||
draft: false
|
draft: false
|
||||||
|
@@ -19,21 +19,27 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./pg/data:/var/lib/postgresql/data
|
- ./pg/data:/var/lib/postgresql/data
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:5.0.18
|
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.18
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.18 # 阿里云
|
|
||||||
container_name: mongo
|
container_name: mongo
|
||||||
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 27017:27017
|
- 27017:27017
|
||||||
networks:
|
networks:
|
||||||
- fastgpt
|
- fastgpt
|
||||||
command: mongod --keyFile /data/mongodb.key --replSet rs0
|
command: mongod --keyFile /data/mongodb.key --replSet rs0
|
||||||
environment:
|
environment:
|
||||||
# 默认的用户名和密码,只有首次允许有效
|
- MONGO_INITDB_ROOT_USERNAME=myusername
|
||||||
- MONGO_INITDB_ROOT_USERNAME=myname
|
|
||||||
- MONGO_INITDB_ROOT_PASSWORD=mypassword
|
- MONGO_INITDB_ROOT_PASSWORD=mypassword
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
- ./mongodb.key:/data/mongodb.key
|
entrypoint:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
openssl rand -base64 128 > /data/mongodb.key
|
||||||
|
chmod 400 /data/mongodb.key
|
||||||
|
chown 999:999 /data/mongodb.key
|
||||||
|
exec docker-entrypoint.sh $$@
|
||||||
fastgpt:
|
fastgpt:
|
||||||
container_name: fastgpt
|
container_name: fastgpt
|
||||||
image: ghcr.io/labring/fastgpt:latest # git
|
image: ghcr.io/labring/fastgpt:latest # git
|
||||||
|
@@ -63,6 +63,8 @@ export type SystemEnvType = {
|
|||||||
vectorMaxProcess: number;
|
vectorMaxProcess: number;
|
||||||
qaMaxProcess: number;
|
qaMaxProcess: number;
|
||||||
pgHNSWEfSearch: number;
|
pgHNSWEfSearch: number;
|
||||||
|
oneapiUrl?: string;
|
||||||
|
chatApiKey?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
// declare global {
|
// declare global {
|
||||||
|
@@ -19,6 +19,7 @@ export type BillSchemaType = {
|
|||||||
datasetSize?: number;
|
datasetSize?: number;
|
||||||
extraPoints?: number;
|
extraPoints?: number;
|
||||||
};
|
};
|
||||||
|
username: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ChatModuleUsageType = {
|
export type ChatModuleUsageType = {
|
||||||
|
@@ -2,9 +2,9 @@ import type { UserModelSchema } from '@fastgpt/global/support/user/type';
|
|||||||
import OpenAI from '@fastgpt/global/core/ai';
|
import OpenAI from '@fastgpt/global/core/ai';
|
||||||
|
|
||||||
export const openaiBaseUrl = process.env.OPENAI_BASE_URL || 'https://api.openai.com/v1';
|
export const openaiBaseUrl = process.env.OPENAI_BASE_URL || 'https://api.openai.com/v1';
|
||||||
export const baseUrl = process.env.ONEAPI_URL || openaiBaseUrl;
|
export const baseUrl = global?.systemEnv?.oneapiUrl || process.env.ONEAPI_URL || openaiBaseUrl;
|
||||||
|
|
||||||
export const systemAIChatKey = process.env.CHAT_API_KEY || '';
|
export const systemAIChatKey = global?.systemEnv?.chatApiKey || process.env.CHAT_API_KEY || '';
|
||||||
|
|
||||||
export const getAIApi = (props?: {
|
export const getAIApi = (props?: {
|
||||||
userKey?: UserModelSchema['openaiAccount'];
|
userKey?: UserModelSchema['openaiAccount'];
|
||||||
|
@@ -2,10 +2,10 @@ import React, { useState, useMemo, useRef } from 'react';
|
|||||||
import { Box, Card, Flex, useTheme, useOutsideClick, Button } from '@chakra-ui/react';
|
import { Box, Card, Flex, useTheme, useOutsideClick, Button } from '@chakra-ui/react';
|
||||||
import { addDays, format } from 'date-fns';
|
import { addDays, format } from 'date-fns';
|
||||||
import { type DateRange, DayPicker } from 'react-day-picker';
|
import { type DateRange, DayPicker } from 'react-day-picker';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
|
||||||
import 'react-day-picker/dist/style.css';
|
import 'react-day-picker/dist/style.css';
|
||||||
import zhCN from 'date-fns/locale/zh-CN';
|
import zhCN from 'date-fns/locale/zh-CN';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
|
import MyIcon from '../Icon';
|
||||||
|
|
||||||
const DateRangePicker = ({
|
const DateRangePicker = ({
|
||||||
onChange,
|
onChange,
|
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useCallback } from 'react';
|
import { useState, useCallback } from 'react';
|
||||||
import LoadingComponent from '@/components/Loading';
|
import LoadingComponent from '../components/common/MyLoading';
|
||||||
|
|
||||||
export const useLoading = (props?: { defaultLoading: boolean }) => {
|
export const useLoading = (props?: { defaultLoading: boolean }) => {
|
||||||
const [isLoading, setIsLoading] = useState(props?.defaultLoading || false);
|
const [isLoading, setIsLoading] = useState(props?.defaultLoading || false);
|
@@ -1,20 +1,28 @@
|
|||||||
import { useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
import { useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
||||||
import type { PagingData } from '@/types/index.d';
|
|
||||||
import { IconButton, Flex, Box, Input } from '@chakra-ui/react';
|
import { IconButton, Flex, Box, Input } from '@chakra-ui/react';
|
||||||
import { ArrowBackIcon, ArrowForwardIcon } from '@chakra-ui/icons';
|
import { ArrowBackIcon, ArrowForwardIcon } from '@chakra-ui/icons';
|
||||||
import { useMutation } from '@tanstack/react-query';
|
import { useMutation } from '@tanstack/react-query';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
|
||||||
import { throttle } from 'lodash';
|
import { throttle } from 'lodash';
|
||||||
|
import { useToast } from './useToast';
|
||||||
|
|
||||||
const thresholdVal = 100;
|
const thresholdVal = 100;
|
||||||
|
|
||||||
|
type PagingData<T> = {
|
||||||
|
pageNum: number;
|
||||||
|
pageSize: number;
|
||||||
|
data: T[];
|
||||||
|
total?: number;
|
||||||
|
};
|
||||||
|
|
||||||
export function usePagination<T = any>({
|
export function usePagination<T = any>({
|
||||||
api,
|
api,
|
||||||
pageSize = 10,
|
pageSize = 10,
|
||||||
params = {},
|
params = {},
|
||||||
defaultRequest = true,
|
defaultRequest = true,
|
||||||
type = 'button',
|
type = 'button',
|
||||||
onChange
|
onChange,
|
||||||
|
elementRef
|
||||||
}: {
|
}: {
|
||||||
api: (data: any) => any;
|
api: (data: any) => any;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
@@ -22,12 +30,18 @@ export function usePagination<T = any>({
|
|||||||
defaultRequest?: boolean;
|
defaultRequest?: boolean;
|
||||||
type?: 'button' | 'scroll';
|
type?: 'button' | 'scroll';
|
||||||
onChange?: (pageNum: number) => void;
|
onChange?: (pageNum: number) => void;
|
||||||
|
elementRef?: React.RefObject<HTMLDivElement>;
|
||||||
}) {
|
}) {
|
||||||
const elementRef = useRef<HTMLDivElement>(null);
|
|
||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
const [pageNum, setPageNum] = useState(1);
|
const [pageNum, setPageNum] = useState(1);
|
||||||
|
const pageNumRef = useRef(pageNum);
|
||||||
|
pageNumRef.current = pageNum;
|
||||||
const [total, setTotal] = useState(0);
|
const [total, setTotal] = useState(0);
|
||||||
|
const totalRef = useRef(total);
|
||||||
|
totalRef.current = total;
|
||||||
const [data, setData] = useState<T[]>([]);
|
const [data, setData] = useState<T[]>([]);
|
||||||
|
const dataLengthRef = useRef(data.length);
|
||||||
|
dataLengthRef.current = data.length;
|
||||||
const maxPage = useMemo(() => Math.ceil(total / pageSize) || 1, [pageSize, total]);
|
const maxPage = useMemo(() => Math.ceil(total / pageSize) || 1, [pageSize, total]);
|
||||||
|
|
||||||
const { mutate, isLoading } = useMutation({
|
const { mutate, isLoading } = useMutation({
|
||||||
@@ -40,7 +54,11 @@ export function usePagination<T = any>({
|
|||||||
});
|
});
|
||||||
setPageNum(num);
|
setPageNum(num);
|
||||||
res.total !== undefined && setTotal(res.total);
|
res.total !== undefined && setTotal(res.total);
|
||||||
|
if (type === 'scroll') {
|
||||||
|
setData((prevData) => [...prevData, ...res.data]);
|
||||||
|
} else {
|
||||||
setData(res.data);
|
setData(res.data);
|
||||||
|
}
|
||||||
onChange && onChange(num);
|
onChange && onChange(num);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
toast({
|
toast({
|
||||||
@@ -147,7 +165,7 @@ export function usePagination<T = any>({
|
|||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!elementRef.current || type !== 'scroll') return;
|
if (!elementRef?.current || type !== 'scroll') return;
|
||||||
|
|
||||||
const scrolling = throttle((e: Event) => {
|
const scrolling = throttle((e: Event) => {
|
||||||
const element = e.target as HTMLDivElement;
|
const element = e.target as HTMLDivElement;
|
||||||
@@ -159,16 +177,23 @@ export function usePagination<T = any>({
|
|||||||
// 内容总高度
|
// 内容总高度
|
||||||
const scrollHeight = element.scrollHeight;
|
const scrollHeight = element.scrollHeight;
|
||||||
// 判断是否滚动到底部
|
// 判断是否滚动到底部
|
||||||
if (scrollTop + clientHeight + thresholdVal >= scrollHeight) {
|
if (
|
||||||
mutate(pageNum + 1);
|
scrollTop + clientHeight + thresholdVal >= scrollHeight &&
|
||||||
|
dataLengthRef.current < totalRef.current
|
||||||
|
) {
|
||||||
|
mutate(pageNumRef.current + 1);
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
elementRef.current.addEventListener('scroll', scrolling);
|
|
||||||
return () => {
|
const handleScroll = (e: Event) => {
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
scrolling(e);
|
||||||
elementRef.current?.removeEventListener('scroll', scrolling);
|
|
||||||
};
|
};
|
||||||
}, [elementRef, mutate, pageNum, type]);
|
|
||||||
|
elementRef.current.addEventListener('scroll', handleScroll);
|
||||||
|
return () => {
|
||||||
|
elementRef.current?.removeEventListener('scroll', handleScroll);
|
||||||
|
};
|
||||||
|
}, [elementRef, mutate, pageNum, type, total, data.length]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
defaultRequest && mutate(1);
|
defaultRequest && mutate(1);
|
||||||
@@ -179,6 +204,7 @@ export function usePagination<T = any>({
|
|||||||
pageSize,
|
pageSize,
|
||||||
total,
|
total,
|
||||||
data,
|
data,
|
||||||
|
setData,
|
||||||
isLoading,
|
isLoading,
|
||||||
Pagination,
|
Pagination,
|
||||||
ScrollData,
|
ScrollData,
|
@@ -26,9 +26,15 @@
|
|||||||
"@lexical/react": "0.12.6",
|
"@lexical/react": "0.12.6",
|
||||||
"papaparse": "^5.4.1",
|
"papaparse": "^5.4.1",
|
||||||
"@lexical/utils": "0.12.6",
|
"@lexical/utils": "0.12.6",
|
||||||
"@lexical/text": "0.12.6"
|
"@lexical/text": "0.12.6",
|
||||||
|
"date-fns": "2.30.0",
|
||||||
|
"react-day-picker": "^8.7.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"@tanstack/react-query": "^4.24.10",
|
||||||
|
"dayjs": "^1.11.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/lodash": "^4.14.191",
|
||||||
"@types/react": "18.2.0",
|
"@types/react": "18.2.0",
|
||||||
"@types/papaparse": "^5.3.7",
|
"@types/papaparse": "^5.3.7",
|
||||||
"@types/react-dom": "18.2.0",
|
"@types/react-dom": "18.2.0",
|
||||||
|
50
pnpm-lock.yaml
generated
50
pnpm-lock.yaml
generated
@@ -184,6 +184,15 @@ importers:
|
|||||||
'@monaco-editor/react':
|
'@monaco-editor/react':
|
||||||
specifier: ^4.6.0
|
specifier: ^4.6.0
|
||||||
version: 4.6.0(monaco-editor@0.46.0)(react-dom@18.2.0)(react@18.2.0)
|
version: 4.6.0(monaco-editor@0.46.0)(react-dom@18.2.0)(react@18.2.0)
|
||||||
|
'@tanstack/react-query':
|
||||||
|
specifier: ^4.24.10
|
||||||
|
version: 4.24.10(react-dom@18.2.0)(react@18.2.0)
|
||||||
|
date-fns:
|
||||||
|
specifier: 2.30.0
|
||||||
|
version: 2.30.0
|
||||||
|
dayjs:
|
||||||
|
specifier: ^1.11.7
|
||||||
|
version: 1.11.7
|
||||||
i18next:
|
i18next:
|
||||||
specifier: 23.10.0
|
specifier: 23.10.0
|
||||||
version: 23.10.0
|
version: 23.10.0
|
||||||
@@ -193,6 +202,9 @@ importers:
|
|||||||
lexical:
|
lexical:
|
||||||
specifier: 0.12.6
|
specifier: 0.12.6
|
||||||
version: 0.12.6
|
version: 0.12.6
|
||||||
|
lodash:
|
||||||
|
specifier: ^4.17.21
|
||||||
|
version: 4.17.21
|
||||||
mammoth:
|
mammoth:
|
||||||
specifier: ^1.6.0
|
specifier: ^1.6.0
|
||||||
version: 1.6.0
|
version: 1.6.0
|
||||||
@@ -208,6 +220,9 @@ importers:
|
|||||||
react:
|
react:
|
||||||
specifier: 18.2.0
|
specifier: 18.2.0
|
||||||
version: 18.2.0
|
version: 18.2.0
|
||||||
|
react-day-picker:
|
||||||
|
specifier: ^8.7.1
|
||||||
|
version: 8.7.1(date-fns@2.30.0)(react@18.2.0)
|
||||||
react-dom:
|
react-dom:
|
||||||
specifier: 18.2.0
|
specifier: 18.2.0
|
||||||
version: 18.2.0(react@18.2.0)
|
version: 18.2.0(react@18.2.0)
|
||||||
@@ -218,6 +233,9 @@ importers:
|
|||||||
specifier: ^7.1.2
|
specifier: ^7.1.2
|
||||||
version: 7.1.2
|
version: 7.1.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@types/lodash':
|
||||||
|
specifier: ^4.14.191
|
||||||
|
version: 4.14.191
|
||||||
'@types/papaparse':
|
'@types/papaparse':
|
||||||
specifier: ^5.3.7
|
specifier: ^5.3.7
|
||||||
version: 5.3.7
|
version: 5.3.7
|
||||||
@@ -2886,6 +2904,7 @@ packages:
|
|||||||
|
|
||||||
/@emotion/memoize@0.7.4:
|
/@emotion/memoize@0.7.4:
|
||||||
resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==}
|
resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -3486,6 +3505,7 @@ packages:
|
|||||||
/@mapbox/node-pre-gyp@1.0.11:
|
/@mapbox/node-pre-gyp@1.0.11:
|
||||||
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
|
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
detect-libc: 2.0.2
|
detect-libc: 2.0.2
|
||||||
https-proxy-agent: 5.0.1
|
https-proxy-agent: 5.0.1
|
||||||
@@ -4631,6 +4651,7 @@ packages:
|
|||||||
|
|
||||||
/abbrev@1.1.1:
|
/abbrev@1.1.1:
|
||||||
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
|
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -4666,6 +4687,7 @@ packages:
|
|||||||
/agent-base@6.0.2:
|
/agent-base@6.0.2:
|
||||||
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
|
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
|
||||||
engines: {node: '>= 6.0.0'}
|
engines: {node: '>= 6.0.0'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -4744,12 +4766,14 @@ packages:
|
|||||||
|
|
||||||
/aproba@2.0.0:
|
/aproba@2.0.0:
|
||||||
resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==}
|
resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/are-we-there-yet@2.0.0:
|
/are-we-there-yet@2.0.0:
|
||||||
resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
|
resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
delegates: 1.0.0
|
delegates: 1.0.0
|
||||||
readable-stream: 3.6.2
|
readable-stream: 3.6.2
|
||||||
@@ -5326,6 +5350,7 @@ packages:
|
|||||||
/chownr@2.0.0:
|
/chownr@2.0.0:
|
||||||
resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
|
resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -5433,6 +5458,7 @@ packages:
|
|||||||
/color-support@1.1.3:
|
/color-support@1.1.3:
|
||||||
resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==}
|
resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -5501,6 +5527,7 @@ packages:
|
|||||||
|
|
||||||
/console-control-strings@1.1.0:
|
/console-control-strings@1.1.0:
|
||||||
resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
|
resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -6033,6 +6060,7 @@ packages:
|
|||||||
/decompress-response@4.2.1:
|
/decompress-response@4.2.1:
|
||||||
resolution: {integrity: sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==}
|
resolution: {integrity: sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
mimic-response: 2.1.0
|
mimic-response: 2.1.0
|
||||||
dev: false
|
dev: false
|
||||||
@@ -6084,6 +6112,7 @@ packages:
|
|||||||
|
|
||||||
/delegates@1.0.0:
|
/delegates@1.0.0:
|
||||||
resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}
|
resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -6111,6 +6140,7 @@ packages:
|
|||||||
/detect-libc@2.0.2:
|
/detect-libc@2.0.2:
|
||||||
resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==}
|
resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -7242,6 +7272,7 @@ packages:
|
|||||||
/fs-minipass@2.1.0:
|
/fs-minipass@2.1.0:
|
||||||
resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}
|
resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}
|
||||||
engines: {node: '>= 8'}
|
engines: {node: '>= 8'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
minipass: 3.3.6
|
minipass: 3.3.6
|
||||||
dev: false
|
dev: false
|
||||||
@@ -7277,6 +7308,7 @@ packages:
|
|||||||
/gauge@3.0.2:
|
/gauge@3.0.2:
|
||||||
resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==}
|
resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
aproba: 2.0.0
|
aproba: 2.0.0
|
||||||
color-support: 1.1.3
|
color-support: 1.1.3
|
||||||
@@ -7447,6 +7479,7 @@ packages:
|
|||||||
|
|
||||||
/has-unicode@2.0.1:
|
/has-unicode@2.0.1:
|
||||||
resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}
|
resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -7596,6 +7629,7 @@ packages:
|
|||||||
/https-proxy-agent@5.0.1:
|
/https-proxy-agent@5.0.1:
|
||||||
resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
|
resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
|
||||||
engines: {node: '>= 6'}
|
engines: {node: '>= 6'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
agent-base: 6.0.2
|
agent-base: 6.0.2
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
@@ -8362,6 +8396,7 @@ packages:
|
|||||||
/make-dir@3.1.0:
|
/make-dir@3.1.0:
|
||||||
resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
|
resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
semver: 6.3.1
|
semver: 6.3.1
|
||||||
dev: false
|
dev: false
|
||||||
@@ -8565,6 +8600,7 @@ packages:
|
|||||||
|
|
||||||
/memory-pager@1.5.0:
|
/memory-pager@1.5.0:
|
||||||
resolution: {integrity: sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==}
|
resolution: {integrity: sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -8916,6 +8952,7 @@ packages:
|
|||||||
/mimic-response@2.1.0:
|
/mimic-response@2.1.0:
|
||||||
resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==}
|
resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -8938,6 +8975,7 @@ packages:
|
|||||||
/minipass@3.3.6:
|
/minipass@3.3.6:
|
||||||
resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==}
|
resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
yallist: 4.0.0
|
yallist: 4.0.0
|
||||||
dev: false
|
dev: false
|
||||||
@@ -8946,12 +8984,14 @@ packages:
|
|||||||
/minipass@5.0.0:
|
/minipass@5.0.0:
|
||||||
resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==}
|
resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/minizlib@2.1.2:
|
/minizlib@2.1.2:
|
||||||
resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}
|
resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}
|
||||||
engines: {node: '>= 8'}
|
engines: {node: '>= 8'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
minipass: 3.3.6
|
minipass: 3.3.6
|
||||||
yallist: 4.0.0
|
yallist: 4.0.0
|
||||||
@@ -8969,6 +9009,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}
|
resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -9067,6 +9108,7 @@ packages:
|
|||||||
|
|
||||||
/nan@2.18.0:
|
/nan@2.18.0:
|
||||||
resolution: {integrity: sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==}
|
resolution: {integrity: sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -9227,6 +9269,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}
|
resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
abbrev: 1.1.1
|
abbrev: 1.1.1
|
||||||
dev: false
|
dev: false
|
||||||
@@ -9245,6 +9288,7 @@ packages:
|
|||||||
|
|
||||||
/npmlog@5.0.1:
|
/npmlog@5.0.1:
|
||||||
resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==}
|
resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
are-we-there-yet: 2.0.0
|
are-we-there-yet: 2.0.0
|
||||||
console-control-strings: 1.1.0
|
console-control-strings: 1.1.0
|
||||||
@@ -10420,6 +10464,7 @@ packages:
|
|||||||
|
|
||||||
/set-blocking@2.0.0:
|
/set-blocking@2.0.0:
|
||||||
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
|
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
@@ -10489,11 +10534,13 @@ packages:
|
|||||||
|
|
||||||
/simple-concat@1.0.1:
|
/simple-concat@1.0.1:
|
||||||
resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==}
|
resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==}
|
||||||
|
requiresBuild: true
|
||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/simple-get@3.1.1:
|
/simple-get@3.1.1:
|
||||||
resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==}
|
resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
decompress-response: 4.2.1
|
decompress-response: 4.2.1
|
||||||
once: 1.4.0
|
once: 1.4.0
|
||||||
@@ -10569,6 +10616,7 @@ packages:
|
|||||||
|
|
||||||
/sparse-bitfield@3.0.3:
|
/sparse-bitfield@3.0.3:
|
||||||
resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==}
|
resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
memory-pager: 1.5.0
|
memory-pager: 1.5.0
|
||||||
dev: false
|
dev: false
|
||||||
@@ -10799,6 +10847,7 @@ packages:
|
|||||||
/tar@6.2.0:
|
/tar@6.2.0:
|
||||||
resolution: {integrity: sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==}
|
resolution: {integrity: sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
chownr: 2.0.0
|
chownr: 2.0.0
|
||||||
fs-minipass: 2.1.0
|
fs-minipass: 2.1.0
|
||||||
@@ -11529,6 +11578,7 @@ packages:
|
|||||||
|
|
||||||
/wide-align@1.1.5:
|
/wide-align@1.1.5:
|
||||||
resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}
|
resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}
|
||||||
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
string-width: 4.2.3
|
string-width: 4.2.3
|
||||||
dev: false
|
dev: false
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
### Fast GPT V4.6.8
|
### Fast GPT V4.6.9
|
||||||
|
|
||||||
1. 新增 - 知识库新增“增强处理”训练模式,可生成更多类型索引。
|
1. 新增 - 知识库新增“增强处理”训练模式,可生成更多类型索引。
|
||||||
2. 新增 - 完善了HTTP模块的变量提示。
|
2. 新增 - 完善了HTTP模块的变量提示。
|
||||||
|
@@ -53,7 +53,6 @@ import type { AdminMarkType } from './SelectMarkCollection';
|
|||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import Avatar from '@/components/Avatar';
|
import Avatar from '@/components/Avatar';
|
||||||
import Markdown, { CodeClassName } from '@/components/Markdown';
|
import Markdown, { CodeClassName } from '@/components/Markdown';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import MyTooltip from '../MyTooltip';
|
import MyTooltip from '../MyTooltip';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
const ResponseTags = dynamic(() => import('./ResponseTags'));
|
const ResponseTags = dynamic(() => import('./ResponseTags'));
|
||||||
@@ -69,6 +68,7 @@ import MessageInput from './MessageInput';
|
|||||||
import { ModuleOutputKeyEnum } from '@fastgpt/global/core/module/constants';
|
import { ModuleOutputKeyEnum } from '@fastgpt/global/core/module/constants';
|
||||||
import ChatBoxDivider from '../core/chat/Divider';
|
import ChatBoxDivider from '../core/chat/Divider';
|
||||||
import { OutLinkChatAuthProps } from '@fastgpt/global/support/permission/chat';
|
import { OutLinkChatAuthProps } from '@fastgpt/global/support/permission/chat';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 24);
|
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 24);
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useMemo } from 'react';
|
import React, { useEffect, useMemo } from 'react';
|
||||||
import { Box, useColorMode, Flex } from '@chakra-ui/react';
|
import { Box, useColorMode, Flex } from '@chakra-ui/react';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import { throttle } from 'lodash';
|
import { throttle } from 'lodash';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|
||||||
import MySelect, { type SelectProps } from './index';
|
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { AI_POINT_USAGE_CARD_ROUTE } from '@/web/support/wallet/sub/constants';
|
import { AI_POINT_USAGE_CARD_ROUTE } from '@/web/support/wallet/sub/constants';
|
||||||
|
import MySelect, { SelectProps } from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const SelectAiModel = ({ list, ...props }: SelectProps) => {
|
const SelectAiModel = ({ list, ...props }: SelectProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Box, BoxProps } from '@chakra-ui/react';
|
import { Box, BoxProps } from '@chakra-ui/react';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
|
|
||||||
type Props = BoxProps & {
|
type Props = BoxProps & {
|
||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
|
@@ -26,9 +26,9 @@ import MyRadio from '@/components/common/MyRadio';
|
|||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import Tabs from '@/components/Tabs';
|
import Tabs from '@/components/Tabs';
|
||||||
import PromptEditor from '@fastgpt/web/components/common/Textarea/PromptEditor';
|
import PromptEditor from '@fastgpt/web/components/common/Textarea/PromptEditor';
|
||||||
import SelectAiModel from '@/components/Select/SelectAiModel';
|
|
||||||
import { useUserStore } from '@/web/support/user/useUserStore';
|
import { useUserStore } from '@/web/support/user/useUserStore';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
|
import SelectAiModel from '@/components/Select/SelectAiModel';
|
||||||
|
|
||||||
export type DatasetParamsProps = {
|
export type DatasetParamsProps = {
|
||||||
searchMode: `${DatasetSearchModeEnum}`;
|
searchMode: `${DatasetSearchModeEnum}`;
|
||||||
|
@@ -19,7 +19,7 @@ import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants';
|
|||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { useDatasetStore } from '@/web/core/dataset/store/dataset';
|
import { useDatasetStore } from '@/web/core/dataset/store/dataset';
|
||||||
import DatasetSelectContainer, { useDatasetSelect } from '@/components/core/dataset/SelectModal';
|
import DatasetSelectContainer, { useDatasetSelect } from '@/components/core/dataset/SelectModal';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import EmptyTip from '@/components/EmptyTip';
|
import EmptyTip from '@/components/EmptyTip';
|
||||||
|
|
||||||
export const DatasetSelectModal = ({
|
export const DatasetSelectModal = ({
|
||||||
|
@@ -177,7 +177,11 @@ export const FlowProvider = ({
|
|||||||
({ connect }: { connect: Connection }) => {
|
({ connect }: { connect: Connection }) => {
|
||||||
const source = nodes.find((node) => node.id === connect.source)?.data;
|
const source = nodes.find((node) => node.id === connect.source)?.data;
|
||||||
const sourceType = (() => {
|
const sourceType = (() => {
|
||||||
if (source?.flowType === FlowNodeTypeEnum.classifyQuestion) {
|
const type = source?.outputs.find(
|
||||||
|
(output) => output.key === connect.sourceHandle
|
||||||
|
)?.valueType;
|
||||||
|
console.log(type);
|
||||||
|
if (source?.flowType === FlowNodeTypeEnum.classifyQuestion && !type) {
|
||||||
return ModuleIOValueTypeEnum.boolean;
|
return ModuleIOValueTypeEnum.boolean;
|
||||||
}
|
}
|
||||||
if (source?.flowType === FlowNodeTypeEnum.pluginInput) {
|
if (source?.flowType === FlowNodeTypeEnum.pluginInput) {
|
||||||
|
@@ -5,7 +5,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||||||
import type { SelectAppItemType } from '@fastgpt/global/core/module/type';
|
import type { SelectAppItemType } from '@fastgpt/global/core/module/type';
|
||||||
import Avatar from '@/components/Avatar';
|
import Avatar from '@/components/Avatar';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import { useAppStore } from '@/web/core/app/store/useAppStore';
|
import { useAppStore } from '@/web/core/app/store/useAppStore';
|
||||||
|
|
||||||
const SelectAppModal = ({
|
const SelectAppModal = ({
|
||||||
|
@@ -4,13 +4,13 @@ import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
|||||||
import { Box, Button, Flex, ModalBody, useDisclosure, Image } from '@chakra-ui/react';
|
import { Box, Button, Flex, ModalBody, useDisclosure, Image } from '@chakra-ui/react';
|
||||||
import React, { useCallback, useMemo } from 'react';
|
import React, { useCallback, useMemo } from 'react';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { TTSTypeEnum } from '@/constants/app';
|
import { TTSTypeEnum } from '@/constants/app';
|
||||||
import type { AppTTSConfigType } from '@fastgpt/global/core/module/type.d';
|
import type { AppTTSConfigType } from '@fastgpt/global/core/module/type.d';
|
||||||
import { useAudioPlay } from '@/web/common/utils/voice';
|
import { useAudioPlay } from '@/web/common/utils/voice';
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import MyModal from '@/components/MyModal';
|
import MyModal from '@/components/MyModal';
|
||||||
import MySlider from '@/components/Slider';
|
import MySlider from '@/components/Slider';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const TTSSelect = ({
|
const TTSSelect = ({
|
||||||
value,
|
value,
|
||||||
|
@@ -19,7 +19,6 @@ import {
|
|||||||
TableContainer,
|
TableContainer,
|
||||||
Button
|
Button
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { ModuleInputKeyEnum } from '@fastgpt/global/core/module/constants';
|
import { ModuleInputKeyEnum } from '@fastgpt/global/core/module/constants';
|
||||||
import { onChangeNode, useFlowProviderStore } from '../../../FlowProvider';
|
import { onChangeNode, useFlowProviderStore } from '../../../FlowProvider';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
@@ -38,6 +37,7 @@ import {
|
|||||||
import { EditorVariablePickerType } from '@fastgpt/web/components/common/Textarea/PromptEditor/type';
|
import { EditorVariablePickerType } from '@fastgpt/web/components/common/Textarea/PromptEditor/type';
|
||||||
import HttpInput from '@fastgpt/web/components/common/Input/HttpInput';
|
import HttpInput from '@fastgpt/web/components/common/Input/HttpInput';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
const OpenApiImportModal = dynamic(() => import('./OpenApiImportModal'));
|
const OpenApiImportModal = dynamic(() => import('./OpenApiImportModal'));
|
||||||
|
|
||||||
enum TabEnum {
|
enum TabEnum {
|
||||||
|
@@ -13,7 +13,6 @@ import { useForm } from 'react-hook-form';
|
|||||||
import MyModal from '@/components/MyModal';
|
import MyModal from '@/components/MyModal';
|
||||||
import { DYNAMIC_INPUT_KEY, ModuleIOValueTypeEnum } from '@fastgpt/global/core/module/constants';
|
import { DYNAMIC_INPUT_KEY, ModuleIOValueTypeEnum } from '@fastgpt/global/core/module/constants';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { FlowValueTypeMap } from '@/web/core/modules/constants/dataType';
|
import { FlowValueTypeMap } from '@/web/core/modules/constants/dataType';
|
||||||
import {
|
import {
|
||||||
FlowNodeInputTypeEnum,
|
FlowNodeInputTypeEnum,
|
||||||
@@ -21,6 +20,7 @@ import {
|
|||||||
} from '@fastgpt/global/core/module/node/constant';
|
} from '@fastgpt/global/core/module/node/constant';
|
||||||
import { EditInputFieldMap, EditNodeFieldType } from '@fastgpt/global/core/module/node/type.d';
|
import { EditInputFieldMap, EditNodeFieldType } from '@fastgpt/global/core/module/node/type.d';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const FieldEditModal = ({
|
const FieldEditModal = ({
|
||||||
editField = {
|
editField = {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import type { RenderInputProps } from '../type';
|
import type { RenderInputProps } from '../type';
|
||||||
import { onChangeNode } from '../../../../FlowProvider';
|
import { onChangeNode } from '../../../../FlowProvider';
|
||||||
import MySelect from '@/components/Select';
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const SelectRender = ({ item, moduleId }: RenderInputProps) => {
|
const SelectRender = ({ item, moduleId }: RenderInputProps) => {
|
||||||
return (
|
return (
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
import React, { useCallback, useEffect } from 'react';
|
import React, { useCallback, useEffect } from 'react';
|
||||||
import type { RenderInputProps } from '../type';
|
import type { RenderInputProps } from '../type';
|
||||||
import { onChangeNode } from '../../../../FlowProvider';
|
import { onChangeNode } from '../../../../FlowProvider';
|
||||||
import SelectAiModel from '@/components/Select/SelectAiModel';
|
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
|
import SelectAiModel from '@/components/Select/SelectAiModel';
|
||||||
|
|
||||||
const SelectAiModelRender = ({ item, inputs = [], moduleId }: RenderInputProps) => {
|
const SelectAiModelRender = ({ item, inputs = [], moduleId }: RenderInputProps) => {
|
||||||
const { llmModelList } = useSystemStore();
|
const { llmModelList } = useSystemStore();
|
||||||
|
@@ -28,7 +28,7 @@ import {
|
|||||||
} from '@/web/support/openapi/api';
|
} from '@/web/support/openapi/api';
|
||||||
import type { EditApiKeyProps } from '@/global/support/openapi/api.d';
|
import type { EditApiKeyProps } from '@/global/support/openapi/api.d';
|
||||||
import { useQuery, useMutation } from '@tanstack/react-query';
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { AddIcon, QuestionOutlineIcon } from '@chakra-ui/icons';
|
import { AddIcon, QuestionOutlineIcon } from '@chakra-ui/icons';
|
||||||
import { useCopyData } from '@/web/common/hooks/useCopyData';
|
import { useCopyData } from '@/web/common/hooks/useCopyData';
|
||||||
|
@@ -3,12 +3,12 @@ import MyModal from '@/components/MyModal';
|
|||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { ModalCloseButton, ModalBody, Box, ModalFooter, Button } from '@chakra-ui/react';
|
import { ModalCloseButton, ModalBody, Box, ModalFooter, Button } from '@chakra-ui/react';
|
||||||
import TagTextarea from '@/components/common/Textarea/TagTextarea';
|
import TagTextarea from '@/components/common/Textarea/TagTextarea';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { TeamMemberRoleEnum } from '@fastgpt/global/support/user/team/constant';
|
import { TeamMemberRoleEnum } from '@fastgpt/global/support/user/team/constant';
|
||||||
import { useRequest } from '@/web/common/hooks/useRequest';
|
import { useRequest } from '@/web/common/hooks/useRequest';
|
||||||
import { postInviteTeamMember } from '@/web/support/user/team/api';
|
import { postInviteTeamMember } from '@/web/support/user/team/api';
|
||||||
import { useConfirm } from '@/web/common/hooks/useConfirm';
|
import { useConfirm } from '@/web/common/hooks/useConfirm';
|
||||||
import type { InviteMemberResponse } from '@fastgpt/global/support/user/team/controller.d';
|
import type { InviteMemberResponse } from '@fastgpt/global/support/user/team/controller.d';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const InviteModal = ({
|
const InviteModal = ({
|
||||||
teamId,
|
teamId,
|
||||||
|
@@ -38,7 +38,7 @@ import {
|
|||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { useRequest } from '@/web/common/hooks/useRequest';
|
import { useRequest } from '@/web/common/hooks/useRequest';
|
||||||
import { setToken } from '@/web/support/user/auth';
|
import { setToken } from '@/web/support/user/auth';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import { FormDataType, defaultForm } from './EditModal';
|
import { FormDataType, defaultForm } from './EditModal';
|
||||||
import MyMenu from '@/components/MyMenu';
|
import MyMenu from '@/components/MyMenu';
|
||||||
import { useConfirm } from '@/web/common/hooks/useConfirm';
|
import { useConfirm } from '@/web/common/hooks/useConfirm';
|
||||||
|
@@ -19,18 +19,19 @@ import { formatStorePrice2Read } from '@fastgpt/global/support/wallet/usage/tool
|
|||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import {
|
import {
|
||||||
BillTypeEnum,
|
BillTypeEnum,
|
||||||
billPayWayMap,
|
billPayWayMap,
|
||||||
billStatusMap,
|
billStatusMap,
|
||||||
billTypeMap
|
billTypeMap
|
||||||
} from '@fastgpt/global/support/wallet/bill/constants';
|
} from '@fastgpt/global/support/wallet/bill/constants';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
// import { usePagination } from '@/web/common/hooks/usePagination';
|
||||||
import MyBox from '@/components/common/MyBox';
|
import MyBox from '@/components/common/MyBox';
|
||||||
import { useRequest } from '@/web/common/hooks/useRequest';
|
import { useRequest } from '@/web/common/hooks/useRequest';
|
||||||
import MyModal from '@/components/MyModal';
|
|
||||||
import { standardSubLevelMap, subModeMap } from '@fastgpt/global/support/wallet/sub/constants';
|
import { standardSubLevelMap, subModeMap } from '@fastgpt/global/support/wallet/sub/constants';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
import MyModal from '@fastgpt/web/components/common/CustomModal';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
|
||||||
const BillTable = () => {
|
const BillTable = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@@ -9,8 +9,8 @@ import { useToast } from '@fastgpt/web/hooks/useToast';
|
|||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { UserUpdateParams } from '@/types/user';
|
import { UserUpdateParams } from '@/types/user';
|
||||||
import { langMap, setLngStore } from '@/web/common/utils/i18n';
|
import { langMap, setLngStore } from '@/web/common/utils/i18n';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const Individuation = () => {
|
const Individuation = () => {
|
||||||
const { t, i18n } = useTranslation();
|
const { t, i18n } = useTranslation();
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Box, Flex, useTheme } from '@chakra-ui/react';
|
import { Box, Flex, useTheme } from '@chakra-ui/react';
|
||||||
import { getInforms, readInform } from '@/web/support/user/inform/api';
|
import { getInforms, readInform } from '@/web/support/user/inform/api';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
|
||||||
import type { UserInformSchema } from '@fastgpt/global/support/user/inform/type';
|
import type { UserInformSchema } from '@fastgpt/global/support/user/inform/type';
|
||||||
import { formatTimeToChatTime } from '@/utils/tools';
|
import { formatTimeToChatTime } from '@/utils/tools';
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
|
|
||||||
const BillTable = () => {
|
const BillTable = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
@@ -18,15 +18,15 @@ import { useTranslation } from 'next-i18next';
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { getPromotionInitData, getPromotionRecords } from '@/web/support/activity/promotion/api';
|
import { getPromotionInitData, getPromotionRecords } from '@/web/support/activity/promotion/api';
|
||||||
import { useUserStore } from '@/web/support/user/useUserStore';
|
import { useUserStore } from '@/web/support/user/useUserStore';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
|
||||||
|
|
||||||
import MyTooltip from '@/components/MyTooltip';
|
import MyTooltip from '@/components/MyTooltip';
|
||||||
import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
||||||
import { useCopyData } from '@/web/common/hooks/useCopyData';
|
import { useCopyData } from '@/web/common/hooks/useCopyData';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
|
||||||
import type { PromotionRecordType } from '@/global/support/api/userRes.d';
|
import type { PromotionRecordType } from '@/global/support/api/userRes.d';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
|
|
||||||
const Promotion = () => {
|
const Promotion = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@@ -14,21 +14,23 @@ import {
|
|||||||
import { UsageSourceEnum, UsageSourceMap } from '@fastgpt/global/support/wallet/usage/constants';
|
import { UsageSourceEnum, UsageSourceMap } from '@fastgpt/global/support/wallet/usage/constants';
|
||||||
import { getUserUsages } from '@/web/support/wallet/usage/api';
|
import { getUserUsages } from '@/web/support/wallet/usage/api';
|
||||||
import type { UsageItemType } from '@fastgpt/global/support/wallet/usage/type';
|
import type { UsageItemType } from '@fastgpt/global/support/wallet/usage/type';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import DateRangePicker, { type DateRangeType } from '@/components/DateRangePicker';
|
import DateRangePicker, {
|
||||||
|
type DateRangeType
|
||||||
|
} from '@fastgpt/web/components/common/DateRangePicker';
|
||||||
import { addDays } from 'date-fns';
|
import { addDays } from 'date-fns';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { useUserStore } from '@/web/support/user/useUserStore';
|
import { useUserStore } from '@/web/support/user/useUserStore';
|
||||||
import { getTeamMembers } from '@/web/support/user/team/api';
|
import { getTeamMembers } from '@/web/support/user/team/api';
|
||||||
import Avatar from '@/components/Avatar';
|
import Avatar from '@/components/Avatar';
|
||||||
import { formatNumber } from '../../../../../../packages/global/common/math/tools';
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
import { formatNumber } from '@fastgpt/global/common/math/tools';
|
||||||
const UsageDetail = dynamic(() => import('./UsageDetail'));
|
const UsageDetail = dynamic(() => import('./UsageDetail'));
|
||||||
|
|
||||||
const UsageTable = () => {
|
const UsageTable = () => {
|
||||||
|
@@ -14,7 +14,7 @@ import {
|
|||||||
import MyModal from '@/components/MyModal';
|
import MyModal from '@/components/MyModal';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import { getTeamPlans } from '@/web/support/user/team/api';
|
import { getTeamPlans } from '@/web/support/user/team/api';
|
||||||
import { subTypeMap, standardSubLevelMap } from '@fastgpt/global/support/wallet/sub/constants';
|
import { subTypeMap, standardSubLevelMap } from '@fastgpt/global/support/wallet/sub/constants';
|
||||||
|
@@ -15,7 +15,6 @@ import {
|
|||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
|
||||||
import { getAppChatLogs } from '@/web/core/app/api';
|
import { getAppChatLogs } from '@/web/core/app/api';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { ChatSourceMap } from '@fastgpt/global/core/chat/constants';
|
import { ChatSourceMap } from '@fastgpt/global/core/chat/constants';
|
||||||
@@ -27,9 +26,10 @@ import { useQuery } from '@tanstack/react-query';
|
|||||||
import { getInitChatInfo } from '@/web/core/chat/api';
|
import { getInitChatInfo } from '@/web/core/chat/api';
|
||||||
import Tag from '@/components/Tag';
|
import Tag from '@/components/Tag';
|
||||||
import MyModal from '@/components/MyModal';
|
import MyModal from '@/components/MyModal';
|
||||||
import DateRangePicker, { type DateRangeType } from '@/components/DateRangePicker';
|
|
||||||
import { addDays } from 'date-fns';
|
import { addDays } from 'date-fns';
|
||||||
import MyBox from '@/components/common/MyBox';
|
import MyBox from '@/components/common/MyBox';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
import DateRangePicker, { DateRangeType } from '@fastgpt/web/components/common/DateRangePicker';
|
||||||
|
|
||||||
const Logs = ({ appId }: { appId: string }) => {
|
const Logs = ({ appId }: { appId: string }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@@ -18,7 +18,7 @@ import {
|
|||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import {
|
import {
|
||||||
getShareChatList,
|
getShareChatList,
|
||||||
|
@@ -31,10 +31,10 @@ import Avatar from '@/components/Avatar';
|
|||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import VariableEdit from '@/components/core/module/Flow/components/modules/VariableEdit';
|
import VariableEdit from '@/components/core/module/Flow/components/modules/VariableEdit';
|
||||||
import MyTextarea from '@/components/common/Textarea/MyTextarea/index';
|
import MyTextarea from '@/components/common/Textarea/MyTextarea/index';
|
||||||
import SelectAiModel from '@/components/Select/SelectAiModel';
|
|
||||||
import PromptEditor from '@fastgpt/web/components/common/Textarea/PromptEditor';
|
import PromptEditor from '@fastgpt/web/components/common/Textarea/PromptEditor';
|
||||||
import { formatEditorVariablePickerIcon } from '@fastgpt/global/core/module/utils';
|
import { formatEditorVariablePickerIcon } from '@fastgpt/global/core/module/utils';
|
||||||
import SearchParamsTip from '@/components/core/dataset/SearchParamsTip';
|
import SearchParamsTip from '@/components/core/dataset/SearchParamsTip';
|
||||||
|
import SelectAiModel from '@/components/Select/SelectAiModel';
|
||||||
|
|
||||||
const DatasetSelectModal = dynamic(() => import('@/components/core/module/DatasetSelectModal'));
|
const DatasetSelectModal = dynamic(() => import('@/components/core/module/DatasetSelectModal'));
|
||||||
const DatasetParamsModal = dynamic(() => import('@/components/core/module/DatasetParamsModal'));
|
const DatasetParamsModal = dynamic(() => import('@/components/core/module/DatasetParamsModal'));
|
||||||
|
@@ -11,7 +11,7 @@ import SideTabs from '@/components/SideTabs';
|
|||||||
import Avatar from '@/components/Avatar';
|
import Avatar from '@/components/Avatar';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import PageContainer from '@/components/PageContainer';
|
import PageContainer from '@/components/PageContainer';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
import SimpleEdit from './components/SimpleEdit';
|
import SimpleEdit from './components/SimpleEdit';
|
||||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||||
import { useAppStore } from '@/web/core/app/store/useAppStore';
|
import { useAppStore } from '@/web/core/app/store/useAppStore';
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
import React, { useState, useRef, useCallback } from 'react';
|
import React, { useState, useRef, useCallback } from 'react';
|
||||||
import { Box, Flex, Card, Grid, Input } from '@chakra-ui/react';
|
import { Box, Flex, Grid } from '@chakra-ui/react';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
|
||||||
import { getShareModelList, triggerModelCollection } from '@/web/core/app/api';
|
import { getShareModelList, triggerModelCollection } from '@/web/core/app/api';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
|
||||||
import type { ShareAppItem } from '@/types/app';
|
import type { ShareAppItem } from '@/types/app';
|
||||||
import ShareModelList from './components/list';
|
import ShareModelList from './components/list';
|
||||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
|
|
||||||
const modelList = () => {
|
const modelList = () => {
|
||||||
const { Loading } = useLoading();
|
const { Loading } = useLoading();
|
||||||
|
@@ -20,8 +20,8 @@ import { useTranslation } from 'next-i18next';
|
|||||||
import { useConfirm } from '@/web/common/hooks/useConfirm';
|
import { useConfirm } from '@/web/common/hooks/useConfirm';
|
||||||
import Tabs from '@/components/Tabs';
|
import Tabs from '@/components/Tabs';
|
||||||
import { useUserStore } from '@/web/support/user/useUserStore';
|
import { useUserStore } from '@/web/support/user/useUserStore';
|
||||||
|
import { AppListItemType } from '@fastgpt/global/core/app/type';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { useAppStore } from '@/web/core/app/store/useAppStore';
|
|
||||||
import { TeamMemberRoleEnum } from '@fastgpt/global/support/user/team/constant';
|
import { TeamMemberRoleEnum } from '@fastgpt/global/support/user/team/constant';
|
||||||
|
|
||||||
type HistoryItemType = {
|
type HistoryItemType = {
|
||||||
@@ -41,6 +41,8 @@ const ChatHistorySlider = ({
|
|||||||
appName,
|
appName,
|
||||||
appAvatar,
|
appAvatar,
|
||||||
history,
|
history,
|
||||||
|
apps = [],
|
||||||
|
confirmClearText,
|
||||||
activeChatId,
|
activeChatId,
|
||||||
onChangeChat,
|
onChangeChat,
|
||||||
onDelHistory,
|
onDelHistory,
|
||||||
@@ -54,6 +56,8 @@ const ChatHistorySlider = ({
|
|||||||
appAvatar: string;
|
appAvatar: string;
|
||||||
history: HistoryItemType[];
|
history: HistoryItemType[];
|
||||||
activeChatId: string;
|
activeChatId: string;
|
||||||
|
apps?: AppListItemType[];
|
||||||
|
confirmClearText: string;
|
||||||
onChangeChat: (chatId?: string) => void;
|
onChangeChat: (chatId?: string) => void;
|
||||||
onDelHistory: (e: { chatId: string }) => void;
|
onDelHistory: (e: { chatId: string }) => void;
|
||||||
onClearHistory: () => void;
|
onClearHistory: () => void;
|
||||||
@@ -65,22 +69,18 @@ const ChatHistorySlider = ({
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { isPc } = useSystemStore();
|
const { isPc } = useSystemStore();
|
||||||
const { myApps, loadMyApps } = useAppStore();
|
|
||||||
const { userInfo } = useUserStore();
|
const { userInfo } = useUserStore();
|
||||||
|
|
||||||
const [currentTab, setCurrentTab] = useState<`${TabEnum}`>(TabEnum.history);
|
const [currentTab, setCurrentTab] = useState<`${TabEnum}`>(TabEnum.history);
|
||||||
|
|
||||||
const isShare = useMemo(() => !appId || !userInfo, [appId, userInfo]);
|
const showApps = apps?.length > 0;
|
||||||
|
|
||||||
// custom title edit
|
// custom title edit
|
||||||
const { onOpenModal, EditModal: EditTitleModal } = useEditTitle({
|
const { onOpenModal, EditModal: EditTitleModal } = useEditTitle({
|
||||||
title: t('core.chat.Custom History Title'),
|
title: t('core.chat.Custom History Title'),
|
||||||
placeholder: t('core.chat.Custom History Title Description')
|
placeholder: t('core.chat.Custom History Title Description')
|
||||||
});
|
});
|
||||||
const { openConfirm, ConfirmModal } = useConfirm({
|
const { openConfirm, ConfirmModal } = useConfirm({
|
||||||
content: isShare
|
content: confirmClearText
|
||||||
? t('core.chat.Confirm to clear share chat history')
|
|
||||||
: t('core.chat.Confirm to clear history')
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const concatHistory = useMemo<HistoryItemType[]>(
|
const concatHistory = useMemo<HistoryItemType[]>(
|
||||||
@@ -92,11 +92,11 @@ const ChatHistorySlider = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
useQuery(['init'], () => {
|
useQuery(['init'], () => {
|
||||||
if (isShare) {
|
if (!showApps) {
|
||||||
setCurrentTab(TabEnum.history);
|
setCurrentTab(TabEnum.history);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return loadMyApps(false);
|
return;
|
||||||
});
|
});
|
||||||
|
|
||||||
const canRouteToDetail = useMemo(
|
const canRouteToDetail = useMemo(
|
||||||
@@ -140,7 +140,7 @@ const ChatHistorySlider = ({
|
|||||||
|
|
||||||
{/* menu */}
|
{/* menu */}
|
||||||
<Flex w={'100%'} px={[2, 5]} h={'36px'} my={5} alignItems={'center'}>
|
<Flex w={'100%'} px={[2, 5]} h={'36px'} my={5} alignItems={'center'}>
|
||||||
{!isPc && !isShare && (
|
{!isPc && appId && (
|
||||||
<Tabs
|
<Tabs
|
||||||
w={'120px'}
|
w={'120px'}
|
||||||
mr={2}
|
mr={2}
|
||||||
@@ -165,7 +165,7 @@ const ChatHistorySlider = ({
|
|||||||
{t('core.chat.New Chat')}
|
{t('core.chat.New Chat')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{(isPc || isShare) && (
|
{(isPc || !showApps) && (
|
||||||
<IconButton
|
<IconButton
|
||||||
ml={3}
|
ml={3}
|
||||||
h={'100%'}
|
h={'100%'}
|
||||||
@@ -286,7 +286,8 @@ const ChatHistorySlider = ({
|
|||||||
)}
|
)}
|
||||||
{currentTab === TabEnum.app && !isPc && (
|
{currentTab === TabEnum.app && !isPc && (
|
||||||
<>
|
<>
|
||||||
{myApps.map((item) => (
|
{Array.isArray(apps) &&
|
||||||
|
apps.map((item) => (
|
||||||
<Flex
|
<Flex
|
||||||
key={item._id}
|
key={item._id}
|
||||||
py={2}
|
py={2}
|
||||||
|
@@ -15,7 +15,7 @@ import { useSystemStore } from '@/web/common/system/useSystemStore';
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { streamFetch } from '@/web/common/api/fetch';
|
import { streamFetch } from '@/web/common/api/fetch';
|
||||||
import { useChatStore } from '@/web/core/chat/storeChat';
|
import { useChatStore } from '@/web/core/chat/storeChat';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
import { customAlphabet } from 'nanoid';
|
import { customAlphabet } from 'nanoid';
|
||||||
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 12);
|
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 12);
|
||||||
@@ -277,6 +277,8 @@ const Chat = ({ appId, chatId }: { appId: string; chatId: string }) => {
|
|||||||
);
|
);
|
||||||
})(
|
})(
|
||||||
<ChatHistorySlider
|
<ChatHistorySlider
|
||||||
|
apps={myApps}
|
||||||
|
confirmClearText={t('core.chat.Confirm to clear history')}
|
||||||
appId={appId}
|
appId={appId}
|
||||||
appName={chatData.app.name}
|
appName={chatData.app.name}
|
||||||
appAvatar={chatData.app.avatar}
|
appAvatar={chatData.app.avatar}
|
||||||
|
@@ -298,6 +298,7 @@ const OutLink = ({
|
|||||||
<ChatHistorySlider
|
<ChatHistorySlider
|
||||||
appName={chatData.app.name}
|
appName={chatData.app.name}
|
||||||
appAvatar={chatData.app.avatar}
|
appAvatar={chatData.app.avatar}
|
||||||
|
confirmClearText={t('core.chat.Confirm to clear share chat history')}
|
||||||
activeChatId={chatId}
|
activeChatId={chatId}
|
||||||
history={histories.map((item) => ({
|
history={histories.map((item) => ({
|
||||||
id: item.chatId,
|
id: item.chatId,
|
||||||
|
@@ -85,7 +85,6 @@ const OutLink = ({
|
|||||||
onMessage: generatingMessage,
|
onMessage: generatingMessage,
|
||||||
abortCtrl: controller
|
abortCtrl: controller
|
||||||
});
|
});
|
||||||
console.log(responseData);
|
|
||||||
const newTitle =
|
const newTitle =
|
||||||
chatContentReplaceBlock(prompts[0].content).slice(0, 20) ||
|
chatContentReplaceBlock(prompts[0].content).slice(0, 20) ||
|
||||||
prompts[1]?.value?.slice(0, 20) ||
|
prompts[1]?.value?.slice(0, 20) ||
|
||||||
@@ -291,9 +290,11 @@ const OutLink = ({
|
|||||||
})(
|
})(
|
||||||
<ChatHistorySlider
|
<ChatHistorySlider
|
||||||
appId={appId}
|
appId={appId}
|
||||||
|
apps={myApps}
|
||||||
appName={chatData.app.name}
|
appName={chatData.app.name}
|
||||||
appAvatar={chatData.app.avatar}
|
appAvatar={chatData.app.avatar}
|
||||||
activeChatId={chatId}
|
activeChatId={chatId}
|
||||||
|
confirmClearText={t('core.chat.Confirm to clear history')}
|
||||||
onClose={onCloseSlider}
|
onClose={onCloseSlider}
|
||||||
history={histories.map((item, i) => ({
|
history={histories.map((item, i) => ({
|
||||||
id: item.chatId,
|
id: item.chatId,
|
||||||
|
@@ -32,9 +32,8 @@ import MyIcon from '@fastgpt/web/components/common/Icon';
|
|||||||
import MyInput from '@/components/MyInput';
|
import MyInput from '@/components/MyInput';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { useRequest } from '@/web/common/hooks/useRequest';
|
import { useRequest } from '@/web/common/hooks/useRequest';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import MyMenu from '@/components/MyMenu';
|
import MyMenu from '@/components/MyMenu';
|
||||||
import { useEditTitle } from '@/web/common/hooks/useEditTitle';
|
import { useEditTitle } from '@/web/common/hooks/useEditTitle';
|
||||||
@@ -64,6 +63,7 @@ import { DatasetSchemaType } from '@fastgpt/global/core/dataset/type';
|
|||||||
import { DatasetCollectionSyncResultEnum } from '@fastgpt/global/core/dataset/constants';
|
import { DatasetCollectionSyncResultEnum } from '@fastgpt/global/core/dataset/constants';
|
||||||
import MyBox from '@/components/common/MyBox';
|
import MyBox from '@/components/common/MyBox';
|
||||||
import { ImportDataSourceEnum } from './Import';
|
import { ImportDataSourceEnum } from './Import';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
|
||||||
const WebSiteConfigModal = dynamic(() => import('./Import/WebsiteConfig'), {});
|
const WebSiteConfigModal = dynamic(() => import('./Import/WebsiteConfig'), {});
|
||||||
const FileSourceSelector = dynamic(() => import('./Import/sourceSelector/FileSourceSelector'), {});
|
const FileSourceSelector = dynamic(() => import('./Import/sourceSelector/FileSourceSelector'), {});
|
||||||
|
@@ -15,7 +15,6 @@ import {
|
|||||||
DrawerContent,
|
DrawerContent,
|
||||||
useDisclosure
|
useDisclosure
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { usePagination } from '@/web/common/hooks/usePagination';
|
|
||||||
import {
|
import {
|
||||||
getDatasetDataList,
|
getDatasetDataList,
|
||||||
delOneDatasetDataById,
|
delOneDatasetDataById,
|
||||||
@@ -31,7 +30,7 @@ import { useTranslation } from 'next-i18next';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import MyInput from '@/components/MyInput';
|
import MyInput from '@/components/MyInput';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
import InputDataModal from '../components/InputDataModal';
|
import InputDataModal from '../components/InputDataModal';
|
||||||
import RawSourceBox from '@/components/core/dataset/RawSourceBox';
|
import RawSourceBox from '@/components/core/dataset/RawSourceBox';
|
||||||
import type { DatasetDataListItemType } from '@/global/core/dataset/type.d';
|
import type { DatasetDataListItemType } from '@/global/core/dataset/type.d';
|
||||||
@@ -48,6 +47,7 @@ import { formatTime2YMDHM } from '@fastgpt/global/common/string/time';
|
|||||||
import { formatFileSize } from '@fastgpt/global/common/file/tools';
|
import { formatFileSize } from '@fastgpt/global/common/file/tools';
|
||||||
import { getFileAndOpen } from '@/web/core/dataset/utils';
|
import { getFileAndOpen } from '@/web/core/dataset/utils';
|
||||||
import MyTooltip from '@/components/MyTooltip';
|
import MyTooltip from '@/components/MyTooltip';
|
||||||
|
import { usePagination } from '@fastgpt/web/hooks/usePagination';
|
||||||
|
|
||||||
const DataCard = () => {
|
const DataCard = () => {
|
||||||
const BoxRef = useRef<HTMLDivElement>(null);
|
const BoxRef = useRef<HTMLDivElement>(null);
|
||||||
|
@@ -7,7 +7,7 @@ import { useTranslation } from 'next-i18next';
|
|||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { Box, Button, Flex, Input, Textarea } from '@chakra-ui/react';
|
import { Box, Button, Flex, Input, Textarea } from '@chakra-ui/react';
|
||||||
import { getNanoid } from '@fastgpt/global/common/string/tools';
|
import { getNanoid } from '@fastgpt/global/common/string/tools';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
|
|
||||||
const DataProcess = dynamic(() => import('../commonProgress/DataProcess'), {
|
const DataProcess = dynamic(() => import('../commonProgress/DataProcess'), {
|
||||||
loading: () => <Loading fixed={false} />
|
loading: () => <Loading fixed={false} />
|
||||||
|
@@ -11,7 +11,7 @@ import MyIcon from '@fastgpt/web/components/common/Icon';
|
|||||||
import { LinkCollectionIcon } from '@fastgpt/global/core/dataset/constants';
|
import { LinkCollectionIcon } from '@fastgpt/global/core/dataset/constants';
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import { getDocPath } from '@/web/common/system/doc';
|
import { getDocPath } from '@/web/common/system/doc';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
|
|
||||||
const DataProcess = dynamic(() => import('../commonProgress/DataProcess'), {
|
const DataProcess = dynamic(() => import('../commonProgress/DataProcess'), {
|
||||||
loading: () => <Loading fixed={false} />
|
loading: () => <Loading fixed={false} />
|
||||||
|
@@ -18,7 +18,7 @@ import { useImportStore } from '../Provider';
|
|||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
|
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
|
|
||||||
const DataProcess = dynamic(() => import('../commonProgress/DataProcess'), {
|
const DataProcess = dynamic(() => import('../commonProgress/DataProcess'), {
|
||||||
loading: () => <Loading fixed={false} />
|
loading: () => <Loading fixed={false} />
|
||||||
|
@@ -13,10 +13,10 @@ import Avatar from '@/components/Avatar';
|
|||||||
import MyTooltip from '@/components/MyTooltip';
|
import MyTooltip from '@/components/MyTooltip';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import PermissionRadio from '@/components/support/permission/Radio';
|
import PermissionRadio from '@/components/support/permission/Radio';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||||
import { useRequest } from '@/web/common/hooks/useRequest';
|
import { useRequest } from '@/web/common/hooks/useRequest';
|
||||||
import { MongoImageTypeEnum } from '@fastgpt/global/common/file/image/constants';
|
import { MongoImageTypeEnum } from '@fastgpt/global/common/file/image/constants';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const Info = ({ datasetId }: { datasetId: string }) => {
|
const Info = ({ datasetId }: { datasetId: string }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@@ -33,7 +33,7 @@ import {
|
|||||||
} from '@fastgpt/global/core/dataset/constants';
|
} from '@fastgpt/global/core/dataset/constants';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import MySelect from '@/components/Select';
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
import { useSelectFile } from '@/web/common/file/hooks/useSelectFile';
|
import { useSelectFile } from '@/web/common/file/hooks/useSelectFile';
|
||||||
import { fileDownload } from '@/web/common/file/utils';
|
import { fileDownload } from '@/web/common/file/utils';
|
||||||
import { readCsvContent } from '@fastgpt/web/common/file/read/csv';
|
import { readCsvContent } from '@fastgpt/web/common/file/read/csv';
|
||||||
|
@@ -13,12 +13,12 @@ import MyTooltip from '@/components/MyTooltip';
|
|||||||
import MyModal from '@/components/MyModal';
|
import MyModal from '@/components/MyModal';
|
||||||
import { postCreateDataset } from '@/web/core/dataset/api';
|
import { postCreateDataset } from '@/web/core/dataset/api';
|
||||||
import type { CreateDatasetParams } from '@/global/core/dataset/api.d';
|
import type { CreateDatasetParams } from '@/global/core/dataset/api.d';
|
||||||
import MySelect from '@/components/Select';
|
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import MyRadio from '@/components/common/MyRadio';
|
import MyRadio from '@/components/common/MyRadio';
|
||||||
import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants';
|
import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants';
|
||||||
import { MongoImageTypeEnum } from '@fastgpt/global/common/file/image/constants';
|
import { MongoImageTypeEnum } from '@fastgpt/global/common/file/image/constants';
|
||||||
import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
import { QuestionOutlineIcon } from '@chakra-ui/icons';
|
||||||
|
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||||
|
|
||||||
const CreateModal = ({ onClose, parentId }: { onClose: () => void; parentId?: string }) => {
|
const CreateModal = ({ onClose, parentId }: { onClose: () => void; parentId?: string }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
|
|
||||||
const index = () => {
|
const index = () => {
|
||||||
|
@@ -9,7 +9,7 @@ import { useRouter } from 'next/router';
|
|||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
import FormLayout from './components/FormLayout';
|
import FormLayout from './components/FormLayout';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
loginSuccess: (e: ResLogin) => void;
|
loginSuccess: (e: ResLogin) => void;
|
||||||
|
@@ -7,7 +7,7 @@ import { useUserStore } from '@/web/support/user/useUserStore';
|
|||||||
import { clearToken, setToken } from '@/web/support/user/auth';
|
import { clearToken, setToken } from '@/web/support/user/auth';
|
||||||
import { postFastLogin } from '@/web/support/user/api';
|
import { postFastLogin } from '@/web/support/user/api';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { getErrText } from '@fastgpt/global/common/error/utils';
|
import { getErrText } from '@fastgpt/global/common/error/utils';
|
||||||
|
@@ -12,7 +12,7 @@ import { serviceSideProps } from '@/web/common/utils/i18n';
|
|||||||
import { clearToken, setToken } from '@/web/support/user/auth';
|
import { clearToken, setToken } from '@/web/support/user/auth';
|
||||||
import CommunityModal from '@/components/CommunityModal';
|
import CommunityModal from '@/components/CommunityModal';
|
||||||
import Script from 'next/script';
|
import Script from 'next/script';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
|
|
||||||
const RegisterForm = dynamic(() => import('./components/RegisterForm'));
|
const RegisterForm = dynamic(() => import('./components/RegisterForm'));
|
||||||
const ForgetPasswordForm = dynamic(() => import('./components/ForgetPasswordForm'));
|
const ForgetPasswordForm = dynamic(() => import('./components/ForgetPasswordForm'));
|
||||||
|
@@ -7,7 +7,7 @@ import { useUserStore } from '@/web/support/user/useUserStore';
|
|||||||
import { clearToken, setToken } from '@/web/support/user/auth';
|
import { clearToken, setToken } from '@/web/support/user/auth';
|
||||||
import { oauthLogin } from '@/web/support/user/api';
|
import { oauthLogin } from '@/web/support/user/api';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||||
import { getErrText } from '@fastgpt/global/common/error/utils';
|
import { getErrText } from '@fastgpt/global/common/error/utils';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
|
@@ -10,7 +10,7 @@ import { serviceSideProps } from '@/web/common/utils/i18n';
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { getOnePlugin } from '@/web/core/plugin/api';
|
import { getOnePlugin } from '@/web/core/plugin/api';
|
||||||
import { useToast } from '@fastgpt/web/hooks/useToast';
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
import Loading from '@/components/Loading';
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
||||||
import { getErrText } from '@fastgpt/global/common/error/utils';
|
import { getErrText } from '@fastgpt/global/common/error/utils';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { usePluginStore } from '@/web/core/plugin/store/plugin';
|
import { usePluginStore } from '@/web/core/plugin/store/plugin';
|
||||||
|
@@ -1,26 +1,16 @@
|
|||||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||||
import MyModal from '@/components/MyModal';
|
import MyModal from '@/components/MyModal';
|
||||||
import ParentPaths from '@/components/common/ParentPaths';
|
import ParentPaths from '@/components/common/ParentPaths';
|
||||||
import { useLoading } from '@/web/common/hooks/useLoading';
|
|
||||||
import { useRequest } from '@/web/common/hooks/useRequest';
|
import { useRequest } from '@/web/common/hooks/useRequest';
|
||||||
import { getDatasetCollectionPathById, getDatasetCollections } from '@/web/core/dataset/api';
|
import { getDatasetCollectionPathById, getDatasetCollections } from '@/web/core/dataset/api';
|
||||||
import { useDatasetStore } from '@/web/core/dataset/store/dataset';
|
import { useDatasetStore } from '@/web/core/dataset/store/dataset';
|
||||||
import {
|
import { Box, Flex, ModalFooter, Button, useTheme, Grid, Card, ModalBody } from '@chakra-ui/react';
|
||||||
Box,
|
|
||||||
Flex,
|
|
||||||
ModalFooter,
|
|
||||||
Button,
|
|
||||||
useTheme,
|
|
||||||
Grid,
|
|
||||||
Card,
|
|
||||||
Image,
|
|
||||||
ModalBody
|
|
||||||
} from '@chakra-ui/react';
|
|
||||||
import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants';
|
import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants';
|
||||||
import { getCollectionIcon } from '@fastgpt/global/core/dataset/utils';
|
import { getCollectionIcon } from '@fastgpt/global/core/dataset/utils';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import React, { useMemo, useState } from 'react';
|
import React, { useMemo, useState } from 'react';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
|
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||||
|
|
||||||
const SelectCollections = ({
|
const SelectCollections = ({
|
||||||
datasetId,
|
datasetId,
|
||||||
|
Reference in New Issue
Block a user