Skip to content

Commit 75b31ec

Browse files
feat: tool
1 parent 6b02e5f commit 75b31ec

File tree

20 files changed

+396
-450
lines changed

20 files changed

+396
-450
lines changed

ui/src/locales/lang/en-US/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default {
4848
},
4949
status: {
5050
label: 'Status',
51+
disable: 'Disable',
5152
enabled: 'Enabled',
5253
disabled: 'Disabled',
5354
enableSuccess: 'Successful',

ui/src/locales/lang/en-US/views/function-lib.ts

Lines changed: 0 additions & 79 deletions
This file was deleted.

ui/src/locales/lang/en-US/views/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import application from './application'
33
import applicationOverview from './application-overview'
44
import dataset from './dataset'
55
import system from './system'
6-
import functionLib from './function-lib'
6+
import tool from './tool'
77
import user from './user'
88
import team from './team'
99
import model from './model'
@@ -19,7 +19,7 @@ export default {
1919
application,
2020
applicationOverview,
2121
system,
22-
functionLib,
22+
tool,
2323
user,
2424
team,
2525
model,
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
export default {
2+
title: 'Tool',
3+
internalTitle: 'Internal Tool',
4+
added: 'Added',
5+
createTool: 'Create Tool',
6+
editTool: 'Edit Tool',
7+
copyTool: 'Copy Tool',
8+
importTool: 'Import Tool',
9+
searchBar: {
10+
placeholder: 'Search by tool name',
11+
},
12+
tip: {
13+
saveMessage: 'Unsaved changes will be lost. Are you sure you want to exit?',
14+
},
15+
delete: {
16+
confirmTitle: 'Confirm deletion of tool:',
17+
confirmMessage:
18+
'Deleting this tool will cause errors in APP that reference it when they are queried. Please proceed with caution.',
19+
},
20+
disabled: {
21+
confirmTitle: 'Confirm disable tool:',
22+
confirmMessage:
23+
'Disabling this tool will cause errors in APP that reference it when they are queried. Please proceed with caution.',
24+
},
25+
26+
form: {
27+
toolName: {
28+
label: 'Name',
29+
placeholder: 'Please enter the tool name',
30+
requiredMessage: 'Please enter the tool name',
31+
},
32+
toolDescription: {
33+
label: 'Description',
34+
placeholder: 'Please enter a description of the tool',
35+
},
36+
paramName: {
37+
label: 'Parameter Name',
38+
placeholder: 'Please enter the parameter name',
39+
requiredMessage: 'Please enter the parameter name',
40+
},
41+
dataType: {
42+
label: 'Data Type',
43+
},
44+
source: {
45+
label: 'Source',
46+
custom: 'Custom',
47+
reference: 'Reference Parameter',
48+
},
49+
required: {
50+
label: 'Required',
51+
},
52+
param: {
53+
paramInfo1: 'Displayed when using the tool',
54+
paramInfo2: 'Not displayed when using the tool',
55+
code: 'Content (Python)',
56+
selectPlaceholder: 'Please select parameter',
57+
inputPlaceholder: 'Please enter parameter values',
58+
},
59+
debug: {
60+
run: 'Run',
61+
output: 'Output',
62+
runResult: 'Run Result',
63+
runSuccess: 'Successful',
64+
runFailed: 'Run Failed',
65+
},
66+
},
67+
}

ui/src/locales/lang/zh-CN/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default {
5252
},
5353
status: {
5454
label: '状态',
55+
disable: '禁用',
5556
enabled: '已启用',
5657
disabled: '已禁用',
5758
enableSuccess: '启用成功',

ui/src/locales/lang/zh-CN/views/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import tool from './tool'
77
// import applicationOverview from './application-overview'
88

99
// import system from './system'
10-
// import functionLib from './function-lib'
1110
// import user from './user'
1211
// import team from './team'
1312

@@ -27,7 +26,6 @@ export default {
2726
// application,
2827
// applicationOverview,
2928
// system,
30-
// functionLib,
3129
// user,
3230
// team,
3331
// document,
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
11
export default {
22
title: '工具',
3+
createTool: '创建工具',
4+
editTool: '编辑工具',
5+
disabled: {
6+
confirmTitle: '是否禁用工具:',
7+
confirmMessage: '禁用后,引用了该工具的应用提问时会报错 ,请谨慎操作。',
8+
},
9+
form: {
10+
toolName: {
11+
label: '名称',
12+
name: '工具名称',
13+
placeholder: '请输入工具名称',
14+
requiredMessage: '请输入工具名称',
15+
},
16+
toolDescription: {
17+
label: '描述',
18+
placeholder: '请输入工具的描述',
19+
},
20+
paramName: {
21+
label: '参数名',
22+
placeholder: '请输入参数名',
23+
requiredMessage: '请输入参数名',
24+
},
25+
dataType: {
26+
label: '数据类型',
27+
},
28+
source: {
29+
label: '来源',
30+
custom: '自定义',
31+
reference: '引用参数',
32+
},
33+
required: {
34+
label: '是否必填',
35+
},
36+
param: {
37+
paramInfo1: '使用工具时显示',
38+
paramInfo2: '使用工具时不显示',
39+
code: '工具内容(Python)',
40+
selectPlaceholder: '请选择参数',
41+
inputPlaceholder: '请输入参数值',
42+
},
43+
debug: {
44+
run: '运行',
45+
output: '输出',
46+
runResult: '运行结果',
47+
runSuccess: '运行成功',
48+
runFailed: '运行失败',
49+
},
50+
},
351
}

ui/src/locales/lang/zh-Hant/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default {
4848
},
4949
status: {
5050
label: '狀態',
51+
disable: '停用',
5152
enabled: '已啟用',
5253
disabled: '已停用',
5354
enableSuccess: '啟用成功',

ui/src/locales/lang/zh-Hant/views/function-lib.ts

Lines changed: 0 additions & 77 deletions
This file was deleted.

ui/src/locales/lang/zh-Hant/views/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import application from './application'
33
import applicationOverview from './application-overview'
44
import dataset from './dataset'
55
import system from './system'
6-
import functionLib from './function-lib'
6+
import tool from './tool'
77
import user from './user'
88
import team from './team'
99
import model from './model'
@@ -19,7 +19,7 @@ export default {
1919
application,
2020
applicationOverview,
2121
system,
22-
functionLib,
22+
tool,
2323
user,
2424
team,
2525
model,

0 commit comments

Comments
 (0)