From 4331c595bf48e3a698d9a73c89566412c2007a17 Mon Sep 17 00:00:00 2001 From: cc500 <2014434568@qq.com> Date: Tue, 4 Mar 2025 09:59:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=20meta?= =?UTF-8?q?type=20=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dialogue/types.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/views/dialogue/types.ts b/src/views/dialogue/types.ts index b4dc5cbd..d9186b5f 100644 --- a/src/views/dialogue/types.ts +++ b/src/views/dialogue/types.ts @@ -11,6 +11,7 @@ import type { UserDialoguePanelType, RobotDialoguePanelType, } from 'src/components/dialoguePanel/type'; +import { Metadata } from 'src/apis/paths/type'; // 工具类型 export type LinkType = 'redirect' | 'action'; @@ -51,15 +52,6 @@ export interface UserConversationItem { params?: any; } -// "input_tokens": 200, //prompt的token数量 -// "output_tokens": 50, //大模型生成的token数量 -// "time": 0.5 //运行时间,单位秒,最多2位小数 -export interface Metatype { - input_tokens: number; - output_tokens: number; - time: number; -} - export interface FlowType { id:number title:string, @@ -102,7 +94,7 @@ export interface RobotConversationItem { groupId:string|undefined; search_suggestions?:string[]; echartsObj?:any, - metadata?:undefined | Metatype; + metadata?:undefined | Metadata; flowdata?:FlowType; paramsList?:any; } -- Gitee From 8801cc357af25d7b10cc023c647dc4d6ef1a38f8 Mon Sep 17 00:00:00 2001 From: cc500 <2014434568@qq.com> Date: Tue, 4 Mar 2025 10:45:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E4=B8=AD=E5=BF=83=E5=88=9D=E5=A7=8B=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/en.ts | 36 ++++++++++++++++++++++++++++++------ src/i18n/lang/zh-cn.ts | 29 +++++++++++++++++++++++++++++ src/views/app/index.vue | 28 ++++++++++++++-------------- 3 files changed, 73 insertions(+), 20 deletions(-) diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 5573af96..be7c3ecc 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -28,17 +28,37 @@ export default { 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', + upload_semantic_interface:'Upload Interface', + edit_semantic_interface:'Edit Interface', + view_semantic_interface:'View Interface', cancel:'Cancel', submit:'Submit', edit:"Edit", analyze:'Analyze', }, + app:{ + app_center:'App Center', + all_select:'All', + app_name:'App name', + app_introduction:'App introduction', + username:'Username', + app_search:'Search', + app_upload:'Upload', + all_app:'All App', + my_upload:'My upload', + my_favorite:'My favorite', + app_edit:'Edit', + app_delete:'Delete', + no_data:'No data', + upload_app:'Upload App', + edit_app:'Edit App', + view_app:'View App', + cancel:'Cancel', + submit:'Submit', + edit:"Edit", + analyze:'Analyze', + unpublished:'Unpublished', + }, main: { describe1:"Hi! I'm", describe2:", and I'm happy to be of service.", @@ -213,6 +233,10 @@ export default { flow_end: "Workflow completed", flow_params_error: "Missing parameters", flow_pause: "Workflow paused", + }, + pagination: { + prev: 'Previous', + next: 'Next', } } \ No newline at end of file diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index 88508104..027db36d 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -1,3 +1,5 @@ +import { appApi } from "srcapis/paths"; + export default { home: { name: 'EulerCopilot', @@ -41,6 +43,29 @@ export default { edit:"编辑", analyze:'解析', }, + app:{ + app_center:'应用中心', + all_select:'全部', + app_name:'应用名称', + app_introduction:'应用简介', + username:'用户名称', + app_search:'搜索', + app_upload:'上传', + all_app:'全部应用', + my_upload:'我的上传', + my_favorite:'我的收藏', + app_edit:'编辑', + app_delete:'删除', + no_data:'暂无数据', + upload_app:'上传应用', + edit_app:'编辑应用', + view_app:'查看应用', + cancel:'取消', + submit:'确定', + edit:"编辑", + analyze:'解析', + unpublished:'未发布', + }, main: { describe1: '你好,我是', describe2: ',很高兴为你服务', @@ -215,5 +240,9 @@ export default { flow_end: "工作流结束", flow_params_error: "缺少参数", flow_pause: "工作流暂停", + }, + pagination: { + prev: 'Previous', + next: 'Next', } } diff --git a/src/views/app/index.vue b/src/views/app/index.vue index 821ea03a..feca5603 100644 --- a/src/views/app/index.vue +++ b/src/views/app/index.vue @@ -1,37 +1,37 @@