2019-03-14 13:20:24 -07:00
|
|
|
import { ReactPanelPlugin } from '@grafana/ui';
|
2019-02-18 11:41:14 +01:00
|
|
|
|
|
|
|
|
import { GaugePanelEditor } from './GaugePanelEditor';
|
2019-01-09 17:00:10 +01:00
|
|
|
import { GaugePanel } from './GaugePanel';
|
2019-02-18 11:41:14 +01:00
|
|
|
import { GaugeOptions, defaults } from './types';
|
2019-03-22 13:12:35 -07:00
|
|
|
import { singleStatBaseOptionsCheck, singleStatMigrationCheck } from '../singlestat2/module';
|
2019-02-18 11:41:14 +01:00
|
|
|
|
2019-03-24 15:56:32 +01:00
|
|
|
export const reactPanel = new ReactPanelPlugin<GaugeOptions>(GaugePanel)
|
|
|
|
|
.setDefaults(defaults)
|
|
|
|
|
.setEditor(GaugePanelEditor)
|
|
|
|
|
.setPanelChangeHandler(singleStatBaseOptionsCheck)
|
|
|
|
|
.setMigrationHandler(singleStatMigrationCheck);
|