balibabu
commited on
Commit
·
ebd60e1
1
Parent(s):
0109a6b
feat: Add tip to loop of ExeSQL #1739 (#1983)
Browse files### What problem does this PR solve?
feat: Add tip to loop of ExeSQL #1739
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/assets/svg/exesql.svg
CHANGED
|
|
web/src/locales/en.ts
CHANGED
@@ -591,6 +591,8 @@ The above is the content you need to summarize.`,
|
|
591 |
messageMsg: 'Please input message or delete this field.',
|
592 |
addField: 'Add field',
|
593 |
loop: 'Loop',
|
|
|
|
|
594 |
yes: 'Yes',
|
595 |
no: 'No',
|
596 |
key: 'key',
|
|
|
591 |
messageMsg: 'Please input message or delete this field.',
|
592 |
addField: 'Add field',
|
593 |
loop: 'Loop',
|
594 |
+
loopTip:
|
595 |
+
'Loop is the upper limit of the number of loops of the current component, when the number of loops exceeds the value of loop, it means that the component can not complete the current task, please re-optimize agent',
|
596 |
yes: 'Yes',
|
597 |
no: 'No',
|
598 |
key: 'key',
|
web/src/locales/zh-traditional.ts
CHANGED
@@ -551,6 +551,8 @@ export default {
|
|
551 |
messageMsg: '請輸入訊息或刪除此欄位。',
|
552 |
addField: '新增字段',
|
553 |
loop: '循環上限',
|
|
|
|
|
554 |
yes: '是',
|
555 |
no: '否',
|
556 |
key: 'key',
|
|
|
551 |
messageMsg: '請輸入訊息或刪除此欄位。',
|
552 |
addField: '新增字段',
|
553 |
loop: '循環上限',
|
554 |
+
loopTip:
|
555 |
+
'loop為目前元件循環次數上限,當循環次數超過loop的值時,表示元件無法完成目前任務,請重新最佳化agent',
|
556 |
yes: '是',
|
557 |
no: '否',
|
558 |
key: 'key',
|
web/src/locales/zh.ts
CHANGED
@@ -570,6 +570,8 @@ export default {
|
|
570 |
messageMsg: '请输入消息或删除此字段。',
|
571 |
addField: '新增字段',
|
572 |
loop: '循环上限',
|
|
|
|
|
573 |
yes: '是',
|
574 |
no: '否',
|
575 |
key: 'key',
|
|
|
570 |
messageMsg: '请输入消息或删除此字段。',
|
571 |
addField: '新增字段',
|
572 |
loop: '循环上限',
|
573 |
+
loopTip:
|
574 |
+
'loop为当前组件循环次数上限,当循环次数超过loop的值时,说明组件不能完成当前任务,请重新优化agent',
|
575 |
yes: '是',
|
576 |
no: '否',
|
577 |
key: 'key',
|
web/src/pages/flow/constant.tsx
CHANGED
@@ -163,13 +163,21 @@ export const operatorMap = {
|
|
163 |
[Operator.Google]: {
|
164 |
backgroundColor: 'pink',
|
165 |
},
|
166 |
-
[Operator.Bing]: {
|
167 |
-
|
168 |
-
|
169 |
-
[Operator.
|
170 |
-
|
171 |
-
|
172 |
-
[Operator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
};
|
174 |
|
175 |
export const componentMenuList = [
|
|
|
163 |
[Operator.Google]: {
|
164 |
backgroundColor: 'pink',
|
165 |
},
|
166 |
+
[Operator.Bing]: {
|
167 |
+
backgroundColor: '#c0dcc4',
|
168 |
+
},
|
169 |
+
[Operator.GoogleScholar]: {
|
170 |
+
backgroundColor: '#b4e4f6',
|
171 |
+
},
|
172 |
+
[Operator.DeepL]: {
|
173 |
+
backgroundColor: '#f5e8e6',
|
174 |
+
},
|
175 |
+
[Operator.GitHub]: {
|
176 |
+
backgroundColor: '#c7c7f8',
|
177 |
+
},
|
178 |
+
[Operator.BaiduFanyi]: { backgroundColor: '#e5f2d3' },
|
179 |
+
[Operator.QWeather]: { backgroundColor: '#a4bbf3' },
|
180 |
+
[Operator.ExeSQL]: { backgroundColor: '#b9efe8' },
|
181 |
};
|
182 |
|
183 |
export const componentMenuList = [
|
web/src/pages/flow/exesql-form/index.tsx
CHANGED
@@ -50,7 +50,12 @@ const ExeSQLForm = ({ onValuesChange, form }: IOperatorForm) => {
|
|
50 |
>
|
51 |
<Input.Password></Input.Password>
|
52 |
</Form.Item>
|
53 |
-
<Form.Item
|
|
|
|
|
|
|
|
|
|
|
54 |
<InputNumber></InputNumber>
|
55 |
</Form.Item>
|
56 |
<TopNItem initialValue={30} max={100000}></TopNItem>
|
|
|
50 |
>
|
51 |
<Input.Password></Input.Password>
|
52 |
</Form.Item>
|
53 |
+
<Form.Item
|
54 |
+
label={t('loop')}
|
55 |
+
name={'loop'}
|
56 |
+
tooltip={t('loopTip')}
|
57 |
+
rules={[{ required: true }]}
|
58 |
+
>
|
59 |
<InputNumber></InputNumber>
|
60 |
</Form.Item>
|
61 |
<TopNItem initialValue={30} max={100000}></TopNItem>
|