2015-11-20 09:43:10 +01:00
|
|
|
package dtos
|
|
|
|
|
|
|
|
|
|
type IndexViewData struct {
|
2016-05-03 09:00:58 +02:00
|
|
|
User *CurrentUser
|
|
|
|
|
Settings map[string]interface{}
|
|
|
|
|
AppUrl string
|
|
|
|
|
AppSubUrl string
|
|
|
|
|
GoogleAnalyticsId string
|
|
|
|
|
GoogleTagManagerId string
|
2017-08-15 17:52:52 +02:00
|
|
|
NavTree []*NavLink
|
2016-05-03 09:00:58 +02:00
|
|
|
BuildVersion string
|
|
|
|
|
BuildCommit string
|
2017-10-11 21:36:03 +02:00
|
|
|
Theme string
|
2016-05-03 09:00:58 +02:00
|
|
|
NewGrafanaVersionExists bool
|
|
|
|
|
NewGrafanaVersion string
|
2018-07-02 04:33:39 -07:00
|
|
|
AppName string
|
2018-10-31 13:40:58 -07:00
|
|
|
AppNameBodyClass string
|
2015-11-20 09:43:10 +01:00
|
|
|
}
|
|
|
|
|
|
2015-12-03 12:29:57 +08:00
|
|
|
type PluginCss struct {
|
|
|
|
|
Light string `json:"light"`
|
|
|
|
|
Dark string `json:"dark"`
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-20 09:43:10 +01:00
|
|
|
type NavLink struct {
|
2017-08-15 20:24:16 +02:00
|
|
|
Id string `json:"id,omitempty"`
|
|
|
|
|
Text string `json:"text,omitempty"`
|
|
|
|
|
Description string `json:"description,omitempty"`
|
2017-11-30 15:37:03 +01:00
|
|
|
SubTitle string `json:"subTitle,omitempty"`
|
2017-08-15 20:24:16 +02:00
|
|
|
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"`
|
2017-12-01 11:32:00 +01:00
|
|
|
HideFromTabs bool `json:"hideFromTabs,omitempty"`
|
2017-08-15 20:24:16 +02:00
|
|
|
Children []*NavLink `json:"children,omitempty"`
|
2015-11-20 09:43:10 +01:00
|
|
|
}
|