4.8.8 test fix (#2149)

* perf: code comment

* feat: system plugin input guide

* perf: variable avatar

* feat: feishu webhook

* perf: select tool config tip

* perf: rename variable

* fix: per inherit error

* perf: docker-compose oneapi version and i18n

* perf: ui tip bug

* fix: ts

* perf: pg log

* perf: editor color

* perf: update init
This commit is contained in:
Archer
2024-07-26 10:23:44 +08:00
committed by GitHub
parent 2d016b7462
commit cd554f573e
59 changed files with 1648 additions and 506 deletions

View File

@@ -89,7 +89,13 @@ export default function Editor({
}, [value, variables, variableLabels]);
return (
<Box position={'relative'} width={'full'} h={`${height}px`} cursor={'text'}>
<Box
position={'relative'}
width={'full'}
h={`${height}px`}
cursor={'text'}
color={'myGray.700'}
>
<LexicalComposer initialConfig={initialConfig} key={key}>
<PlainTextPlugin
contentEditable={

View File

@@ -1,36 +1,40 @@
import { FlowNodeTemplateTypeEnum } from '@fastgpt/global/core/workflow/constants';
import { NodeTemplateListType } from '@fastgpt/global/core/workflow/type/node';
import { TFunction } from 'next-i18next';
import { i18nT } from '../../i18n/utils';
export const workflowNodeTemplateList = (t: TFunction): NodeTemplateListType => [
export const workflowNodeTemplateList = [
{
type: FlowNodeTemplateTypeEnum.systemInput,
label: t('common:core.module.template.System input module'),
label: i18nT('common:core.module.template.System input module'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.ai,
label: t('common:core.module.template.AI function'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.tools,
label: t('common:core.module.template.Tool module'),
label: i18nT('common:core.module.template.AI function'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.search,
label: t('core.workflow.template.Search'),
label: i18nT('common:core.workflow.template.Search'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.multimodal,
label: t('core.workflow.template.Multimodal'),
label: i18nT('common:core.workflow.template.Multimodal'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.tools,
label: i18nT('common:core.module.template.Tool module'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.communication,
label: i18nT('app:workflow.template.communication'),
list: []
},
{
type: FlowNodeTemplateTypeEnum.other,
label: t('common:common.Other'),
label: i18nT('common:common.Other'),
list: []
},
{

View File

@@ -1,6 +1,7 @@
{
"Run": "Run",
"ai_settings": "AI Settings",
"all_apps": "All Apps",
"app": {
"modules": {
"click to update": "click to update",
@@ -52,6 +53,7 @@
"template": {
"simple_robot": "Simple Robot"
},
"tool_input_param_tip": "Configure related information before the plugin runs properly",
"transition_to_workflow": "Transition to workflow",
"transition_to_workflow_create_new_placeholder": "Create a new application instead of modifying the current one",
"transition_to_workflow_create_new_tip": "After converting to workflow, it will not be able to convert back to simple mode, please confirm!",
@@ -71,5 +73,11 @@
},
"version": {
"Revert success": "Revert success"
},
"workflow": {
"Input guide": "Input guide",
"template": {
"communication": "Communication"
}
}
}

View File

@@ -1,6 +1,5 @@
{
"App": "App",
"all_apps": "All Apps",
"click_to_resume": "Resume",
"code_editor": "Code edit",
"Export": "Export",

View File

@@ -1,6 +1,7 @@
{
"Run": "运行",
"ai_settings": "AI 配置",
"all_apps": "全部应用",
"app": {
"modules": {
"click to update": "点击更新",
@@ -52,6 +53,7 @@
"template": {
"simple_robot": "简易机器人"
},
"tool_input_param_tip": "该插件正常运行需要配置相关信息",
"transition_to_workflow": "转成工作流",
"transition_to_workflow_create_new_placeholder": "创建一个新的应用,而不是修改当前应用",
"transition_to_workflow_create_new_tip": "转化成工作流后,将无法转化回简易模式,请确认!",
@@ -71,5 +73,11 @@
},
"version": {
"Revert success": "回滚成功"
},
"workflow": {
"Input guide": "填写说明",
"template": {
"communication": "通信"
}
}
}

View File

@@ -1,6 +1,5 @@
{
"App": "应用",
"all_apps": "全部应用",
"click_to_resume": "点击恢复",
"code_editor": "代码编辑",
"Export": "导出",