Commit Graph

22 Commits

Author SHA1 Message Date
liumangmang
6f8edcec33 fix: reorder sidebar navigation items 2026-03-24 14:47:39 +08:00
liumangmang
acac45b692 fix: 终端 PTY 尺寸同步
前端在 xterm fit/resize 后通过 WebSocket 发送 resize 控制消息,后端收到后调用 ChannelShell.setPtySize 触发远端重绘,修复 less/vim/top 等全屏程序只显示部分区域的问题。

同时补齐控制消息解析与 PTY resize 的单测,并修正失配的 SftpControllerTest 断言。
2026-03-24 12:03:03 +08:00
liumangmang
aced2871b2 feat: Remote->Many 支持多源文件传输
支持多选源文件并按源文件×目标连接生成任务队列;增加 Directory/Exact Path 目标模式与重名覆盖提示,同时修复传输/上传 SSE 订阅未及时关闭导致的连接堆积。
2026-03-24 10:54:49 +08:00
liumangmang
e2656fb1b5 Fix: 文件选择器进入目录时清空搜索条件
在 SftpFilePickerModal 增加 load() 中 searchQuery.value = '',确保文件选择器打开时或进入目录时重置搜索条件。

改动:
- SftpFilePickerModal.vue 第 60 行:load() 加载前清空 searchQuery
2026-03-20 17:50:39 +08:00
liumangmang
d4dc8a6da9 Fix: 进入目录时清空搜索条件
在 SftpView 增加 loadPath() 中 searchQuery.value = '',确保进入新目录时重置搜索条件。

改动:
- SftpView.vue 第 196 行:loadPath() 加载前清空 searchQuery

- 进入目录后不再受上次搜索条件影响
- 返回上一级也清空搜索条件
- 用户手动输入搜索仍可正常使用
2026-03-20 17:03:10 +08:00
liumangmang
a9cfef37c2 feat: 连接列表搜索高亮匹配文字
高亮匹配的搜索关键词(名称、主机、用户名、端口)。

- 连接名称、主机名、用户名、端口中的匹配文本会高亮为青色
- 使用 v-html 渲染高亮内容
- 转义正则特殊字符避免注入风险
2026-03-20 15:53:22 +08:00
liumangmang
1020d78b91 feat: 搜索词同步到 URL 查询参数
搜索词现在会同步到 URL 查询参数 ?q=xxx,刷新页面后保留搜索状态。

-连接列表页 ()
  - 监听 URL 查询参数变化,初始化搜索框
  - 搜索InputChange 时更新 URL
  - 清空搜索时移除 URL 查询参数
2026-03-20 15:50:40 +08:00
liumangmang
7b7399912b Fix: 修复终端标签切换时重连问题
将终端工作区提升为主布局常驻层,离开终端路由时只隐藏不卸载组件。
新增活动终端显隐状态跟踪,页面恢复时自动重新适配尺寸和聚焦。

改动范围:
- frontend/src/layouts/MainLayout.vue
- frontend/src/views/TerminalWorkspaceView.vue
- frontend/src/components/TerminalWidget.vue
2026-03-20 15:36:47 +08:00
liumangmang
c1efd72d6d feat: 为连接列表添加搜索
在连接列表页加入前端即时搜索,支持按名称、主机、用户名和端口过滤连接。补充分离的无结果状态与清空操作,提升连接较多时的查找效率。
2026-03-18 23:59:26 +08:00
liumangmang
c01c005c07 feat: 将终端标签页移至左侧边栏
- 在 MainLayout 侧边栏添加终端标签区域
- 标签纵向排列在连接列表下方
- 点击标签自动切换到终端工作区并激活
- 简化 TerminalWorkspaceView 移除顶部标签栏和返回按钮
- 不用返回就能切换连接和打开新终端
2026-03-18 23:16:54 +08:00
liumangmang
51b479a8f9 feat: 支持应用内多 SSH 终端标签页
- 新增 terminalTabs store 管理标签页状态
- 新增 TerminalWorkspaceView 终端工作区视图
- 修改 ConnectionsView 终端按钮改用标签页模式
- 修改 TerminalView 作为兼容入口自动跳转到工作区
- 同一连接默认只保留一个标签页
- 切换标签时保持各自 SSH 会话不断开
2026-03-18 23:05:03 +08:00
liumangmang
c387cc2487 fix: Local->Many 传输等待后端任务真正完成
- 改用 uploadFile + subscribeUploadProgress 替代 uploadFileWithProgress
- 只有后端任务状态为 success 才标记成功
- 修复显示成功但远端无文件的问题
2026-03-18 23:02:31 +08:00
liumangmang
80fc5c8a0f feat: 增强 Transfers 页面文件浏览功能
- 在 SftpFilePickerModal 中添加搜索功能
- 添加显示/隐藏文件切换按钮(参考 SftpView)
- Remote->Many 模式下目标连接列表自动排除源连接
- 全选功能自动排除源连接
- 添加空状态提示信息
- 优化用户体验和交互逻辑
2026-03-12 17:45:07 +08:00
liumangmang
085123697e 增强 SSH/SFTP 稳定性并完善安全校验与前端交互 2026-03-11 23:14:39 +08:00
liumangmang
8845847ce2 Improve SFTP file view and upload handling
Add hidden-file toggle and search, prevent rapid-click path duplication, fix multipart upload headers, and raise backend upload size limits with clearer errors.
2026-03-10 18:07:51 +08:00
e5b9399350 Fix accidental close when dragging out of connection form inputs 2026-03-09 00:14:51 +08:00
a10906d711 Improve SFTP reliability and credential hygiene with regression tests 2026-03-09 00:02:22 +08:00
liumangmang
b82ea1919e Enhance CORS configuration and WebSocket origin settings to include additional localhost ports. Improve error handling in SftpController and SftpView for better debugging and user feedback. 2026-02-04 11:47:08 +08:00
liumangmang
1aefc14e42 Fix file upload handling in SftpView by adding a check for undefined files before uploading. 2026-02-04 11:40:24 +08:00
liumangmang
7e6ebd18a5 Refactor project structure and update .gitignore; enhance README with setup instructions and environment requirements. Clean up backend code for improved readability and maintainability. 2026-02-04 11:07:42 +08:00
liu
765d05c0a7 Update server port configuration from 8080 to 48080 in both backend and frontend settings. 2026-02-03 10:05:46 +08:00
liu
1c5a44ff71 Initial commit: SSH Manager (backend + frontend)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 09:10:06 +08:00