Skip to content

Commit

Permalink
refactor(crd): 优化 CRD 页面布局和导航
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Dec 25, 2024
1 parent 371548c commit 8d44249
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
15 changes: 0 additions & 15 deletions assets/pages/crd/cluster_cr.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@
"type": "container",
"className": "floating-toolbar",
"body": [
{
"type": "button",
"label": "回退",
"level": "link",
"className": "mr-2",
"onEvent": {
"click": {
"actions": [
{
"actionType": "goBack"
}
]
}
}
},
{
"type": "tpl",
"tpl": "${kind}",
Expand Down
5 changes: 3 additions & 2 deletions assets/pages/crd/crd.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,10 @@
{
"type": "button",
"icon": "fas fa-list text-success",
"actionType": "link",
"level": "link",
"actionType": "url",
"label": "查看实例",
"link": "/crd/${spec.scope=='Namespaced'?'namespaced_cr':'cluster_cr'}?kind=${spec.names.kind}&group=${spec.group}&version=${spec.versions[0].name}"
"link": "/index.html#/crd/${spec.scope=='Namespaced'?'namespaced_cr':'cluster_cr'}?kind=${spec.names.kind}&group=${spec.group}&version=${spec.versions[0].name}"
},
{
"type": "button",
Expand Down
15 changes: 0 additions & 15 deletions assets/pages/crd/namespaced_cr.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@
"type": "container",
"className": "floating-toolbar",
"body": [
{
"type": "button",
"label": "回退",
"level": "link",
"className": "mr-2",
"onEvent": {
"click": {
"actions": [
{
"actionType": "goBack"
}
]
}
}
},
{
"type": "tpl",
"tpl": "${kind}",
Expand Down

0 comments on commit 8d44249

Please sign in to comment.