Skip to content

Commit

Permalink
feat(ns): 增加命令行历史记录的可读性- 在命令历史记录中添加了 human_command 字段
Browse files Browse the repository at this point in the history
- 使用 strong 标签和蓝色文本样式突出显示 human_command
- 提升了用户在命令行界面中的体验
  • Loading branch information
weibaohui committed Nov 11, 2024
1 parent 570f475 commit 4f6d851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/pages/ns/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@
"value": "${ls:commandHistory||[]}",
"items": {
"type": "tpl",
"tpl": "<strong>${last_command}</strong> <br><pre>${result}</pre>",
"tpl": "<strong>${last_command}</strong> <strong class='text-blue-400'>${human_command}</strong> <br><pre>${result}</pre>",
"style": {
"padding": "5px",
"borderBottom": "1px solid #ddd"
Expand Down

0 comments on commit 4f6d851

Please sign in to comment.