index.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package dtos
  2. type IndexViewData struct {
  3. User *CurrentUser
  4. Settings map[string]interface{}
  5. AppUrl string
  6. AppSubUrl string
  7. GoogleAnalyticsId string
  8. GoogleTagManagerId string
  9. NavTree []*NavLink
  10. BuildVersion string
  11. BuildCommit string
  12. Theme string
  13. NewGrafanaVersionExists bool
  14. NewGrafanaVersion string
  15. }
  16. type PluginCss struct {
  17. Light string `json:"light"`
  18. Dark string `json:"dark"`
  19. }
  20. type NavLink struct {
  21. Id string `json:"id,omitempty"`
  22. Text string `json:"text,omitempty"`
  23. Description string `json:"description,omitempty"`
  24. SubTitle string `json:"subTitle,omitempty"`
  25. Icon string `json:"icon,omitempty"`
  26. Img string `json:"img,omitempty"`
  27. Url string `json:"url,omitempty"`
  28. Target string `json:"target,omitempty"`
  29. Divider bool `json:"divider,omitempty"`
  30. HideFromMenu bool `json:"hideFromMenu,omitempty"`
  31. HideFromTabs bool `json:"hideFromTabs,omitempty"`
  32. Children []*NavLink `json:"children,omitempty"`
  33. }