feat: Refactor quick command function by turning cascader into palette#10732
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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: