Skip to content

首页连接布局切换与拖拽排序 - #80

Merged
feigeCode merged 1 commit into
feigeCode:devfrom
cjw414522569:dev
Jun 23, 2026
Merged

首页连接布局切换与拖拽排序#80
feigeCode merged 1 commit into
feigeCode:devfrom
cjw414522569:dev

Conversation

@cjw414522569

Copy link
Copy Markdown

新功能描述

  • 功能 1:首页连接列表布局切换
    搜索框右侧新增布局切换按钮
    卡片视图:320px 固定宽度网格,hover 显示操作按钮
    列表视图:全宽 48px 高行,图标-名称-连接信息横向排列,hover 显示操作按钮
    布局选择仅存于内存,刷新不丢失(不持久化)
  • 功能 2:连接拖拽排序
    数据库:connections 表新增 sort_order 列,查询按 sort_order ASC 优先
    卡片和列表两种布局均支持拖拽重排
    拖拽时显示半透明浮动卡片(参照 DragTab 视觉模式)
    释放时内存重排 + 异步批量写 sort_order,重启后排序持久化
  • 功能 3:侧边栏顺序调整
    SSH/SFTP 移至 Database 上方(ConnectionType::all() 顺序互换)

检查清单

我的代码遵循项目的代码规范
我已经进行了自我代码审查
我已经添加了必要的测试
所有测试都通过了
我已经更新了相关文档

截图/演示

1.效果
image
image

@feigeCode feigeCode left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@feigeCode
feigeCode merged commit 26d9d07 into feigeCode:dev Jun 23, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants