diff --git a/ui/src/components/ContextMenu.vue b/ui/src/components/ContextMenu.vue index 36b328b..01c7bdc 100644 --- a/ui/src/components/ContextMenu.vue +++ b/ui/src/components/ContextMenu.vue @@ -1,9 +1,11 @@ @@ -84,6 +86,8 @@ export default { z-index: 9999; background-color: #f9f9f9; min-width: 160px; + border-radius: 5px; + padding: 5px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); } @@ -98,4 +102,9 @@ export default { background-color: #90C8F6; cursor: default; } + + .content hr { + margin: 0; + border: 1px solid #c1bcbc; + } diff --git a/ui/src/components/RttyTerm.vue b/ui/src/components/RttyTerm.vue index 05e0c38..e6265d5 100644 --- a/ui/src/components/RttyTerm.vue +++ b/ui/src/components/RttyTerm.vue @@ -53,7 +53,8 @@ export default { {name: 'paste', caption: this.$t('Paste - Shift+Insert')}, {name: 'clear', caption: this.$t('Clear Scrollback')}, {name: 'font', caption: this.$t('Font Size')}, - {name: 'file', caption: this.$t('Upload or download file')}, + {name: 'upload', caption: this.$t('Upload file') + ' - rtty -R'}, + {name: 'download', caption: this.$t('Download file') + ' - rtty -S file'}, {name: 'about', caption: this.$t('About')} ], font: { @@ -95,8 +96,10 @@ export default { this.term.clear() } else if (name === 'font') { this.font.modal = true - } else if (name === 'file') { - this.$message.success(this.$t('Please execute command "rtty -R" or "rtty -S" in current terminal!')) + } else if (name === 'upload') { + this.$message.success(this.$t('Please execute command "rtty -R" in current terminal!')) + } else if (name === 'download') { + this.$message.success(this.$t('Please execute command "rtty -S file" in current terminal!')) } else if (name === 'about') { window.open('https://github.com/zhaojh329/rtty') } diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json index 78de1b9..987d52b 100644 --- a/ui/src/i18n/en.json +++ b/ui/src/i18n/en.json @@ -52,9 +52,11 @@ "Paste - Shift+Insert": "Paste - Shift+Insert", "Clear Scrollback": "Clear Scrollback", "Font Size": "Font Size", - "Upload or download file": "Upload or download file", + "Upload file": "Upload file", + "Download file": "Download file", "About": "About", - "Please execute command \"rtty -R\" or \"rtty -S\" in current terminal!": "Please execute command \"rtty -R\" or \"rtty -S\" in current terminal!", + "Please execute command \"rtty -R\" in current terminal!": "Please execute command \"rtty -R\" in current terminal!", + "Please execute command \"rtty -S file\" in current terminal!": "Please execute command \"rtty -S file\" in current terminal!", "Access your devices's Web": "Access your devices's Web", "Proto": "Proto", "ipaddr": "IP address", diff --git a/ui/src/i18n/zh-CN.json b/ui/src/i18n/zh-CN.json index 488224a..980427f 100644 --- a/ui/src/i18n/zh-CN.json +++ b/ui/src/i18n/zh-CN.json @@ -54,9 +54,11 @@ "Paste - Shift+Insert": "粘贴 - Shift+Insert", "Clear Scrollback": "清除回滚", "Font Size": "字体大小", - "Upload or download file": "上传或者下载文件", + "Upload file": "上传文件", + "Download file": "下载文件", "About": "关于", - "Please execute command \"rtty -R\" or \"rtty -S\" in current terminal!": "请在当前终端中执行命令 \"rtty -R\" 或者 \"rtty -S\"", + "Please execute command \"rtty -R\" in current terminal!": "请在当前终端中执行命令 \"rtty -R\"", + "Please execute command \"rtty -S file\" in current terminal!": "请在当前终端中执行命令 \"rtty -S file\"", "Proto": "协议", "ipaddr": "IP 地址", "port": "端口",