From e86ae12801d264aba819450e93dad92404315d9f Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 28 Feb 2024 17:35:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TerminalSSH/index.vue | 225 ++++++++++++++ src/components/TerminalTelnet/index.vue | 274 +++++++++++++++++ src/i18n/locales/en-US.ts | 19 +- src/i18n/locales/zh-CN.ts | 19 +- src/views/tool/terminal/index.vue | 385 ++++++++++++++++++++++++ 5 files changed, 920 insertions(+), 2 deletions(-) create mode 100644 src/components/TerminalSSH/index.vue create mode 100644 src/components/TerminalTelnet/index.vue create mode 100644 src/views/tool/terminal/index.vue diff --git a/src/components/TerminalSSH/index.vue b/src/components/TerminalSSH/index.vue new file mode 100644 index 00000000..35cc4ce0 --- /dev/null +++ b/src/components/TerminalSSH/index.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/components/TerminalTelnet/index.vue b/src/components/TerminalTelnet/index.vue new file mode 100644 index 00000000..f7520296 --- /dev/null +++ b/src/components/TerminalTelnet/index.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index a48cf019..107bd584 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1688,7 +1688,24 @@ export default { download: "Download", pdfViewer: "In-browser preview", pdfViewerErr: "Sorry, your browser does not support PDF preview!", - } + }, + terminal: { + start: "Start Page", + new: "To Create", + more: "More", + reload: "Reload Current Tab", + reloadTip: "Are you sure you want to refresh and reconnect the current [{num}] terminal link?", + current: "Close Current Tab", + other: "Close Other Tabs", + otherTip: "Confirm that you want to close other terminal links?", + all: "Close All Tabs", + allTip: "Confirmed to close all terminal links?", + closeTip: "Confirm that you want to close the [{num}] terminal link?", + hostSelectTitle: "Select the created host to connect to", + hostSelectShow: "Open Selection", + hostSelectMore: "Load More {num}", + hostSelectHeader: "Host List", + }, }, }, }; diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index f37400c9..64c78b3a 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -1688,7 +1688,24 @@ export default { download: "下载", pdfViewer: "浏览器内预览", pdfViewerErr: "很抱歉,您的浏览器不支持 PDF 预览!", - } + }, + terminal: { + start: "开始页", + new: "去创建", + more: "更多", + reload: "断开重连", + reloadTip: "确认要刷新重连当前 【{num}】 终端链接?", + current: "关闭当前", + other: "关闭其他", + otherTip: "确认要关闭其他终端链接?", + all: "关闭全部", + allTip: "确认要关闭全部终端链接?", + closeTip: "确认要关闭 【{num}】 终端链接?", + hostSelectTitle: "选择已创建的主机进行连接", + hostSelectShow: "打开选择", + hostSelectMore: "加载更多 {num}", + hostSelectHeader: "主机列表", + }, }, }, }; diff --git a/src/views/tool/terminal/index.vue b/src/views/tool/terminal/index.vue new file mode 100644 index 00000000..e5769c19 --- /dev/null +++ b/src/views/tool/terminal/index.vue @@ -0,0 +1,385 @@ + + + + +