首页连接布局切换与拖拽排序 - #80
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新功能描述
搜索框右侧新增布局切换按钮
卡片视图:320px 固定宽度网格,hover 显示操作按钮
列表视图:全宽 48px 高行,图标-名称-连接信息横向排列,hover 显示操作按钮
布局选择仅存于内存,刷新不丢失(不持久化)
数据库:connections 表新增 sort_order 列,查询按 sort_order ASC 优先
卡片和列表两种布局均支持拖拽重排
拖拽时显示半透明浮动卡片(参照 DragTab 视觉模式)
释放时内存重排 + 异步批量写 sort_order,重启后排序持久化
SSH/SFTP 移至 Database 上方(ConnectionType::all() 顺序互换)
检查清单
我的代码遵循项目的代码规范
我已经进行了自我代码审查
我已经添加了必要的测试
所有测试都通过了
我已经更新了相关文档
截图/演示
1.效果

