diff --git a/README.md b/README.md index 72b8076..928774d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ -# EasyNode +# EasyNode v2.0 -> 一个简易的个人Linux服务器管理面板(基于Node.js). +> 一个功能完善的Linux服务器SSH终端面板. -> 前端仓库地址:https://github.com/chaos-zhu/easynode_web +> [!WARNING] +> 初次部署EasyNode,登录系统后务必记得修改默认账户密码 `admin/admin`! - - - [功能简介](#功能简介) +> [!WARNING] +> 强烈建议使用 **iptables** 或 **fail2ban** 等安全服务限制IP访问,谨慎暴露面板服务到公网。 + + + diff --git a/web/src/views/terminal/components/terminal.vue b/web/src/views/terminal/components/terminal.vue index 3ccbfc9..ef5729f 100644 --- a/web/src/views/terminal/components/terminal.vue +++ b/web/src/views/terminal/components/terminal.vue @@ -2,10 +2,11 @@
+ + +
- - 连接
- +
- - - - + +
@@ -148,7 +127,7 @@ const removeTab = (index) => { const handleFullScreen = () => { if (isFullScreen.value) document.exitFullscreen() - else document.getElementsByClassName('tab_content_wrap')[0].requestFullscreen() + else document.getElementsByClassName('terminals_sftp_wrap')[0].requestFullscreen() isFullScreen.value = !isFullScreen.value } @@ -183,7 +162,7 @@ const handleInputCommand = async (command) => { const curTabTerminal = terminalTabRefs.value[activeTabIndex.value] await $nextTick() curTabTerminal?.focusTab() - curTabTerminal.handleInputCommand(`${ command }\n`) + curTabTerminal.handleInputCommand(`${command}\n`) showInputCommand.value = false } @@ -213,20 +192,24 @@ const handleInputCommand = async (command) => { overflow: auto; display: flex; flex-direction: column; + .top { + height: 39px; + flex-shrink: 0; position: sticky; top: 0px; z-index: 1; background-color: rgb(255, 255, 255); - padding-right: 15px; + padding: 0 15px; display: flex; - :deep(.el-dropdown) { - margin-left: auto; + align-items: center; + justify-content: space-between; + .full_icon { + font-size: 15px; + color: var(--el-color-primary); + cursor: pointer; } .action_wrap { - height: 39px; - display: flex; - align-items: center; .link_host { font-size: var(--el-font-size-base); color: var(--el-color-primary); @@ -235,6 +218,7 @@ const handleInputCommand = async (command) => { } } } + .terminals_sftp_wrap { height: 100%; overflow: hidden; @@ -279,34 +263,3 @@ const handleInputCommand = async (command) => { } } - - \ No newline at end of file