feat: update auto render
This commit is contained in:
27
web/templates/builtin/debug.html
Normal file
27
web/templates/builtin/debug.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{define "content"}}
|
||||
<h1>Debug Information</h1>
|
||||
<pre>Table: {{.Table}}
|
||||
TableAlias: {{.TableAlias}}
|
||||
Total: {{.Total}}
|
||||
Page: {{.Page}}
|
||||
Pages: {{.Pages}}
|
||||
Columns: {{json .Columns}}
|
||||
Data Type: {{printf "%T" .Data}}
|
||||
Data Length: {{len .Data}}
|
||||
First Row: {{json (index .Data 0)}}
|
||||
</pre>
|
||||
<div>
|
||||
<h2>Columns</h2>
|
||||
<ul>
|
||||
{{range .Columns}}
|
||||
<li>{{.Name}} ({{.Alias}}) - Show: {{.ShowInList}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Data</h2>
|
||||
{{range $i, $row := .Data}}
|
||||
<div>Row {{$i}}: {{json $row}}</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user