2015-11-20 02:43:10 -06:00
|
|
|
package dtos
|
|
|
|
|
2020-12-07 04:23:53 -06:00
|
|
|
import (
|
2023-01-30 02:18:26 -06:00
|
|
|
"html/template"
|
|
|
|
|
2022-09-22 15:04:48 -05:00
|
|
|
"github.com/grafana/grafana/pkg/services/navtree"
|
2020-12-07 04:23:53 -06:00
|
|
|
)
|
2020-11-12 05:29:43 -06:00
|
|
|
|
2015-11-20 02:43:10 -06:00
|
|
|
type IndexViewData struct {
|
2022-11-09 08:09:19 -06:00
|
|
|
User *CurrentUser
|
2023-01-31 13:14:15 -06:00
|
|
|
Settings *FrontendSettingsDTO
|
2022-11-09 08:09:19 -06:00
|
|
|
AppUrl string
|
|
|
|
AppSubUrl string
|
|
|
|
GoogleAnalyticsId string
|
|
|
|
GoogleAnalytics4Id string
|
|
|
|
GoogleAnalytics4SendManualPageViews bool
|
|
|
|
GoogleTagManagerId string
|
|
|
|
NavTree *navtree.NavTreeRoot
|
|
|
|
BuildVersion string
|
|
|
|
BuildCommit string
|
2023-05-10 08:37:04 -05:00
|
|
|
ThemeType string
|
2022-11-09 08:09:19 -06:00
|
|
|
NewGrafanaVersionExists bool
|
|
|
|
NewGrafanaVersion string
|
|
|
|
AppName string
|
|
|
|
AppNameBodyClass string
|
|
|
|
FavIcon template.URL
|
|
|
|
AppleTouchIcon template.URL
|
|
|
|
AppTitle string
|
|
|
|
ContentDeliveryURL string
|
|
|
|
LoadingLogo template.URL
|
2023-04-27 11:20:37 -05:00
|
|
|
CSPContent string
|
|
|
|
CSPEnabled bool
|
|
|
|
IsDevelopmentEnv bool
|
2021-01-12 00:42:32 -06:00
|
|
|
// Nonce is a cryptographic identifier for use with Content Security Policy.
|
2023-06-01 07:35:05 -05:00
|
|
|
Nonce string
|
|
|
|
NewsFeedEnabled bool
|
2015-11-20 02:43:10 -06:00
|
|
|
}
|