From 6b5f882808bebd07a6d15b7db6c53405d3fef32a Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Sun, 20 Oct 2024 16:21:51 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=85=BC=E5=AE=B9=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AFUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 9 ++ server/app/socket/sftp.js | 2 +- web/index.html | 7 +- web/package.json | 3 +- web/public/upload/.gitkeep | 0 web/src/assets/scss/global.scss | 5 +- web/src/assets/scss/mobile.scss | 84 ++++++++++++ web/src/components/aside-box.vue | 94 +------------ web/src/components/input-command/index.vue | 2 +- web/src/components/menuList.vue | 96 +++++++++++++ web/src/components/top-bar.vue | 42 ++++-- web/src/composables/useMobileWidth.js | 18 +++ web/src/main.js | 1 + web/src/utils/index.js | 21 ++- web/src/views/credentials/index.vue | 2 +- web/src/views/group/index.vue | 6 +- web/src/views/onekey/index.vue | 23 +++- web/src/views/scripts/index.vue | 2 +- .../views/server/components/host-table.vue | 4 +- .../views/terminal/components/info-side.vue | 31 ++--- web/src/views/terminal/components/sftp.vue | 15 +- .../terminal/components/terminal-setting.vue | 2 +- .../terminal/components/terminal-tab.vue | 1 + .../views/terminal/components/terminal.vue | 55 +++++--- web/src/views/terminal/index.vue | 4 +- web/vite.config.js | 11 +- yarn.lock | 128 +++++++++++++++++- 27 files changed, 500 insertions(+), 168 deletions(-) delete mode 100644 web/public/upload/.gitkeep create mode 100644 web/src/assets/scss/mobile.scss create mode 100644 web/src/components/menuList.vue create mode 100644 web/src/composables/useMobileWidth.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 96b2acf..4b8bb99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [2.2.8](https://github.com/chaos-zhu/easynode/releases) (2024-10-20) + +### Features + +* 兼容移动端UI +* 调整终端功能菜单 +* 修复终端选中文本无法复制的bug +* 修复无法展示服务端ping客户端延迟ms的bug + ## [2.2.7](https://github.com/chaos-zhu/easynode/releases) (2024-10-17) ### Features diff --git a/server/app/socket/sftp.js b/server/app/socket/sftp.js index c4986ae..7914621 100644 --- a/server/app/socket/sftp.js +++ b/server/app/socket/sftp.js @@ -258,7 +258,7 @@ module.exports = (httpServer) => { return sftpClient.list('/') }) .then((rootLs) => { - // 普通文件-、目录文件d、链接文件l + // 普通文件-、目录文件d、链接文件l socket.emit('root_ls', rootLs) // 先返回根目录 listenInput(sftpClient, socket) // 监听前端请求 }) diff --git a/web/index.html b/web/index.html index ab3049e..9eb9ad2 100644 --- a/web/index.html +++ b/web/index.html @@ -1,8 +1,11 @@ + - + + EasyNode @@ -12,4 +15,4 @@ - + \ No newline at end of file diff --git a/web/package.json b/web/package.json index 9396422..2985610 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "2.2.7", + "version": "2.2.8", "description": "easynode-web", "private": true, "scripts": { @@ -45,6 +45,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^5.0.5", "@vitejs/plugin-vue-jsx": "^4.0.0", + "code-inspector-plugin": "^0.17.2", "eslint": "^8.56.0", "eslint-plugin-vue": "^9.27.0", "sass": "^1.77.7", diff --git a/web/public/upload/.gitkeep b/web/public/upload/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/web/src/assets/scss/global.scss b/web/src/assets/scss/global.scss index c04c282..9a9f934 100644 --- a/web/src/assets/scss/global.scss +++ b/web/src/assets/scss/global.scss @@ -1,4 +1,7 @@ -// 滚动条 +html { + font-size: 15px; +} + html, body, div, diff --git a/web/src/assets/scss/mobile.scss b/web/src/assets/scss/mobile.scss new file mode 100644 index 0000000..5f48fa0 --- /dev/null +++ b/web/src/assets/scss/mobile.scss @@ -0,0 +1,84 @@ +.mobile_menu_btn { + margin-right: auto; + font-size: 18px; +} + +.mobile_menu_drawer { + width: auto !important; + .mobile_logo_wrap { + display: flex; + align-items: center; + justify-content: center; + margin-top: 15px; + img { + width: 30px; + } + h1 { + font-size: 14px; + margin-left: 3px; + } + } + .el-drawer__body { + padding: 0; + } +} + + +@media screen and (min-width: 969px) { + [class^="mobile_"] { + display: none; + } +} + + +@media screen and (max-width: 968px) { + .view_container { + .aside_container { + display: none; + } + .top_bar_container { + width: 100%; + .bar_wrap { + h2 { + display: none; + } + } + } + .terminal_container { + .terminal_link_tips { + width: 100%; + } + .terminal_wrap { + .terminal_and_sftp_wrap { + flex: auto; + .sftp_tab_container { + section { + .left { + min-width: 150px; + max-width: 150px; + } + .right { + .filter_input { + width: auto; + min-width: auto; + margin: 0 5px; + } + .path { + display: inline-block; + padding-right: 15px; + } + .path_input { + width: auto; + min-width: auto; + } + } + } + } + } + } + } + } + .el-dialog { + --el-dialog-width: 94%!important; + } +} \ No newline at end of file diff --git a/web/src/components/aside-box.vue b/web/src/components/aside-box.vue index 726c53b..94bf835 100644 --- a/web/src/components/aside-box.vue +++ b/web/src/components/aside-box.vue @@ -6,25 +6,7 @@

EasyNode

- - - - - - - - - +
@@ -33,82 +15,17 @@ \ No newline at end of file diff --git a/web/src/components/top-bar.vue b/web/src/components/top-bar.vue index 846ab2d..35fc313 100644 --- a/web/src/components/top-bar.vue +++ b/web/src/components/top-bar.vue @@ -1,8 +1,10 @@