sdk.ts 544 B

123456789101112131415161718192021
  1. import {PanelCtrl} from 'app/features/panel/panel_ctrl';
  2. import {MetricsPanelCtrl} from 'app/features/panel/metrics_panel_ctrl';
  3. import {QueryCtrl} from 'app/features/panel/query_ctrl';
  4. import {alertTab} from 'app/features/alerting/alert_tab_ctrl';
  5. import config from 'app/core/config';
  6. export function loadPluginCss(options) {
  7. if (config.bootData.user.lightTheme) {
  8. System.import(options.light + '!css');
  9. } else {
  10. System.import(options.dark + '!css');
  11. }
  12. }
  13. export {
  14. PanelCtrl,
  15. MetricsPanelCtrl,
  16. QueryCtrl,
  17. alertTab,
  18. };