module.tsx 531 B

123456789101112
  1. import { ReactPanelPlugin } from '@grafana/ui';
  2. import { GaugePanelEditor } from './GaugePanelEditor';
  3. import { GaugePanel } from './GaugePanel';
  4. import { GaugeOptions, defaults } from './types';
  5. import { singleStatBaseOptionsCheck, singleStatMigrationCheck } from '../singlestat2/module';
  6. export const reactPanel = new ReactPanelPlugin<GaugeOptions>(GaugePanel, defaults);
  7. reactPanel.editor = GaugePanelEditor;
  8. reactPanel.onPanelTypeChanged = singleStatBaseOptionsCheck;
  9. reactPanel.onPanelMigration = singleStatMigrationCheck;