2019-03-28 06:57:49 -07:00
|
|
|
import { ReactPanelPlugin, sharedSingleStatMigrationCheck, sharedSingleStatOptionsCheck } from '@grafana/ui';
|
|
|
|
|
import { SingleStatOptions, defaults } from './types';
|
2019-03-14 13:20:24 -07:00
|
|
|
import { SingleStatPanel } from './SingleStatPanel';
|
|
|
|
|
import { SingleStatEditor } from './SingleStatEditor';
|
|
|
|
|
|
2019-03-24 15:56:32 +01:00
|
|
|
export const reactPanel = new ReactPanelPlugin<SingleStatOptions>(SingleStatPanel)
|
|
|
|
|
.setDefaults(defaults)
|
|
|
|
|
.setEditor(SingleStatEditor)
|
2019-03-28 06:57:49 -07:00
|
|
|
.setPanelChangeHandler(sharedSingleStatOptionsCheck)
|
|
|
|
|
.setMigrationHandler(sharedSingleStatMigrationCheck);
|