Browse Source

:art: Fixup DNS record display

Ettore Di Giacinto 3 years ago
parent
commit
7e4411b05e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/public/index.html
  2. 1 1
      api/public/index.tmpl

+ 1 - 1
api/public/index.html

@@ -547,7 +547,7 @@
                                     
                                         <td x-text="d.Regex" class="text-left py-3 px-4"></td>
                                     
-                                        <td x-text="syntaxHighlight(JSON.stringify(d.Records, null, 2))" class="text-left py-3 px-4"></td>
+                                        <td x-text="JSON.stringify(d.Records)" class="text-left py-3 px-4"></td>
                                     
                                    </tr>
                              </template>                          

+ 1 - 1
api/public/index.tmpl

@@ -166,7 +166,7 @@
     <div class="container w-full mx-auto pt-20" x-show="page === '#dns'">
         {{ $opts:= dict "text" "DNS Documentation " "url" "https://mudler.github.io/edgevpn/docs/concepts/overview/dns/"}}
         {{ template "readme_badge" $opts}}
-        {{ $opts:= dict "title" "DNS" "func" "dns" "fields" ( list "Regex" "Records") "struct" (list "d.Regex" "syntaxHighlight(JSON.stringify(d.Records, null, 2))")}}
+        {{ $opts:= dict "title" "DNS" "func" "dns" "fields" ( list "Regex" "Records") "struct" (list "d.Regex" "JSON.stringify(d.Records)")}}
         {{ template "table" $opts}} 
 
     </div>