feat: Refactor quick command function by turning cascader into palette #10732
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.
What this PR does / why we need it?
Previously, I tried using 1Panel as a central SSH management hub to manage other servers. I also copied some frequently used quick commands from FinalShell. However, I found that when there are too many quick commands, the Cascader component can’t display enough of them, and confirming a command requires switching to the quick command panel.
To address this, I redesigned the quick command section following FinalShell’s layout, making it more convenient to select and manage quick commands when administering multiple servers.
之前尝试用 1panel 当一个中心跳板 ssh 管理机,用来管理其他服务器,并拷贝了从finalshell中常用的快速命令,发现如果快速命令太多,cascader 组件能容纳的命令太少并且如果要确认命令还得跳转到快速命令栏去确认。
仿照 finalshell 排版重做了快速命令部分, 把 cascader 换成一个可折叠的面板。便于管理其他服务器时,方便选择快速命令。
面板样式可能不完美,如有可改动的地方,劳烦提出。
Summary of your change
重排快速命令界面
测试结果:
变更前:

变更后:


Please indicate you've done the following: