From 1d9231aaeafab4cce05064a732ef0534f422d985 Mon Sep 17 00:00:00 2001 From: weibaohui Date: Thu, 26 Dec 2024 10:46:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=20API=20?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=9A=84=E5=B1=95=E7=A4=BA=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在多个 JSON 文件中,将 API 结果的展示方式从 "${result}" 改为 "${result|raw}" -这样可以确保 API 结果以原始格式正确显示,避免潜在的解析问题 --- assets/pages/cluster/api_service.json | 2 +- assets/pages/cluster/cluster_role.json | 2 +- assets/pages/cluster/cluster_role_binding.json | 2 +- assets/pages/cluster/component_status.json | 2 +- assets/pages/cluster/csi_node.json | 2 +- assets/pages/cluster/flow_schema.json | 2 +- assets/pages/cluster/ingress_class.json | 2 +- assets/pages/cluster/mutating_webhook.json | 2 +- assets/pages/cluster/node.json | 2 +- assets/pages/cluster/ns.json | 2 +- assets/pages/cluster/priority_class.json | 2 +- assets/pages/cluster/priority_level_config.json | 2 +- assets/pages/cluster/pv.json | 2 +- assets/pages/cluster/runtime_class.json | 2 +- assets/pages/cluster/storage_class.json | 2 +- assets/pages/cluster/validation_webhook.json | 2 +- assets/pages/crd/cluster_cr.json | 2 +- assets/pages/crd/crd.json | 2 +- assets/pages/crd/crontab.json | 2 +- assets/pages/crd/namespaced_cr.json | 2 +- assets/pages/ns/configmap.json | 2 +- assets/pages/ns/cronjob.json | 2 +- assets/pages/ns/daemonset.json | 2 +- assets/pages/ns/deploy.json | 2 +- assets/pages/ns/endpoint.json | 2 +- assets/pages/ns/endpointslice.json | 2 +- assets/pages/ns/event.json | 2 +- assets/pages/ns/hpa.json | 2 +- assets/pages/ns/ing.json | 2 +- assets/pages/ns/job.json | 2 +- assets/pages/ns/lease.json | 2 +- assets/pages/ns/limit_range.json | 2 +- assets/pages/ns/network_policy.json | 2 +- assets/pages/ns/pdb.json | 2 +- assets/pages/ns/pod.json | 2 +- assets/pages/ns/pvc.json | 2 +- assets/pages/ns/rc.json | 2 +- assets/pages/ns/replicaset.json | 2 +- assets/pages/ns/resource_quota.json | 2 +- assets/pages/ns/role.json | 2 +- assets/pages/ns/role_binding.json | 2 +- assets/pages/ns/secret.json | 2 +- assets/pages/ns/service_account.json | 2 +- assets/pages/ns/statefulset.json | 2 +- assets/pages/ns/svc.json | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/assets/pages/cluster/api_service.json b/assets/pages/cluster/api_service.json index 7b15945..12ef4b6 100644 --- a/assets/pages/cluster/api_service.json +++ b/assets/pages/cluster/api_service.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/cluster_role.json b/assets/pages/cluster/cluster_role.json index 749a41f..560033d 100644 --- a/assets/pages/cluster/cluster_role.json +++ b/assets/pages/cluster/cluster_role.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/cluster_role_binding.json b/assets/pages/cluster/cluster_role_binding.json index 4365921..daa966c 100644 --- a/assets/pages/cluster/cluster_role_binding.json +++ b/assets/pages/cluster/cluster_role_binding.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/component_status.json b/assets/pages/cluster/component_status.json index b9616f1..c418f6a 100644 --- a/assets/pages/cluster/component_status.json +++ b/assets/pages/cluster/component_status.json @@ -127,7 +127,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/csi_node.json b/assets/pages/cluster/csi_node.json index b9eb745..ff6d6a8 100644 --- a/assets/pages/cluster/csi_node.json +++ b/assets/pages/cluster/csi_node.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/flow_schema.json b/assets/pages/cluster/flow_schema.json index 4b2ffe1..5b0b628 100644 --- a/assets/pages/cluster/flow_schema.json +++ b/assets/pages/cluster/flow_schema.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/ingress_class.json b/assets/pages/cluster/ingress_class.json index 6c5a204..526ef4c 100644 --- a/assets/pages/cluster/ingress_class.json +++ b/assets/pages/cluster/ingress_class.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/mutating_webhook.json b/assets/pages/cluster/mutating_webhook.json index efa6362..c6fb634 100644 --- a/assets/pages/cluster/mutating_webhook.json +++ b/assets/pages/cluster/mutating_webhook.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/node.json b/assets/pages/cluster/node.json index c840281..7074875 100644 --- a/assets/pages/cluster/node.json +++ b/assets/pages/cluster/node.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/ns.json b/assets/pages/cluster/ns.json index 6ce5426..110337c 100644 --- a/assets/pages/cluster/ns.json +++ b/assets/pages/cluster/ns.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/priority_class.json b/assets/pages/cluster/priority_class.json index d1e3294..5ad7cfc 100644 --- a/assets/pages/cluster/priority_class.json +++ b/assets/pages/cluster/priority_class.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/priority_level_config.json b/assets/pages/cluster/priority_level_config.json index 66378f9..c91e02a 100644 --- a/assets/pages/cluster/priority_level_config.json +++ b/assets/pages/cluster/priority_level_config.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/pv.json b/assets/pages/cluster/pv.json index 3de1796..5ea13b0 100644 --- a/assets/pages/cluster/pv.json +++ b/assets/pages/cluster/pv.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/runtime_class.json b/assets/pages/cluster/runtime_class.json index 4136756..2417882 100644 --- a/assets/pages/cluster/runtime_class.json +++ b/assets/pages/cluster/runtime_class.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/storage_class.json b/assets/pages/cluster/storage_class.json index 39255c9..4160ab3 100644 --- a/assets/pages/cluster/storage_class.json +++ b/assets/pages/cluster/storage_class.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/cluster/validation_webhook.json b/assets/pages/cluster/validation_webhook.json index 6cd915f..00e2374 100644 --- a/assets/pages/cluster/validation_webhook.json +++ b/assets/pages/cluster/validation_webhook.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/crd/cluster_cr.json b/assets/pages/crd/cluster_cr.json index 97bae6b..e6d624b 100644 --- a/assets/pages/crd/cluster_cr.json +++ b/assets/pages/crd/cluster_cr.json @@ -153,7 +153,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/crd/crd.json b/assets/pages/crd/crd.json index 1de0250..352214b 100644 --- a/assets/pages/crd/crd.json +++ b/assets/pages/crd/crd.json @@ -139,7 +139,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/crd/crontab.json b/assets/pages/crd/crontab.json index d42e64b..0240711 100644 --- a/assets/pages/crd/crontab.json +++ b/assets/pages/crd/crontab.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/crd/namespaced_cr.json b/assets/pages/crd/namespaced_cr.json index 7980d08..89399f6 100644 --- a/assets/pages/crd/namespaced_cr.json +++ b/assets/pages/crd/namespaced_cr.json @@ -188,7 +188,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/configmap.json b/assets/pages/ns/configmap.json index 470bc2a..42a8a98 100644 --- a/assets/pages/ns/configmap.json +++ b/assets/pages/ns/configmap.json @@ -197,7 +197,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/cronjob.json b/assets/pages/ns/cronjob.json index 5bb88d3..5039288 100644 --- a/assets/pages/ns/cronjob.json +++ b/assets/pages/ns/cronjob.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/daemonset.json b/assets/pages/ns/daemonset.json index 38f4ce4..b35aedc 100644 --- a/assets/pages/ns/daemonset.json +++ b/assets/pages/ns/daemonset.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/deploy.json b/assets/pages/ns/deploy.json index 18c5768..98661c1 100644 --- a/assets/pages/ns/deploy.json +++ b/assets/pages/ns/deploy.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/endpoint.json b/assets/pages/ns/endpoint.json index 464a31c..d73c965 100644 --- a/assets/pages/ns/endpoint.json +++ b/assets/pages/ns/endpoint.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/endpointslice.json b/assets/pages/ns/endpointslice.json index 86b0706..a1d2285 100644 --- a/assets/pages/ns/endpointslice.json +++ b/assets/pages/ns/endpointslice.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/event.json b/assets/pages/ns/event.json index 8cd206a..0bea42b 100644 --- a/assets/pages/ns/event.json +++ b/assets/pages/ns/event.json @@ -178,7 +178,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/hpa.json b/assets/pages/ns/hpa.json index f19d47f..74a6b32 100644 --- a/assets/pages/ns/hpa.json +++ b/assets/pages/ns/hpa.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/ing.json b/assets/pages/ns/ing.json index 9f4a467..55a18d3 100644 --- a/assets/pages/ns/ing.json +++ b/assets/pages/ns/ing.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/job.json b/assets/pages/ns/job.json index 999f8fb..16029c6 100644 --- a/assets/pages/ns/job.json +++ b/assets/pages/ns/job.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/lease.json b/assets/pages/ns/lease.json index e58a65a..eacead9 100644 --- a/assets/pages/ns/lease.json +++ b/assets/pages/ns/lease.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/limit_range.json b/assets/pages/ns/limit_range.json index 64dbebc..3be3927 100644 --- a/assets/pages/ns/limit_range.json +++ b/assets/pages/ns/limit_range.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/network_policy.json b/assets/pages/ns/network_policy.json index 70d8bf2..5f69626 100644 --- a/assets/pages/ns/network_policy.json +++ b/assets/pages/ns/network_policy.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/pdb.json b/assets/pages/ns/pdb.json index 8b4e4b4..ae978a5 100644 --- a/assets/pages/ns/pdb.json +++ b/assets/pages/ns/pdb.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/pod.json b/assets/pages/ns/pod.json index 41d070d..e778d34 100644 --- a/assets/pages/ns/pod.json +++ b/assets/pages/ns/pod.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/pvc.json b/assets/pages/ns/pvc.json index 7c3e814..b07cd86 100644 --- a/assets/pages/ns/pvc.json +++ b/assets/pages/ns/pvc.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/rc.json b/assets/pages/ns/rc.json index c3c96e9..dfd0022 100644 --- a/assets/pages/ns/rc.json +++ b/assets/pages/ns/rc.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/replicaset.json b/assets/pages/ns/replicaset.json index b9aeb39..1fb70a7 100644 --- a/assets/pages/ns/replicaset.json +++ b/assets/pages/ns/replicaset.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/resource_quota.json b/assets/pages/ns/resource_quota.json index c190ea0..de6f344 100644 --- a/assets/pages/ns/resource_quota.json +++ b/assets/pages/ns/resource_quota.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/role.json b/assets/pages/ns/role.json index ffab4eb..315941b 100644 --- a/assets/pages/ns/role.json +++ b/assets/pages/ns/role.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/role_binding.json b/assets/pages/ns/role_binding.json index eaf3f5a..cd39765 100644 --- a/assets/pages/ns/role_binding.json +++ b/assets/pages/ns/role_binding.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/secret.json b/assets/pages/ns/secret.json index efcd1f1..b35aca7 100644 --- a/assets/pages/ns/secret.json +++ b/assets/pages/ns/secret.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/service_account.json b/assets/pages/ns/service_account.json index 4f0d25a..fc7a222 100644 --- a/assets/pages/ns/service_account.json +++ b/assets/pages/ns/service_account.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/statefulset.json b/assets/pages/ns/statefulset.json index 531dbeb..39fdc82 100644 --- a/assets/pages/ns/statefulset.json +++ b/assets/pages/ns/statefulset.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true, diff --git a/assets/pages/ns/svc.json b/assets/pages/ns/svc.json index 02bda0d..411a2d4 100644 --- a/assets/pages/ns/svc.json +++ b/assets/pages/ns/svc.json @@ -192,7 +192,7 @@ "body": [ { "type": "markdown", - "value": "${result}", + "value": "${result|raw}", "options": { "linkify": true, "html": true,