mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Input Datasource: convert from angular config to react ConfigEditor (#16856)
* use ConfigEditor * use ConfigEditor * update readme * make the jsondata generic
This commit is contained in:
committed by
Torkel Ödegaard
parent
ece4d2201c
commit
0d02ceb452
@@ -1,6 +1,11 @@
|
||||
import Datasource from './datasource';
|
||||
import { DataSourcePlugin } from '@grafana/ui';
|
||||
|
||||
import InputQueryEditor from './InputQueryEditor';
|
||||
import InputConfigCtrl from './legacy/InputConfigCtrl';
|
||||
import { InputDatasource } from './InputDatasource';
|
||||
|
||||
export { Datasource, InputQueryEditor as QueryEditor, InputConfigCtrl as ConfigCtrl };
|
||||
import { InputQueryEditor } from './InputQueryEditor';
|
||||
import { InputConfigEditor } from './InputConfigEditor';
|
||||
import { InputOptions, InputQuery } from './types';
|
||||
|
||||
export const plugin = new DataSourcePlugin<InputOptions, InputQuery>(InputDatasource)
|
||||
.setConfigEditor(InputConfigEditor)
|
||||
.setQueryEditor(InputQueryEditor);
|
||||
|
||||
Reference in New Issue
Block a user