Skip to content

Commit

Permalink
style: webpage display
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyzyykk committed Feb 28, 2025
1 parent afecfcb commit 7b80c56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions front/terminal/src/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"系统TCode": "System TCode",
"开头,用于快速访问系统模块": ", used for quick access to system modules",
"用户TCode": "User TCode",
"不存在": " does not exist",
"其它TCode正在执行": "Another TCode is executing",
"执行中断:": "Execute Interrupt: ",
"工作流结束": "Workflow Over",
"编译错误:": "Compile Error: ",
"编辑": "Edit",
"删除": "Delete",
"只读": "Read Only",
Expand Down
12 changes: 6 additions & 6 deletions front/terminal/src/views/FrameWork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ import { QuestionFilled, VideoPlay, VideoPause, MostlyCloudy, ArrowRight, UserFi
import { FuncTcode, SysTcode, UserTcodeExecutor } from "@/components/tcode/Tcode";
import i18n from "@/locales/i18n";
import {cloud, load, syncUpload, syncDownload } from "@/utils/CloudUtil";
import { cloud, load, syncUpload, syncDownload } from "@/utils/CloudUtil";
import { deleteDialog } from "@/utils/DeleteDialog";
import { calcType } from "@/components/calc/CalcType"
Expand Down Expand Up @@ -662,7 +662,7 @@ export default {
} catch (error) {
setTcodeStatus(transTcode, 'Compile Error');
ElMessage({
message: 'TCode-' + transTcode + ' Compile Error: ' + error,
message: 'TCode-' + transTcode + ' ' + i18n.global.t('编译错误:') + error,
type: 'error',
grouping: true,
});
Expand All @@ -674,14 +674,14 @@ export default {
try {
await tcodes.value[transTcode].execFlow(UserTcodeExecutor);
ElMessage({
message: 'TCode-' + transTcode + ' Workflow Over',
message: 'TCode-' + transTcode + ' ' + i18n.global.t('工作流结束'),
type: 'success',
grouping: true,
});
setTcodeStatus(transTcode, 'Execute Success');
} catch(error) {
ElMessage({
message: 'TCode-' + transTcode + ' Execute Interrupt: ' + error,
message: 'TCode-' + transTcode + ' ' + i18n.global.t('执行中断:') + error,
type: 'warning',
grouping: true,
});
Expand All @@ -692,7 +692,7 @@ export default {
}
else {
ElMessage({
message: 'Another TCode is executing',
message: i18n.global.t('其它TCode正在执行'),
type: 'warning',
grouping: true,
});
Expand All @@ -701,7 +701,7 @@ export default {
else {
if(transTcode[0] == '/' || transTcode[0] == 'S' || transTcode[0] == 'U') {
ElMessage({
message: 'TCode-' + transTcode + ' does not exist',
message: 'TCode-' + transTcode + i18n.global.t('不存在'),
type: 'warning',
grouping: true,
});
Expand Down

0 comments on commit 7b80c56

Please sign in to comment.