Skip to content

Commit e6148d1

Browse files
committed
feat(emdeded): embedded managemant
1 parent 7e6f4d3 commit e6148d1

27 files changed

+1436
-42
lines changed
2.75 KB
Loading
Lines changed: 8 additions & 0 deletions
Loading
1.11 KB
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
992 Bytes
Loading

frontend/src/components/layout/Person.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const logout = () => {
7171
</script>
7272

7373
<template>
74-
<el-popover popper-class="system-person" :placement="collapse ? 'right' : 'top'">
74+
<el-popover trigger="click" popper-class="system-person" :placement="collapse ? 'right' : 'top'">
7575
<template #reference>
7676
<button class="person" :class="collapse && 'collapse'">
7777
<img class="default-avatar" :src="Default_avatar" width="32px" height="32px" />
@@ -82,8 +82,8 @@ const logout = () => {
8282
<div class="popover-content">
8383
<div class="info">
8484
<img :src="Default_avatar" width="40px" height="40px" />
85-
<div class="top">{{ name }}</div>
86-
<div class="bottom">{{ account }}</div>
85+
<div :title="name" class="top ellipsis">{{ name }}</div>
86+
<div :title="account" class="bottom ellipsis">{{ account }}</div>
8787
</div>
8888
<div v-if="isAdmin && !inSysmenu" class="popover-item" @click="toSystem">
8989
<el-icon size="16">

frontend/src/components/layout/Workspace.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ onMounted(async () => {
6666
</script>
6767

6868
<template>
69-
<el-popover popper-class="system-workspace" :placement="collapse ? 'right' : 'bottom'">
69+
<el-popover
70+
trigger="click"
71+
popper-class="system-workspace"
72+
:placement="collapse ? 'right' : 'bottom'"
73+
>
7074
<template #reference>
7175
<button class="workspace" :class="collapse && 'collapse'">
7276
<el-icon size="16">

frontend/src/i18n/en.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
}
199199
},
200200
"datasource": {
201+
"data_source_yet": "No data source yet",
201202
"search_by_name": "Search by Name",
202203
"search": "Search",
203204
"all_types": "All types",
@@ -391,6 +392,41 @@
391392
"filter_in": "Belongs to",
392393
"filter_not_in": "Does not belong to"
393394
},
395+
"embedded": {
396+
"embedded_management": "Embedded management",
397+
"embedded_assistant": "Embedded assistant",
398+
"embedded_page": "Embedded page",
399+
"no_application": "No application",
400+
"create_application": "Create application",
401+
"basic_application": "Basic application",
402+
"advanced_application": "Advanced application",
403+
"embed_third_party": "Embed third party",
404+
"support_is_required": "Applicable to scenarios where data verification is not required, just embed the embedded code into the third party code, no additional support is required",
405+
"data_permissions_etc": "Applicable to scenarios where data verification is required, requiring the third party system to provide data source interface, user interface data permissions, etc.",
406+
"create_basic_application": "Create basic application",
407+
"set_data_source": "Set data source",
408+
"basic_information": "Basic information",
409+
"application_name": "Application name",
410+
"application_description": "Application description",
411+
"cross_domain_settings": "Cross-domain settings",
412+
"third_party_address": "Please enter the embedded third party address",
413+
"set_to_private": "Set to private",
414+
"set_to_public": "Set to public",
415+
"public": "Public",
416+
"private": "Private",
417+
"creating_advanced_applications": "Creating Advanced Applications",
418+
"configure_interface": "Configure interface",
419+
"interface_url": "Interface URL",
420+
"credential_acquisition_method": "Credential acquisition method",
421+
"table_notes": "Table notes",
422+
"system_credential_type": "Source system credential type",
423+
"credential_name": "Credential name",
424+
"target_credential_location": "Target credential location",
425+
"target_credential_name": "Target credential name",
426+
"target_credential": "Target credential",
427+
"edit_advanced_applications": "Edit advanced applications",
428+
"edit_basic_applications": "Edit basic applications"
429+
},
394430
"chat": {
395431
"type": "Chart Type",
396432
"chart_type": {
@@ -435,4 +471,4 @@
435471
"back_community": "Restore to Community Edition",
436472
"confirm_tips": "Are you sure to restore to Community Edition?"
437473
}
438-
}
474+
}

frontend/src/i18n/zh-CN.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
}
202202
},
203203
"datasource": {
204+
"data_source_yet": "暂无数据源",
204205
"search_by_name": "通过名称搜索",
205206
"search": "搜索",
206207
"all_types": "全部类型",
@@ -403,6 +404,41 @@
403404
"filter_in": "属于",
404405
"filter_not_in": "不属于"
405406
},
407+
"embedded": {
408+
"embedded_management": "嵌入式管理",
409+
"embedded_assistant": "小助手嵌入",
410+
"embedded_page": "页面嵌入",
411+
"no_application": "暂无应用",
412+
"create_application": "创建应用",
413+
"basic_application": "基础应用",
414+
"advanced_application": "高级应用",
415+
"embed_third_party": "嵌入第三方",
416+
"support_is_required": "适用于无需数据校验的场景,只需将嵌入式代码内嵌到第三方的代码中,无需做额外的支持",
417+
"data_permissions_etc": "适用于需要数据校验的场景,需要第三方系统提供数据源接口、用户接口数据权限等",
418+
"create_basic_application": "创建基础应用",
419+
"set_data_source": "设置数据源",
420+
"basic_information": "基础信息",
421+
"application_name": "应用名称",
422+
"application_description": "应用描述",
423+
"cross_domain_settings": "跨域设置",
424+
"third_party_address": "请输入嵌入的第三方地址",
425+
"set_to_private": "设为私有",
426+
"set_to_public": "设为公共",
427+
"public": "公共",
428+
"private": "私有",
429+
"configure_interface": "配置接口",
430+
"interface_url": "接口 URL",
431+
"creating_advanced_applications": "创建高级应用",
432+
"credential_acquisition_method": "凭证获取方式",
433+
"table_notes": "表备注",
434+
"system_credential_type": "源系统凭证类型",
435+
"credential_name": "凭证名称",
436+
"target_credential_location": "目标凭证位置",
437+
"target_credential_name": "目标凭证名称",
438+
"target_credential": "目标凭证",
439+
"edit_advanced_applications": "编辑高级应用",
440+
"edit_basic_applications": "编辑基础应用"
441+
},
406442
"chat": {
407443
"type": "图表类型",
408444
"chart_type": {
@@ -447,4 +483,4 @@
447483
"back_community": "还原至社区版",
448484
"confirm_tips": "确定还原至社区版?"
449485
}
450-
}
486+
}

0 commit comments

Comments
 (0)