Skip to content

Commit

Permalink
refactor(ns): 优化 svc.json 中文标签
Browse files Browse the repository at this point in the history
- 将英文标签替换为中文标签,提高用户体验
- 统一 IP 相关术语翻译
- 优化部分字段的描述,使其更加准确易懂
  • Loading branch information
weibaohui committed Dec 25, 2024
1 parent f7ec6f3 commit 15e9d2a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions assets/pages/ns/svc.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,18 +621,18 @@
},
{
"name": "spec.type",
"label": "type",
"label": "类型",
"type": "tpl",
"tpl": "<% if (data.spec && data.spec.type === 'ClusterIP' && data.spec.clusterIP === 'None') { %><span class='label label-warning'>Headless</span><% } else { %><span class='label label-success'><%= data.spec.type %></span><% } %>"
},
{
"name": "spec.clusterIP",
"label": "clusterIP",
"label": "集群IP",
"type": "text"
},
{
"name": "spec.ports",
"label": "ports",
"label": "端口",
"type": "each",
"items": {
"type": "tpl",
Expand All @@ -641,7 +641,7 @@
},
{
"name": "spec.ipFamilyPolicy",
"label": "ipFamily",
"label": "IP协议栈",
"type": "map",
"map": {
"SingleStack": "<span class='label label-success'>SingleStack</span>",
Expand All @@ -651,7 +651,7 @@
},
{
"name": "spec.ipFamilies",
"label": "ipFamilies",
"label": "IP协议栈集",
"type": "each",
"items": {
"type": "tpl",
Expand Down Expand Up @@ -680,7 +680,7 @@
},
{
"name": "spec.selector",
"label": "selector",
"label": "POD选择器",
"type": "tpl",
"tpl": "<i class='fa fa-sitemap text-primary'></i>",
"popOver": {
Expand All @@ -700,7 +700,7 @@
},
{
"name": "spec.clusterIPs",
"label": "clusterIPs",
"label": "集群IP集",
"type": "each",
"items": {
"type": "tpl",
Expand All @@ -709,7 +709,7 @@
},
{
"name": "spec.sessionAffinity",
"label": "session",
"label": "会话亲和性",
"type": "mapping",
"map": {
"ClientIP": "<span class='label label-danger'>ClientIP</span>",
Expand Down

0 comments on commit 15e9d2a

Please sign in to comment.