1import InfluxDatasource from './datasource'; 2import { QueryEditor } from './components/QueryEditor'; 3import InfluxStartPage from './components/InfluxStartPage'; 4import { DataSourcePlugin } from '@grafana/data'; 5import ConfigEditor from './components/ConfigEditor'; 6import VariableQueryEditor from './components/VariableQueryEditor'; 7 8class InfluxAnnotationsQueryCtrl { 9 static templateUrl = 'partials/annotations.editor.html'; 10} 11 12export const plugin = new DataSourcePlugin(InfluxDatasource) 13 .setConfigEditor(ConfigEditor) 14 .setQueryEditor(QueryEditor) 15 .setAnnotationQueryCtrl(InfluxAnnotationsQueryCtrl) 16 .setVariableQueryEditor(VariableQueryEditor) 17 .setQueryEditorHelp(InfluxStartPage); 18