|
@@ -1,6 +1,7 @@
|
|
|
import { DataSourcePlugin } from '@grafana/ui';
|
|
import { DataSourcePlugin } from '@grafana/ui';
|
|
|
import { TestDataDatasource } from './datasource';
|
|
import { TestDataDatasource } from './datasource';
|
|
|
import { TestDataQueryCtrl } from './query_ctrl';
|
|
import { TestDataQueryCtrl } from './query_ctrl';
|
|
|
|
|
+import { ConfigEditor } from './ConfigEditor';
|
|
|
|
|
|
|
|
class TestDataAnnotationsQueryCtrl {
|
|
class TestDataAnnotationsQueryCtrl {
|
|
|
annotation: any;
|
|
annotation: any;
|
|
@@ -9,5 +10,6 @@ class TestDataAnnotationsQueryCtrl {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const plugin = new DataSourcePlugin(TestDataDatasource)
|
|
export const plugin = new DataSourcePlugin(TestDataDatasource)
|
|
|
|
|
+ .setConfigEditor(ConfigEditor)
|
|
|
.setQueryCtrl(TestDataQueryCtrl)
|
|
.setQueryCtrl(TestDataQueryCtrl)
|
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl);
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl);
|