mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
4.8.10 test (#2470)
* i18n * perf: invoice type * fix: helper line change error * perf: base64 image * perf: app list ui * perf: upload max size check * perf: init system plugin * perf: dataset list ui * perf: http node ui * perf: ui * perf: invoice tip * fix: ts * perf: invoice table * perf: null check
This commit is contained in:
@@ -49,8 +49,8 @@ export const HttpNode468: FlowNodeTemplateType = {
|
||||
renderTypeList: [FlowNodeInputTypeEnum.custom],
|
||||
valueType: WorkflowIOValueTypeEnum.number,
|
||||
label: '',
|
||||
value: 120,
|
||||
min: 30,
|
||||
value: 30,
|
||||
min: 5,
|
||||
max: 600,
|
||||
required: true
|
||||
},
|
||||
|
10
packages/global/support/user/team/type.d.ts
vendored
10
packages/global/support/user/team/type.d.ts
vendored
@@ -94,11 +94,11 @@ export type LafAccountType = {
|
||||
export type TeamInvoiceHeaderType = {
|
||||
teamName: string;
|
||||
unifiedCreditCode: string;
|
||||
companyAddress: string;
|
||||
companyPhone: string;
|
||||
bankName: string;
|
||||
bankAccount: string;
|
||||
needSpecialInvoice?: boolean;
|
||||
companyAddress?: string;
|
||||
companyPhone?: string;
|
||||
bankName?: string;
|
||||
bankAccount?: string;
|
||||
needSpecialInvoice: boolean;
|
||||
emailAddress: string;
|
||||
};
|
||||
|
||||
|
@@ -36,9 +36,10 @@ export type InvoiceType = {
|
||||
} & TeamInvoiceHeaderType;
|
||||
|
||||
export type InvoiceSchemaType = {
|
||||
teamId: string;
|
||||
_id: string;
|
||||
teamId: string;
|
||||
status: 1 | 2;
|
||||
createTime: Date;
|
||||
finishTime?: Date;
|
||||
file?: Buffer;
|
||||
} & InvoiceType;
|
||||
|
@@ -14,8 +14,12 @@ type FileType = {
|
||||
size: number;
|
||||
};
|
||||
|
||||
/*
|
||||
maxSize: File max size (MB)
|
||||
*/
|
||||
export const getUploadModel = ({ maxSize = 500 }: { maxSize?: number }) => {
|
||||
maxSize *= 1024 * 1024;
|
||||
|
||||
class UploadModel {
|
||||
uploader = multer({
|
||||
limits: {
|
||||
|
@@ -31,6 +31,7 @@ type HttpRequestProps = ModuleDispatchProps<{
|
||||
[NodeInputKeyEnum.httpParams]: PropsArrType[];
|
||||
[NodeInputKeyEnum.httpJsonBody]: string;
|
||||
[NodeInputKeyEnum.addInputParam]: Record<string, any>;
|
||||
[NodeInputKeyEnum.httpTimeout]?: number;
|
||||
[key: string]: any;
|
||||
}>;
|
||||
type HttpResponse = DispatchNodeResultType<{
|
||||
@@ -57,7 +58,7 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
|
||||
system_httpHeader: httpHeader,
|
||||
system_httpParams: httpParams = [],
|
||||
system_httpJsonBody: httpJsonBody,
|
||||
system_httpTimeout: httpTimeout,
|
||||
system_httpTimeout: httpTimeout = 60,
|
||||
[NodeInputKeyEnum.addInputParam]: dynamicInput,
|
||||
...body
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@
|
||||
"external_read_url": "External read url",
|
||||
"external_read_url_tip": "You can configure the reading address of your file library. This allows users to read and authenticate. You can currently use the {{fileId}} variable to refer to the external file ID.",
|
||||
"external_url": "File read url",
|
||||
"file_model_function_tip": "For enhanced indexing and QA generation",
|
||||
"filename": "filename",
|
||||
"folder_dataset": "Folder",
|
||||
"rebuild_embedding_start_tip": "The task of switching index models has begun",
|
||||
|
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"bill": {
|
||||
"not_need_invoice": "Balance payment, unable to issue invoice"
|
||||
},
|
||||
"bind_inform_account_error": "Abnormal binding notification account",
|
||||
"bind_inform_account_success": "Binding notification account successful",
|
||||
"code_error": {
|
||||
|
@@ -617,8 +617,7 @@
|
||||
"success": "开始同步"
|
||||
}
|
||||
},
|
||||
"training": {
|
||||
}
|
||||
"training": {}
|
||||
},
|
||||
"data": {
|
||||
"Auxiliary Data": "辅助数据",
|
||||
|
@@ -20,6 +20,7 @@
|
||||
"external_read_url": "外部预览地址",
|
||||
"external_read_url_tip": "可以配置你文件库的阅读地址。便于对用户进行阅读鉴权操作。目前可以使用 {{fileId}} 变量来指代外部文件 ID。",
|
||||
"external_url": "文件访问 URL",
|
||||
"file_model_function_tip": "用于增强索引和 QA 生成",
|
||||
"filename": "文件名",
|
||||
"folder_dataset": "文件夹",
|
||||
"rebuild_embedding_start_tip": "切换索引模型任务已开始",
|
||||
|
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"bill": {
|
||||
"not_need_invoice": "余额支付,无法开票"
|
||||
},
|
||||
"bind_inform_account_error": "绑定通知账号异常",
|
||||
"bind_inform_account_success": "绑定通知账号成功",
|
||||
"delete": {
|
||||
|
Reference in New Issue
Block a user