Skip to content

Commit

Permalink
refactor: 优化 API 结果的展示方式
Browse files Browse the repository at this point in the history
- 在多个 JSON 文件中,将 API 结果的展示方式从 "${result}" 改为 "${result|raw}"
-这样可以确保 API 结果以原始格式正确显示,避免潜在的解析问题
  • Loading branch information
weibaohui committed Dec 26, 2024
1 parent edd1a83 commit 1d9231a
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion assets/pages/cluster/api_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/cluster_role.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/cluster_role_binding.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/component_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/csi_node.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/flow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/ingress_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/mutating_webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/ns.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/priority_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/priority_level_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/pv.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/runtime_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/storage_class.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/cluster/validation_webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/crd/cluster_cr.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/crd/crd.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/crd/crontab.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/crd/namespaced_cr.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/configmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/cronjob.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/daemonset.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/endpoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/endpointslice.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/hpa.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/ing.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/job.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/lease.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/limit_range.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/network_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/pdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/pvc.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/replicaset.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/resource_quota.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/role.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/role_binding.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/secret.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/service_account.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
2 changes: 1 addition & 1 deletion assets/pages/ns/statefulset.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"body": [
{
"type": "markdown",
"value": "${result}",
"value": "${result|raw}",
"options": {
"linkify": true,
"html": true,
Expand Down
Loading

0 comments on commit 1d9231a

Please sign in to comment.