mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* convert config editor to react * tests and some cleanup * test * snaps * updating per comments * remove anonymous funcs, remove config from state * remove unecessaries
18 lines
701 B
TypeScript
18 lines
701 B
TypeScript
import InfluxDatasource from './datasource';
|
|
import { InfluxQueryCtrl } from './query_ctrl';
|
|
import { InfluxLogsQueryField } from './components/InfluxLogsQueryField';
|
|
import InfluxStartPage from './components/InfluxStartPage';
|
|
import { DataSourcePlugin } from '@grafana/data';
|
|
import ConfigEditor from './components/ConfigEditor';
|
|
|
|
class InfluxAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(InfluxDatasource)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setQueryCtrl(InfluxQueryCtrl)
|
|
.setAnnotationQueryCtrl(InfluxAnnotationsQueryCtrl)
|
|
.setExploreLogsQueryField(InfluxLogsQueryField)
|
|
.setExploreStartPage(InfluxStartPage);
|