2015-11-20 16:43:10 +08:00
|
|
|
package dtos
|
|
|
|
|
2020-12-07 18:23:53 +08:00
|
|
|
import (
|
2022-09-23 04:04:48 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/navtree"
|
2020-12-07 18:23:53 +08:00
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
|
|
|
|
|
|
"html/template"
|
|
|
|
)
|
2020-11-12 19:29:43 +08:00
|
|
|
|
2015-11-20 16:43:10 +08:00
|
|
|
type IndexViewData struct {
|
2022-11-09 22:09:19 +08:00
|
|
|
User *CurrentUser
|
|
|
|
Settings map[string]interface{}
|
|
|
|
AppUrl string
|
|
|
|
AppSubUrl string
|
|
|
|
GoogleAnalyticsId string
|
|
|
|
GoogleAnalytics4Id string
|
|
|
|
GoogleAnalytics4SendManualPageViews bool
|
|
|
|
GoogleTagManagerId string
|
|
|
|
NavTree *navtree.NavTreeRoot
|
|
|
|
BuildVersion string
|
|
|
|
BuildCommit string
|
|
|
|
Theme string
|
|
|
|
NewGrafanaVersionExists bool
|
|
|
|
NewGrafanaVersion string
|
|
|
|
AppName string
|
|
|
|
AppNameBodyClass string
|
|
|
|
FavIcon template.URL
|
|
|
|
AppleTouchIcon template.URL
|
|
|
|
AppTitle string
|
|
|
|
Sentry *setting.Sentry
|
|
|
|
ContentDeliveryURL string
|
|
|
|
LoadingLogo template.URL
|
2021-01-12 14:42:32 +08:00
|
|
|
// Nonce is a cryptographic identifier for use with Content Security Policy.
|
|
|
|
Nonce string
|
2015-11-20 16:43:10 +08:00
|
|
|
}
|