How to use the @grafana/runtime.config.bootData function in @grafana/runtime

To help you get started, we’ve selected a few @grafana/runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github grafana / grafana / public / app / features / profile / ReactProfileWrapper.tsx View on Github external
export const ReactProfileWrapper = () => (
  
    {(api, states, teams, orgs, user) => {
      return (
        <>
          {states.loadUser ? (
            
          ) : (
            
          )}
          
          
          {!states.loadUser && (
github GridProtectionAlliance / openHistorian / Source / Applications / openHistorian / openHistorian / Grafana / public / app / features / templating / datasource_variable.ts View on Github external
if (regex && !regex.exec(source.name)) {
        continue;
      }

      options.push({ text: source.name, value: source.name });
    }

    if (options.length === 0) {
      options.push({ text: 'No data sources found', value: '' });
    }

    this.options = options;
    if (this.includeAll) {
      this.addAllOption();
    }
    const { defaultDatasource } = config.bootData.settings;
    return this.variableSrv.validateVariableSelectionState(this, defaultDatasource);
  }
github grafana / grafana / public / app / core / utils / ConfigProvider.tsx View on Github external
export const getCurrentThemeName = () =>
  config.bootData.user.lightTheme ? GrafanaThemeType.Light : GrafanaThemeType.Dark;
github GridProtectionAlliance / openHistorian / Source / Applications / openHistorian / openHistorian / Grafana / public / app / core / utils / ConfigProvider.tsx View on Github external
export const getCurrentThemeName = () =>
  config.bootData.user.lightTheme ? GrafanaThemeType.Light : GrafanaThemeType.Dark;