2015-11-20 16:43:10 +08:00
|
|
|
package dtos
|
|
|
|
|
|
|
|
type IndexViewData struct {
|
2016-05-03 15:00:58 +08:00
|
|
|
User *CurrentUser
|
|
|
|
Settings map[string]interface{}
|
|
|
|
AppUrl string
|
|
|
|
AppSubUrl string
|
|
|
|
GoogleAnalyticsId string
|
|
|
|
GoogleTagManagerId string
|
2017-08-15 23:52:52 +08:00
|
|
|
NavTree []*NavLink
|
2016-05-03 15:00:58 +08:00
|
|
|
BuildVersion string
|
|
|
|
BuildCommit string
|
2017-10-12 03:36:03 +08:00
|
|
|
Theme string
|
2016-05-03 15:00:58 +08:00
|
|
|
NewGrafanaVersionExists bool
|
|
|
|
NewGrafanaVersion string
|
2015-11-20 16:43:10 +08:00
|
|
|
}
|
|
|
|
|
2015-12-03 12:29:57 +08:00
|
|
|
type PluginCss struct {
|
|
|
|
Light string `json:"light"`
|
|
|
|
Dark string `json:"dark"`
|
|
|
|
}
|
|
|
|
|
2015-11-20 16:43:10 +08:00
|
|
|
type NavLink struct {
|
2017-08-16 02:24:16 +08:00
|
|
|
Id string `json:"id,omitempty"`
|
|
|
|
Text string `json:"text,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Icon string `json:"icon,omitempty"`
|
|
|
|
Img string `json:"img,omitempty"`
|
|
|
|
Url string `json:"url,omitempty"`
|
|
|
|
Target string `json:"target,omitempty"`
|
|
|
|
Divider bool `json:"divider,omitempty"`
|
|
|
|
HideFromMenu bool `json:"hideFromMenu,omitempty"`
|
|
|
|
Children []*NavLink `json:"children,omitempty"`
|
2015-11-20 16:43:10 +08:00
|
|
|
}
|