Bootstrap reanimator chart viewer
This commit is contained in:
30
viewer/model.go
Normal file
30
viewer/model.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package viewer
|
||||
|
||||
type pageData struct {
|
||||
Title string
|
||||
HasSnapshot bool
|
||||
Error string
|
||||
InputJSON string
|
||||
Meta []fieldRow
|
||||
Sections []sectionView
|
||||
}
|
||||
|
||||
type sectionView struct {
|
||||
ID string
|
||||
Title string
|
||||
Kind string
|
||||
Rows []fieldRow
|
||||
Columns []string
|
||||
Items []tableRow
|
||||
}
|
||||
|
||||
type fieldRow struct {
|
||||
Key string
|
||||
Value string
|
||||
}
|
||||
|
||||
type tableRow struct {
|
||||
Status string
|
||||
Cells map[string]string
|
||||
RawCells map[string]any
|
||||
}
|
||||
Reference in New Issue
Block a user