diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue
index 4b7681e9aa7236090fdb9f6c3d901d462448a091..71a761a57488a9474a232a77ba091db61c4dcef4 100644
--- a/src/components/Upload/index.vue
+++ b/src/components/Upload/index.vue
@@ -234,12 +234,16 @@ watch(
@@ -275,11 +279,11 @@ watch(
-
接口路径
+
{{$t('semantic.interface_path')}}
{{ item.path }}
-
接口描述
+
{{$t('semantic.interface_description')}}
{{ item.description }}
@@ -288,17 +292,17 @@ watch(
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index 9cdc45e7f3b9af4e5edf60aee932f63a695da79a..5573af9687483762fcc95bf26294466c4f96a3d9 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -8,10 +8,41 @@ export default {
collect: 'Collect',
like: 'Like',
},
+ menu:{
+ dialogue:'Dialogue',
+ semantic_center:'Semantic Center',
+ app_center:'App Center',
+ sql:'witchainD',
+ },
+ semantic:{
+ semantic_interface_center:'Semantic interface center',
+ all_select:'All',
+ interface_name:'Interface name',
+ interface_introduction:'Interface introduction',
+ username:'Username',
+ interface_search:'Search',
+ interface_upload:'Upload',
+ all_interface:'All interface',
+ my_upload:'My upload',
+ my_favorite:'My favorite',
+ interface_edit:'Edit',
+ interface_delete:'Delete',
+ no_data:'No data',
+ upload_semantic_interface:'Upload Semantic Interface',
+ edit_semantic_interface:'Edit Semantic Interface',
+ view_semantic_interface:'View Semantic Interface',
+ choose_file:"Choose file",
+ tip1:'Drag the file here or',
+ tip2:'Format: YAML, size < 2M',
+ cancel:'Cancel',
+ submit:'Submit',
+ edit:"Edit",
+ analyze:'Analyze',
+ },
main: {
describe1:"Hi! I'm",
describe2:", and I'm happy to be of service.",
- left_describe:"热门应用",
+ left_describe:"Popular Apps",
os_knowledge: 'CVE热修复智能助手',
os_knowledge_describe: 'CVE热修复',
openEuler_expertise: '智能诊断智能助手',
@@ -22,9 +53,9 @@ export default {
openEuler_use_cases_describe: 'AI容器栈',
command_generation:'Command Generation',
command_generation_describe:'Need help crafting the perfect shell command? I can generate single or complex commands for you.',
- question:"推荐问题",
+ question:"Recommendation qustions",
smart_shell_describe:'Experience the future of OSs with our smart shell! Use natural language to diagnose and optimize your system.',
- try_app:"进入应用中心",
+ try_app:"Enter the App Center",
refresh:"Refresh",
query_interpretation:"Query Interpretation",
Automatic:"Automatic",
@@ -68,6 +99,7 @@ export default {
collapse: "Collapse",
no_chat_history: "No chat history available.", // 假设需要一个字段来表示没有历史对话的情况
expand: "Expand", // 假设界面中有展开历史对话的功能
+ myApp:"My Apps",
},
feedback:{
feedbackSuccesful:"Feedback succeeded.",
diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts
index 402b6f4ca342dc0920e36c42ed53f7dd045c1a7a..885081047c80c8c64ac4abbbb6105c8d3932f734 100644
--- a/src/i18n/lang/zh-cn.ts
+++ b/src/i18n/lang/zh-cn.ts
@@ -8,6 +8,39 @@ export default {
collect: '收藏',
like: '喜欢',
},
+ menu:{
+ dialogue:'对话',
+ semantic_center:'语义中心',
+ app_center:'应用中心',
+ sql:'知识库',
+ },
+ semantic:{
+ semantic_interface_center:'语义接口中心',
+ all_select:'全部',
+ interface_name:'接口名称',
+ interface_introduction:'接口简介',
+ username:'用户名称',
+ interface_search:'搜索',
+ interface_upload:'上传',
+ all_interface:'全部接口',
+ my_upload:'我的上传',
+ my_favorite:'我的收藏',
+ interface_edit:'编辑',
+ interface_delete:'删除',
+ no_data:'暂无数据',
+ upload_semantic_interface:'上传语义接口',
+ edit_semantic_interface:'编辑语义接口',
+ view_semantic_interface:'查看语义接口',
+ choose_file:"选择文件",
+ tip1:'将文件拖拽到此处 或',
+ tip2:'格式: YAML, 大小 < 2M',
+ interface_path:"接口路径",
+ interface_description:"接口描述",
+ cancel:'取消',
+ submit:'确定',
+ edit:"编辑",
+ analyze:'解析',
+ },
main: {
describe1: '你好,我是',
describe2: ',很高兴为你服务',
@@ -68,6 +101,7 @@ export default {
collapse: "收起",
no_chat_history: "暂无历史对话",
expand: "展开",
+ myApp:"我的应用",
},
feedback: {
feedbackSuccesful: "反馈成功",
diff --git a/src/views/api/index.vue b/src/views/api/index.vue
index 9e080ecf49c66fb81c95e26cbb3725c82a4a4334..32697df271d440000ec4f67df47ae8f21c71dc11 100644
--- a/src/views/api/index.vue
+++ b/src/views/api/index.vue
@@ -1,37 +1,37 @@
-
语义接口中心
+
{{$t('semantic.semantic_interface_center')}}
-
+
-
-
-
-
+
+
+
+
- 上传
+ {{$t('semantic.interface_upload')}}
- 全部接口
+ {{$t('semantic.all_interface')}}
- 我的上传
+ {{$t('semantic.my_upload')}}
- 我的收藏
+ {{$t('semantic.my_favorite')}}
@@ -63,15 +63,15 @@
@{{ apiItem.author }}
- 编辑
- 删除
+ {{$t('semantic.interface_edit')}}
+ {{$t('semantic.interface_delete')}}
-
暂无数据
+
{{$t('semantic.no_data')}}
@@ -124,6 +124,7 @@ import { successMsg } from 'src/components/Message';
import { useAccountStore } from 'src/store';
import { storeToRefs } from 'pinia';
import * as jsYaml from 'js-yaml';
+import i18n from 'src/i18n';
const apiList = ref();
const drawer = ref(false);
@@ -178,15 +179,15 @@ const openSidebar = (action: string, id: string) => {
actions.value = action;
if (action === 'upload') {
// 展示上传的框架
- actionName.value = '上传语义接口';
+ actionName.value = i18n.global.t('semantic.upload_semantic_interface');
} else if (action === 'edit') {
// 展示编辑的框架
- actionName.value = '编辑语义接口';
+ actionName.value = i18n.global.t('semantic.edit_semantic_interface');
selectedServiceId.value = id;
getServiceYamlFun(id);
} else if (action === 'get') {
// 展示查看的框架
- actionName.value = '查看语义接口';
+ actionName.value = i18n.global.t('semantic.view_semantic_interface');
selectedServiceId.value = id;
getServiceJsonFun(id);
}
diff --git a/src/views/dialogue/components/DialogueAside.vue b/src/views/dialogue/components/DialogueAside.vue
index d7e6ce57ea1ca049c03a4f437bd69ed1ffebf8f9..a30a51f6f430584762f77a7e02f0c7bf1bf8ff19 100644
--- a/src/views/dialogue/components/DialogueAside.vue
+++ b/src/views/dialogue/components/DialogueAside.vue
@@ -293,7 +293,7 @@ watch(
@@ -263,7 +263,8 @@ onMounted(() => {
display: block;
align-self: center;
position: absolute;
- width: 120px;
+ min-width: 120px;
+ padding:0 15px;
line-height: 32px;
border-radius: 100px;
height: 32px;
@@ -282,11 +283,17 @@ onMounted(() => {
background-color: var(--o-bg-color-base);
flex-direction: row;
flex-wrap: wrap;
+ row-gap: 6px;
justify-content: space-between;
align-items: center;
margin-top: 8px;
li {
cursor: text;
+ background: var(--o-bg-color-light);
+ &:hover{
+ background: var(--o-bg-color-base);
+ box-shadow: 0px 5.18px 20.72px 0px var(--o-bg-color-dark);
+ }
}
&-item {
display: flex;
diff --git a/src/views/dialogue/dialogueView.vue b/src/views/dialogue/dialogueView.vue
index 3d1be3479ff95bebb8609d7eae3aa9dc9d97dcc1..aac97aa6ae745906ad88765e3145e734893555ce 100644
--- a/src/views/dialogue/dialogueView.vue
+++ b/src/views/dialogue/dialogueView.vue
@@ -1,11 +1,10 @@