Skip to content

Commit 078bb41

Browse files
feat: style
1 parent 14eea7d commit 078bb41

File tree

41 files changed

+623
-563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+623
-563
lines changed

ui/src/api/system-resource-management/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const putTool: (tool_id: string, data: toolData, loading?: Ref<boolean>) => Prom
5454
* 获取工具详情
5555
* @param tool_id 工具id
5656
* @param loading 加载器
57-
* @returns 函数详情
57+
* @returns 工具详情
5858
*/
5959
const getToolById: (tool_id: string, loading?: Ref<boolean>) => Promise<Result<any>> = (
6060
tool_id,

ui/src/api/system-shared/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const putTool: (tool_id: string, data: toolData, loading?: Ref<boolean>) => Prom
6262
* 获取工具详情
6363
* @param tool_id 工具id
6464
* @param loading 加载器
65-
* @returns 函数详情
65+
* @returns 工具详情
6666
*/
6767
const getToolById: (tool_id: string, loading?: Ref<boolean>) => Promise<Result<any>> = (
6868
tool_id,

ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
</div>
406406
</template>
407407

408-
<!-- 函数库 -->
408+
<!-- 工具库 -->
409409
<template
410410
v-if="
411411
item.type === WorkflowType.ToolLib || item.type === WorkflowType.ToolLibCustom

ui/src/components/folder-tree/index.vue

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@
77
clearable
88
class="p-8"
99
/>
10-
<div
11-
@click="handleSharedNodeClick"
12-
v-if="showShared && hasPermission(EditionConst.IS_EE, 'OR')"
13-
class="shared-button flex cursor"
14-
:class="currentNodeKey === 'share' && 'active'"
15-
>
16-
<AppIcon iconName="app-shared-active" style="font-size: 18px" class="color-primary"></AppIcon>
17-
<span class="ml-8 lighter">{{ shareTitle }}</span>
18-
</div>
19-
<div class="tree-height border-t" :style="treeStyle">
10+
<div class="tree-height" :style="treeStyle">
11+
<div
12+
@click="handleSharedNodeClick"
13+
v-if="showShared && hasPermission(EditionConst.IS_EE, 'OR')"
14+
class="shared-button flex cursor border-b"
15+
:class="currentNodeKey === 'share' && 'active'"
16+
>
17+
<AppIcon
18+
iconName="app-shared-active"
19+
style="font-size: 18px"
20+
class="color-primary"
21+
></AppIcon>
22+
<span class="ml-8 lighter">{{ shareTitle }}</span>
23+
</div>
2024
<el-scrollbar>
2125
<el-tree
2226
ref="treeRef"
@@ -62,7 +66,8 @@
6266
<AppIcon iconName="app-add-folder"></AppIcon>
6367
{{ $t('components.folder.addChildFolder') }}
6468
</el-dropdown-item>
65-
<el-dropdown-item @click.stop="openEditFolder(data)"
69+
<el-dropdown-item
70+
@click.stop="openEditFolder(data)"
6671
v-if="permissionPrecise.folderEdit()"
6772
>
6873
<el-icon><EditPen /></el-icon>
@@ -270,7 +275,7 @@ function refreshFolder() {
270275
}
271276
.tree-height {
272277
padding-top: 4px;
273-
height: calc(100vh - 175px);
278+
height: calc(100vh - 210px);
274279
}
275280
}
276281
:deep(.overflow-inherit_node__children) {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import tool from './tool'
55
import document from './document'
66
import system from './system'
77
import userManage from './user-manage'
8-
import resourceAuthorization from './resource-authorization'
98
import role from './role'
109
import workspace from './workspace'
1110
import application from './application'
@@ -25,7 +24,6 @@ export default {
2524
document,
2625
system,
2726
userManage,
28-
resourceAuthorization,
2927
role,
3028
workspace,
3129
application,

ui/src/locales/lang/en-US/views/resource-authorization.ts

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ export default {
55
shared_model: 'Shared Model',
66
shared_knowledge: 'Shared Knowledge',
77
authorized_workspace: 'Authorize Workspace',
8+
authorized_tip: ' ',
9+
select_workspace: 'Select Workspace',
10+
allCheck: 'Select All',
11+
BLACK_LIST: 'Black List',
12+
WHITE_LIST: 'White List',
13+
type: 'Type',
814
}

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,20 @@ export default {
109109
enableSSL: 'Enable SSL (if the SMTP port is 465, you usually need to enable SSL)',
110110
enableTLS: 'Enable TLS (if the SMTP port is 587, you usually need to enable TLS)',
111111
},
112+
resourceAuthorization: {
113+
title: 'Resource Authorization',
114+
member: 'Member',
115+
permissionSetting: 'Permission Setting',
116+
setting: {
117+
management: ' management',
118+
check: 'check',
119+
authorization: 'authorization',
120+
},
121+
priority: {
122+
label: 'Resource permission priority',
123+
role: 'Role',
124+
},
125+
},
112126
resource_management: {
113127
label: 'Resource Management',
114128
type: 'Type',

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
notRecyclable: '不可循环连线',
3131
onlyLeft: '只允许连接左边的锚点',
3232
applicationNodeError: '该应用不可用',
33-
toolNodeError: '该函数不可用',
33+
toolNodeError: '该工具不可用',
3434
repeatedNodeError: '节点名称已存在!',
3535
cannotCopy: '不能被复制',
3636
copyError: '已复制节点',
@@ -278,7 +278,7 @@ export default {
278278
},
279279
},
280280
toolNode: {
281-
label: '自定义函数',
281+
label: '自定义工具',
282282
text: '通过执行自定义脚本,实现数据处理',
283283
},
284284
applicationNode: {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import tool from './tool'
55
import document from './document'
66
import system from './system'
77
import userManage from './user-manage'
8-
import resourceAuthorization from './resource-authorization'
98
import role from './role'
109
import workspace from './workspace'
1110
import application from './application'
@@ -25,7 +24,6 @@ export default {
2524
document,
2625
system,
2726
userManage,
28-
resourceAuthorization,
2927
role,
3028
workspace,
3129
application,

0 commit comments

Comments
 (0)