Skip to content

Commit

Permalink
feat(resource): 为资源名称添加复制和搜索功能
Browse files Browse the repository at this point in the history
- 在资源列表中添加名称的复制功能- 实现资源名称的可搜索性
- 统一搜索框样式和占位符文本
  • Loading branch information
weibaohui committed Dec 24, 2024
1 parent 89d58b8 commit f50276d
Show file tree
Hide file tree
Showing 45 changed files with 362 additions and 47 deletions.
9 changes: 8 additions & 1 deletion assets/pages/cluster/api_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.labels",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/cluster_role.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "rules",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/cluster_role_binding.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "roleRef.name",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/component_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "conditions",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/csi_node.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "spec.drivers",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/flow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "spec.priorityLevelConfiguration.name",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/ingress_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.annotations",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/mutating_webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "webhooks",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "roles",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/ns.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.labels",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/priority_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "value",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/priority_level_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "spec.type",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/pv.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "spec.capacity.storage",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/runtime_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.labels",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/storage_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.annotations",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/cluster/validation_webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "webhooks",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/crd/cluster_cr.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "kind",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/crd/crd.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.creationTimestamp",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/crd/crontab.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.creationTimestamp",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/crd/namespaced_cr.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "kind",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/ns/configmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.labels",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/ns/cronjob.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "spec.schedule",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/ns/daemonset.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.labels",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/ns/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "metadata.creationTimestamp",
Expand Down
9 changes: 8 additions & 1 deletion assets/pages/ns/endpoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,14 @@
{
"name": "metadata.name",
"label": "name",
"type": "text"
"type": "text",
"copyable": true,
"searchable": {
"type": "input-text",
"name": "metadata.name",
"label": "名称",
"placeholder": "输入名称"
}
},
{
"name": "subsets",
Expand Down
Loading

0 comments on commit f50276d

Please sign in to comment.