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 @@