mirror of
https://github.com/grafana/grafana.git
synced 2025-09-28 19:33:58 +08:00
Chore: Add type info for grafana boot data (#45322)
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { merge } from 'lodash';
|
||||
import {
|
||||
BootData,
|
||||
BuildInfo,
|
||||
createTheme,
|
||||
DataSourceInstanceSettings,
|
||||
@ -28,9 +29,9 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
||||
appUrl = '';
|
||||
appSubUrl = '';
|
||||
windowTitlePrefix = '';
|
||||
buildInfo: BuildInfo = {} as BuildInfo;
|
||||
buildInfo: BuildInfo;
|
||||
newPanelTitle = '';
|
||||
bootData: any;
|
||||
bootData: BootData;
|
||||
externalUserMngLinkUrl = '';
|
||||
externalUserMngLinkName = '';
|
||||
externalUserMngInfo = '';
|
||||
@ -54,9 +55,9 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
||||
verifyEmailEnabled = false;
|
||||
oauth: OAuthSettings = {};
|
||||
disableUserSignUp = false;
|
||||
loginHint: any;
|
||||
passwordHint: any;
|
||||
loginError: any;
|
||||
loginHint = '';
|
||||
passwordHint = '';
|
||||
loginError = undefined;
|
||||
navTree: any;
|
||||
viewersCanEdit = false;
|
||||
editorsCanAdmin = false;
|
||||
@ -117,6 +118,8 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
||||
const mode = options.bootData.user.lightTheme ? 'light' : 'dark';
|
||||
this.theme2 = createTheme({ colors: { mode } });
|
||||
this.theme = this.theme2.v1;
|
||||
this.bootData = options.bootData;
|
||||
this.buildInfo = options.buildInfo;
|
||||
|
||||
const defaults = {
|
||||
datasources: {},
|
||||
|
Reference in New Issue
Block a user